Guest User

Binary Pirates #16 disassembled

a guest
Jan 6th, 2014
78
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 0x004013ee <+0>: push %ebp
  2. 0x004013ef <+1>: mov %esp,%ebp
  3. 0x004013f1 <+3>: sub $0x58,%esp
  4. 0x004013f4 <+6>: and $0xfffffff0,%esp
  5. 0x004013f7 <+9>: mov $0x0,%eax
  6. 0x004013fc <+14>: add $0xf,%eax
  7. 0x004013ff <+17>: add $0xf,%eax
  8. 0x00401402 <+20>: shr $0x4,%eax
  9. 0x00401405 <+23>: shl $0x4,%eax
  10. 0x00401408 <+26>: mov %eax,-0x3c(%ebp)
  11. 0x0040140b <+29>: mov -0x3c(%ebp),%eax
  12. 0x0040140e <+32>: call 0x40d490 <_alloca>
  13. 0x00401413 <+37>: call 0x40d010 <__main>
  14. 0x00401418 <+42>: movl $0x1,-0xc(%ebp)
  15. 0x0040141f <+49>: cmpl $0x2,-0xc(%ebp)
  16. 0x00401423 <+53>: jne 0x401475 <main+135>
  17. 0x00401425 <+55>: movl $0x443000,0x4(%esp)
  18. 0x0040142d <+63>: movl $0x4463c0,(%esp)
  19. 0x00401434 <+70>: call 0x43e998 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc>
  20. 0x00401439 <+75>: movl $0x443020,0x4(%esp)
  21. 0x00401441 <+83>: movl $0x4463c0,(%esp)
  22. ---Type <return> to continue, or q <return> to quit---
  23. 0x00401448 <+90>: call 0x43e998 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc>
  24. 0x0040144d <+95>: movl $0x443031,0x4(%esp)
  25. 0x00401455 <+103>: movl $0x4463c0,(%esp)
  26. 0x0040145c <+110>: call 0x43e998 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc>
  27. 0x00401461 <+115>: movl $0x44303c,0x4(%esp)
  28. 0x00401469 <+123>: movl $0x4463c0,(%esp)
  29. 0x00401470 <+130>: call 0x43e998 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc>
  30. 0x00401475 <+135>: movl $0x45,0x4(%esp)
  31. 0x0040147d <+143>: movl $0x4463c0,(%esp)
  32. 0x00401484 <+150>: call 0x43ecd8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  33. 0x00401489 <+155>: movl $0x4e,0x4(%esp)
  34. 0x00401491 <+163>: movl $0x4463c0,(%esp)
  35. 0x00401498 <+170>: call 0x43ecd8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  36. 0x0040149d <+175>: movl $0x54,0x4(%esp)
  37. 0x004014a5 <+183>: movl $0x4463c0,(%esp)
  38. 0x004014ac <+190>: call 0x43ecd8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  39. 0x004014b1 <+195>: movl $0x45,0x4(%esp)
  40. ---Type <return> to continue, or q <return> to quit---
  41. 0x004014b9 <+203>: movl $0x4463c0,(%esp)
  42. 0x004014c0 <+210>: call 0x43ecd8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  43. 0x004014c5 <+215>: movl $0x52,0x4(%esp)
  44. 0x004014cd <+223>: movl $0x4463c0,(%esp)
  45. 0x004014d4 <+230>: call 0x43ecd8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  46. 0x004014d9 <+235>: movl $0x2d,0x4(%esp)
  47. 0x004014e1 <+243>: movl $0x4463c0,(%esp)
  48. 0x004014e8 <+250>: call 0x43ecd8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  49. 0x004014ed <+255>: movl $0x50,0x4(%esp)
  50. 0x004014f5 <+263>: movl $0x4463c0,(%esp)
  51. 0x004014fc <+270>: call 0x43ecd8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  52. 0x00401501 <+275>: movl $0x41,0x4(%esp)
  53. 0x00401509 <+283>: movl $0x4463c0,(%esp)
  54. 0x00401510 <+290>: call 0x43ecd8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  55. 0x00401515 <+295>: movl $0x53,0x4(%esp)
  56. 0x0040151d <+303>: movl $0x4463c0,(%esp)
  57. 0x00401524 <+310>: call 0x43ecd8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  58. ---Type <return> to continue, or q <return> to quit---
  59. 0x00401529 <+315>: movl $0x53,0x4(%esp)
  60. 0x00401531 <+323>: movl $0x4463c0,(%esp)
  61. 0x00401538 <+330>: call 0x43ecd8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  62. 0x0040153d <+335>: movl $0x57,0x4(%esp)
  63. 0x00401545 <+343>: movl $0x4463c0,(%esp)
  64. 0x0040154c <+350>: call 0x43ecd8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  65. 0x00401551 <+355>: movl $0x4f,0x4(%esp)
  66. 0x00401559 <+363>: movl $0x4463c0,(%esp)
  67. 0x00401560 <+370>: call 0x43ecd8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  68. 0x00401565 <+375>: movl $0x52,0x4(%esp)
  69. 0x0040156d <+383>: movl $0x4463c0,(%esp)
  70. 0x00401574 <+390>: call 0x43ecd8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  71. 0x00401579 <+395>: movl $0x44,0x4(%esp)
  72. 0x00401581 <+403>: movl $0x4463c0,(%esp)
  73. 0x00401588 <+410>: call 0x43ecd8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  74. 0x0040158d <+415>: movl $0x3a,0x4(%esp)
  75. 0x00401595 <+423>: movl $0x4463c0,(%esp)
  76. 0x0040159c <+430>: call 0x43ecd8 <_ZStlsISt11char_traitsIcEERSt13basic_os---Type <return> to continue, or q <return> to quit---
  77. treamIcT_ES5_c>
  78. 0x004015a1 <+435>: lea -0xc(%ebp),%eax
  79. 0x004015a4 <+438>: incl (%eax)
  80. 0x004015a6 <+440>: lea -0x38(%ebp),%eax
  81. 0x004015a9 <+443>: mov %eax,0x4(%esp)
  82. 0x004015ad <+447>: movl $0x446460,(%esp)
  83. 0x004015b4 <+454>: call 0x43f768 <_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_>
  84. 0x004015b9 <+459>: cmpb $0x45,-0x38(%ebp)
  85. 0x004015bd <+463>: jne 0x40171c <main+814>
  86. 0x004015c3 <+469>: cmpb $0x4e,-0x37(%ebp)
  87. 0x004015c7 <+473>: jne 0x40171c <main+814>
  88. 0x004015cd <+479>: cmpb $0x54,-0x36(%ebp)
  89. 0x004015d1 <+483>: jne 0x40171c <main+814>
  90. 0x004015d7 <+489>: cmpb $0x45,-0x35(%ebp)
  91. 0x004015db <+493>: jne 0x40171c <main+814>
  92. 0x004015e1 <+499>: cmpb $0x52,-0x34(%ebp)
  93. 0x004015e5 <+503>: jne 0x40171c <main+814>
  94. 0x004015eb <+509>: cmpb $0x2d,-0x33(%ebp)
  95. 0x004015ef <+513>: jne 0x40171c <main+814>
  96. 0x004015f5 <+519>: cmpb $0x50,-0x32(%ebp)
  97. 0x004015f9 <+523>: jne 0x40171c <main+814>
  98. 0x004015ff <+529>: cmpb $0x41,-0x31(%ebp)
  99. ---Type <return> to continue, or q <return> to quit---
  100. 0x00401603 <+533>: jne 0x40171c <main+814>
  101. 0x00401609 <+539>: cmpb $0x53,-0x30(%ebp)
  102. 0x0040160d <+543>: jne 0x40171c <main+814>
  103. 0x00401613 <+549>: cmpb $0x53,-0x2f(%ebp)
  104. 0x00401617 <+553>: jne 0x40171c <main+814>
  105. 0x0040161d <+559>: cmpb $0x57,-0x2e(%ebp)
  106. 0x00401621 <+563>: jne 0x40171c <main+814>
  107. 0x00401627 <+569>: cmpb $0x4f,-0x2d(%ebp)
  108. 0x0040162b <+573>: jne 0x40171c <main+814>
  109. 0x00401631 <+579>: cmpb $0x52,-0x2c(%ebp)
  110. 0x00401635 <+583>: jne 0x40171c <main+814>
  111. 0x0040163b <+589>: cmpb $0x44,-0x2b(%ebp)
  112. 0x0040163f <+593>: jne 0x40171c <main+814>
  113. 0x00401645 <+599>: cmpb $0x3a,-0x2a(%ebp)
  114. 0x00401649 <+603>: jne 0x40171c <main+814>
  115. 0x0040164f <+609>: cmpb $0x28,-0x29(%ebp)
  116. 0x00401653 <+613>: jne 0x40171c <main+814>
  117. 0x00401659 <+619>: cmpb $0x0,-0x28(%ebp)
  118. 0x0040165d <+623>: jne 0x40171c <main+814>
  119. 0x00401663 <+629>: movl $0x43,0x4(%esp)
  120. 0x0040166b <+637>: movl $0x4463c0,(%esp)
  121. 0x00401672 <+644>: call 0x43ecd8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  122. ---Type <return> to continue, or q <return> to quit---
  123. 0x00401677 <+649>: movl $0x6f,0x4(%esp)
  124. 0x0040167f <+657>: movl $0x4463c0,(%esp)
  125. 0x00401686 <+664>: call 0x43ecd8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  126. 0x0040168b <+669>: movl $0x72,0x4(%esp)
  127. 0x00401693 <+677>: movl $0x4463c0,(%esp)
  128. 0x0040169a <+684>: call 0x43ecd8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  129. 0x0040169f <+689>: movl $0x72,0x4(%esp)
  130. 0x004016a7 <+697>: movl $0x4463c0,(%esp)
  131. 0x004016ae <+704>: call 0x43ecd8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  132. 0x004016b3 <+709>: movl $0x65,0x4(%esp)
  133. 0x004016bb <+717>: movl $0x4463c0,(%esp)
  134. 0x004016c2 <+724>: call 0x43ecd8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  135. 0x004016c7 <+729>: movl $0x63,0x4(%esp)
  136. 0x004016cf <+737>: movl $0x4463c0,(%esp)
  137. 0x004016d6 <+744>: call 0x43ecd8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  138. 0x004016db <+749>: movl $0x74,0x4(%esp)
  139. 0x004016e3 <+757>: movl $0x4463c0,(%esp)
  140. 0x004016ea <+764>: call 0x43ecd8 <_ZStlsISt11char_traitsIcEERSt13basic_os---Type <return> to continue, or q <return> to quit---
  141. treamIcT_ES5_c>
  142. 0x004016ef <+769>: movl $0x21,0x4(%esp)
  143. 0x004016f7 <+777>: movl $0x4463c0,(%esp)
  144. 0x004016fe <+784>: call 0x43ecd8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  145. 0x00401703 <+789>: movl $0x443045,0x4(%esp)
  146. 0x0040170b <+797>: movl $0x4463c0,(%esp)
  147. 0x00401712 <+804>: call 0x43e998 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc>
  148. 0x00401717 <+809>: jmp 0x4017a8 <main+954>
  149. 0x0040171c <+814>: movl $0x57,0x4(%esp)
  150. 0x00401724 <+822>: movl $0x4463c0,(%esp)
  151. 0x0040172b <+829>: call 0x43ecd8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  152. 0x00401730 <+834>: movl $0x52,0x4(%esp)
  153. 0x00401738 <+842>: movl $0x4463c0,(%esp)
  154. 0x0040173f <+849>: call 0x43ecd8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  155. 0x00401744 <+854>: movl $0x4f,0x4(%esp)
  156. 0x0040174c <+862>: movl $0x4463c0,(%esp)
  157. 0x00401753 <+869>: call 0x43ecd8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  158. 0x00401758 <+874>: movl $0x4e,0x4(%esp)
  159. ---Type <return> to continue, or q <return> to quit---
  160. 0x00401760 <+882>: movl $0x4463c0,(%esp)
  161. 0x00401767 <+889>: call 0x43ecd8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  162. 0x0040176c <+894>: movl $0x47,0x4(%esp)
  163. 0x00401774 <+902>: movl $0x4463c0,(%esp)
  164. 0x0040177b <+909>: call 0x43ecd8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  165. 0x00401780 <+914>: movl $0x21,0x4(%esp)
  166. 0x00401788 <+922>: movl $0x4463c0,(%esp)
  167. 0x0040178f <+929>: call 0x43ecd8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  168. 0x00401794 <+934>: movl $0x443045,0x4(%esp)
  169. 0x0040179c <+942>: movl $0x4463c0,(%esp)
  170. 0x004017a3 <+949>: call 0x43e998 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc>
  171. 0x004017a8 <+954>: mov $0x0,%eax
  172. 0x004017ad <+959>: leave
  173. 0x004017ae <+960>: ret
  174. 0x004017af <+961>: nop
RAW Paste Data