这几天突然想玩CSOL,但是苦于小怪碍事堵路,就想把它们吸到附近,就有了以下的脚本
[Asm] 纯文本查看 复制代码 [ENABLE]
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
label(postion_x)
label(postion_y)
label(postion_z)
label(postion_base)
label(key)
registersymbol(key)
label(code)
newmem:
code:
cmp [key],0
jz originalcode
pushad
mov edx,[postion_base]
mov edx,[edx]
add edx,8c
mov [postion_x],edx
add edx,4
mov [postion_y],edx
add edx,4
mov [postion_z],edx
//吸怪
mov edx,esi
add edx,1f4
sub edx,168
mov eax,[postion_x]
mov [edx],eax
sub edx,4
mov eax,[postion_y]
mov [edx],eax
sub edx,4
mov eax,postion_z
mov [edx],eax
//movss xmm0,[postion_z]
//movss [edx],xmm0
popad
//esi+1f4-168 -164 -160
//hw.dll+1A14A30 + 8c 90 94
originalcode:
comiss xmm0,[esi+000001F4]
exit:
jmp returnhere
key:
dd 0
postion_x:
dd 0
postion_y:
dd 0
postion_z:
dd 0
postion_base:
dd hw.dll+1A14A30
"hw.dll"+5A2352:
jmp newmem
nop 2
returnhere:
[DISABLE]
dealloc(newmem)
unregistersymbol(key)
"hw.dll"+5A2352:
comiss xmm0,[esi+000001F4]
使用的结果是怪都没了,不知道去哪了。
大佬们帮我看看哪里有问题 |