* Added build files [Capstone to Zydis] * x86 Analysis [Capstone to Zydis] * Changed x86 RzIL [Capstone to Zydis] * Changed asm and arch files [Capstone to Zydis] * Compilation, build error and test fixes [Capstone to Zydis] * Test changes [Capstone to Zydis] * Remaining changes [Capstone to Zydis] * Added BE support [Capstone to Zydis] --------- Co-authored-by: tushar3q34 <tushar3q34@gmail.com>
33 lines
402 B
Text
33 lines
402 B
Text
NAME=de reg read
|
|
FILE=bins/elf/hello_world
|
|
ARGS=-d
|
|
CMDS=<<EOF
|
|
dcu main+8
|
|
de r r rsp
|
|
dec
|
|
.drf
|
|
s rip
|
|
# the call instruction reads rsp, then we should be inside strlen
|
|
pi 1
|
|
EOF
|
|
EXPECT=<<EOF
|
|
jmp qword [reloc.strlen]
|
|
EOF
|
|
RUN
|
|
|
|
NAME=de reg write
|
|
FILE=bins/elf/hello_world
|
|
ARGS=-d
|
|
CMDS=<<EOF
|
|
dcu main
|
|
de w r rax
|
|
dec
|
|
.drf
|
|
s rip-7
|
|
pi 2
|
|
EOF
|
|
EXPECT=<<EOF
|
|
lea rax, qword str.Hello
|
|
mov qword [rbp-0x18], rax
|
|
EOF
|
|
RUN
|