有没有大佬会汇编写法,下面这种怎么写
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(JmpHer)
label(IfFile)
label(exit)
label(AddBase)
label(GetEditcByInx)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
originalcode:
call eax
add esp,08
push 1
call [GetEditcByInx]
add esp,04
mov [newmem+100],eax
push esi
xor esi,esi
mov esi,1
JmpHer:
push esi
call [GetEditcByInx]// 69 C1 68 03 00 00 03 05
add esp,04
test eax,eax
je IfFile
cmp [eax+80],0
je IfFile
cmp [eax],0
jne IfFile
cmp eax,[newmem+100]
je IfFile
cmp [newmem+100],0
je IfFile
mov edx,[newmem+100]
movss xmm0,[edx+8C]
movss xmm1,[AddBase]
addss xmm0,xmm1
movss [eax+8C],xmm0
movss xmm0,[edx+90]
movss xmm1,[AddBase]
addss xmm0,xmm1
movss [eax+90],xmm0
movss xmm0,[edx+94]
movss xmm1,[AddBase]
addss xmm0,xmm1
movss [eax+94],xmm0
IfFile:
inc esi
cmp esi,20
jne JmpHer
exit:
pop esi
jmp returnhere
AddBase:
dd 42480000
GetEditcByInx:
dd "hw.dll"+5FA080
"hw.dll"+560002:
jmp newmem
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"hw.dll"+560002:
call eax
add esp,08