Hello,
I was just trying this out, but got stuck. I'd be glad if someone can help me out.
Consider that I have 19286300h in eax. The MessageBox function needs the address to a memory location from which it can read a null-terminated string. Now I'd like to pass the content of the eax register, as in above (the 4 bytes) as the string. Thus I assume I'd get a 3 letter word shown up (considering the fourth byte to be a null-terminator). But I'm a bit confused on how to do this. Because with whatever I tried, Windows tries to read the memory address located in eax and tries to reference it, which it fails to. I want to treat the value in eax itself as a string.
|