Function at 0x405ed0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41bfec
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x425008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x13c], esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esp, [esp]
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0xf
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x140], edi
test edi, edi
je 0x405f10
cmp edi, 0xffffffff
je 0x405f10
push 0x128
lea eax, [ebp - 0x138]
push 0
push eax
call fcn.0040f170
add esp, 0xc
mov dword [ebp - 0x138], 0x128
lea eax, [ebp - 0x138]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x405f6d
push edi
call ebx
jmp 0x405f10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
mov dword [ebp - 0x148], 0
lea eax, [ebp - 0x148]
mov dword [ebp - 0x158], ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
lea esp, [esp]
mov eax, dword [ebp - 0x130]
cmp eax, 4
jbe 0x406098
cmp eax, ebx
je 0x406098
lea ebx, [esi + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi]
mov edx, eax
mov esi, dword [ebp - 0x130]
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x405fe8
cmp dword [ecx + 0x10], esi
jae 0x405fde
mov ecx, dword [ecx + 8]
jmp 0x405fe2
mov edx, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x405fd4
cmp edx, eax
je 0x405fff
cmp esi, dword [edx + 0x10]
jb 0x405fff
mov dword [ebp - 0x154], edx
lea ecx, [ebp - 0x154]
jmp 0x40600b
mov dword [ebp - 0x14c], eax
lea ecx, [ebp - 0x14c]
cmp dword [ecx], eax
jne 0x406085
mov esi, 0x427d30
lea eax, [ebp - 0x114]
push eax
push dword [esi]
call fcn.0040b2d4
add esp, 8
test eax, eax
je 0x406085
add esi, 4
cmp esi, 0x427d98
jb 0x406014
push dword [ebp - 0x130]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40607f
cmp edi, 0xffffffff
je 0x40607f
lea eax, [ebp - 0x144]
mov dword [ebp - 0x144], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
mov eax, dword [ebp - 0x144]
cmp eax, dword [ebp - 0x148]
je 0x4060bc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x140]
mov esi, dword [ebp - 0x13c]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [ebp - 0x158]
lea eax, [ebp - 0x138]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x405fa0
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call ebx
jmp 0x405f10
mov esi, dword [0x428d1c]
test esi, esi
jne 0x4060fa
push 0xc8
call fcn.0040aff1
add esp, 4
mov dword [ebp - 0x150], eax
mov dword [ebp - 4], esi
test eax, eax
je 0x4060eb
mov ecx, eax
call fcn.00401420
mov esi, eax
jmp 0x4060ed
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [0x428d1c], esi
push dword [ebp - 0x130]
lea eax, [ebp - 0x114]
push eax
push str.__16____46___s___d_
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x70
push 0x4225d3
push esi
call fcn.004025a0
push 0x3c
call fcn.0040aff1
add esp, 0x24
mov dword [ebp - 0x150], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x40614f
push edi
push dword [ebp - 0x130]
mov ecx, eax
call fcn.00404e00
mov ecx, eax
jmp 0x406151
xor ecx, ecx
mov esi, dword [ebp - 0x13c]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x160], eax
lea eax, [ebp - 0x160]
mov dword [ebp - 0x15c], ecx
mov ecx, esi
push eax
call fcn.00406ec0
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x168]
mov ecx, esi
push eax
call fcn.00406ef0
mov edi, dword [ebp - 0x140]
jmp 0x40608b