Function at 0x100058c7
Capabilities:
Enumerate processes

Disassembly:
push 0x198
mov eax, 0x10177c4d
call fcn.101584ae
xor ebx, ebx
or esi, 0xffffffff
push ebx
push 2
mov dword [ebp - 4], ebx
mov dword [ebp - 0x198], ebx
mov dword [ebp - 0x190], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, esi
je 0x10005b1d
lea eax, [ebp - 0x18c]
mov dword [ebp - 0x18c], 0x128
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
jmp 0x10005b0c
mov dword [ebp - 0x14], ebx
call fcn.100106e3
push eax
lea ecx, [ebp - 0x14]
call fcn.1000469d
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], ebx
call fcn.100106e3
push eax
lea ecx, [ebp - 0x1c]
call fcn.1000469d
mov byte [ebp - 4], 2
push dword [ebp - 0x184]
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x194], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x24], 0x103
jne 0x10005ad9
lea eax, [ebp - 0x168]
push eax
call fcn.10004633
pop ecx
push eax
lea eax, [ebp - 0x168]
push eax
lea ecx, [ebp - 0x14]
call fcn.10004820
lea ecx, [ebp - 0x14]
call fcn.10005f8d
lea ecx, [ebp + 8]
call fcn.10005f8d
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.10004544
test eax, eax
jne 0x10005ad9
push dword [ebp - 0x184]
call fcn.10005e8c
test eax, eax
je 0x10005ad9
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x194]
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x10005ad9
mov dword [ebp - 0x18], ebx
call fcn.100106e3
push eax
lea ecx, [ebp - 0x18]
call fcn.1000469d
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x10005ace
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
lea ecx, [ebp - 0x3c]
call fcn.10006e5b
push ecx
mov ecx, esp
mov dword [ebp - 0x1a0], eax
push str.Y_m_d_H:i:s
lea esi, [ebp - 0x3c]
call fcn.100043dd
mov edx, esi
lea ecx, [ebp - 0x19c]
call fcn.10008972
pop ecx
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.1000464d
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x19c]
lea ecx, [ecx - 0x10]
call fcn.10003b51
xor ecx, ecx
call fcn.10006e5b
push ecx
mov ecx, esp
mov dword [ebp - 0x20], ebx
push str.Y_m_d_H:i:s
mov esi, eax
call fcn.100043dd
mov edx, ebx
lea ecx, [ebp - 0x20]
call fcn.10008972
mov eax, dword [ebp - 0x1a0]
sub esi, eax
pop ecx
cmp esi, dword [ebp + 0xc]
jge 0x10005abd
cmp eax, dword [ebp - 0x198]
jbe 0x10005abd
mov esi, dword [ebp - 0x184]
mov dword [ebp - 0x198], eax
mov dword [ebp - 0x190], esi
jmp 0x10005ac3
mov esi, dword [ebp - 0x190]
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.10003b51
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.10003b51
push dword [ebp - 0x194]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.10003b51
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.10003b51
lea eax, [ebp - 0x18c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1000591a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.10003b51
mov eax, ebx
call fcn.1015845d
ret 8