bufdemo: file format elf32-i386 Disassembly of section .init: 0804837c <_init>: 804837c: 55 push %ebp 804837d: 89 e5 mov %esp,%ebp 804837f: 53 push %ebx 8048380: 83 ec 04 sub $0x4,%esp 8048383: e8 00 00 00 00 call 8048388 <_init+0xc> 8048388: 5b pop %ebx 8048389: 81 c3 34 15 00 00 add $0x1534,%ebx 804838f: 8b 93 fc ff ff ff mov -0x4(%ebx),%edx 8048395: 85 d2 test %edx,%edx 8048397: 74 05 je 804839e <_init+0x22> 8048399: e8 1e 00 00 00 call 80483bc <__gmon_start__@plt> 804839e: e8 1d 01 00 00 call 80484c0 80483a3: e8 08 03 00 00 call 80486b0 <__do_global_ctors_aux> 80483a8: 58 pop %eax 80483a9: 5b pop %ebx 80483aa: c9 leave 80483ab: c3 ret Disassembly of section .plt: 080483ac <__gmon_start__@plt-0x10>: 80483ac: ff 35 c0 98 04 08 pushl 0x80498c0 80483b2: ff 25 c4 98 04 08 jmp *0x80498c4 80483b8: 00 00 add %al,(%eax) ... 080483bc <__gmon_start__@plt>: 80483bc: ff 25 c8 98 04 08 jmp *0x80498c8 80483c2: 68 00 00 00 00 push $0x0 80483c7: e9 e0 ff ff ff jmp 80483ac <_init+0x30> 080483cc : 80483cc: ff 25 cc 98 04 08 jmp *0x80498cc 80483d2: 68 08 00 00 00 push $0x8 80483d7: e9 d0 ff ff ff jmp 80483ac <_init+0x30> 080483dc <__libc_start_main@plt>: 80483dc: ff 25 d0 98 04 08 jmp *0x80498d0 80483e2: 68 10 00 00 00 push $0x10 80483e7: e9 c0 ff ff ff jmp 80483ac <_init+0x30> 080483ec <_IO_getc@plt>: 80483ec: ff 25 d4 98 04 08 jmp *0x80498d4 80483f2: 68 18 00 00 00 push $0x18 80483f7: e9 b0 ff ff ff jmp 80483ac <_init+0x30> 080483fc : 80483fc: ff 25 d8 98 04 08 jmp *0x80498d8 8048402: 68 20 00 00 00 push $0x20 8048407: e9 a0 ff ff ff jmp 80483ac <_init+0x30> 0804840c : 804840c: ff 25 dc 98 04 08 jmp *0x80498dc 8048412: 68 28 00 00 00 push $0x28 8048417: e9 90 ff ff ff jmp 80483ac <_init+0x30> 0804841c <_IO_putc@plt>: 804841c: ff 25 e0 98 04 08 jmp *0x80498e0 8048422: 68 30 00 00 00 push $0x30 8048427: e9 80 ff ff ff jmp 80483ac <_init+0x30> Disassembly of section .text: 08048430 <_start>: 8048430: 31 ed xor %ebp,%ebp 8048432: 5e pop %esi 8048433: 89 e1 mov %esp,%ecx 8048435: 83 e4 f0 and $0xfffffff0,%esp 8048438: 50 push %eax 8048439: 54 push %esp 804843a: 52 push %edx 804843b: 68 40 86 04 08 push $0x8048640 8048440: 68 50 86 04 08 push $0x8048650 8048445: 51 push %ecx 8048446: 56 push %esi 8048447: 68 f0 85 04 08 push $0x80485f0 804844c: e8 8b ff ff ff call 80483dc <__libc_start_main@plt> 8048451: f4 hlt 8048452: 90 nop 8048453: 90 nop 8048454: 90 nop 8048455: 90 nop 8048456: 90 nop 8048457: 90 nop 8048458: 90 nop 8048459: 90 nop 804845a: 90 nop 804845b: 90 nop 804845c: 90 nop 804845d: 90 nop 804845e: 90 nop 804845f: 90 nop 08048460 <__do_global_dtors_aux>: 8048460: 55 push %ebp 8048461: 89 e5 mov %esp,%ebp 8048463: 53 push %ebx 8048464: 83 ec 04 sub $0x4,%esp 8048467: 80 3d 24 99 04 08 00 cmpb $0x0,0x8049924 804846e: 75 3f jne 80484af <__do_global_dtors_aux+0x4f> 8048470: a1 28 99 04 08 mov 0x8049928,%eax 8048475: bb e8 97 04 08 mov $0x80497e8,%ebx 804847a: 81 eb e4 97 04 08 sub $0x80497e4,%ebx 8048480: c1 fb 02 sar $0x2,%ebx 8048483: 83 eb 01 sub $0x1,%ebx 8048486: 39 d8 cmp %ebx,%eax 8048488: 73 1e jae 80484a8 <__do_global_dtors_aux+0x48> 804848a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 8048490: 83 c0 01 add $0x1,%eax 8048493: a3 28 99 04 08 mov %eax,0x8049928 8048498: ff 14 85 e4 97 04 08 call *0x80497e4(,%eax,4) 804849f: a1 28 99 04 08 mov 0x8049928,%eax 80484a4: 39 d8 cmp %ebx,%eax 80484a6: 72 e8 jb 8048490 <__do_global_dtors_aux+0x30> 80484a8: c6 05 24 99 04 08 01 movb $0x1,0x8049924 80484af: 83 c4 04 add $0x4,%esp 80484b2: 5b pop %ebx 80484b3: 5d pop %ebp 80484b4: c3 ret 80484b5: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80484b9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 080484c0 : 80484c0: 55 push %ebp 80484c1: 89 e5 mov %esp,%ebp 80484c3: 83 ec 18 sub $0x18,%esp 80484c6: a1 ec 97 04 08 mov 0x80497ec,%eax 80484cb: 85 c0 test %eax,%eax 80484cd: 74 12 je 80484e1 80484cf: b8 00 00 00 00 mov $0x0,%eax 80484d4: 85 c0 test %eax,%eax 80484d6: 74 09 je 80484e1 80484d8: c7 04 24 ec 97 04 08 movl $0x80497ec,(%esp) 80484df: ff d0 call *%eax 80484e1: c9 leave 80484e2: c3 ret 80484e3: 90 nop 80484e4: 90 nop 80484e5: 90 nop 80484e6: 90 nop 80484e7: 90 nop 80484e8: 90 nop 80484e9: 90 nop 80484ea: 90 nop 80484eb: 90 nop 80484ec: 90 nop 80484ed: 90 nop 80484ee: 90 nop 80484ef: 90 nop 080484f0 : 80484f0: 55 push %ebp 80484f1: 89 e5 mov %esp,%ebp 80484f3: 57 push %edi 80484f4: 56 push %esi 80484f5: 53 push %ebx 80484f6: 83 ec 5c sub $0x5c,%esp 80484f9: 8d 75 a8 lea -0x58(%ebp),%esi 80484fc: 8d 7d a9 lea -0x57(%ebp),%edi 80484ff: a1 00 99 04 08 mov 0x8049900,%eax 8048504: 89 44 24 08 mov %eax,0x8(%esp) 8048508: c7 44 24 04 40 00 00 movl $0x40,0x4(%esp) 804850f: 00 8048510: 89 34 24 mov %esi,(%esp) 8048513: e8 b4 fe ff ff call 80483cc 8048518: 85 c0 test %eax,%eax 804851a: 74 4f je 804856b 804851c: 0f b6 45 a8 movzbl -0x58(%ebp),%eax 8048520: 84 c0 test %al,%al 8048522: 74 2e je 8048552 8048524: 3c 0a cmp $0xa,%al 8048526: 74 2a je 8048552 8048528: 89 fb mov %edi,%ebx 804852a: 8b 15 20 99 04 08 mov 0x8049920,%edx 8048530: 89 54 24 04 mov %edx,0x4(%esp) 8048534: 0f be c0 movsbl %al,%eax 8048537: 89 04 24 mov %eax,(%esp) 804853a: e8 dd fe ff ff call 804841c <_IO_putc@plt> 804853f: 83 f8 ff cmp $0xffffffff,%eax 8048542: 74 27 je 804856b 8048544: 0f b6 03 movzbl (%ebx),%eax 8048547: 83 c3 01 add $0x1,%ebx 804854a: 84 c0 test %al,%al 804854c: 74 04 je 8048552 804854e: 3c 0a cmp $0xa,%al 8048550: 75 d8 jne 804852a 8048552: 3c 0a cmp $0xa,%al 8048554: 75 a9 jne 80484ff 8048556: a1 20 99 04 08 mov 0x8049920,%eax 804855b: 89 44 24 04 mov %eax,0x4(%esp) 804855f: c7 04 24 0a 00 00 00 movl $0xa,(%esp) 8048566: e8 b1 fe ff ff call 804841c <_IO_putc@plt> 804856b: 83 c4 5c add $0x5c,%esp 804856e: 5b pop %ebx 804856f: 5e pop %esi 8048570: 5f pop %edi 8048571: 5d pop %ebp 8048572: c3 ret 08048573 : 8048573: 55 push %ebp 8048574: 89 e5 mov %esp,%ebp 8048576: 56 push %esi 8048577: 53 push %ebx 8048578: 83 ec 10 sub $0x10,%esp 804857b: 8b 75 08 mov 0x8(%ebp),%esi 804857e: a1 00 99 04 08 mov 0x8049900,%eax 8048583: 89 04 24 mov %eax,(%esp) 8048586: e8 61 fe ff ff call 80483ec <_IO_getc@plt> 804858b: 83 f8 ff cmp $0xffffffff,%eax 804858e: 74 07 je 8048597 8048590: 89 f3 mov %esi,%ebx 8048592: 83 f8 0a cmp $0xa,%eax 8048595: 75 04 jne 804859b 8048597: 89 f3 mov %esi,%ebx 8048599: eb 1c jmp 80485b7 804859b: 88 03 mov %al,(%ebx) 804859d: 83 c3 01 add $0x1,%ebx 80485a0: a1 00 99 04 08 mov 0x8049900,%eax 80485a5: 89 04 24 mov %eax,(%esp) 80485a8: e8 3f fe ff ff call 80483ec <_IO_getc@plt> 80485ad: 83 f8 ff cmp $0xffffffff,%eax 80485b0: 74 05 je 80485b7 80485b2: 83 f8 0a cmp $0xa,%eax 80485b5: 75 e4 jne 804859b 80485b7: c6 03 00 movb $0x0,(%ebx) 80485ba: 89 f0 mov %esi,%eax 80485bc: 83 c4 10 add $0x10,%esp 80485bf: 5b pop %ebx 80485c0: 5e pop %esi 80485c1: 5d pop %ebp 80485c2: c3 ret 080485c3 : 80485c3: 55 push %ebp 80485c4: 89 e5 mov %esp,%ebp 80485c6: 53 push %ebx 80485c7: 83 ec 24 sub $0x24,%esp 80485ca: 8d 5d f4 lea -0xc(%ebp),%ebx 80485cd: 89 1c 24 mov %ebx,(%esp) 80485d0: e8 9e ff ff ff call 8048573 80485d5: 89 1c 24 mov %ebx,(%esp) 80485d8: e8 2f fe ff ff call 804840c 80485dd: 83 c4 24 add $0x24,%esp 80485e0: 5b pop %ebx 80485e1: 5d pop %ebp 80485e2: c3 ret 080485e3 : 80485e3: 55 push %ebp 80485e4: 89 e5 mov %esp,%ebp 80485e6: 83 ec 08 sub $0x8,%esp 80485e9: e8 d5 ff ff ff call 80485c3 80485ee: c9 leave 80485ef: c3 ret 080485f0
: 80485f0: 55 push %ebp 80485f1: 89 e5 mov %esp,%ebp 80485f3: 83 e4 f0 and $0xfffffff0,%esp 80485f6: 83 ec 10 sub $0x10,%esp 80485f9: c7 04 24 04 87 04 08 movl $0x8048704,(%esp) 8048600: e8 f7 fd ff ff call 80483fc 8048605: 83 7d 08 01 cmpl $0x1,0x8(%ebp) 8048609: 7e 07 jle 8048612 804860b: e8 e0 fe ff ff call 80484f0 8048610: eb 05 jmp 8048617 8048612: e8 cc ff ff ff call 80485e3 8048617: b8 00 00 00 00 mov $0x0,%eax 804861c: c9 leave 804861d: c3 ret 0804861e : 804861e: 55 push %ebp 804861f: 89 e5 mov %esp,%ebp 8048621: 83 ec 18 sub $0x18,%esp 8048624: c7 04 24 14 87 04 08 movl $0x8048714,(%esp) 804862b: e8 dc fd ff ff call 804840c 8048630: c9 leave 8048631: c3 ret 8048632: 90 nop 8048633: 90 nop 8048634: 90 nop 8048635: 90 nop 8048636: 90 nop 8048637: 90 nop 8048638: 90 nop 8048639: 90 nop 804863a: 90 nop 804863b: 90 nop 804863c: 90 nop 804863d: 90 nop 804863e: 90 nop 804863f: 90 nop 08048640 <__libc_csu_fini>: 8048640: 55 push %ebp 8048641: 89 e5 mov %esp,%ebp 8048643: 5d pop %ebp 8048644: c3 ret 8048645: 66 66 2e 0f 1f 84 00 data32 nopw %cs:0x0(%eax,%eax,1) 804864c: 00 00 00 00 08048650 <__libc_csu_init>: 8048650: 55 push %ebp 8048651: 89 e5 mov %esp,%ebp 8048653: 57 push %edi 8048654: 56 push %esi 8048655: 53 push %ebx 8048656: e8 4f 00 00 00 call 80486aa <__i686.get_pc_thunk.bx> 804865b: 81 c3 61 12 00 00 add $0x1261,%ebx 8048661: 83 ec 1c sub $0x1c,%esp 8048664: e8 13 fd ff ff call 804837c <_init> 8048669: 8d bb 20 ff ff ff lea -0xe0(%ebx),%edi 804866f: 8d 83 20 ff ff ff lea -0xe0(%ebx),%eax 8048675: 29 c7 sub %eax,%edi 8048677: c1 ff 02 sar $0x2,%edi 804867a: 85 ff test %edi,%edi 804867c: 74 24 je 80486a2 <__libc_csu_init+0x52> 804867e: 31 f6 xor %esi,%esi 8048680: 8b 45 10 mov 0x10(%ebp),%eax 8048683: 89 44 24 08 mov %eax,0x8(%esp) 8048687: 8b 45 0c mov 0xc(%ebp),%eax 804868a: 89 44 24 04 mov %eax,0x4(%esp) 804868e: 8b 45 08 mov 0x8(%ebp),%eax 8048691: 89 04 24 mov %eax,(%esp) 8048694: ff 94 b3 20 ff ff ff call *-0xe0(%ebx,%esi,4) 804869b: 83 c6 01 add $0x1,%esi 804869e: 39 fe cmp %edi,%esi 80486a0: 72 de jb 8048680 <__libc_csu_init+0x30> 80486a2: 83 c4 1c add $0x1c,%esp 80486a5: 5b pop %ebx 80486a6: 5e pop %esi 80486a7: 5f pop %edi 80486a8: 5d pop %ebp 80486a9: c3 ret 080486aa <__i686.get_pc_thunk.bx>: 80486aa: 8b 1c 24 mov (%esp),%ebx 80486ad: c3 ret 80486ae: 90 nop 80486af: 90 nop 080486b0 <__do_global_ctors_aux>: 80486b0: 55 push %ebp 80486b1: 89 e5 mov %esp,%ebp 80486b3: 53 push %ebx 80486b4: 83 ec 04 sub $0x4,%esp 80486b7: a1 dc 97 04 08 mov 0x80497dc,%eax 80486bc: 83 f8 ff cmp $0xffffffff,%eax 80486bf: 74 13 je 80486d4 <__do_global_ctors_aux+0x24> 80486c1: bb dc 97 04 08 mov $0x80497dc,%ebx 80486c6: 66 90 xchg %ax,%ax 80486c8: 83 eb 04 sub $0x4,%ebx 80486cb: ff d0 call *%eax 80486cd: 8b 03 mov (%ebx),%eax 80486cf: 83 f8 ff cmp $0xffffffff,%eax 80486d2: 75 f4 jne 80486c8 <__do_global_ctors_aux+0x18> 80486d4: 83 c4 04 add $0x4,%esp 80486d7: 5b pop %ebx 80486d8: 5d pop %ebp 80486d9: c3 ret 80486da: 90 nop 80486db: 90 nop Disassembly of section .fini: 080486dc <_fini>: 80486dc: 55 push %ebp 80486dd: 89 e5 mov %esp,%ebp 80486df: 53 push %ebx 80486e0: 83 ec 04 sub $0x4,%esp 80486e3: e8 00 00 00 00 call 80486e8 <_fini+0xc> 80486e8: 5b pop %ebx 80486e9: 81 c3 d4 11 00 00 add $0x11d4,%ebx 80486ef: e8 6c fd ff ff call 8048460 <__do_global_dtors_aux> 80486f4: 59 pop %ecx 80486f5: 5b pop %ebx 80486f6: c9 leave 80486f7: c3 ret