Function at 0x406eb0
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x4387a3
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x44aaf0]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44aaf0]
xor eax, esp
push eax
lea eax, [esp + 0x154]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x20], edi
xor ebx, ebx
mov dword [esp + 0x15c], ebx
mov ebp, dword [esp + 0x164]
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, 1
sub ecx, dword [ebp - 4]
sub eax, esi
or eax, ecx
jge 0x406f29
push esi
lea ecx, [esp + 0x168]
call fcn.004021f0
mov ebp, dword [esp + 0x164]
lea eax, [esi + 1]
push eax
push ebp
call fcn.004237c6
push eax
call fcn.004071e0
add esp, 0xc
cmp esi, ebx
jl 0x407124
cmp esi, dword [ebp - 8]
jg 0x407124
push 0x124
mov dword [ebp - 0xc], esi
lea ecx, [esp + 0x2c]
mov byte [esi + ebp], bl
push ebx
push ecx
mov dword [edi], ebx
mov dword [esp + 0x30], ebx
call fcn.00424d20
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebx
jne 0x406fac
mov dword [esp + 0x15c], eax
lea eax, [ebp - 0x10]
lea edx, [eax + 0xc]
or ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406fa5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4070f0
lea ecx, [esp + 0x24]
push ecx
push esi
mov dword [esp + 0x2c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4070be
call fcn.00412a2b
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x40711a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x18]
push 0x441178
push edx
mov byte [esp + 0x168], 1
call fcn.00405da0
mov esi, dword [esp + 0x20]
mov edi, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
add esp, 0xc
or eax, ecx
jge 0x407030
push edi
lea ecx, [esp + 0x18]
call fcn.004021f0
mov esi, dword [esp + 0x14]
lea eax, [edi + 1]
push eax
push esi
call fcn.004237c6
push eax
call fcn.004071e0
add esp, 0xc
cmp edi, ebx
jl 0x407124
cmp edi, dword [esi - 8]
jg 0x407124
push ebp
mov dword [esi - 0xc], edi
push esi
mov byte [edi + esi], bl
call fcn.00422fef
add esp, 8
cmp eax, ebx
sete al
cmp al, bl
je 0x407080
mov eax, dword [esp + 0x20]
cmp dword [eax], ebx
jne 0x40707b
mov ecx, dword [esp + 0x2c]
mov dword [eax], ecx
add dword [esp + 0x18], 1
lea eax, [esi - 0x10]
mov byte [esp + 0x15c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4070a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ecx
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x406fc7
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10]
mov dword [esp + 0x15c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4070ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x154]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.004225d3
add esp, 0x14c
ret 4
push 0x80004005
call fcn.00401ed0
push 0x80070057
call fcn.00401ed0
int3