Function at 0x442610
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5235bc
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x595cb8]
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.0040f350
mov ecx, eax
test ecx, ecx
jne 0x442653
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x244], esi
mov dword [ebp - 4], 0
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x44267d
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x258], eax
lea ecx, [eax + 0x10]
mov dword [ebp - 0x25c], ecx
mov byte [ebp - 4], 1
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x4426aa
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x254], eax
lea ecx, [eax + 0x10]
mov dword [ebp - 0x260], ecx
mov byte [ebp - 4], 2
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x4426d7
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x250], eax
lea ecx, [eax + 0x10]
mov dword [ebp - 0x264], ecx
xor ebx, ebx
mov byte [ebp - 4], 3
mov dword [ebp - 0x24c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 2
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x248], eax
cmp eax, 0xffffffff
jne 0x44271b
xor ebx, ebx
jmp 0x4428cc
push 0x22c
lea eax, [ebp - 0x23c]
push 0
push eax
call fcn.004f9110
add esp, 0xc
mov dword [ebp - 0x23c], 0x22c
nop dword [eax + eax]
lea eax, [ebp - 0x23c]
xor edi, edi
push eax
push dword [ebp - 0x248]
mov dword [ebp - 0x240], edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4428b5
cmp ebx, dword [ebp - 0x234]
jne 0x442891
lea eax, [ebp - 0x218]
mov dword [ebp - 0x24c], ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x442780
sub eax, edx
lea ecx, [ebp - 0x244]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0041fd40
mov esi, dword [ebp - 0x244]
mov edi, dword [esi - 0xc]
test edi, edi
js 0x442963
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x4427d6
push edi
lea ecx, [ebp - 0x244]
call fcn.0041fb70
mov esi, dword [ebp - 0x244]
lea eax, [edi + 1]
push eax
push esi
call fcn.005032cf
add esp, 8
cmp edi, dword [esi - 8]
jg 0x442963
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
cmp dword [esi - 0xc], eax
jl 0x442815
push str.explorer.exe
push esi
call fcn.004f8554
add esp, 8
test eax, eax
je 0x442815
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x44288b
cmp dword [esi - 0xc], 0
jl 0x442878
push str.winlogon.exe
push esi
call fcn.004f8554
add esp, 8
test eax, eax
je 0x442836
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x44288b
cmp dword [esi - 0xc], 0
jl 0x442878
push str.system
push esi
call fcn.004f8554
add esp, 8
test eax, eax
je 0x442857
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x44288b
cmp dword [esi - 0xc], 0
jl 0x442878
push str.svchost.exe
push esi
call fcn.004f8554
add esp, 8
test eax, eax
je 0x442878
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x44288b
mov ebx, dword [ebp - 0x224]
mov edi, 1
mov dword [ebp - 0x240], edi
jmp 0x442891
mov edi, dword [ebp - 0x240]
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x248]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x442763
cmp edi, 1
je 0x442740
mov eax, dword [ebp - 0x248]
test eax, eax
je 0x4428c6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x24c]
mov edx, dword [ebp - 0x250]
or edi, 0xffffffff
mov byte [ebp - 4], 2
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4428ed
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x254]
mov eax, edi
mov byte [ebp - 4], 1
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x44290b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x258]
mov eax, edi
mov byte [ebp - 4], 0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x442929
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x442945
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.004f4566
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0041f2a0
int3