Function at 0x494760
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51064c
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x572bb0]
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
call fcn.00460220
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4947aa
push 0x80004005
call fcn.004712d0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x240], esi
mov dword [ebp - 4], 0
call fcn.00460220
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4947dd
push 0x80004005
call fcn.004712d0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
mov dword [ebp - 0x258], eax
add eax, 0x10
mov dword [ebp - 0x25c], eax
mov byte [ebp - 4], 1
call fcn.00460220
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x494813
push 0x80004005
call fcn.004712d0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x264], edi
mov byte [ebp - 4], 2
call fcn.00460220
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x494843
push 0x80004005
call fcn.004712d0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x260], ebx
xor eax, eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x248], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 2
mov dword [ebp - 0x254], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x244], eax
cmp eax, 0xffffffff
jne 0x49488f
mov dword [ebp - 0x248], 0
jmp 0x494a51
push 0x22c
lea eax, [ebp - 0x23c]
push 0
push eax
call fcn.004ef3a0
add esp, 0xc
mov dword [ebp - 0x23c], 0x22c
nop
xor eax, eax
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x244]
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x494a40
mov eax, dword [ebp - 0x254]
cmp eax, dword [ebp - 0x234]
jne 0x494a18
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4948f4
sub eax, edx
lea ecx, [ebp - 0x240]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004725a0
mov esi, dword [ebp - 0x240]
mov edx, dword [esi - 0xc]
mov dword [ebp - 0x250], edx
test edx, edx
js 0x494aee
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x494956
push edx
lea ecx, [ebp - 0x240]
call fcn.00471f40
mov esi, dword [ebp - 0x240]
mov edx, dword [ebp - 0x250]
lea eax, [edx + 1]
push eax
push esi
call fcn.004ed77e
mov eax, dword [ebp - 0x250]
add esp, 8
cmp eax, dword [esi - 8]
jg 0x494aee
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [esi - 0xc], ecx
jl 0x49499f
push str.explorer.exe
push esi
call fcn.004eaf4e
add esp, 8
test eax, eax
je 0x49499f
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x494a18
cmp dword [esi - 0xc], 0
jl 0x494a02
push str.winlogon.exe
push esi
call fcn.004eaf4e
add esp, 8
test eax, eax
je 0x4949c0
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x494a18
cmp dword [esi - 0xc], 0
jl 0x494a02
push str.system
push esi
call fcn.004eaf4e
add esp, 8
test eax, eax
je 0x4949e1
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x494a18
cmp dword [esi - 0xc], 0
jl 0x494a02
push str.svchost.exe
push esi
call fcn.004eaf4e
add esp, 8
test eax, eax
je 0x494a02
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x494a18
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x24c], 1
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x244]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4948d3
cmp dword [ebp - 0x24c], 1
je 0x4948b0
mov eax, dword [ebp - 0x244]
test eax, eax
je 0x494a51
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebx - 0x10]
mov byte [ebp - 4], 2
or ebx, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x494a71
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 1
mov ecx, ebx
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x494a8e
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x258]
mov ecx, ebx
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x494aae
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x494acc
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x248]
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.004e94b7
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004712d0
int3