miasm
Reverse engineering framework
arch Namespace Reference

Functions

def h2i (s)
 
def u16swap (i)
 
def profile_dis (o)
 

Variables

 loc_db = LocationDB()
 
list reg_tests_aarch64
 
 ts = time.time()
 
 s = s[12:]
 
def b = h2i((l))
 
 mn = mn_aarch64.dis(b, 'l')
 
 l = mn_aarch64.fromstring(s, loc_db, 'l')
 
 a = mn_aarch64.asm(l)
 
list reg_tests_arm
 
list reg_tests_armt
 
def o = b""
 
 bs = bin_stream_str(o)
 
int off = 0
 
int instr_num = 0
 
list reg_tests_mips32
 
list reg_tests_msp
 
list reg_tests
 
 rl = mn_ppc.dis(x, mode)
 
list reg_tests_sh4
 
 mylabel16 = m2_expr.ExprId('mylabel16', 16)
 
 mylabel32 = m2_expr.ExprId('mylabel32', 32)
 
 mylabel64 = m2_expr.ExprId('mylabel64', 64)
 
 reg_and_id = dict(mn_x86.regs.all_regs_ids_byname)
 
int m16 = 16
 
int m32 = 32
 
int m64 = 64
 
dictionary test_file
 
int mode_x = m32
 
string instr_bytes = b'\x65\xc7\x00\x09\x00\x00\x00'
 
 inst = mn_x86.dis(instr_bytes, 32, 0)
 

Function Documentation

◆ h2i()

def arch.h2i (   s)
Here is the call graph for this function:

◆ profile_dis()

def arch.profile_dis (   o)

◆ u16swap()

def arch.u16swap (   i)

Variable Documentation

◆ a

arch.a = mn_aarch64.asm(l)

◆ b

def arch.b = h2i((l))

◆ bs

◆ inst

arch.inst = mn_x86.dis(instr_bytes, 32, 0)

◆ instr_bytes

string arch.instr_bytes = b'\x65\xc7\x00\x09\x00\x00\x00'

◆ instr_num

int arch.instr_num = 0

◆ l

arch.l = mn_aarch64.fromstring(s, loc_db, 'l')

◆ loc_db

arch.loc_db = LocationDB()

◆ m16

int arch.m16 = 16

◆ m32

int arch.m32 = 32

◆ m64

int arch.m64 = 64

◆ mn

arch.mn = mn_aarch64.dis(b, 'l')

◆ mode_x

int arch.mode_x = m32

◆ mylabel16

arch.mylabel16 = m2_expr.ExprId('mylabel16', 16)

◆ mylabel32

arch.mylabel32 = m2_expr.ExprId('mylabel32', 32)

◆ mylabel64

arch.mylabel64 = m2_expr.ExprId('mylabel64', 64)

◆ o

string arch.o = b""

◆ off

int arch.off = 0

◆ reg_and_id

arch.reg_and_id = dict(mn_x86.regs.all_regs_ids_byname)

◆ reg_tests

list arch.reg_tests

◆ reg_tests_aarch64

list arch.reg_tests_aarch64

◆ reg_tests_arm

list arch.reg_tests_arm

◆ reg_tests_armt

list arch.reg_tests_armt

◆ reg_tests_mips32

list arch.reg_tests_mips32

◆ reg_tests_msp

list arch.reg_tests_msp

◆ reg_tests_sh4

list arch.reg_tests_sh4

◆ rl

arch.rl = mn_ppc.dis(x, mode)

◆ s

arch.s = s[12:]

◆ test_file

dictionary arch.test_file
Initial value:
1 = {
2  16: open('regression_test16_ia32.bin', 'wb'),
3  32: open('regression_test32_ia32.bin', 'wb'),
4  64: open('regression_test64_ia32.bin', 'wb')
5 }

◆ ts

arch.ts = time.time()