Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ r2 /bin/ls
- aaa
- s 0x0001022e
- [0x0001022e]> pd 10
- │ 0x0001022e 666666664885. test rdi, rdi
- │ ╭─< 0x00010235 783c js 0x10273
- │ │ 0x00010237 660f1f840000. nop word [rax + rax]
- │ │ ; CODE XREF from fcn.00010210 (0x10264)
- │ │ 0x00010240 4889f8 mov rax, rdi
- │ │ 0x00010243 4883e901 sub rcx, 1
- │ │ 0x00010247 48f7e6 mul rsi
- │ │ 0x0001024a 48c1ea03 shr rdx, 3
- │ │ 0x0001024e 488d0492 lea rax, [rdx + rdx*4]
- │ │ 0x00010252 4801c0 add rax, rax
- │ │ 0x00010255 4829c7 sub rdi, rax
- # here is wrong. add rax, rax translates to VAL=35
- [0x0001022e]> pdj 1 @ 66130~{}
- [
- {
- "offset": 66130,
- "val": 35,
- "esil": "rax,rax,+=,$o,of,=,$s,sf,=,$z,zf,=,$c63,cf,=,$p,pf,=",
- "refptr": false,
- "fcn_addr": 66064,
- "fcn_last": 66217,
- "size": 3,
- "opcode": "add rax, rax",
- "disasm": "add rax, rax",
- "bytes": "4801c0",
- "family": "cpu",
- "type": "add",
- "type_num": 17,
- "type2_num": 0
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement