Well, i am just a novice in assembler language. What I am trying to do is to get some strings from registes, in this case eax. It will be clear what I mean in the following code:
and this is what i am trying to do (injecting some code):
Well, the problem arises when i check the string it just have the first 4 chars of the string... I think thats because eax is a 32 bit (so 4 bytes) register right? how could i make that works? how can retrieve a chain of chars to the place i want?
any help or tip is very welcome.
edit: changed title for better description
edit2: Solutions is at post #8
Code:
... push eax <---- here, eax contains a pointer to the string that I want lea ecx,[ebx+04] ...
Code:
... push eax mov [0x004f1460], eax <---- Here, 004f1460 is the location of my CodeCave for storing the pointer mov eax, [eax] mov [0x004f1470], eax <-- and in this 4f1470 cave is the place that I want to put the string mov eax, [0x004f1460] Getting back the pointer to eax, as if i didnt touched it lea ecx,[ebx+04] ...
any help or tip is very welcome.
edit: changed title for better description
edit2: Solutions is at post #8