There are 5 parts I need to figure out the input for. I got the first 3, but I can't get the last two. Can someone help me?
Want to avoid <explode>
Code
0804885b <part_4>:
804885b: 83 ec 2c sub $0x2c,%esp
804885e: 8d 44 24 1c lea 0x1c(%esp),%eax
8048862: 89 44 24 0c mov %eax,0xc(%esp)
8048866: 8d 44 24 18 lea 0x18(%esp),%eax
804886a: 89 44 24 08 mov %eax,0x8(%esp)
804886e: c7 44 24 04 7a 8b 04 movl $0x8048b7a,0x4(%esp)
8048875: 08
8048876: a1 3c b0 04 08 mov 0x804b03c,%eax
804887b: 89 04 24 mov %eax,(%esp)
804887e: e8 dd fb ff ff call 8048460 <__isoc99_fscanf@plt>
8048883: 83 f8 02 cmp $0x2,%eax
8048886: 74 0c je 8048894 <part_5+0x39>
8048888: c7 04 24 04 00 00 00 movl $0x4,(%esp)
804888f: e8 2b fe ff ff call 80486bf <explode>
8048894: 8b 44 24 18 mov 0x18(%esp),%eax
8048898: 83 f8 04 cmp $0x4,%eax
804889b: 7e 0c jle 80488a9 <part_5+0x4e>
804889d: c7 04 24 04 00 00 00 movl $0x4,(%esp)
80488a4: e8 16 fe ff ff call 80486bf <explode>
80488a9: 85 c0 test %eax,%eax
80488ab: 79 06 jns 80488b3 <part_5+0x58>
80488ad: f7 d8 neg %eax
80488af: 89 44 24 18 mov %eax,0x18(%esp)
80488b3: 8b 44 24 18 mov 0x18(%esp),%eax
80488b7: 89 04 24 mov %eax,(%esp)
80488ba: e8 75 ff ff ff call 8048834 <f>
80488bf: 01 c0 add %eax,%eax
80488c1: 8b 54 24 1c mov 0x1c(%esp),%edx
80488c5: 39 c2 cmp %eax,%edx
80488c7: 74 0c je 80488d5 <part_5+0x7a>
80488c9: c7 04 24 04 00 00 00 movl $0x4,(%esp)
80488d0: e8 ea fd ff ff call 80486bf <explode>
80488d5: 81 fa f0 00 00 00 cmp $0xf0,%edx
80488db: 75 0c jne 80488e9 <part_5+0x8e>
80488dd: c7 04 24 68 8c 04 08 movl $0x8048c68,(%esp)
80488e4: e8 b7 fb ff ff call 80484a0 <puts@plt>
80488e9: 83 c4 2c add $0x2c,%esp
80488ec: c3 ret
Code
08048834 <f>:
8048834: 53 push %ebx
8048835: 83 ec 18 sub $0x18,%esp
8048838: 8b 5c 24 20 mov 0x20(%esp),%ebx
804883c: 83 fb 01 cmp $0x1,%ebx
804883f: 7e 10 jle 8048851 <f+0x1d>
8048841: 8d 43 ff lea -0x1(%ebx),%eax
8048844: 89 04 24 mov %eax,(%esp)
8048847: e8 e8 ff ff ff call 8048834 <f>
804884c: 0f af c3 imul %ebx,%eax
804884f: eb 05 jmp 8048856 <f+0x22>
8048851: b8 01 00 00 00 mov $0x1,%eax
8048856: 83 c4 18 add $0x18,%esp
8048859: 5b pop %ebx
804885a: c3 ret
Code
08048958 <part_5>:
8048958: 83 ec 3c sub $0x3c,%esp
804895b: 8d 44 24 2c lea 0x2c(%esp),%eax
804895f: 89 44 24 10 mov %eax,0x10(%esp)
8048963: 8d 44 24 28 lea 0x28(%esp),%eax
8048967: 89 44 24 0c mov %eax,0xc(%esp)
804896b: 8d 44 24 24 lea 0x24(%esp),%eax
804896f: 89 44 24 08 mov %eax,0x8(%esp)
8048973: c7 44 24 04 77 8b 04 movl $0x8048b77,0x4(%esp)
804897a: 08
804897b: a1 3c b0 04 08 mov 0x804b03c,%eax
8048980: 89 04 24 mov %eax,(%esp)
8048983: e8 d8 fa ff ff call 8048460 <__isoc99_fscanf@plt>
8048988: 83 f8 03 cmp $0x3,%eax
804898b: 74 0c je 8048999 <part_5+0x41>
804898d: c7 04 24 05 00 00 00 movl $0x5,(%esp)
8048994: e8 26 fd ff ff call 80486bf <explode>
8048999: 8b 44 24 24 mov 0x24(%esp),%eax
804899d: 83 f8 03 cmp $0x3,%eax
80489a0: 76 0c jbe 80489ae <part_5+0x56>
80489a2: c7 04 24 05 00 00 00 movl $0x5,(%esp)
80489a9: e8 11 fd ff ff call 80486bf <explode>
80489ae: 8b 54 24 28 mov 0x28(%esp),%edx
80489b2: 39 d0 cmp %edx,%eax
80489b4: 7f 05 jg 80489bb <part_5+0x63>
80489b6: 83 fa 0c cmp $0xc,%edx
80489b9: 7e 0c jle 80489c7 <part_5+0x6f>
80489bb: c7 04 24 05 00 00 00 movl $0x5,(%esp)
80489c2: e8 f8 fc ff ff call 80486bf <explode>
80489c7: 89 54 24 04 mov %edx,0x4(%esp)
80489cb: 89 04 24 mov %eax,(%esp)
80489ce: e8 1a ff ff ff call 80488ed <A>
80489d3: 3b 44 24 2c cmp 0x2c(%esp),%eax
80489d7: 74 0c je 80489e5 <part_5+0x8d>
80489d9: c7 04 24 05 00 00 00 movl $0x5,(%esp)
80489e0: e8 da fc ff ff call 80486bf <explode>
80489e5: 83 c4 3c add $0x3c,%esp
80489e8: c3 ret
Code
080488ed <A>:
80488ed: 53 push %ebx
80488ee: 83 ec 18 sub $0x18,%esp
80488f1: 8b 5c 24 20 mov 0x20(%esp),%ebx
80488f5: 8b 44 24 24 mov 0x24(%esp),%eax
80488f9: 85 db test %ebx,%ebx
80488fb: 75 05 jne 8048902 <A+0x15>
80488fd: 83 c0 01 add $0x1,%eax
8048900: eb 51 jmp 8048953 <A+0x66>
8048902: 85 db test %ebx,%ebx
8048904: 0f 9f c2 setg %dl
8048907: 85 c0 test %eax,%eax
8048909: 0f 94 c1 sete %cl
804890c: 84 ca test %cl,%dl
804890e: 74 15 je 8048925 <A+0x38>
8048910: 83 eb 01 sub $0x1,%ebx
8048913: c7 44 24 04 01 00 00 movl $0x1,0x4(%esp)
804891a: 00
804891b: 89 1c 24 mov %ebx,(%esp)
804891e: e8 ca ff ff ff call 80488ed <A>
8048923: eb 2e jmp 8048953 <A+0x66>
8048925: 85 c0 test %eax,%eax
8048927: 0f 9f c1 setg %cl
804892a: 84 ca test %cl,%dl
804892c: 74 20 je 804894e <A+0x61>
804892e: 83 e8 01 sub $0x1,%eax
8048931: 89 44 24 04 mov %eax,0x4(%esp)
8048935: 89 1c 24 mov %ebx,(%esp)
8048938: e8 b0 ff ff ff call 80488ed <A>
804893d: 83 eb 01 sub $0x1,%ebx
8048940: 89 44 24 04 mov %eax,0x4(%esp)
8048944: 89 1c 24 mov %ebx,(%esp)
8048947: e8 a1 ff ff ff call 80488ed <A>
804894c: eb 05 jmp 8048953 <A+0x66>
804894e: b8 00 00 00 00 mov $0x0,%eax
8048953: 83 c4 18 add $0x18,%esp
8048956: 5b pop %ebx
8048957: c3 ret
This post was edited by spt_94 on Feb 25 2016 10:11am