|
define(hook0,004CBA37)
define(hook1,004CBA48)
define(hook2,004CBA59)
define(hook3,004CBA6A)
define(hook4,004CBA7B)
define(str_hook,400F00)//空白
define(push0,004CBA33)
define(push1,004CBA44)
define(push2,004CBA55)
define(push3,004CBA66)
define(push4,004CBA77)
define(str_addr0,400D00)
define(str_addr1,400D10)
define(str_addr2,400D20)
define(str_addr3,400D30)
define(str_addr4,400D40)
[ENABLE]
//从此处到“[禁用]”的代码将用于启用 CE
push0:
dd #0
push1:
dd #1
push2:
dd #2
push3:
dd #3
push4:
dd #4
str_addr0:
dw '普通級',0
str_addr1:
dw '冒險級',0
str_addr2:
dw '王者級',0
str_addr3:
dw '地獄級',0
str_addr4:
dw '英雄級',0
str_hook:
push ebp
mov ebp,esp
mov eax,[ebp+8]
cmp eax,1
je type1
cmp eax,2
je type2
cmp eax,3
je type3
cmp eax,4
je type4
mov eax, str_addr0
jmp type5
type1:
mov eax, str_addr1
jmp type5
type2:
mov eax, str_addr2
jmp type5
type3:
mov eax, str_addr3
jmp type5
type4:
mov eax, str_addr4
type5:
pop ebp
ret
hook0:
call str_hook
hook1:
call str_hook
hook2:
call str_hook
hook3:
call str_hook
hook4:
call str_hook
[DISABLE]
//从这里到代码末尾的代码将用于禁用 CE
hook0:
db E8 74 1C CF 00
hook1:
db E8 63 1C CF 00
hook2:
db E8 41 1C CF 00
hook3:
db E8 52 1C CF 00
hook4:
db E8 30 1C CF 00
str_hook:
db 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
push0:
dd #22683940
push1:
dd #22683916
有1031的英雄级写法也要
push2:
dd #22683896
push3:
dd #22683868
push4:
dd #22683848
str_addr0:
db 00 00 00 00 00 00 00
str_addr1:
db 00 00 00 00 00 00 00
str_addr2:
db 00 00 00 00 00 00 00
str_addr3:
db 00 00 00 00 00 00 00
str_addr4:
db 00 00 00 00 00 00 00
|
|