Question: Ok. So I have an assignment that I need to defuse a bomb by looking at assembly code. I'm currently stuck on phase 2 of

Ok. So I have an assignment that I need to defuse a "bomb" by looking at assembly code. I'm currently stuck on phase 2 of this proccess. I'm really confused by the layout of this code with how it works. I'm attaching the assembly code for the phase, the function it calls within, and the disassembly graph of it (with some comments I made that I'm not sure about). If you can help please explain a bit! I would like to know how this all works more in depth.

Ok. So I have an assignment that I need to defuse a

"bomb" by looking at assembly code. I'm currently stuck on phase 2

of this proccess. I'm really confused by the layout of this code

Dump of assembler code for function phase_2: push %rbp push %rbx $8x28,%rsp %rsp , %rsi 40 14c7 sub mov cauq Ox0000000000400e57 : lea Ox0000000000400e7l : je 0x0000000000400e7b : 400e64 40 1491 %rsp ,Srbs 8x10 (Srsp),Srbp 0x4 (%rbx) ,%eax callq mov 488e89 0x400e8 0x0000000000400e8d %rbp End of assembler dum Dump of assembler code for function phase_2: push %rbp push %rbx $8x28,%rsp %rsp , %rsi 40 14c7 sub mov cauq Ox0000000000400e57 : lea Ox0000000000400e7l : je 0x0000000000400e7b : 400e64 40 1491 %rsp ,Srbs 8x10 (Srsp),Srbp 0x4 (%rbx) ,%eax callq mov 488e89 0x400e8 0x0000000000400e8d %rbp End of assembler dum

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!