Advertisement
Guest User

Untitled

a guest
Jan 24th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.21 KB | None | 0 0
  1. $ r2 /bin/ls
  2. aaa
  3. s 0x0001022e
  4.  
  5. [0x0001022e]> pd 10
  6. │           0x0001022e      666666664885.  test rdi, rdi
  7. │       ╭─< 0x00010235      783c           js 0x10273
  8. │       │   0x00010237      660f1f840000.  nop word [rax + rax]
  9. │       │   ; CODE XREF from fcn.00010210 (0x10264)
  10. │       │   0x00010240      4889f8         mov rax, rdi                
  11. │       │   0x00010243      4883e901       sub rcx, 1
  12. │       │   0x00010247      48f7e6         mul rsi
  13. │       │   0x0001024a      48c1ea03       shr rdx, 3
  14. │       │   0x0001024e      488d0492       lea rax, [rdx + rdx*4]    
  15. │       │   0x00010252      4801c0         add rax, rax              
  16. │       │   0x00010255      4829c7         sub rdi, rax
  17.  
  18.  
  19.  
  20. # here is wrong. add rax, rax translates to VAL=35
  21.  
  22. [0x0001022e]> pdj 1 @ 66130~{}
  23. [
  24.   {
  25.     "offset": 66130,
  26.     "val": 35,
  27.     "esil": "rax,rax,+=,$o,of,=,$s,sf,=,$z,zf,=,$c63,cf,=,$p,pf,=",
  28.     "refptr": false,
  29.     "fcn_addr": 66064,
  30.     "fcn_last": 66217,
  31.     "size": 3,
  32.     "opcode": "add rax, rax",
  33.     "disasm": "add rax, rax",
  34.     "bytes": "4801c0",
  35.     "family": "cpu",
  36.     "type": "add",
  37.     "type_num": 17,
  38.     "type2_num": 0
  39.   }
  40. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement