Function at 0x8460640
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x84f94e9
mov eax, dword fs:[0]
push eax
sub esp, 0x248
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 eax, dword [ebp + 8]
xor ebx, ebx
add eax, 0xfffffff0
mov dword [ebp - 4], 0
push eax
call fcn.0844a650
add eax, 0x10
add esp, 4
mov dword [ebp - 0x250], eax
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 1
call fcn.0846ec00
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, dword [ebp - 0x250]
mov esi, eax
mov dword [ebp - 0x244], esi
cmp esi, 0xffffffff
je 0x8460860
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x8460860
test edi, edi
setne bl
mov dword [ebp - 0x24c], ebx
jmp 0x84606f0
lea eax, [ebp - 0x218]
mov dword [ebp - 0x248], 0
push eax
lea ecx, [ebp - 0x248]
call fcn.08408480
mov byte [ebp - 4], 2
test ebx, ebx
je 0x8460924
push edi
push dword [ebp - 0x248]
call fcn.0849f192
add esp, 8
test eax, eax
jne 0x8460825
push dword [ebp - 0x234]
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x846081f
call fcn.0840e590
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x8460924
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x240], esi
cmp dword [esi - 4], 1
mov byte [ebp - 4], 3
jle 0x846078d
push dword [esi - 0xc]
lea ecx, [ebp - 0x240]
call fcn.0840e2d0
mov esi, dword [ebp - 0x240]
push 0x104
push esi
push 0
push ebx
call sub.PSAPI.DLL_GetModuleFileNameExW
push dword [esi - 8]
mov dword [ebp - 0x254], eax
push esi
call fcn.0849f12f
add esp, 8
test eax, eax
js 0x846092e
cmp eax, dword [esi - 8]
jg 0x846092e
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 - 0x254], 0
je 0x84607fb
mov eax, dword [ebp + 8]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x8460924
push eax
push esi
call fcn.0849f192
add esp, 8
test eax, eax
jne 0x84608c6
add esi, 0xfffffff0
mov byte [ebp - 4], 2
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x8460819
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x244]
mov ebx, dword [ebp - 0x24c]
mov edx, dword [ebp - 0x248]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x8460849
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 0x84606f0
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [edi - 0x10]
mov byte [ebp - 4], 0
or edi, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x8460887
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x84608a8
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
add esi, 0xfffffff0
mov dword [ebp - 0x240], 1
or ebx, 0xffffffff
mov byte [ebp - 4], 2
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x84608f0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x248]
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 0x8460913
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x244]
mov ebx, dword [ebp - 0x240]
jmp 0x8460860
push 0x80004005
call fcn.0840d910
push 0x80070057
call fcn.0840d910
int3