Function at 0x8460220
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x84f9491
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x184002c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], edi
xor ebx, ebx
mov dword [ebp - 4], 1
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x248], esi
cmp esi, 0xffffffff
je 0x8460502
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x8460502
xor eax, eax
test edi, edi
setne al
or ebx, 0xffffffff
mov dword [ebp - 0x264], eax
jmp 0x84602b0
lea eax, [ebp - 0x218]
mov dword [ebp - 0x244], 0
push eax
lea ecx, [ebp - 0x244]
call fcn.08408480
cmp dword [ebp - 0x264], 0
mov byte [ebp - 4], 2
je 0x84605b0
push edi
push dword [ebp - 0x244]
call fcn.0849f192
add esp, 8
test eax, eax
jne 0x84604c8
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0
jne 0x846030a
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], 0
je 0x8460574
push dword [ebp - 0x234]
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
mov dword [ebp - 0x240], ebx
test ebx, ebx
je 0x846056c
mov byte [ebp - 0x24c], 1
mov byte [ebp - 0x250], 1
call fcn.0840e590
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x84605b0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x258], edi
mov byte [ebp - 4], 3
call fcn.0840e590
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x84605b0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x254], esi
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 4
cmp dword [eax - 0xc], 0
je 0x8460405
lea eax, [ebp - 0x260]
mov dword [ebp - 0x260], 0
push eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.08455ad0
add esp, 0xc
test eax, eax
je 0x84603f9
mov eax, dword [ebp + 0xc]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x84605b0
mov edi, dword [ebp - 0x258]
push eax
push edi
call fcn.0849f192
mov ecx, dword [ebp - 0x24c]
xor edx, edx
add esp, 8
movzx ecx, cl
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x24c], ecx
jmp 0x84603ff
mov edi, dword [ebp - 0x258]
mov ebx, dword [ebp - 0x240]
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], 0
je 0x8460462
lea eax, [ebp - 0x254]
push eax
push ebx
call fcn.084563d0
add esp, 8
test eax, eax
je 0x846045c
mov eax, dword [ebp + 0x10]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x84605b0
mov esi, dword [ebp - 0x254]
push eax
push esi
call fcn.0849f192
mov ecx, dword [ebp - 0x250]
xor edx, edx
add esp, 8
movzx ecx, cl
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x250], ecx
jmp 0x8460462
mov esi, dword [ebp - 0x254]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x24c], 0
je 0x846047f
cmp byte [ebp - 0x250], 0
jne 0x84605ba
add esi, 0xfffffff0
mov byte [ebp - 4], 3
or ebx, 0xffffffff
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x846049f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 2
mov ecx, ebx
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x84604bc
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x25c]
mov esi, dword [ebp - 0x248]
mov edx, dword [ebp - 0x244]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x84604eb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x84602b0
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0xc]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x846052a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0x10]
or ecx, 0xffffffff
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x846054e
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0849cd1e
mov esp, ebp
pop ebp
ret
or ebx, 0xffffffff
jmp 0x84604c8
mov edx, dword [ebp - 0x244]
mov ecx, ebx
add edx, 0xfffffff0
mov dword [ebp - 0x240], 1
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x8460635
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x240]
jmp 0x8460502
push 0x80004005
call fcn.0840d910
add esi, 0xfffffff0
mov dword [ebp - 0x240], 1
or ebx, 0xffffffff
mov byte [ebp - 4], 3
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x84605e4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 2
mov ecx, ebx
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x8460601
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x244]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x8460624
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x248]
mov ebx, dword [ebp - 0x240]
jmp 0x8460502
mov ebx, 1
jmp 0x8460502