Question: In the following excerpts from a disassembled binary, some of the information has been replaced by Xs. Answer the following questions about these instructions. A.

In the following excerpts from a disassembled binary, some of the information has been replaced by X’s. Answer the following questions about these instructions.

A. What is the target of the je instruction below? (You do not need to know anything about the callq instruction here.)

4003fa: 74 02 4003fc: ff do je XXXXXX callq *%rax

B. What is the target of the je instruction below?

40042f: 74 14 400431 5d je pop XXXXXX %rbp

C. What is the address of the ja and pop instructions?

XXXXXX: 77 02 XXXXXX: 5d ja pop 400547 %rbp

D. In the code that follows, the jump target is encoded in PC-relative form as a 4- byte two’s-complement number. The bytes are listed from least significant to most, reflecting the little-endian byte ordering of x86-64.What is the address of the jump target?

4005e8: e9 73 ff ff ff 4005ed: 90 jmpq XXXXXXX nop

4003fa: 74 02 4003fc: ff do je XXXXXX callq *%rax

Step by Step Solution

3.42 Rating (168 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

This exercise requires you to examine disassembled code in detail and reason about the encodings for ... View full answer

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 Computer Systems A Programmers Perspective Questions!