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