Function at 0x4151e0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x2f4
push ebx
push ebp
push esi
lea eax, [esp + 0x144]
push edi
push eax
mov dword [esp + 0x14c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x41558f
mov eax, dword [esp + 0x158]
cmp eax, 2
jne 0x4154a2
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.PSAPI.DLL
call esi
mov edi, eax
test edi, edi
mov dword [esp + 0x20], edi
je 0x41558f
push str.VDMDBG.DLL
call esi
test eax, eax
mov dword [esp + 0x14], eax
je 0x41558f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcesses
push edi
call esi
push str.EnumProcessModules
push edi
mov dword [esp + 0x18], eax
call esi
mov ebx, eax
push str.GetModuleFileNameExA
push edi
mov dword [esp + 0x34], ebx
call esi
mov ebp, eax
push str.VDMEnumTaskWOWEx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x2c], ebp
push ecx
call esi
mov esi, dword [esp + 0x10]
mov dword [esp + 0x30], eax
test esi, esi
je 0x415483
test ebx, ebx
je 0x415483
test ebp, ebp
je 0x415483
test eax, eax
je 0x415483
mov ebp, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov eax, 0x400
mov dword [esp + 0x18], eax
xor ebx, ebx
test ebx, ebx
je 0x4152db
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [esp + 0x18]
lea eax, [edx + edx]
mov dword [esp + 0x18], eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ebx, eax
test ebx, ebx
je 0x415483
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push ecx
push ebx
call esi
test eax, eax
je 0x415310
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
jne 0x41533f
jmp 0x4152bc
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2f4
ret 8
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
shr eax, 2
mov dword [esp + 0x1c], eax
je 0x41544f
mov ebp, ebx
jmp 0x415360
mov edi, dword [esp + 0x20]
mov byte [esp + 0x44], 0
mov ecx, dword [ebp]
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4153b4
lea edx, [esp + 0x18]
lea eax, [esp + 0x24]
push edx
push 4
push eax
push esi
call dword [esp + 0x3c]
test eax, eax
je 0x4153ad
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x44]
push 0x104
push ecx
push edx
push esi
call dword [esp + 0x38]
test eax, eax
jne 0x4153ad
mov byte [esp + 0x44], al
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x30c]
mov ecx, dword [ebp]
lea eax, [esp + 0x44]
push esi
push eax
push 0
push ecx
call dword [esp + 0x318]
test eax, eax
je 0x41544f
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x44]
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub edx, 9
add ecx, edx
push str.NTVDM.EXE
push ecx
call fcn.00510b20
add esp, 8
test eax, eax
jne 0x415433
mov eax, dword [ebp]
mov ecx, dword [esp + 0x308]
lea edx, [esp + 0x34]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], 0
mov eax, dword [ebp]
push edx
push 0x4155a0
push eax
call dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x41544b
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
inc eax
add ebp, 4
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x41535c
mov edi, dword [esp + 0x20]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2f4
ret 8
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2f4
ret 8
cmp eax, 1
jne 0x41558f
push str.Kernel32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
mov dword [esp + 0x20], edi
je 0x41558f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateToolhelp32Snapshot
add byte [edi - 1], dl
salc
push str.Process32First
push edi
mov ebp, eax
call esi
push str.Process32Next
push edi
mov dword [esp + 0x18], eax
call esi
mov ebx, eax
test ebx, ebx
je 0x415588
mov eax, dword [esp + 0x10]
test eax, eax
je 0x415588
test ebp, ebp
je 0x415588
push 0
push 2
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x415588
lea eax, [esp + 0x1dc]
mov edi, 0x128
push eax
push esi
mov dword [esp + 0x1e4], edi
call dword [esp + 0x18]
test eax, eax
je 0x41556b
mov ebp, dword [esp + 0x30c]
mov edx, dword [esp + 0x1e4]
lea ecx, [esp + 0x200]
push ebp
push ecx
push 0
push edx
call dword [esp + 0x318]
test eax, eax
je 0x41556b
lea eax, [esp + 0x1dc]
mov dword [esp + 0x1dc], edi
push eax
push esi
call ebx
test eax, eax
jne 0x415537
mov edi, dword [esp + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2f4
ret 8
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2f4
ret 8