(self, binary, addr, size, insn_bytes, capstone_instr)
:param Reassembler binary: The Binary analysis
        :param int addr: Address of the instruction
        :param int size: Size of the instruction
        :param str insn_bytes: Instruction bytes
        :param capstone_instr: Capstone Instr object.
        :return: None
def __init__(self, binary, addr, size, insn_bytes, capstone_instr):
        """

        :param Reassembler binary: The Binary analysis
        :param int addr: Address of the instruction
        :param int size: Size of the instruction
        :param str insn_bytes: Instruction bytes
        :param capstone_instr: Capstone Instr object.
        :return: None
        """

        self.binary = binary
        self.project = binary.project
        self.addr = addr
        self.size = size
        self.bytes = insn_bytes

        self.mnemonic = capstone_instr.mnemonic
        self.op_str = capstone_instr.op_str
        self.capstone_operand_types = [ operand.type for operand in capstone_instr.operands ]

        self.operands = [ ]

        self.labels = [ ]

        operand_offsets = [ ]
        for operand in capstone_instr.operands:
            if operand.type == capstone.CS_OP_IMM:
                operand_offsets.append(capstone_instr.imm_offset)
            elif operand.type == capstone.CS_OP_MEM:
                operand_offsets.append(capstone_instr.disp_offset)
            else:
                operand_offsets.append(None)

        if self.addr is not None:
            self._initialize(capstone_instr.operands, operand_offsets)
def __init__ ( self , binary , addr , size , insn_bytes , capstone_instr ) : self . binary = binary self . project = binary . project self . addr = addr self . size = size self . bytes = insn_bytes self . mnemonic = capstone_instr . mnemonic self . op_str = capstone_instr . op_str self . capstone_operand_types = [ operand . type for operand in capstone_instr . operands ] self . operands = [ ] self . labels = [ ] operand_offsets = [ ] for operand in capstone_instr . operands : if operand . type == capstone . CS_OP_IMM : operand_offsets . append ( capstone_instr . imm_offset ) elif operand . type == capstone . CS_OP_MEM : operand_offsets . append ( capstone_instr . disp_offset ) else : operand_offsets . append ( None ) if self . addr is not None : self . _initialize ( capstone_instr . operands , operand_offsets )