Guest User

Binary Pirates #6 disassembled

a guest
Jan 5th, 2014
61
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Dump of assembler code for function main:
  2. 0x004013ee <+0>: push %ebp
  3. 0x004013ef <+1>: mov %esp,%ebp
  4. 0x004013f1 <+3>: sub $0x48,%esp
  5. 0x004013f4 <+6>: and $0xfffffff0,%esp
  6. 0x004013f7 <+9>: mov $0x0,%eax
  7. 0x004013fc <+14>: add $0xf,%eax
  8. 0x004013ff <+17>: add $0xf,%eax
  9. 0x00401402 <+20>: shr $0x4,%eax
  10. 0x00401405 <+23>: shl $0x4,%eax
  11. 0x00401408 <+26>: mov %eax,-0x2c(%ebp)
  12. 0x0040140b <+29>: mov -0x2c(%ebp),%eax
  13. 0x0040140e <+32>: call 0x40d1e0 <_alloca>
  14. 0x00401413 <+37>: call 0x40cd60 <__main>
  15. 0x00401418 <+42>: movl $0x442000,0x4(%esp)
  16. 0x00401420 <+50>: movl $0x4453c0,(%esp)
  17. 0x00401427 <+57>: call 0x43e6f8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc>
  18. 0x0040142c <+62>: movl $0x44201a,0x4(%esp)
  19. 0x00401434 <+70>: movl $0x4453c0,(%esp)
  20. 0x0040143b <+77>: call 0x43e6f8 <_ZStlsISt11char_traitsIcEERSt13basic_os
  21. treamIcT_ES5_PKc>
  22. 0x00401440 <+82>: lea -0x18(%ebp),%eax
  23. 0x00401443 <+85>: mov %eax,0x4(%esp)
  24. 0x00401447 <+89>: movl $0x445460,(%esp)
  25. 0x0040144e <+96>: call 0x43f4c8 <_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_>
  26. 0x00401453 <+101>: movl $0x0,-0x1c(%ebp)
  27. 0x0040145a <+108>: lea -0x18(%ebp),%eax
  28. 0x0040145d <+111>: mov %eax,(%esp)
  29. 0x00401460 <+114>: call 0x4151f8 <strlen>
  30. 0x00401465 <+119>: cmp $0x5,%eax
  31. 0x00401468 <+122>: je 0x401496 <main+168>
  32. 0x0040146a <+124>: movl $0x44202e,0x4(%esp)
  33. 0x00401472 <+132>: movl $0x4453c0,(%esp)
  34. 0x00401479 <+139>: call 0x43e6f8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc>
  35. 0x0040147e <+144>: movl $0x442040,(%esp)
  36. 0x00401485 <+151>: call 0x4151f0 <system>
  37. 0x0040148a <+156>: movl $0x0,(%esp)
  38. 0x00401491 <+163>: call 0x4151e8 <exit>
  39. 0x00401496 <+168>: cmpb $0x41,-0x18(%ebp)
  40. 0x0040149a <+172>: jne 0x4014b6 <main+200>
  41. 0x0040149c <+174>: cmpb $0x62,-0x17(%ebp)
  42. 0x004014a0 <+178>: jne 0x4014b6 <main+200>
  43. 0x004014a2 <+180>: cmpb $0x68,-0x16(%ebp)
  44. 0x004014a6 <+184>: jne 0x4014b6 <main+200>
  45. 0x004014a8 <+186>: cmpb $0x69,-0x15(%ebp)
  46. 0x004014ac <+190>: jne 0x4014b6 <main+200>
  47. 0x004014ae <+192>: cmpb $0x6b,-0x14(%ebp)
  48. 0x004014b2 <+196>: jne 0x4014b6 <main+200>
  49. 0x004014b4 <+198>: jmp 0x4014e2 <main+244>
  50. 0x004014b6 <+200>: movl $0x442046,0x4(%esp)
  51. 0x004014be <+208>: movl $0x4453c0,(%esp)
  52. 0x004014c5 <+215>: call 0x43e6f8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc>
  53. 0x004014ca <+220>: movl $0x442040,(%esp)
  54. 0x004014d1 <+227>: call 0x4151f0 <system>
  55. 0x004014d6 <+232>: movl $0x0,(%esp)
  56. 0x004014dd <+239>: call 0x4151e8 <exit>
  57. 0x004014e2 <+244>: movl $0x44204d,0x4(%esp)
  58. 0x004014ea <+252>: movl $0x4453c0,(%esp)
  59. 0x004014f1 <+259>: call 0x43e6f8 <_ZStlsISt11char_traitsIcEERSt13basic_os
  60. treamIcT_ES5_PKc>
  61. 0x004014f6 <+264>: movl $0x442040,(%esp)
  62. 0x004014fd <+271>: call 0x4151f0 <system>
  63. 0x00401502 <+276>: mov $0x0,%eax
  64. 0x00401507 <+281>: leave
  65. 0x00401508 <+282>: ret
  66. 0x00401509 <+283>: nop
  67. End of assembler dump.
RAW Paste Data