Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Given the following assembly code, what six numbers would I have to input to get to the end of the function? Assume if it calls

Given the following assembly code, what six numbers would I have to input to get to the end of the function? Assume if it calls any of the explode functions, the program fails.

Dump of assembler code for function phase_2: 0x000000000040104c <+0>: push %rbp 0x000000000040104d <+1>: push %rbx 0x000000000040104e <+2>: sub $0x28,%rsp 0x0000000000401052 <+6>: mov %rsp,%rsi 0x0000000000401055 <+9>: callq 0x401a16 0x000000000040105a <+14>: cmpl $0x4,0x14(%rsp) 0x000000000040105f <+19>: jg 0x401086 0x0000000000401061 <+21>: callq 0x4018ba 0x0000000000401066 <+26>: jmp 0x401086 0x0000000000401068 <+28>: mov -0x4(%rbp),%eax 0x000000000040106b <+31>: lea (%rbx,%rax,2),%eax 0x000000000040106e <+34>: cmp %eax,0x0(%rbp) 0x0000000000401071 <+37>: je 0x401078 0x0000000000401073 <+39>: callq 0x4018ba 0x0000000000401078 <+44>: add $0x1,%ebx 0x000000000040107b <+47>: add $0x4,%rbp 0x000000000040107f <+51>: cmp $0x6,%ebx 0x0000000000401082 <+54>: jne 0x401068 0x0000000000401084 <+56>: jmp 0x401092 0x0000000000401086 <+58>: lea 0x4(%rsp),%rbp 0x000000000040108b <+63>: mov $0x1,%ebx 0x0000000000401090 <+68>: jmp 0x401068 0x0000000000401092 <+70>: add $0x28,%rsp 0x0000000000401096 <+74>: pop %rbx 0x0000000000401097 <+75>: pop %rbp 0x0000000000401098 <+76>: 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

Advances In Databases And Information Systems 25th European Conference Adbis 2021 Tartu Estonia August 24 26 2021 Proceedings Lncs 12843

Authors: Ladjel Bellatreche ,Marlon Dumas ,Panagiotis Karras ,Raimundas Matulevicius

1st Edition

3030824713, 978-3030824716

More Books

Students also viewed these Databases questions

Question

Find dy if y = (2x2 - 4)x .

Answered: 1 week ago

Question

another name for a subquery is

Answered: 1 week ago

Question

=+5 Does this case provide an example of the future for IHRM?

Answered: 1 week ago