Question: this is just saying that the following code just needs to be explained but not step by step, like this code runs on VS we

this is just saying that the following code just needs to be explained but not step by step, like this code runs on VS we just need to observe what is going on or we just explain the logic behind it. this is just saying that the following code just needs to beexplained but not step by step, like this code runs on VS

Problem 3: Reverse Engineering (20%) Explain what each of the following assembly codes does. I need a high-level explanation, not interpretation of the code instruction by instruction. Think about the overall objective of the code. For example, your answer may be something like: this code calculates the factorial of an integer, this code reverses a string, etc. Again, don't explain all the instructions one-by-one. You can find out what the codes do in two ways: Read, understand the code, and describe the logic/objective behind it. Or execute the code in VS, observe how the registers and variables change during and after the execution to infer the objective of the code. If required, you can change the values of the variables/lists to confirm your findings. . b. Hint. Think of what the instruction and al, 80h checks for? Hint. What is being calculated in ebx? eax .data buf SBYTE 100, -50, -30, 25, 10 .code main PROC mov edx, OFFSET buf mov ecx, LENGTHOF buf mov esi, 0 xor eax, xor ebx, ebx L1: mov al, buf[esi] and al, 80h jz NO neg buf[esi] inc ebx NO: inc esi loop L1 main endp

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!