I've collected the next batch of stupid questions i hope someone could help me shed some light on.
Basicly im trying to enterpret some very helloworld'ish basic code written in c++ code(vs2005, console app).
[Only registered and activated users can see links. Click Here To Register...]
Truth be told, im fiddling with some codeinjection, evaluating different approaches, but i figure i'd get a little better at reading asm first.
The idea of this statement "cout<<"address :"<<IAmMethodOne<<endl;" was to print the address entry point of the function (the function i would later try to hook).
However a few shots of this code in olly shows
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
now, take the first two breakpoints in olly_page1. They're never hit! However the "cout<<"address :"<<IAmMethodOne<<endl;" statements prints those two address points, that is 401000 and 401030.
Why is that?
You'll also see that 4012D0 is called from these two places(and others), wich is the code that actually prints the characters to the console.
I assume 401080 is the 'real' entrypoint of my code/main.
in fact, i can nop the entire 401000 -> 401080 and it will have no consequence on the process.. weird!
Basicly im trying to enterpret some very helloworld'ish basic code written in c++ code(vs2005, console app).
[Only registered and activated users can see links. Click Here To Register...]
Truth be told, im fiddling with some codeinjection, evaluating different approaches, but i figure i'd get a little better at reading asm first.
The idea of this statement "cout<<"address :"<<IAmMethodOne<<endl;" was to print the address entry point of the function (the function i would later try to hook).
However a few shots of this code in olly shows
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
now, take the first two breakpoints in olly_page1. They're never hit! However the "cout<<"address :"<<IAmMethodOne<<endl;" statements prints those two address points, that is 401000 and 401030.
Why is that?
You'll also see that 4012D0 is called from these two places(and others), wich is the code that actually prints the characters to the console.
I assume 401080 is the 'real' entrypoint of my code/main.
in fact, i can nop the entire 401000 -> 401080 and it will have no consequence on the process.. weird!