Function at 0x402774
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a1f0
push 0x403a34
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x31c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1fc], ebx
mov dword [ebp - 0x204], ebx
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x1ec], 0x94
lea eax, [ebp - 0x1ec]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x402a91
push 2
pop edi
cmp dword [ebp - 0x1dc], edi
jne 0x402a75
cmp dword [ebp - 0x1e8], 4
jne 0x402a75
mov dword [ebp - 4], ebx
push str.PSAPI.DLL
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call esi
mov edi, eax
mov dword [ebp - 0x1fc], edi
cmp edi, ebx
je 0x402a01
push str.VDMDBG.DLL
call esi
mov dword [ebp - 0x204], eax
cmp eax, ebx
je 0x402a01
push str.EnumProcesses
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [ebp - 0x1f0], eax
push str.EnumProcessModules
push edi
call esi
mov dword [ebp - 0x24], eax
push str.GetModuleBaseNameA
push edi
call esi
mov dword [ebp - 0x148], eax
push str.VDMEnumTaskWOWEx
push dword [ebp - 0x204]
call esi
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1f0], ebx
je 0x402a01
cmp dword [ebp - 0x24], ebx
je 0x402a01
cmp dword [ebp - 0x148], ebx
je 0x402a01
cmp eax, ebx
je 0x402a01
mov dword [ebp - 0x1f4], 0x400
cmp dword [ebp - 0x150], ebx
je 0x4028b8
push dword [ebp - 0x150]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x1f4]
add eax, eax
mov dword [ebp - 0x1f4], eax
push dword [ebp - 0x1f4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x150], eax
cmp eax, ebx
je 0x402a01
lea ecx, [ebp - 0x1f8]
push ecx
push dword [ebp - 0x1f4]
push eax
call dword [ebp - 0x1f0]
test eax, eax
je 0x402a01
mov eax, dword [ebp - 0x1f8]
cmp eax, dword [ebp - 0x1f4]
je 0x40288e
shr dword [ebp - 0x1f8], 2
mov dword [ebp - 0x200], ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x200]
cmp eax, dword [ebp - 0x1f8]
jae 0x4029ff
and byte [ebp - 0x128], 0
mov ecx, dword [ebp - 0x150]
lea esi, [ecx + eax*4]
push dword [esi]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0x158], edi
test edi, edi
je 0x402993
lea eax, [ebp - 0x1f4]
push eax
push 4
lea eax, [ebp - 0x12c]
push eax
push edi
call dword [ebp - 0x24]
test eax, eax
je 0x40298c
push 0x104
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x12c]
push edi
call dword [ebp - 0x148]
test eax, eax
jne 0x40298c
and byte [ebp - 0x128], al
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
lea eax, [ebp - 0x128]
push eax
push 0
push dword [esi]
mov edi, dword [ebp + 8]
call edi
test eax, eax
je 0x4029ff
push str.NTVDM.EXE
lea eax, [ebp - 0x128]
push eax
call fcn.00404160
pop ecx
pop ecx
test eax, eax
jne 0x4029f4
mov eax, dword [esi]
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], edi
mov dword [ebp - 0x134], ebx
and dword [ebp - 0x130], 0
lea eax, [ebp - 0x13c]
push eax
push 0x402c6b
push dword [esi]
call dword [ebp - 0x1c]
cmp dword [ebp - 0x130], 0
jne 0x4029ff
inc dword [ebp - 0x200]
jmp 0x402914
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
call fcn.00402a2c
push dword [ebp - 0x1fc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
pop eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 8
push 1
pop eax
cmp dword [ebp - 0x1dc], eax
je 0x402a95
cmp dword [ebp - 0x1dc], edi
jne 0x402a91
cmp dword [ebp - 0x1e8], 4
ja 0x402a95
xor eax, eax
jmp 0x402a19
mov dword [ebp - 4], eax
push str.Kernel32.DLL
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call esi
mov ebx, eax
mov dword [ebp - 0x1fc], ebx
test ebx, ebx
je 0x402c32
cmp dword [ebp - 0x1dc], edi
jne 0x402ad2
push str.VDMDBG.DLL
call esi
mov dword [ebp - 0x204], eax
test eax, eax
je 0x402c32
push str.CreateToolhelp32Snapshot
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [ebp - 0x14c], eax
push str.Process32First
push ebx
call esi
mov dword [ebp - 0x140], eax
push str.Process32Next
push ebx
call esi
mov dword [ebp - 0x154], eax
test eax, eax
je 0x402c32
cmp dword [ebp - 0x140], 0
je 0x402c32
cmp dword [ebp - 0x14c], 0
je 0x402c32
cmp dword [ebp - 0x1dc], edi
jne 0x402b44
push str.VDMEnumTaskWOWEx
push dword [ebp - 0x204]
call esi
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x402c32
push 0
push edi
call dword [ebp - 0x14c]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x402b6e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call fcn.0040397e
pop ecx
pop ecx
jmp 0x402a91
mov esi, 0x128
mov dword [ebp - 0x32c], esi
lea ecx, [ebp - 0x32c]
push ecx
push eax
call dword [ebp - 0x140]
mov dword [ebp - 0x144], eax
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
cmp dword [ebp - 0x144], 0
je 0x402c32
push edi
lea eax, [ebp - 0x308]
push eax
push 0
push dword [ebp - 0x324]
call ebx
test eax, eax
je 0x402c26
push str.NTVDM.EXE
lea eax, [ebp - 0x308]
push eax
call fcn.00404160
pop ecx
pop ecx
test eax, eax
jne 0x402c05
mov eax, dword [ebp - 0x324]
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x134], edi
and dword [ebp - 0x130], 0
lea ecx, [ebp - 0x13c]
push ecx
push 0x402c6b
push eax
call dword [ebp - 0x1c]
cmp dword [ebp - 0x130], 0
jne 0x402c32
mov dword [ebp - 0x32c], esi
lea eax, [ebp - 0x32c]
push eax
push dword [ebp - 0x20]
call dword [ebp - 0x154]
mov dword [ebp - 0x144], eax
jmp 0x402b93
and dword [ebp - 0x144], 0
jmp 0x402b93
or dword [ebp - 4], 0xffffffff
call fcn.00402c40
jmp 0x402a0a