检测Win2000/XP下的SoftIce
AI摘要
这段代码是一个用于检测Windows 2000/XP系统中是否安装了SoftIce调试器的函数。它通过汇编语言实现,使用中断指令和异常处理来判断SoftIce是否存在。如果检测到SoftIce,函数返回True;否则返回False。
Function ABC38:Boolean;//检测Win2000/XP下的SoftIce
var
mark:Integer;
YesInt,NoInt:Integer;
begin
YesInt:=0;NoInt:=0;
mark:=0;
asm
push offset @handler
push dword ptr fs:[0]
mov dword ptr fs:[0],esp
xor eax,eax
int 1
inc eax
inc eax
pop dword ptr fs:[0]
add esp,4
or eax,eax
jz @found
cmp mark, 0
jnz @found
jmp @Nofound
@handler:
mov ebx,[esp+0ch]
add dword ptr [ebx+0b8h],02h
mov ebx,[esp+4]
cmp [ebx], 80000004h
jz @Table
inc mark
@Table:
xor eax,eax
ret
@found:
mov YesInt,1
@Nofound:
mov NoInt,1
end;
if Yesint=1 then
Result:=True;
if NoInt=1 then
Result:=False;
end;
读者留言 0 条
一纸留言,便是山水间的一次相逢。
还没有留言,欢迎写下第一段交流。