Function at 0x42f348
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
mov eax, 0x58b5c4
push ebx
push esi
push edi
call fcn.0057b678
mov dword [ebp - 0x28], 1
mov word [ebp - 0x34], 0xc
mov word [ebp - 0x34], 0x18
lea edx, [ebp - 0x4c]
push edx
call fcn.00426194
pop ecx
lea ecx, [ebp - 0x4c]
push ecx
lea eax, [ebp - 0x18]
push eax
call fcn.004261bc
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
add esp, 8
inc dword [ebp - 0x28]
mov word [ebp - 0x34], 0xc
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x42f46f
mov word [ebp - 0x34], 0x24
lea eax, [ebp - 0x20]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.0042f744
add esp, 8
mov eax, dword [ebp + 8]
mov word [ebp - 0x34], 0x30
push eax
dec dword [ebp - 0x28]
cmp dword [ebp - 0x10], 0
je 0x42f402
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x50], edx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x5c], ecx
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x58], ecx
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.00566060
pop ecx
xor eax, eax
xor edx, edx
mov dword [ebp - 0x10], eax
xor edi, edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edi
dec dword [ebp - 0x28]
cmp dword [ebp + 0x34], 0x10
jb 0x42f42a
mov esi, dword [ebp + 0x20]
mov dword [ebp - 0x68], esi
mov eax, dword [ebp - 0x68]
push eax
call fcn.00566060
pop ecx
mov edx, 0xf
mov dword [ebp + 0x34], edx
mov byte [ebp - 0x69], 0
cmp dword [ebp + 0x34], 0x10
jb 0x42f441
mov ecx, dword [ebp + 0x20]
jmp 0x42f444
lea ecx, [ebp + 0x20]
xor eax, eax
mov dword [ebp + 0x30], eax
add ecx, eax
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x70]
mov cl, byte [ebp - 0x69]
mov byte [edx], cl
pop eax
mov word [ebp - 0x34], 0x24
inc dword [ebp - 0x28]
mov edx, dword [ebp - 0x44]
mov dword fs:[0], edx
jmp 0x42f73d
push esi
mov esi, 0x58ace4
lea edi, [ebp - 0x1d8]
mov ecx, 0x4a
rep movsd dword es:[edi], dword [esi]
pop esi
mov word [ebp - 0x34], 0xc
lea eax, [ebp - 0x1d8]
push eax
push esi
call sub.KERNEL32.DLL_Process32First
mov word [ebp - 0x34], 0xc
test eax, eax
je 0x42f660
cmp dword [ebp + 0x34], 0x10
jb 0x42f4af
mov ebx, dword [ebp + 0x20]
jmp 0x42f4b2
lea ebx, [ebp + 0x20]
lea eax, [ebp - 0x1b4]
mov edx, ebx
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x42f64b
test cl, cl
je 0x42f4de
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x42f64b
add eax, 2
add edx, 2
test cl, cl
jne 0x42f4ba
jne 0x42f64b
cmp dword [ebp - 0x10], 0
jne 0x42f4ee
xor edi, edi
jmp 0x42f4fe
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 0x10]
test edi, edi
jns 0x42f4fb
add edi, 3
sar edi, 2
cmp dword [ebp - 0x10], 0
jne 0x42f508
xor eax, eax
jmp 0x42f518
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
test eax, eax
jns 0x42f515
add eax, 3
sar eax, 2
cmp edi, eax
jae 0x42f548
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x78], edx
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x74], edx
lea ecx, [ebp - 0x1d0]
push ecx
push 1
push ebx
call fcn.0042a4ac
add esp, 0xc
add ebx, 4
mov dword [ebp - 0xc], ebx
jmp 0x42f64b
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x1e0], ebx
cmp dword [ebp - 0x10], 0
jne 0x42f55b
xor eax, eax
jmp 0x42f56b
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x10]
test eax, eax
jns 0x42f568
add eax, 3
sar eax, 2
test eax, eax
jne 0x42f573
xor edx, edx
jmp 0x42f592
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x1f0], edi
mov edx, dword [ebp - 0x1e0]
sub edx, dword [ebp - 0x1f0]
test edx, edx
jns 0x42f58f
add edx, 3
sar edx, 2
mov dword [ebp - 0x84], edx
lea eax, [ebp - 0x1d0]
mov word [ebp - 0x34], 0xc
push eax
push 1
add esp, 0xfffffff0
mov ecx, dword [ebp - 0x1e8]
lea eax, [ebp - 0x20]
mov dword [esp], ecx
mov ecx, dword [ebp - 0x1e4]
mov dword [esp + 4], ecx
mov edi, dword [ebp - 0x1e0]
mov dword [esp + 8], edi
push eax
call fcn.0042a4cc
add esp, 0x1c
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x88], edx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x8c], ecx
mov edi, dword [ebp - 0x8c]
mov dword [ebp - 0x200], edi
mov eax, dword [ebp - 0x208]
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x204]
mov dword [ebp - 0x214], eax
mov edx, dword [ebp - 0x200]
mov dword [ebp - 0x210], edx
mov ecx, dword [ebp - 0x88]
shl ecx, 2
add dword [ebp - 0x210], ecx
mov edi, dword [ebp - 0x218]
mov dword [ebp - 0x228], edi
mov edi, dword [ebp - 0x214]
mov dword [ebp - 0x224], edi
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x220], eax
lea edx, [ebp - 0x1d8]
push edx
push esi
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x42f4a4
push esi
call sub.KERNEL32.DLL_CloseHandle
mov word [ebp - 0x34], 0x6c
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042f744
add esp, 8
mov eax, dword [ebp + 8]
mov word [ebp - 0x34], 0x78
push eax
dec dword [ebp - 0x28]
cmp dword [ebp - 0x10], 0
je 0x42f6c3
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x90], edx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x94], ecx
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x98], eax
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.00566060
pop ecx
xor edx, edx
xor edi, edi
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], eax
dec dword [ebp - 0x28]
cmp dword [ebp + 0x34], 0x10
jb 0x42f6f1
mov esi, dword [ebp + 0x20]
mov dword [ebp - 0xa8], esi
mov edx, dword [ebp - 0xa8]
push edx
call fcn.00566060
pop ecx
mov ecx, 0xf
mov dword [ebp + 0x34], ecx
mov byte [ebp - 0xa9], 0
cmp dword [ebp + 0x34], 0x10
jb 0x42f70b
mov eax, dword [ebp + 0x20]
jmp 0x42f70e
lea eax, [ebp + 0x20]
xor edx, edx
mov dword [ebp + 0x30], edx
add eax, edx
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb0]
mov cl, byte [ebp - 0xa9]
mov byte [eax], cl
pop eax
mov word [ebp - 0x34], 0x6c
inc dword [ebp - 0x28]
mov edx, dword [ebp - 0x44]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret