Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assembly x86 Binary Bomb What is the input for each of the phases? (4, 5, 6) 000000000040109a : 40109a: 48 83 ec 18 sub $0x18,%rsp

Assembly x86 Binary Bomb

What is the input for each of the phases? (4, 5, 6)

000000000040109a :

40109a: 48 83 ec 18 sub $0x18,%rsp

40109e: 64 48 8b 04 25 28 00 mov %fs:0x28,%rax

4010a5: 00 00

4010a7: 48 89 44 24 08 mov %rax,0x8(%rsp)

4010ac: 31 c0 xor %eax,%eax

4010ae: 48 8d 4c 24 04 lea 0x4(%rsp),%rcx

4010b3: 48 89 e2 mov %rsp,%rdx

4010b6: be 35 29 40 00 mov $0x402935,%esi

4010bb: e8 80 fb ff ff callq 400c40 <__isoc99_sscanf@plt>

4010c0: 83 f8 02 cmp $0x2,%eax

4010c3: 75 06 jne 4010cb

4010c5: 83 3c 24 0e cmpl $0xe,(%rsp)

4010c9: 76 05 jbe 4010d0

4010cb: e8 c0 05 00 00 callq 401690

4010d0: ba 0e 00 00 00 mov $0xe,%edx

4010d5: be 00 00 00 00 mov $0x0,%esi

4010da: 8b 3c 24 mov (%rsp),%edi

4010dd: e8 7a ff ff ff callq 40105c

4010e2: 83 f8 02 cmp $0x2,%eax

4010e5: 75 07 jne 4010ee

4010e7: 83 7c 24 04 02 cmpl $0x2,0x4(%rsp)

4010ec: 74 05 je 4010f3

4010ee: e8 9d 05 00 00 callq 401690

4010f3: 48 8b 44 24 08 mov 0x8(%rsp),%rax

4010f8: 64 48 33 04 25 28 00 xor %fs:0x28,%rax

4010ff: 00 00

401101: 74 05 je 401108

401103: e8 88 fa ff ff callq 400b90 <__stack_chk_fail@plt>

401108: 48 83 c4 18 add $0x18,%rsp

40110c: c3 retq

000000000040110d :

40110d: 53 push %rbx

40110e: 48 83 ec 10 sub $0x10,%rsp

401112: 48 89 fb mov %rdi,%rbx

401115: 64 48 8b 04 25 28 00 mov %fs:0x28,%rax

40111c: 00 00

40111e: 48 89 44 24 08 mov %rax,0x8(%rsp)

401123: 31 c0 xor %eax,%eax

401125: e8 74 02 00 00 callq 40139e

40112a: 83 f8 06 cmp $0x6,%eax

40112d: 74 05 je 401134

40112f: e8 5c 05 00 00 callq 401690

401134: b8 00 00 00 00 mov $0x0,%eax

401139: 0f b6 14 03 movzbl (%rbx,%rax,1),%edx

40113d: 83 e2 0f and $0xf,%edx

401140: 0f b6 92 b0 26 40 00 movzbl 0x4026b0(%rdx),%edx

401147: 88 14 04 mov %dl,(%rsp,%rax,1)

40114a: 48 83 c0 01 add $0x1,%rax

40114e: 48 83 f8 06 cmp $0x6,%rax

401152: 75 e5 jne 401139

401154: c6 44 24 06 00 movb $0x0,0x6(%rsp)

401159: be 5a 26 40 00 mov $0x40265a,%esi

40115e: 48 89 e7 mov %rsp,%rdi

401161: e8 56 02 00 00 callq 4013bc

401166: 85 c0 test %eax,%eax

401168: 74 05 je 40116f

40116a: e8 21 05 00 00 callq 401690

40116f: 48 8b 44 24 08 mov 0x8(%rsp),%rax

401174: 64 48 33 04 25 28 00 xor %fs:0x28,%rax

40117b: 00 00

40117d: 74 05 je 401184

40117f: e8 0c fa ff ff callq 400b90 <__stack_chk_fail@plt>

401184: 48 83 c4 10 add $0x10,%rsp

401188: 5b pop %rbx

401189: c3 retq

000000000040118a :

40118a: 41 55 push %r13

40118c: 41 54 push %r12

40118e: 55 push %rbp

40118f: 53 push %rbx

401190: 48 83 ec 68 sub $0x68,%rsp

401194: 64 48 8b 04 25 28 00 mov %fs:0x28,%rax

40119b: 00 00

40119d: 48 89 44 24 58 mov %rax,0x58(%rsp)

