Question: 1. The following assembly code includes a call to the function secretFunc and the content of that same function. a. What is the return address

1. The following assembly code includes a call to the function secretFunc and the content of that same function.

a. What is the return address of secretFunc _________ b. Comment each line as to what it is doing. The comment should be in plain English as shown.

004014FF push 0FFFFFF80h push -128, the 2nd parameter of SecretFunc

NOTE: push 0xFFFFFF80 to the stack is not acceptable

00401501 push 0FFFFFFFFh ___________

00401503 call secretFunc ___________

00401508 add esp, 8 ___________

0040150B mov [ebp-1], al ; declare a char in C for this

0040150E nop --- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 00401000 secretFunc

00401000 push ebp

00401001 mov ebp, esp (Copy stack pointer to ebp to use as a frame pointer for this function. It references both parameters and local variables.)

00401003 push ecx

00401004 movsx eax, [ebp+8]

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!