Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What does the following assembly code does? It's from binary bomb 0x0000000000400f49 : push %rbp 0x0000000000400f4a : push %rbx 0x0000000000400f4b : sub $0x28,%rsp 0x0000000000400f4f :

What does the following assembly code does? It's from "binary bomb" 0x0000000000400f49 <+0>: push %rbp 0x0000000000400f4a <+1>: push %rbx 0x0000000000400f4b <+2>: sub $0x28,%rsp 0x0000000000400f4f <+6>: mov %rsp,%rsi 0x0000000000400f52 <+9>: callq 0x40162a  0x0000000000400f57 <+14>: cmpl $0x2,(%rsp) 0x0000000000400f5b <+18>: je 0x400f62  0x0000000000400f5d <+20>: callq 0x4015df  0x0000000000400f62 <+25>: cmpl $0x3,0x4(%rsp) 0x0000000000400f67 <+30>: je 0x400f6e  0x0000000000400f69 <+32>: callq 0x4015df  0x0000000000400f6e <+37>: mov %rsp,%rbx 0x0000000000400f71 <+40>: lea 0x10(%rsp),%rbp 0x0000000000400f76 <+45>: mov 0x4(%rbx),%eax 0x0000000000400f79 <+48>: imul (%rbx),%eax 0x0000000000400f7c <+51>: cmp %eax,0x8(%rbx) 0x0000000000400f7f <+54>: je 0x400f86  0x0000000000400f81 <+56>: callq 0x4015df  0x0000000000400f86 <+61>: add $0x4,%rbx 0x0000000000400f8a <+65>: cmp %rbp,%rbx 0x0000000000400f8d <+68>: jne 0x400f76  0x0000000000400f8f <+70>: add $0x28,%rsp Dump of assembler code for function read_six_numbers: 0x000000000040162a <+0>: sub $0x8,%rsp 0x000000000040162e <+4>: mov %rsi,%rdx 0x0000000000401631 <+7>: lea 0x4(%rsi),%rcx 0x0000000000401635 <+11>: lea 0x14(%rsi),%rax 0x0000000000401639 <+15>: push %rax 0x000000000040163a <+16>: lea 0x10(%rsi),%rax 0x000000000040163e <+20>: push %rax 0x000000000040163f <+21>: lea 0xc(%rsi),%r9 0x0000000000401643 <+25>: lea 0x8(%rsi),%r8 0x0000000000401647 <+29>: mov $0x40292c,%esi 0x000000000040164c <+34>: mov $0x0,%eax 0x0000000000401651 <+39>: callq 0x400c40 <__isoc99_sscanf@plt> 0x0000000000401656 <+44>: add $0x10,%rsp 0x000000000040165a <+48>: cmp $0x5,%eax 0x000000000040165d <+51>: jg 0x401664  0x000000000040165f <+53>: callq 0x4015df  0x0000000000401664 <+58>: add $0x8,%rsp 0x0000000000401668 <+62>: 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

Students also viewed these Databases questions

Question

2. How does communication shape cultures and social communities?

Answered: 1 week ago

Question

1. Explain how technology has changed the learning environment.

Answered: 1 week ago