4011a2: 31 c0 xor %eax,%eax

4011a4: 48 89 e6 mov %rsp,%rsi

4011a7: e8 1a 05 00 00 callq 4016c6

4011ac: 49 89 e4 mov %rsp,%r12

4011af: 41 bd 00 00 00 00 mov $0x0,%r13d

4011b5: 4c 89 e5 mov %r12,%rbp

4011b8: 41 8b 04 24 mov (%r12),%eax

4011bc: 83 e8 01 sub $0x1,%eax

4011bf: 83 f8 05 cmp $0x5,%eax

4011c2: 76 05 jbe 4011c9

4011c4: e8 c7 04 00 00 callq 401690

4011c9: 41 83 c5 01 add $0x1,%r13d

4011cd: 41 83 fd 06 cmp $0x6,%r13d

4011d1: 74 3d je 401210

4011d3: 44 89 eb mov %r13d,%ebx

4011d6: 48 63 c3 movslq %ebx,%rax

4011d9: 8b 04 84 mov (%rsp,%rax,4),%eax

4011dc: 39 45 00 cmp %eax,0x0(%rbp)

4011df: 75 05 jne 4011e6

4011e1: e8 aa 04 00 00 callq 401690

4011e6: 83 c3 01 add $0x1,%ebx

4011e9: 83 fb 05 cmp $0x5,%ebx

4011ec: 7e e8 jle 4011d6

4011ee: 49 83 c4 04 add $0x4,%r12

4011f2: eb c1 jmp 4011b5

4011f4: 48 8b 52 08 mov 0x8(%rdx),%rdx

4011f8: 83 c0 01 add $0x1,%eax

4011fb: 39 c8 cmp %ecx,%eax

4011fd: 75 f5 jne 4011f4

4011ff: 48 89 54 74 20 mov %rdx,0x20(%rsp,%rsi,2)

401204: 48 83 c6 04 add $0x4,%rsi

401208: 48 83 fe 18 cmp $0x18,%rsi

40120c: 75 07 jne 401215

40120e: eb 19 jmp 401229

401210: be 00 00 00 00 mov $0x0,%esi

401215: 8b 0c 34 mov (%rsp,%rsi,1),%ecx

401218: b8 01 00 00 00 mov $0x1,%eax

40121d: ba f0 42 60 00 mov $0x6042f0,%edx

401222: 83 f9 01 cmp $0x1,%ecx

401225: 7f cd jg 4011f4

401227: eb d6 jmp 4011ff

401229: 48 8b 5c 24 20 mov 0x20(%rsp),%rbx

40122e: 48 8d 44 24 20 lea 0x20(%rsp),%rax

401233: 48 8d 74 24 48 lea 0x48(%rsp),%rsi

401238: 48 89 d9 mov %rbx,%rcx

40123b: 48 8b 50 08 mov 0x8(%rax),%rdx

40123f: 48 89 51 08 mov %rdx,0x8(%rcx)

401243: 48 83 c0 08 add $0x8,%rax

401247: 48 89 d1 mov %rdx,%rcx

40124a: 48 39 f0 cmp %rsi,%rax

40124d: 75 ec jne 40123b

40124f: 48 c7 42 08 00 00 00 movq $0x0,0x8(%rdx)

401256: 00

401257: bd 05 00 00 00 mov $0x5,%ebp

40125c: 48 8b 43 08 mov 0x8(%rbx),%rax

401260: 8b 00 mov (%rax),%eax

401262: 39 03 cmp %eax,(%rbx)

401264: 7e 05 jle 40126b

401266: e8 25 04 00 00 callq 401690

40126b: 48 8b 5b 08 mov 0x8(%rbx),%rbx

40126f: 83 ed 01 sub $0x1,%ebp

401272: 75 e8 jne 40125c

401274: 48 8b 44 24 58 mov 0x58(%rsp),%rax

401279: 64 48 33 04 25 28 00 xor %fs:0x28,%rax

401280: 00 00

401282: 74 05 je 401289

401284: e8 07 f9 ff ff callq 400b90 <__stack_chk_fail@plt>

401289: 48 83 c4 68 add $0x68,%rsp

40128d: 5b pop %rbx

40128e: 5d pop %rbp

40128f: 41 5c pop %r12

401291: 41 5d pop %r13

401293: c3 retq

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Principles Programming And Performance

Authors: Patrick O'Neil

1st Edition

1558603921, 978-1558603929

More Books

Students also viewed these Databases questions

Question

Analyse the various techniques of training and learning.

Answered: 1 week ago