Function at 0x405690
Capabilities:
Create thread
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420b07
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [section..data]
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 ebx, ecx
mov dword [ebp - 0x13c], ebx
nop word [eax + eax]
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 - 0x14c], edi
test edi, edi
je 0x4056d0
cmp edi, 0xffffffff
je 0x4056d0
push 0x124
lea eax, [ebp - 0x134]
push 0
push eax
call fcn.0040ace0
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
je 0x405857
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
mov dword [ebp - 0x144], 0
lea eax, [ebp - 0x144]
mov dword [ebp - 0x154], esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
nop dword [eax + eax]
mov eax, dword [ebp - 0x130]
cmp eax, 4
jbe 0x405841
cmp eax, esi
je 0x405841
lea eax, [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx]
mov edx, eax
mov esi, dword [ebp - 0x130]
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x4057a8
cmp dword [ecx + 0x10], esi
jae 0x40579e
mov ecx, dword [ecx + 8]
jmp 0x4057a2
mov edx, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x405794
cmp byte [edx + 0xd], 0
jne 0x4057b7
cmp esi, dword [edx + 0x10]
jb 0x4057b7
cmp edx, eax
jne 0x405831
mov esi, 0x42d338
nop dword [eax]
lea eax, [ebp - 0x114]
push eax
push dword [esi]
call fcn.0041098b
add esp, 8
test eax, eax
je 0x405831
add esi, 4
cmp esi, 0x42d3a0
jb 0x4057c0
push dword [ebp - 0x130]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x40582b
cmp ebx, 0xffffffff
je 0x40582b
lea eax, [ebp - 0x140]
mov dword [ebp - 0x140], 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
mov eax, dword [ebp - 0x140]
cmp eax, dword [ebp - 0x144]
je 0x405863
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x13c]
lea eax, [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x154]
lea eax, [ebp - 0x138]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x405760
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4056d0
mov esi, dword [0x42de5c]
test esi, esi
jne 0x405899
push 0xc8
call fcn.004094bf
add esp, 4
mov dword [ebp - 0x160], eax
mov ecx, eax
mov dword [ebp - 4], esi
call fcn.00401230
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x42de5c], 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 0x427c8c
push esi
call fcn.00402a00
push 0x3c
call fcn.004094bf
mov ecx, eax
add esp, 0x24
mov dword [ebp - 0x148], ecx
mov dword [ebp - 4], 1
lea esi, [ecx + 0xc]
mov edi, dword [ebp - 0x130]
push 0x14
mov dword [ebp - 0x150], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004094bf
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov esi, dword [ebp - 0x148]
lea eax, [esi + 0x20]
mov dword [esi], ebx
push eax
mov dword [esi + 8], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 0x164]
mov dword [esi + 0x14], 0x2710
push eax
push 0
push esi
push 0x404be0
push 0
push 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x38], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xfffffffffffffffe
push eax
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [ebp - 0x13c]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov ebx, dword [ebp - 0x130]
mov eax, dword [edx]
mov ecx, eax
mov dword [ebp - 0x150], eax
mov edi, dword [eax + 4]
cmp byte [edi + 0xd], 0
jne 0x4059ad
mov eax, edi
mov edi, eax
cmp dword [eax + 0x10], ebx
jae 0x40599e
mov eax, dword [eax + 8]
xor esi, esi
jmp 0x4059a7
mov ecx, eax
mov esi, 1
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x405990
cmp byte [ecx + 0xd], 0
jne 0x4059b8
cmp ebx, dword [ecx + 0x10]
jae 0x405a2e
cmp dword [edx + 4], 0xaaaaaaa
je 0x405a3b
mov dword [ebp - 0x15c], edx
mov dword [ebp - 4], 2
push 0x18
mov dword [ebp - 0x158], 0
call fcn.004094bf
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov ecx, dword [ebp - 0x148]
mov dword [ebp - 0x158], 0
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp - 0x150]
mov dword [eax + 0x10], ebx
mov ebx, dword [ebp - 0x13c]
mov dword [eax], ecx
push eax
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov ecx, ebx
push esi
push edi
mov word [eax + 0xc], 0
call fcn.00405250
mov edi, dword [ebp - 0x14c]
jmp 0x405831
mov edi, dword [ebp - 0x14c]
mov ebx, edx
jmp 0x405831
call fcn.00404bd0
int3