Function at 0x4e8960
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x5c0290]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
add eax, 0xfffffff0
xor edi, edi
push eax
call fcn.004c2870
add esp, 4
lea ecx, [ebp - 0x23c]
add eax, 0x10
mov dword [ebp - 0x23c], eax
call fcn.00513a90
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov dword [ebp - 0x238], ebx
cmp ebx, 0xffffffff
je 0x4e8b2d
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4e8b2d
jmp 0x4e89e0
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x234], 0
push eax
lea ecx, [ebp - 0x234]
call fcn.004672d0
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x4e8bd4
mov edi, dword [ebp - 0x234]
push eax
push edi
call fcn.0053ef62
add esp, 8
test eax, eax
jne 0x4e8afc
push dword [ebp - 0x228]
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x4e8af6
call fcn.00468bd0
test eax, eax
je 0x4e8bd4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
cmp dword [eax + 0xc], 1
lea esi, [eax + 0x10]
mov dword [ebp - 0x234], esi
jle 0x4e8a75
push dword [esi - 0xc]
lea ecx, [ebp - 0x234]
call fcn.00468ae0
mov esi, dword [ebp - 0x234]
push 0x104
push esi
push 0
push ebx
call sub.PSAPI.DLL_GetModuleFileNameExW
push dword [esi - 8]
mov dword [ebp - 0x234], eax
push esi
call fcn.0053eeff
add esp, 8
test eax, eax
js 0x4e8bde
cmp eax, dword [esi - 8]
jg 0x4e8bde
xor ecx, ecx
mov dword [esi - 0xc], eax
push ebx
mov word [esi + eax*2], cx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x234], 0
je 0x4e8adc
mov eax, dword [ebp + 8]
test eax, eax
je 0x4e8bd4
push eax
push esi
call fcn.0053ef62
add esp, 8
test eax, eax
jne 0x4e8b84
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4e8af6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x238]
add edi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4e8b16
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4e89e0
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x23c]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4e8b54
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 8]
or ecx, 0xffffffff
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4e8b71
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret
add esi, 0xfffffff0
mov dword [ebp - 0x234], 1
or ebx, 0xffffffff
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4e8baa
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov ecx, ebx
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4e8bc3
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x238]
mov edi, dword [ebp - 0x234]
jmp 0x4e8b2d
push 0x80004005
call fcn.00468960
push 0x80070057
call fcn.00468960
int3