rizin/test/db/cmd/lea_intel
NOT XVilka ba8c170852
Migrate from Capstone to Zydis (x86 architecture) (#5164)
* 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>
2025-05-23 13:03:46 +00:00

42 lines
1.6 KiB
Text

NAME=lea_intel att subrel
FILE=bins/elf/ezpz
CMDS=<<EOF
e asm.lines.bb=0
e asm.bytes=0
e asm.comments=false
s 0x00402c43
pd 30
EOF
EXPECT=<<EOF
0x00402c43 lea rax, qword [rbp-0xa0] ; ezpz.cpp:265
0x00402c4a mov rdi, rax
0x00402c4d call sym.MD5_Init_MD5_CTX
0x00402c52 mov eax, dword [rbp-0xb4] ; ezpz.cpp:266
0x00402c58 add eax, 0x01
0x00402c5b movsxd rdx, eax
0x00402c5e lea rax, qword [rbp-0xa0]
0x00402c65 mov esi, obj.Password
0x00402c6a mov rdi, rax
0x00402c6d call sym.MD5_Update_MD5_CTX___void_const___unsigned_long
0x00402c72 lea rdx, qword [rbp-0xa0] ; ezpz.cpp:267
0x00402c79 lea rax, qword [rbp-0xb0]
0x00402c80 mov rsi, rdx
0x00402c83 mov rdi, rax
0x00402c86 call sym.MD5_Final_unsigned_char___MD5_CTX
0x00402c8b mov eax, dword [rbp-0xb4] ; ezpz.cpp:269
0x00402c91 cdqe
0x00402c93 shl rax, 0x04
0x00402c97 lea rcx, qword [rax+obj.GoodHashes]
0x00402c9e lea rax, qword [rbp-0xb0]
0x00402ca5 mov edx, 0x10
0x00402caa mov rsi, rcx
0x00402cad mov rdi, rax
0x00402cb0 call sym.imp.memcmp
0x00402cb5 test eax, eax
0x00402cb7 jz 0x402cc2
0x00402cb9 mov byte [obj.DrawGoodWork], 0x00 ; ezpz.cpp:270
0x00402cc0 jmp 0x402cdd
0x00402cc2 add dword [rbp-0xb4], 0x01 ; ezpz.cpp:263
0x00402cc9 cmp dword [rbp-0xb4], 0x14
EOF
RUN