Function at 0x406e60
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x438293
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x449af0]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x449af0]
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 0x406ed9
push esi
lea ecx, [esp + 0x168]
call fcn.004021f0
mov ebp, dword [esp + 0x164]
lea eax, [esi + 1]
push eax
push ebp
call fcn.004232e6
push eax
call fcn.00407190
add esp, 0xc
cmp esi, ebx
jl 0x4070d4
cmp esi, dword [ebp - 8]
jg 0x4070d4
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.00424840
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 0x406f5c
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 0x406f55
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4070a0
lea ecx, [esp + 0x24]
push ecx
push esi
mov dword [esp + 0x2c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40706e
call fcn.0041259b
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x4070ca
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 0x43f79c
push edx
mov byte [esp + 0x168], 1
call fcn.00405d50
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 0x406fe0
push edi
lea ecx, [esp + 0x18]
call fcn.004021f0
mov esi, dword [esp + 0x14]
lea eax, [edi + 1]
push eax
push esi
call fcn.004232e6
push eax
call fcn.00407190
add esp, 0xc
cmp edi, ebx
jl 0x4070d4
cmp edi, dword [esi - 8]
jg 0x4070d4
push ebp
mov dword [esi - 0xc], edi
push esi
mov byte [edi + esi], bl
call fcn.00422b0f
add esp, 8
cmp eax, ebx
sete al
cmp al, bl
je 0x407030
mov eax, dword [esp + 0x20]
cmp dword [eax], ebx
jne 0x40702b
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 0x407053
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 0x406f77
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 0x40709c
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.004220fe
add esp, 0x14c
ret 4
push 0x80004005
call fcn.00401ed0
push 0x80070057
call fcn.00401ed0
int3