Function at 0x5f068c
Capabilities:
Enumerate processes

Disassembly:
push 0x464
mov eax, 0x655597
call fcn.006096cc
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x46c], ebx
mov dword [ebp - 0x470], ebx
mov dword [ebp - 0x45c], esi
mov dword [ebp - 0x458], esi
mov dword [ebp - 0x454], esi
mov edi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x468], esi
mov dword [ebp - 0x464], esi
mov dword [ebp - 0x460], edi
push esi
push 2
mov byte [ebp - 4], 1
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x44c], eax
cmp eax, 0xffffffff
jne 0x5f06f9
mov dword [ebx], esi
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
jmp 0x5f0916
push 0x228
lea eax, [ebp - 0x440]
push esi
push eax
call fcn.0060a8e0
add esp, 0xc
mov dword [ebp - 0x444], 0x22c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x208
mov dword [ebp - 0x448], eax
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.0060a8e0
add esp, 0xc
lea eax, [ebp - 0x444]
push eax
push dword [ebp - 0x44c]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x5f08de
mov ebx, dword [ebp - 0x464]
mov eax, dword [ebp - 0x448]
cmp dword [ebp - 0x43c], eax
jne 0x5f07d0
push eax
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x450], eax
test eax, eax
je 0x5f0874
push 0x68d90c
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0060e2d8
add esp, 0xc
mov dword [ebp - 0x46c], 0x104
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push dword [ebp - 0x450]
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
test eax, eax
jne 0x5f07ef
push dword [ebp - 0x450]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x444]
push eax
push dword [ebp - 0x44c]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x5f0759
jmp 0x5f087b
mov eax, dword [ebp - 0x458]
cmp eax, dword [ebp - 0x454]
je 0x5f0811
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x45c]
call fcn.005ee3f8
jmp 0x5f0824
lea ecx, [ebp - 0x218]
push ecx
push eax
lea ecx, [ebp - 0x45c]
call fcn.005ee5b2
cmp ebx, edi
je 0x5f083b
mov eax, dword [ebp - 0x448]
mov dword [ebx], eax
add ebx, 4
mov dword [ebp - 0x464], ebx
jmp 0x5f085a
lea eax, [ebp - 0x448]
push eax
push ebx
lea ecx, [ebp - 0x468]
call fcn.005ee422
mov edi, dword [ebp - 0x460]
mov ebx, dword [ebp - 0x464]
mov eax, dword [ebp - 0x42c]
push dword [ebp - 0x450]
mov dword [ebp - 0x448], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x5f087b
or dword [ebp - 0x448], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x5f08d2
cmp dword [ebp - 0x448], 0xffffffff
je 0x5f08d2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp - 0x448]
cmp ecx, eax
je 0x5f08d2
mov eax, dword [ebp - 0x468]
cmp eax, ebx
je 0x5f08b8
cmp dword [eax], ecx
je 0x5f08b4
add eax, 4
cmp eax, ebx
jne 0x5f08a9
cmp eax, ebx
jne 0x5f08d2
lea eax, [ebp - 0x444]
push eax
push dword [ebp - 0x44c]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x5f0759
mov esi, dword [ebp - 0x45c]
mov ebx, dword [ebp - 0x470]
push dword [ebp - 0x44c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x458]
mov ecx, dword [ebp - 0x454]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x468]
mov dword [ebx], esi
mov dword [ebx + 8], ecx
test eax, eax
je 0x5f0916
sub edi, eax
and edi, 0xfffffffc
push edi
push eax
call fcn.0042f9f0
pop ecx
pop ecx
mov eax, ebx
call fcn.0060968a
ret