Friday, September 15, 2017

Clarifications on Assembly

Over the span of the function’s execution, EBP is pointing to the current stack frame making it possible to access local variables and function arguments via EBP+offset
It is also possible to use ESP for the same purpose, although that is not very convenient since it changes frequently. The value of the EBP could be perceived as a frozen state of the value in ESP at the start of the function’s execution.
-- Dennis Yurichev, Reverse Engineering for Beginners (1.9, p. 68)

No comments:

Post a Comment