Function at 0x4e6c60
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c3ec0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2e4
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push str._r_nProcesses:_r_n
mov dword [ebp - 4], 0
call fcn.005a0de6
lea eax, [ebp - 0x1ec]
mov dword [ebp - 0x1ec], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4e6db9
mov eax, dword [ebp - 0x1dc]
cmp eax, 2
jne 0x4e6ea7
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.PSAPI.DLL
call esi
mov edi, eax
test edi, edi
mov dword [ebp - 0x28], edi
je 0x4e6db9
push str.VDMDBG.DLL
call esi
test eax, eax
mov dword [ebp - 0x1c], eax
je 0x4e6db9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcesses
push edi
call esi
mov ebx, eax
push str.EnumProcessModules
push edi
mov dword [ebp - 0x24], ebx
call esi
push str.GetModuleFileNameExA
push edi
mov dword [ebp - 0x2c], eax
call esi
mov ecx, dword [ebp - 0x1c]
push str.VDMEnumTaskWOWEx
push ecx
mov dword [ebp - 0x14], eax
call esi
test ebx, ebx
je 0x4e6e95
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4e6e95
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4e6e95
test eax, eax
je 0x4e6e95
mov eax, 0x400
xor esi, esi
mov dword [ebp - 0x18], eax
test esi, esi
je 0x4e6d77
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x18]
lea eax, [edx + edx]
mov dword [ebp - 0x18], eax
jmp 0x4e6d7d
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x4e6daa
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x20]
push ecx
push edx
push esi
call dword [ebp - 0x24]
test eax, eax
jne 0x4e6dcc
push esi
push eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
call esi
mov eax, dword [ebp - 0x1c]
push eax
call esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
cmp ecx, eax
je 0x4e6d56
mov eax, ecx
shr eax, 2
mov dword [ebp - 0x20], eax
xor ebx, ebx
cmp ebx, dword [ebp - 0x20]
jae 0x4e6e76
mov byte [ebp - 0x2f0], 0
mov ecx, dword [esi + ebx*4]
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4e6e3e
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x30]
push edx
push 4
push eax
push edi
call dword [ebp - 0x2c]
test eax, eax
je 0x4e6e37
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x2f0]
push 0x104
push ecx
push edx
push edi
call dword [ebp - 0x14]
test eax, eax
jne 0x4e6e37
mov byte [ebp - 0x2f0], al
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [ebp - 0x2f0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4e6e6d
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x2f0]
push eax
mov ecx, edi
call fcn.005a0f5f
push 0x657b00
mov ecx, edi
call fcn.005a0f5f
mov edi, dword [ebp - 0x28]
inc ebx
jmp 0x4e6de0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4e6f83
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
call esi
mov edx, dword [ebp - 0x1c]
push edx
jmp 0x4e6db7
cmp eax, 1
jne 0x4e6db9
push str.Kernel32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x28], ebx
je 0x4e6db9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateToolhelp32Snapshot
push ebx
call esi
push str.Process32First
push ebx
mov edi, eax
call esi
push str.Process32Next
push ebx
mov dword [ebp - 0x14], eax
call esi
test eax, eax
mov dword [ebp - 0x24], eax
je 0x4e6f0a
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4e6f0a
test edi, edi
je 0x4e6f0a
push 0
push 2
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x4e6f24
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x158]
mov ebx, 0x128
push eax
push esi
mov dword [ebp - 0x158], ebx
call dword [ebp - 0x14]
test eax, eax
je 0x4e6f80
lea edi, [ebp - 0x134]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4e6f6d
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x134]
push ecx
mov ecx, edi
call fcn.005a0f5f
push 0x657b00
mov ecx, edi
call fcn.005a0f5f
lea edx, [ebp - 0x158]
mov dword [ebp - 0x158], ebx
push edx
push esi
call dword [ebp - 0x24]
jmp 0x4e6f3a
mov edi, dword [ebp - 0x28]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp + 8]
push 0x657b00
call fcn.005a0f5f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret