So I am trying to open my test app EXE file in ollydbg to study the assembly, the stack, registers and all that stuff for educational purposes and it gives me this message saying that the entry point is outside the code. Indeed it is, I can see the value in the Optional Header.AddressOfEntryPoint field which clearly exceeds the file size.
My question is why is this happening?
This is the C code. Very simple.
#include<studio.h>
int main()
{
printf("THIS IS OUR TEST APP!");
return 0;
}
The file on disk ends at an offset of 95ffh
.
The entry point is 11334h
.
I am new to reverse Engineering so please be kind.
I am using Visual studio 2017 community edition, PEBear and OllyDbg for my studies on Windows 10. I am using C to write simple programs for study.
main
, so the compiler will mark MainCRTStartup() the entry point (see stackoverflow.com/a/22935162/858968)