kohlrak

Untitled

Jul 17th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. .intel_syntax noprefix
  2. .section .rodata.str1.1,"aMS",@progbits,1
  3. .LC0:
  4. .string "LE: 0x%08x\nBE: 0x%08x\n"
  5. .section .text.startup,"ax",@progbits
  6. .globl main
  7. main:
  8. .LFB13:
  9. .cfi_startproc
  10. lea ecx, [esp+4]
  11. and esp, -16
  12. push DWORD PTR [ecx-4]
  13. push ebp
  14. mov ebp, esp
  15. push ecx
  16. sub esp, 8
  17. push 3342080
  18. push 16724480 #looks like it did the calculation for us, instead of making the program do it at run time.
  19. push OFFSET FLAT:.LC0
  20. call printf
  21. mov ecx, DWORD PTR [ebp-4]
  22. add esp, 16
  23. xor eax, eax
  24. leave
  25. lea esp, [ecx-4]
  26. ret
  27. .LFE13:
  28. .size main, .-main
  29. .section .note.GNU-stack,"",@progbits
Advertisement
Add Comment
Please, Sign In to add comment