def __translate(self, asm_instrs): instr_container = ReilContainer() asm_instr_last = None instr_seq_prev = None for asm_instr in asm_instrs: instr_seq = ReilSequence() for reil_instr in self.arm_translator.translate(asm_instr): instr_seq.append(reil_instr) if instr_seq_prev: instr_seq_prev.next_sequence_address = instr_seq.address instr_container.add(instr_seq) instr_seq_prev = instr_seq if instr_seq_prev: if asm_instr_last: instr_seq_prev.next_sequence_address = ( asm_instr_last.address + asm_instr_last.size) << 8 return instr_container
def __translate(self, asm_instrs): instr_container = ReilContainer() asm_instr_last = None instr_seq_prev = None for asm_instr in asm_instrs: instr_seq = ReilSequence() for reil_instr in self._translator.translate(asm_instr): instr_seq.append(reil_instr) if instr_seq_prev: instr_seq_prev.next_sequence_address = instr_seq.address instr_container.add(instr_seq) instr_seq_prev = instr_seq if instr_seq_prev: if asm_instr_last: instr_seq_prev.next_sequence_address = (asm_instr_last.address + asm_instr_last.size) << 8 # instr_container.dump() return instr_container
def __translate(self, asm_instr): reil_translator = X86Translator(self.arch_info.architecture_mode) # Create ReilContainer instr_container = ReilContainer() instr_seq = ReilSequence() for reil_instr in reil_translator.translate(asm_instr): instr_seq.append(reil_instr) instr_container.add(instr_seq) return instr_container
def __translate(self, asm_instr): reil_translator = X86Translator(self.arch_info.architecture_mode) # Create ReilContainer instr_container = ReilContainer() instr_seq = ReilSequence() for reil_instr in reil_translator.translate(asm_instr): instr_seq.append(reil_instr) instr_container.add(instr_seq) return instr_container
def __build_reil_container(self, asm_instr): reil_translator = self.ir_translator container = ReilContainer() instr_seq = ReilSequence() for reil_instr in reil_translator.translate(asm_instr): instr_seq.append(reil_instr) container.add(instr_seq) return container
def __build_reil_container(self, asm_instr): reil_translator = self.ir_translator container = ReilContainer() instr_seq = ReilSequence() for reil_instr in reil_translator.translate(asm_instr): instr_seq.append(reil_instr) container.add(instr_seq) return container