[Code] Fast and reliable hybrid-nop patch
First of all, why using inline asm?
It's faster, and you can actually see what you're doing
I understand that some of you don't have the least intention of learning asm
That's why I'm posing this code, since this is an improvement over the memcpy() api
The function:
Note: The only thing you have to do is supplying the address and how many bytes you want to patch (gg)
Usage:
The address used, is one of 5 no-recoil addresses
If you chose to use my code, please give proper credits for it
Thank you, and happy hacking
-SCHiM
It's faster, and you can actually see what you're doing
I understand that some of you don't have the least intention of learning asm
That's why I'm posing this code, since this is an improvement over the memcpy() api
The function:
Note: The only thing you have to do is supplying the address and how many bytes you want to patch (gg)
Code:
int NopPatch(LPVOID address, int gg){
{ __declspec( naked );
__asm{
push eax
push esi
mov eax, address
xor esi, esi
nopp:
mov [eax], 0x90
add eax, 1d
add esi, 1d
cmp esi, gg
jnz nopp
pop esi
pop eax
}
}
return 0;
}
The address used, is one of 5 no-recoil addresses
Code:
NopPatch((LPVOID)0x3745FCE0, 3);
Thank you, and happy hacking

-SCHiM



Like it