Guest User

BP CTF problem 19

a guest
Jan 17th, 2014
62
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 $0x18,%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,-0x8(%ebp)
  11. 0x0040140b <+29>: mov -0x8(%ebp),%eax
  12. 0x0040140e <+32>: call 0x40d350 <_alloca>
  13. 0x00401413 <+37>: call 0x40ced0 <__main>
  14. 0x00401418 <+42>: movl $0x0,-0x4(%ebp)
  15. 0x0040141f <+49>: cmpl $0x1,-0x4(%ebp)
  16. 0x00401423 <+53>: jne 0x401439 <main+75>
  17. 0x00401425 <+55>: movl $0x443000,0x4(%esp)
  18. 0x0040142d <+63>: movl $0x4463c0,(%esp)
  19. 0x00401434 <+70>: call 0x43e868 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc>
  20. 0x00401439 <+75>: cmpl $0x2,0x8(%ebp)
  21. 0x0040143d <+79>: jle 0x40165c <main+622>
  22. 0x00401443 <+85>: mov 0xc(%ebp),%eax
  23. 0x00401446 <+88>: add $0x4,%eax
  24. 0x00401449 <+91>: mov (%eax),%eax
  25. 0x0040144b <+93>: cmpb $0x31,(%eax)
  26. 0x0040144e <+96>: jne 0x4015e2 <main+500>
  27. 0x00401454 <+102>: mov 0xc(%ebp),%eax
  28. 0x00401457 <+105>: add $0x4,%eax
  29. 0x0040145a <+108>: mov (%eax),%eax
  30. 0x0040145c <+110>: inc %eax
  31. 0x0040145d <+111>: cmpb $0x33,(%eax)
  32. 0x00401460 <+114>: jne 0x4015e2 <main+500>
  33. 0x00401466 <+120>: mov 0xc(%ebp),%eax
  34. 0x00401469 <+123>: add $0x4,%eax
  35. 0x0040146c <+126>: mov (%eax),%eax
  36. 0x0040146e <+128>: add $0x2,%eax
  37. 0x00401471 <+131>: cmpb $0x30,(%eax)
  38. 0x00401474 <+134>: jne 0x4015e2 <main+500>
  39. 0x0040147a <+140>: mov 0xc(%ebp),%eax
  40. 0x0040147d <+143>: add $0x4,%eax
  41. 0x00401480 <+146>: mov (%eax),%eax
  42. 0x00401482 <+148>: add $0x3,%eax
  43. 0x00401485 <+151>: cmpb $0x51,(%eax)
  44. 0x00401488 <+154>: jne 0x4015e2 <main+500>
  45. 0x0040148e <+160>: mov 0xc(%ebp),%eax
  46. 0x00401491 <+163>: add $0x4,%eax
  47. 0x00401494 <+166>: mov (%eax),%eax
  48. 0x00401496 <+168>: add $0x4,%eax
  49. 0x00401499 <+171>: cmpb $0x63,(%eax)
  50. 0x0040149c <+174>: jne 0x4015e2 <main+500>
  51. 0x004014a2 <+180>: mov 0xc(%ebp),%eax
  52. 0x004014a5 <+183>: add $0x4,%eax
  53. 0x004014a8 <+186>: mov (%eax),%eax
  54. 0x004014aa <+188>: add $0x5,%eax
  55. 0x004014ad <+191>: cmpb $0x69,(%eax)
  56. 0x004014b0 <+194>: jne 0x4015e2 <main+500>
  57. 0x004014b6 <+200>: mov 0xc(%ebp),%eax
  58. 0x004014b9 <+203>: add $0x8,%eax
  59. 0x004014bc <+206>: mov (%eax),%eax
  60. 0x004014be <+208>: inc %eax
  61. 0x004014bf <+209>: cmpb $0x67,(%eax)
  62. 0x004014c2 <+212>: jne 0x4015e2 <main+500>
  63. 0x004014c8 <+218>: mov 0xc(%ebp),%eax
  64. 0x004014cb <+221>: add $0x8,%eax
  65. 0x004014ce <+224>: mov (%eax),%eax
  66. 0x004014d0 <+226>: add $0x2,%eax
  67. 0x004014d3 <+229>: cmpb $0x64,(%eax)
  68. 0x004014d6 <+232>: jne 0x4015e2 <main+500>
  69. 0x004014dc <+238>: mov 0xc(%ebp),%eax
  70. 0x004014df <+241>: add $0x8,%eax
  71. 0x004014e2 <+244>: mov (%eax),%eax
  72. 0x004014e4 <+246>: add $0x3,%eax
  73. 0x004014e7 <+249>: cmpb $0x64,(%eax)
  74. 0x004014ea <+252>: jne 0x4015e2 <main+500>
  75. 0x004014f0 <+258>: mov 0xc(%ebp),%eax
  76. 0x004014f3 <+261>: add $0x8,%eax
  77. 0x004014f6 <+264>: mov (%eax),%eax
  78. 0x004014f8 <+266>: add $0x4,%eax
  79. 0x004014fb <+269>: cmpb $0x6d,(%eax)
  80. 0x004014fe <+272>: jne 0x4015e2 <main+500>
  81. 0x00401504 <+278>: mov 0xc(%ebp),%eax
  82. 0x00401507 <+281>: add $0x8,%eax
  83. 0x0040150a <+284>: mov (%eax),%eax
  84. 0x0040150c <+286>: add $0x5,%eax
  85. 0x0040150f <+289>: cmpb $0x4d,(%eax)
  86. 0x00401512 <+292>: jne 0x4015e2 <main+500>
  87. 0x00401518 <+298>: mov 0xc(%ebp),%eax
  88. 0x0040151b <+301>: add $0x8,%eax
  89. 0x0040151e <+304>: mov (%eax),%eax
  90. 0x00401520 <+306>: cmpb $0x48,(%eax)
  91. 0x00401523 <+309>: jne 0x4015e2 <main+500>
  92. 0x00401529 <+315>: movl $0x43,0x4(%esp)
  93. 0x00401531 <+323>: movl $0x4463c0,(%esp)
  94. 0x00401538 <+330>: call 0x43eba8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  95. 0x0040153d <+335>: movl $0x6f,0x4(%esp)
  96. 0x00401545 <+343>: movl $0x4463c0,(%esp)
  97. 0x0040154c <+350>: call 0x43eba8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  98. 0x00401551 <+355>: movl $0x72,0x4(%esp)
  99. 0x00401559 <+363>: movl $0x4463c0,(%esp)
  100. 0x00401560 <+370>: call 0x43eba8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  101. 0x00401565 <+375>: movl $0x72,0x4(%esp)
  102. 0x0040156d <+383>: movl $0x4463c0,(%esp)
  103. 0x00401574 <+390>: call 0x43eba8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  104. 0x00401579 <+395>: movl $0x65,0x4(%esp)
  105. 0x00401581 <+403>: movl $0x4463c0,(%esp)
  106. 0x00401588 <+410>: call 0x43eba8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  107. 0x0040158d <+415>: movl $0x63,0x4(%esp)
  108. 0x00401595 <+423>: movl $0x4463c0,(%esp)
  109. 0x0040159c <+430>: call 0x43eba8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  110. 0x004015a1 <+435>: movl $0x74,0x4(%esp)
  111. 0x004015a9 <+443>: movl $0x4463c0,(%esp)
  112. 0x004015b0 <+450>: call 0x43eba8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  113. 0x004015b5 <+455>: movl $0x21,0x4(%esp)
  114. 0x004015bd <+463>: movl $0x4463c0,(%esp)
  115. 0x004015c4 <+470>: call 0x43eba8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  116. 0x004015c9 <+475>: movl $0x443044,0x4(%esp)
  117. 0x004015d1 <+483>: movl $0x4463c0,(%esp)
  118. 0x004015d8 <+490>: call 0x43e868 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc>
  119. 0x004015dd <+495>: jmp 0x401668 <main+634>
  120. 0x004015e2 <+500>: movl $0x57,0x4(%esp)
  121. 0x004015ea <+508>: movl $0x4463c0,(%esp)
  122. 0x004015f1 <+515>: call 0x43eba8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  123. 0x004015f6 <+520>: movl $0x52,0x4(%esp)
  124. 0x004015fe <+528>: movl $0x4463c0,(%esp)
  125. 0x00401605 <+535>: call 0x43eba8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  126. 0x0040160a <+540>: movl $0x4f,0x4(%esp)
  127. 0x00401612 <+548>: movl $0x4463c0,(%esp)
  128. 0x00401619 <+555>: call 0x43eba8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  129. 0x0040161e <+560>: movl $0x4e,0x4(%esp)
  130. 0x00401626 <+568>: movl $0x4463c0,(%esp)
  131. 0x0040162d <+575>: call 0x43eba8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  132. 0x00401632 <+580>: movl $0x47,0x4(%esp)
  133. 0x0040163a <+588>: movl $0x4463c0,(%esp)
  134. 0x00401641 <+595>: call 0x43eba8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  135. 0x00401646 <+600>: movl $0x21,0x4(%esp)
  136. 0x0040164e <+608>: movl $0x4463c0,(%esp)
  137. 0x00401655 <+615>: call 0x43eba8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c>
  138. 0x0040165a <+620>: jmp 0x401668 <main+634>
  139. 0x0040165c <+622>: movl $0x0,(%esp)
  140. 0x00401663 <+629>: call 0x415358 <exit>
  141. 0x00401668 <+634>: mov $0x0,%eax
  142. 0x0040166d <+639>: leave
  143. 0x0040166e <+640>: ret
  144. 0x0040166f <+641>: nop
RAW Paste Data