Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Binary Bomb Lab - Phase 6: (x86 Assembly) I am getting lost when using the gdb and can't understand the assembly code. Could someone please

Binary Bomb Lab - Phase 6: (x86 Assembly)

I am getting lost when using the gdb and can't understand the assembly code. Could someone please explain what the program is doing in simple terms?

image text in transcribedimage text in transcribed

read_six_numbers:

image text in transcribed

0000000000401158 : 401158: 401159: 40115c: 40115e: 401160: 401162: 401163: 401167: 40116b: 401170: 401174: 40117a: 40117d: 401181: 401184: 401187 401189: 40118e: 401192: 401196: 401198: 40119b: 40119e: 4011a2 mov push Push r13 48 8d 75 90 e8 34 05 00 00 4c 8d 6d 90 41 be 00 00 00 00 Ad A push sub lea callq lea mov $0x50,%rsp -0x70(%rbp),%rsi 4016a4 -0x70(%rbp),%r13 $0x0,%r14d mov x0 (%r13),%eax jbe 40118e add $0x1 , %r14d cmp $0x6 , %r14d je 4011d7 callq 40166e add $0x1,%ebx cmp $0x5,%ebx jle 40119b add $0x4,%r13 jmp 40117a mov 0x8(Xrdx),Ardx add 4011a8 4011ad: 4011b0: 4011b3: 4011b5: 4011b9: 4011bb: 4011bf: 4011c2: 4011c4: 4011c6: 4011cb: 4011cf: 4011d3: 4011d5: 4011d7: 4011dc: 48 8b 52 08 4011bb jne mov add cmp jne jmp mov mov %rdx,-0x50(%rbp,%rsi,2) $0x4,%rsi 0x18,%rsi 48 89 54 75 b0 4011dc 4011f1 $0x0,%esi -0x70(%rbp,%rsi,1),Xecx be 00 00 00 00 8b 4c 35 90 b8 01 00 00 00 ba f0 44 60 00 4011e5: 4011ea: 4011ed: 4011ef: 4011f1: 4011f5: 4011f9: 4011fd: 401200: 401204: mov $0x6044f0,%edx jg jmp mov lea lea 4011bb 4011c6 -0x50(%rbp),%rbx -9x50(%rbp),%rax 0x28(%rax),%rsi 48 8b 5d b0 48 8d 45 b0 48 8d 70 28 48 89 d9 48 8b 50 08 48 89 51 08 0x8(%rax),Trax %rdx,0x8(%rcx) mov mov 0000000000401158 : 401158: 401159: 40115c: 40115e: 401160: 401162: 401163: 401167: 40116b: 401170: 401174: 40117a: 40117d: 401181: 401184: 401187 401189: 40118e: 401192: 401196: 401198: 40119b: 40119e: 4011a2 mov push Push r13 48 8d 75 90 e8 34 05 00 00 4c 8d 6d 90 41 be 00 00 00 00 Ad A push sub lea callq lea mov $0x50,%rsp -0x70(%rbp),%rsi 4016a4 -0x70(%rbp),%r13 $0x0,%r14d mov x0 (%r13),%eax jbe 40118e add $0x1 , %r14d cmp $0x6 , %r14d je 4011d7 callq 40166e add $0x1,%ebx cmp $0x5,%ebx jle 40119b add $0x4,%r13 jmp 40117a mov 0x8(Xrdx),Ardx add 4011a8 4011ad: 4011b0: 4011b3: 4011b5: 4011b9: 4011bb: 4011bf: 4011c2: 4011c4: 4011c6: 4011cb: 4011cf: 4011d3: 4011d5: 4011d7: 4011dc: 48 8b 52 08 4011bb jne mov add cmp jne jmp mov mov %rdx,-0x50(%rbp,%rsi,2) $0x4,%rsi 0x18,%rsi 48 89 54 75 b0 4011dc 4011f1 $0x0,%esi -0x70(%rbp,%rsi,1),Xecx be 00 00 00 00 8b 4c 35 90 b8 01 00 00 00 ba f0 44 60 00 4011e5: 4011ea: 4011ed: 4011ef: 4011f1: 4011f5: 4011f9: 4011fd: 401200: 401204: mov $0x6044f0,%edx jg jmp mov lea lea 4011bb 4011c6 -0x50(%rbp),%rbx -9x50(%rbp),%rax 0x28(%rax),%rsi 48 8b 5d b0 48 8d 45 b0 48 8d 70 28 48 89 d9 48 8b 50 08 48 89 51 08 0x8(%rax),Trax %rdx,0x8(%rcx) mov mov

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

Conceptual Database Design An Entity Relationship Approach

Authors: Carol Batini, Stefano Ceri, Shamkant B. Navathe

1st Edition

0805302441, 978-0805302448

More Books

Students also viewed these Databases questions