检测内存中 Soft-Ice 又法不过这次用是在全部内存搜索 Soft-Ice 特征码来实现
汇编编程举例:
; 加密思路方法: 检测 s-ice
; 用 scas,cmps 等指令, s-ice 无法用
; bpm 等断点检测到, 因此可用比较关键字
; 来检测 s-ice 是否在内存中
code segment
assume cs:code,ds:code
org 100h
start:
jmp
DATA_SICE DB 67h,66h,8bh,06h,0fh,22h,0d8h,26h,67h,66h
DB 8bh,46h,04h,66h,26h,67h,0fh,01h,10h
DATA_SICE_END EQU THIS BYTE
d_ok db 'OK, passed...',0dh,0ah,24h
d_ice db 'Has Soft-Ice in memory',0dh,0ah,24h
:
mov si,off data_sice
mov dx,cs
mov al,26h
xor bp,bp
cld
res1:
mov es,bp
mov cx,100h
xor di,di
res2:
repnz scasb
jnz cts_2
push cx
push si
push di
mov cx,off data_sice_end-off data_sice
repz cmpsb
jz has_sice
pop di
pop si
pop cx
jmp res2
cts_2:
add bp,10h
cmp bp,dx
jb res1
mov ah,9
mov dx,off d_ok
21h
20h
has_sice:
mov ah,9
mov dx,off d_ice
21h
20h
code ends
end start
最新评论