Problem with the injected inline assembly code
Hello guys , I never used inline assembly before and im having a problem
All the code is injected just fine using WriteProcessMemory to the allocated memory and no problems at all , The only problem im having is that
&returnhere == jmp dword ptr[returnhere]
How to make it jump to return+5 instead of the pointer of returnhere? Am i doing something wrong ? , Well i know im doing something wrong just not sure what it is
.
Code:
DWORD return= 0x00927826;
DWORD returnhere= return+5;
__declspec (naked) void script(){
_asm
{
start:
push eax
lea eax,[ecx+edx+98]
call decrypt
jmp dword ptr [returnhere]
}
}
&returnhere == jmp dword ptr[returnhere]
How to make it jump to return+5 instead of the pointer of returnhere? Am i doing something wrong ? , Well i know im doing something wrong just not sure what it is
.
