smilelin0419 發表於 2020-3-8 15:26:58

TwMS V223.2 ICS 人物移動加速

本帖最後由 smilelin0419 於 2020-3-8 15:43 編輯

//TwMS V223.2 ICS 人物移動加速

Alloc(CharSpeedUpHook, 256)
Alloc(Speed, 4)
Alloc(FakeTime, 4)
RegisterSymbol(Speed)
Label(CharSpeedUp)
Label(SpeedChk)
Label(SetFakeTime)
Label(InitFakeTime)

Speed:
        DD 05
FakeTime:
        DD 00
               
CharSpeedUpHook:
        cmp ,026EAF1A
        jne GetLastError
        nop        
        nop
        mov ,CharSpeedUp
        jmp GetLastError
               
CharSpeedUp:
        mov eax,
SpeedChk:
        dec eax
        jle 026EAF1A
        push eax
        mov ecx,
        call 00ADB620
        pop eax
        jmp SpeedChk
               
SetFakeTime:
        cmp ,0
        je InitFakeTime
        mov eax,
        add eax,000001FE
               
InitFakeTime:
        mov ,eax
        db 60 50 52 53 5B
        jmp 046F341C
               
036EC1F4:
DD CharSpeedUpHook
               
046F33A2:
jmp SetFakeTime


036EC1F4:
DD GetLastError

046F33A2:
db 60 50 52 53 5B
               
DeAlloc(CharSpeedUpHook)
DeAlloc(Speed)
DeAlloc(FakeTime)
UnRegisterSymbol(Speed)

rhg59321 發表於 2020-3-8 15:37:18

本帖最後由 rhg59321 於 2020-3-8 15:40 編輯

這樣可能比較好看~  抱歉我雞婆

//TwMS V223.2 ICS 人物移動加速

Alloc(CharSpeedUpHook, 256)
Alloc(Speed, 4)
Alloc(FakeTime, 4)
RegisterSymbol(Speed)
Label(CharSpeedUp)
Label(SpeedChk)
Label(SetFakeTime)
Label(InitFakeTime)

Speed:
        DD 05
FakeTime:
        DD 00
               
CharSpeedUpHook:
        cmp ,026EAF1A
        jne GetLastError
        nop        
        nop
        mov ,CharSpeedUp
        jmp GetLastError
               
CharSpeedUp:
        mov eax,
SpeedChk:
        dec eax
        jle 026EAF1A
        push eax
        mov ecx,
        call 00ADB620
        pop eax
        jmp SpeedChk
               
SetFakeTime:
        cmp ,0
        je InitFakeTime
        mov eax,
        add eax,000001FE
               
InitFakeTime:
        mov ,eax
        db 60 50 52 53 5B
        jmp 046F341C
               
036EC1F4:
DD CharSpeedUpHook
               
046F33A2:
jmp SetFakeTime


036EC1F4:
DD GetLastError

046F33A2:
db 60 50 52 53 5B
               
DeAlloc(CharSpeedUpHook)
DeAlloc(Speed)
DeAlloc(FakeTime)
UnRegisterSymbol(Speed)

leo013123 發表於 2020-3-8 17:14:07

        cmp ,026EAF1A
        jne GetLastError
        nop        
        nop想請教一下 有些ICS數據 加上NOP 的用意是?

如果是防偵測 已經HOOK在系統API上了 這樣做的原因是?

謝謝!

頁: [1]
查看完整版本: TwMS V223.2 ICS 人物移動加速