08-11-2010, 11:58 PM
Code:
invoke JmpPatch, 0041A93Eh, addr textzz
Code:
textzz_r dd 0041A9B7h
textzz_r2 dd 0041A947h
textzz proc
cmp ebp, 0Ah ;check if its a human or not
MOV DWORD PTR SS:[ESP+10h],edi
jge hackz
jmp [textzz_r2]
hackz: ;not human
push eax
mov eax, dword ptr ds:[458B00h+ebp*4+194h]
mov eax, dword ptr ds:[eax+368h]
cmp dword ptr ds:[eax+6f4h],10 ;this is the ID you want to hide
pop eax
jne wrong_id
MOV DWORD PTR SS:[ESP+10h],0044644Eh
wrong_id:
jmp [textzz_r]
textzz endp
code was originally used for a different idea - so the implementation is slightly more complicated than it has to be for something as simple as this - but it works
ps: http://lf-empire.de/forum/showthread.php?tid=3154
...