Advertisement
Guest User

Untitled

a guest
Dec 7th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. |           0x080485e3      50             push eax
  2. |           0x080485e4      6875870408     push str.32s                ; 0x8048775 ; "%32s" ; const char *format
  3. |           0x080485e9      e822feffff     call sym.imp.__isoc99_scanf ; int scanf(const char *format)
  4. |           0x080485ee      83c410         add esp, 0x10
  5. |           0x080485f1      83ec04         sub esp, 4
  6. |           0x080485f4      6a0a           push 0xa                    ; 10 ; int base
  7. |           0x080485f6      6a00           push 0                      ; char * *endptr
  8. |           0x080485f8      8d45d4         lea eax, dword [str]
  9. |           0x080485fb      50             push eax                    ; const char *str
  10. |           0x080485fc      e81ffeffff     call sym.imp.strtol         ; long strtol(const char *str, char * *endptr, int base)
  11. |           0x08048601      83c410         add esp, 0x10
  12. |           0x08048604      8945f4         mov dword [local_ch], eax
  13. |           0x08048607      83ec08         sub esp, 8
  14. |           0x0804860a      ff75f4         push dword [local_ch]
  15. |           0x0804860d      687c870408     push str.You_entered__d._Let_s_see_if_it_was_right... ; 0x804877c ; "You entered %d. Let's see if it was right...\n" ; const char *format
  16. |           0x08048612      e8a9fdffff     call sym.imp.printf         ; int printf(const char *format)
  17. |           0x08048617      83c410         add esp, 0x10
  18. |           0x0804861a      c16df404       shr dword [local_ch], 4
  19. |           0x0804861e      8b45f4         mov eax, dword [local_ch]
  20. |           0x08048621      ffd0           call eax
  21. |           0x08048623      8b4dfc         mov ecx, dword [local_4h]
  22. |           0x08048626      c9             leave
  23. |           0x08048627      8d61fc         lea esp, dword [ecx - 4]
  24. \           0x0804862a      c3             ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement