mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-28 07:30:33 +00:00
43 lines
1.3 KiB
Plaintext
43 lines
1.3 KiB
Plaintext
NAME=lea_intel att relsub
|
|
FILE=../bins/elf/ezpz
|
|
EXPECT=<<EOF
|
|
0x00402c43 lea rax, [rbp - 0xa0]
|
|
0x00402c4a mov rdi, rax
|
|
0x00402c4d call sym MD5_Init(MD5_CTX*)
|
|
0x00402c52 mov eax, dword [rbp - 0xb4]
|
|
0x00402c58 add eax, 1
|
|
0x00402c5b movsxd rdx, eax
|
|
0x00402c5e lea rax, [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, [rbp - 0xa0]
|
|
0x00402c79 lea rax, [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]
|
|
0x00402c91 cdqe
|
|
0x00402c93 shl rax, 4
|
|
0x00402c97 lea rcx, [rax + obj.GoodHashes]
|
|
0x00402c9e lea rax, [rbp - 0xb0]
|
|
0x00402ca5 mov edx, 0x10
|
|
0x00402caa mov rsi, rcx
|
|
0x00402cad mov rdi, rax
|
|
0x00402cb0 call sym.imp.memcmp
|
|
0x00402cb5 test eax, eax
|
|
0x00402cb7 je 0x402cc2
|
|
0x00402cb9 mov byte [obj.DrawGoodWork], 0
|
|
0x00402cc0 jmp 0x402cdd
|
|
0x00402cc2 add dword [rbp - 0xb4], 1
|
|
0x00402cc9 cmp dword [rbp - 0xb4], 0x14
|
|
EOF
|
|
CMDS=<<EOF
|
|
e asm.lines.bb=0
|
|
e asm.bytes=0
|
|
e asm.comments=false
|
|
s 0x00402c43
|
|
pd 30
|
|
EOF
|
|
RUN
|