|
miasm
Reverse engineering framework
|
Go to the documentation of this file.
4 #define _MIASM_EXPORT __declspec(dllexport)
136 #define RETURN_PC return BlockDst;
bool found
Definition: dse_crackme.py:270
list x1
Definition: interval.py:98
list XMM5
Definition: regs.py:285
list BX
Definition: regs.py:135
ES
Definition: regs.py:316
uint64_t R13
Definition: JitCore_x86.h:28
uint32_t of
Definition: JitCore_aarch64.h:46
float_st6
Definition: regs.py:82
uint8_t zf
Definition: JitCore_x86.h:35
uint64_t R15
Definition: JitCore_x86.h:30
#define PyGetInt_uint16_t(item, value)
Definition: compat_py23.h:193
string reg_float_eip
Definition: regs.py:247
Definition: JitCore.h:194
void dump_gpregs_16(struct vm_cpu *vmcpu)
Definition: JitCore_x86.c:266
#define MOD_DEF(ob, name, doc, methods)
Definition: compat_py23.h:218
list XMM15
Definition: regs.py:295
bn_t XMM2
Definition: JitCore_x86.h:108
#define PyGetInt_uint32_t(item, value)
Definition: compat_py23.h:194
_MIASM_EXPORT void MEM_WRITE_32(JitCpu *jitcpu, uint64_t addr, uint32_t src)
Definition: JitCore_aarch64.c:244
GS
Definition: regs.py:321
uint16_t SS
Definition: JitCore_x86.h:88
uint64_t float_st0
Definition: JitCore_x86.h:58
string reg_float_control
Definition: regs.py:246
bn_t XMM7
Definition: JitCore_x86.h:113
list BP
Definition: regs.py:137
PyObject * JitCpu_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
Definition: JitCore.c:20
list RSI
Definition: regs.py:174
struct vm_cpu ref_arch_regs
Definition: JitCore_x86.c:15
vif
Definition: regs.py:312
list XMM0
Definition: regs.py:280
void vm_MEM_WRITE_32(vm_mngr_t *vm_mngr, uint64_t addr, unsigned int src)
Definition: vm_mngr.c:473
uint64_t RSI
Definition: JitCore_x86.h:19
list XMM3
Definition: regs.py:283
uint64_t float_st1
Definition: JitCore_x86.h:59
bn_t XMM3
Definition: JitCore_x86.h:109
list XMM10
Definition: regs.py:290
uint8_t ac
Definition: JitCore_x86.h:49
float_st1
Definition: regs.py:77
string reg_float_cs
Definition: regs.py:248
uint8_t iopl_f
Definition: JitCore_x86.h:45
#define RET_MODULE
Definition: compat_py23.h:221
float_st5
Definition: regs.py:81
PyObject * JitCpu_get_vmmngr(JitCpu *self, void *closure)
Definition: JitCore.c:28
uint64_t float_st6
Definition: JitCore_x86.h:64
_MIASM_EXPORT void dump_gpregs_32(struct vm_cpu *vmcpu)
Definition: JitCore_x86.c:287
i
Definition: modint.py:70
FS
Definition: dse_crackme.py:88
list XMM7
Definition: regs.py:287
bn_t XMM0
Definition: JitCore_x86.h:106
uint64_t R12
Definition: JitCore_x86.h:27
#define get_reg_bn(reg, size)
Definition: JitCore.h:159
cf
Definition: regs.py:166
float_st3
Definition: regs.py:79
PyObject * cpu_set_segm_base(JitCpu *self, PyObject *args)
Definition: JitCore_x86.c:407
uint8_t of
Definition: JitCore_x86.h:38
unsigned int reg_float_ds
Definition: JitCore_x86.h:80
void dump_gpregs_64(struct vm_cpu *vmcpu)
Definition: JitCore_x86.c:310
cond
Definition: solve_condition_stp.py:172
af
Definition: regs.py:169
list XMM11
Definition: regs.py:291
segm
Definition: arch.py:3269
ac
Definition: regs.py:311
zf
Definition: regs.py:163
vm
Definition: example_types.py:161
of
Definition: regs.py:165
uint32_t R11
Definition: JitCore_arm.h:18
uint64_t RBX
Definition: JitCore_x86.h:16
#define getset_reg_E_u32(regname)
Definition: JitCore_x86.c:504
PyObject * cpu_init_regs(JitCpu *self)
Definition: JitCore_x86.c:256
PyObject * get_gpreg_offset_all(void)
Definition: JitCore_x86.c:628
uint32_t nf
Definition: JitCore_aarch64.h:45
uint64_t MM3
Definition: JitCore_x86.h:99
#define get_reg(reg)
Definition: JitCore.h:152
uint32_t R8
Definition: JitCore_arm.h:15
uint32_t R9
Definition: JitCore_arm.h:16
_MIASM_EXPORT uint64_t segm2addr(JitCpu *jitcpu, uint64_t segm, uint64_t addr)
Definition: JitCore_x86.c:436
#define PyGetStr(dest, name)
Definition: compat_py23.h:181
list XMM8
Definition: regs.py:288
uint8_t cf
Definition: JitCore_x86.h:39
uint64_t MM7
Definition: JitCore_x86.h:103
reg_dict gpreg_dict[]
Definition: JitCore_x86.c:17
bn_t XMM12
Definition: JitCore_x86.h:118
list RDX
Definition: regs.py:170
void MEM_WRITE_64(JitCpu *jitcpu, uint64_t addr, uint64_t src)
Definition: JitCore_x86.c:456
void vm_MEM_WRITE_64(vm_mngr_t *vm_mngr, uint64_t addr, uint64_t src)
Definition: vm_mngr.c:478
PyObject * JitCpu_set_vmmngr(JitCpu *self, PyObject *value, void *closure)
Definition: JitCore.c:38
SS
Definition: regs.py:318
list RBX
Definition: regs.py:171
void MEM_WRITE_08(JitCpu *jitcpu, uint64_t addr, uint8_t src)
Definition: JitCore_x86.c:441
df
Definition: regs.py:168
list R8
Definition: regs.py:25
uint64_t MM4
Definition: JitCore_x86.h:100
uint8_t nt
Definition: JitCore_x86.h:46
uint64_t RSP
Definition: JitCore_x86.h:21
uint8_t vip
Definition: JitCore_x86.h:51
bn_t XMM4
Definition: JitCore_x86.h:110
unsigned int float_c3
Definition: JitCore_x86.h:70
uint16_t FS
Definition: JitCore_x86.h:90
uint64_t RIP
Definition: JitCore_x86.h:32
list R14
Definition: regs.py:29
char * name
Definition: JitCore.h:195
list XMM14
Definition: regs.py:294
PyObject * JitCpu_set_jitter(JitCpu *self, PyObject *value, void *closure)
Definition: JitCore.c:73
uint64_t MM6
Definition: JitCore_x86.h:102
list DX
Definition: regs.py:134
uint64_t R11
Definition: JitCore_x86.h:26
list R10
Definition: regs.py:27
void MEM_WRITE_16(JitCpu *jitcpu, uint64_t addr, uint16_t src)
Definition: JitCore_x86.c:446
uint64_t MM1
Definition: JitCore_x86.h:97
PyObject * cpu_dump_gpregs(JitCpu *self, PyObject *args)
Definition: JitCore_x86.c:330
uint32_t cf
Definition: JitCore_aarch64.h:47
uint64_t MM0
Definition: JitCore_x86.h:96
bn_t XMM10
Definition: JitCore_x86.h:116
bn_t XMM8
Definition: JitCore_x86.h:114
list RBP
Definition: regs.py:173
#define RAISE(errtype, msg)
Definition: JitCore.h:19
name
Definition: export_llvm.py:70
Definition: vm_mngr_py.h:8
CS
Definition: regs.py:317
i_d
Definition: regs.py:314
unsigned int float_c2
Definition: JitCore_x86.h:69
unsigned int float_c1
Definition: JitCore_x86.h:68
uint64_t MM5
Definition: JitCore_x86.h:101
_MIASM_EXPORT void MEM_WRITE_16(JitCpu *jitcpu, uint64_t addr, uint16_t src)
Definition: JitCore_aarch64.c:239
void vm_MEM_WRITE_08(vm_mngr_t *vm_mngr, uint64_t addr, unsigned char src)
Definition: vm_mngr.c:462
uint64_t RDX
Definition: JitCore_x86.h:18
i_f
Definition: regs.py:304
uint32_t R10
Definition: JitCore_arm.h:17
PyObject * JitCpu_get_jitter(JitCpu *self, void *closure)
Definition: JitCore.c:63
uint64_t R14
Definition: JitCore_x86.h:29
PyObject * cpu_set_exception(JitCpu *self, PyObject *args)
Definition: JitCore_x86.c:367
uint8_t tf
Definition: JitCore_x86.h:43
list XMM13
Definition: regs.py:293
PyObject * cpu_set_gpreg(JitCpu *self, PyObject *args)
Definition: JitCore_x86.c:166
PyObject * cpu_get_interrupt_num(JitCpu *self, PyObject *args)
Definition: JitCore_x86.c:402
uint64_t RBP
Definition: JitCore_x86.h:22
_MIASM_EXPORT void MEM_WRITE_08(JitCpu *jitcpu, uint64_t addr, uint8_t src)
Definition: JitCore_aarch64.c:234
PyObject * cpu_get_gpreg(JitCpu *self)
Definition: JitCore_x86.c:93
list XMM6
Definition: regs.py:286
unsigned int float_stack_ptr
Definition: JitCore_x86.h:73
list RAX
Definition: regs.py:168
unsigned int reg_float_eip
Definition: JitCore_x86.h:77
#define PyGetInt_uint64_t(item, value)
Definition: compat_py23.h:195
float_st4
Definition: regs.py:80
uint64_t RAX
Definition: JitCore_x86.h:15
bn_t XMM15
Definition: JitCore_x86.h:121
vip
Definition: regs.py:313
void vm_MEM_WRITE_16(vm_mngr_t *vm_mngr, uint64_t addr, unsigned short src)
Definition: vm_mngr.c:468
float_stack_ptr
Definition: regs.py:329
bn_t XMM11
Definition: JitCore_x86.h:117
uint64_t tsc
Definition: JitCore_x86.h:83
stderr
Definition: dse_crackme.py:320
uint16_t CS
Definition: JitCore_x86.h:87
DS
Definition: regs.py:319
list SP
Definition: regs.py:30
void MEM_WRITE_32(JitCpu *jitcpu, uint64_t addr, uint32_t src)
Definition: JitCore_x86.c:451
list R15
Definition: regs.py:30
unsigned int reg_float_control
Definition: JitCore_x86.h:75
bn_t XMM13
Definition: JitCore_x86.h:119
uint32_t zf
Definition: JitCore_aarch64.h:44
list XMM12
Definition: regs.py:292
bn_t XMM14
Definition: JitCore_x86.h:120
uint64_t segm_base[0x10000]
Definition: JitCore_x86.h:123
list RDI
Definition: regs.py:175
bn_t XMM9
Definition: JitCore_x86.h:115
uint8_t i_f
Definition: JitCore_x86.h:44
unsigned int cr0
Definition: JitCore_x86.h:93
list XMM4
Definition: regs.py:284
uint32_t exception_flags
Definition: JitCore_aarch64.h:3
#define _MIASM_EXPORT
Definition: JitCore_x86.h:6
list AX
Definition: regs.py:132
pf
Definition: regs.py:300
nf
Definition: regs.py:164
args
Definition: shellcode.py:26
uint64_t R9
Definition: JitCore_x86.h:24
list XMM1
Definition: regs.py:281
PyObject * cpu_get_exception(JitCpu *self, PyObject *args)
Definition: JitCore_x86.c:382
uint8_t vif
Definition: JitCore_x86.h:50
#define getset_reg_R_u16(regname)
Definition: JitCore_x86.c:522
size_t offset
Definition: JitCore.h:196
unsigned int reg_float_cs
Definition: JitCore_x86.h:78
list SI
Definition: regs.py:138
uint64_t RDI
Definition: JitCore_x86.h:20
uint8_t vm
Definition: JitCore_x86.h:48
list R11
Definition: regs.py:28
uint16_t GS
Definition: JitCore_x86.h:91
void dump_gpregs_32(struct vm_cpu *vmcpu)
Definition: JitCore_x86.c:287
list XMM2
Definition: regs.py:282
bn_t cond
Definition: JitCore_x86.h:56
#define PyGetInt_uint8_t(item, value)
Definition: compat_py23.h:192
bn_t PyLong_to_bn(PyObject *py_long)
Definition: vm_mngr_py.c:1034
PyObject_HEAD VmMngr * pyvm
Definition: JitCore.h:188
uint64_t float_st2
Definition: JitCore_x86.h:60
list R13
Definition: regs.py:28
bn_t XMM5
Definition: JitCore_x86.h:111
uint64_t segm2addr(JitCpu *jitcpu, uint64_t segm, uint64_t addr)
Definition: JitCore_x86.c:436
attrib
Definition: shellcode.py:31
MOD_INIT(JitCore_x86)
Definition: JitCore_x86.c:886
uint8_t i_d
Definition: JitCore_x86.h:52
PyObject * cpu_dump_gpregs_with_attrib(JitCpu *self, PyObject *args)
Definition: JitCore_x86.c:341
list R9
Definition: regs.py:26
void JitCpu_dealloc(JitCpu *self)
Definition: JitCore.c:14
uint32_t R15
Definition: JitCore_msp430.h:20
bn_t my_tick
Definition: JitCore_x86.h:54
bn_t bignum_mask(bn_t src, int bits)
Definition: bn.c:699
getset_reg_u32(exception_flags)
uint64_t R10
Definition: JitCore_x86.h:25
tf
Definition: regs.py:303
float_st7
Definition: regs.py:83
list RSP
Definition: regs.py:172
addr
Definition: dis_binary.py:24
float_st0
Definition: regs.py:76
unsigned int cr3
Definition: JitCore_x86.h:94
uint64_t float_st3
Definition: JitCore_x86.h:61
interrupt_num
Definition: regs.py:8
_MIASM_EXPORT void dump_gpregs_64(struct vm_cpu *vmcpu)
Definition: JitCore_x86.c:310
uint8_t pf
Definition: JitCore_x86.h:37
uint32_t R14
Definition: JitCore_msp430.h:19
nt
Definition: regs.py:308
bn_t XMM1
Definition: JitCore_x86.h:107
PyObject * JitCpu_set_vmcpu(JitCpu *self, PyObject *value, void *closure)
Definition: JitCore.c:55
#define get_reg_off(reg)
Definition: JitCore.h:170
uint16_t ES
Definition: JitCore_x86.h:86
unsigned int float_c0
Definition: JitCore_x86.h:67
uint8_t df
Definition: JitCore_x86.h:41
uint64_t float_st7
Definition: JitCore_x86.h:65
uint16_t DS
Definition: JitCore_x86.h:89
uint64_t float_st4
Definition: JitCore_x86.h:62
uint64_t float_st5
Definition: JitCore_x86.h:63
uint8_t af
Definition: JitCore_x86.h:40
_MIASM_EXPORT void MEM_WRITE_64(JitCpu *jitcpu, uint64_t addr, uint64_t src)
Definition: JitCore_aarch64.c:249
uint8_t nf
Definition: JitCore_x86.h:36
list CX
Definition: regs.py:133
uint32_t interrupt_num
Definition: JitCore_aarch64.h:4
list R12
Definition: regs.py:29
uint8_t rf
Definition: JitCore_x86.h:47
uint64_t R8
Definition: JitCore_x86.h:23
uint32_t R13
Definition: JitCore_msp430.h:18
struct vm_cpu * cpu
Definition: JitCore.h:190
bn_t XMM6
Definition: JitCore_x86.h:112
float_st2
Definition: regs.py:78
uint64_t MM2
Definition: JitCore_x86.h:98
size
Definition: shellcode.py:32
tsc
Definition: regs.py:323
exception_flags
Definition: regs.py:7
Definition: JitCore.h:186
Definition: JitCore_aarch64.h:2
PyObject * cpu_get_segm_base(JitCpu *self, PyObject *args)
Definition: JitCore_x86.c:423
PyObject * JitCpu_get_vmcpu(JitCpu *self, void *closure)
Definition: JitCore.c:46
unsigned int reg_float_address
Definition: JitCore_x86.h:79
rf
Definition: regs.py:309
uint32_t R12
Definition: JitCore_arm.h:19
list DI
Definition: regs.py:139
list RCX
Definition: regs.py:169
list XMM9
Definition: regs.py:289
uint64_t RCX
Definition: JitCore_x86.h:17
PyObject * cpu_set_interrupt_num(JitCpu *self, PyObject *args)
Definition: JitCore_x86.c:387