[Code] Fast and reliable hybrid-nop patch

Posts 16–26 of 26 · Page 2 of 2
Quote Originally Posted by mo3ad001 View Post
if you want it work i don't think ! maybe you should do
Code:
int NopPatch(LPVOID address, char* value ,int gg){
{	__declspec( naked );
__asm{
  push eax
  push esi
  push edx

 mov eax, address
 mov edx, [value] 
 xor esi, esi
  
nopp:
 
  mov [eax], value 

 add eax, 1d
 add esi, 1d

 cmp esi, gg
 jnz nopp


   pop esi
   pop eax

	}
	}
You would still only replace the bytes on the address with one other value the whole time, you do realize this's a loop you're looking at do you?
the reason NOT to use a char is simply that a char is NOT everywhere ONE byte it depens on your settings. If you use Unicode the char is TWO BYTES big o.O.
Quote Originally Posted by doofbla View Post
the reason NOT to use a char is simply that a char is NOT everywhere ONE byte it depens on your settings. If you use Unicode the char is TWO BYTES big o.O.
Then you have messed-up settings, char is óne byte, not two. An unicode char isn't a char it's a short
ASM, I like it.

(Just because of the blue line /)
Quote Originally Posted by Stephen View Post
ASM, I like it.

(Just because of the blue line /)
Lol, which blue line, you mean this " __ "?
Quote Originally Posted by .::SCHiM::. View Post
Lol, which blue line, you mean this " __ "?
Ya. ahahaha
Quote Originally Posted by Stephen View Post


Ya. ahahaha
lol, I guess everyone has his own reasons for learning asm
*delted

Oh shit i bumped -.-
Quote Originally Posted by dean-wingess View Post
*delted

Oh shit i bumped -.-
its ok .
just dont bump threads older than 1 week . (if the last post is older than a week)
Quote Originally Posted by Drake View Post


its ok .
just dont bump threads older than 1 week . (if the last post is older than a week)
naw u still ban him for that

/seems likes he wantz too
Yes bumps!!! haha, Now I can have this thread on the main page for another 7 days

Thanks all XD
Posts 16–26 of 26 · Page 2 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?