Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IM doing a bomblab, im at phase 4, what should be the answer for this case? Dump of assembler code for function phase_4: 0x00000000004010f6 :

IM doing a bomblab, im at phase 4, what should be the answer for this case?

Dump of assembler code for function phase_4: 0x00000000004010f6 <+0>: push %rbp 0x00000000004010f7 <+1>: mov %rsp,%rbp => 0x00000000004010fa <+4>: sub $0x10,%rsp 0x00000000004010fe <+8>: lea -0x4(%rbp),%rcx 0x0000000000401102 <+12>: lea -0x8(%rbp),%rdx 0x0000000000401106 <+16>: mov $0x402a8d,%esi 0x000000000040110b <+21>: mov $0x0,%eax 0x0000000000401110 <+26>: callq 0x400cb0 <__isoc99_sscanf@plt> 0x0000000000401115 <+31>: cmp $0x2,%eax 0x0000000000401118 <+34>: jne 0x401125 0x000000000040111a <+36>: mov -0x8(%rbp),%eax 0x000000000040111d <+39>: sub $0x10,%eax 0x0000000000401120 <+42>: cmp $0x1e,%eax 0x0000000000401123 <+45>: jbe 0x40112a 0x0000000000401125 <+47>: callq 0x4016e5 0x000000000040112a <+52>: mov $0x2e,%edx 0x000000000040112f <+57>: mov $0x10,%esi 0x0000000000401134 <+62>: mov -0x8(%rbp),%edi 0x0000000000401137 <+65>: callq 0x4010bb 0x000000000040113c <+70>: cmp $0xd,%eax 0x000000000040113f <+73>: jne 0x401147 0x0000000000401141 <+75>: cmpl $0xd,-0x4(%rbp) 0x0000000000401145 <+79>: je 0x40114c 0x0000000000401147 <+81>: callq 0x4016e5 0x000000000040114c <+86>: leaveq 0x000000000040114d <+87>: nopl (%rax) 0x0000000000401150 <+90>: retq End of assembler dump. (gdb) disas func4 Dump of assembler code for function func4: 0x00000000004010bb <+0>: push %rbp 0x00000000004010bc <+1>: mov %rsp,%rbp 0x00000000004010bf <+4>: mov %edx,%eax 0x00000000004010c1 <+6>: sub %esi,%eax 0x00000000004010c3 <+8>: mov %eax,%ecx 0x00000000004010c5 <+10>: shr $0x1f,%ecx 0x00000000004010c8 <+13>: add %ecx,%eax 0x00000000004010ca <+15>: sar %eax 0x00000000004010cc <+17>: lea (%rax,%rsi,1),%ecx 0x00000000004010cf <+20>: cmp %edi,%ecx 0x00000000004010d1 <+22>: jle 0x4010e1 0x00000000004010d3 <+24>: lea -0x1(%rcx),%edx 0x00000000004010d6 <+27>: callq 0x4010bb 0x00000000004010db <+32>: lea 0x1(%rax,%rax,1),%eax 0x00000000004010df <+36>: jmp 0x4010f4 0x00000000004010e1 <+38>: mov $0x0,%eax 0x00000000004010e6 <+43>: cmp %edi,%ecx 0x00000000004010e8 <+45>: jge 0x4010f4 0x00000000004010ea <+47>: lea 0x1(%rcx),%esi 0x00000000004010ed <+50>: callq 0x4010bb 0x00000000004010f2 <+55>: add %eax,%eax 0x00000000004010f4 <+57>: pop %rbp 0x00000000004010f5 <+58>: retq End of assembler dump.

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

Object Oriented Databases Prentice Hall International Series In Computer Science

Authors: John G. Hughes

1st Edition

0136298745, 978-0136298748

More Books

Students also viewed these Databases questions

Question

=+ Are unions company-wide, regional, or national?

Answered: 1 week ago

Question

=+j Explain the litigation risks in international labor relations.

Answered: 1 week ago