Function at 0x429470
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534950
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x58dd4c]
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
push ecx
lea ecx, [ebp - 0x18]
mov byte [ebp - 0x245], 0
mov dword [ebp - 0x18], 0
call fcn.00424890
mov dword [ebp - 4], 0
or ebx, 0xffffffff
mov eax, dword [ebp - 0x18]
mov esi, dword [eax - 0xc]
test esi, esi
jne 0x4294d5
mov byte [ebp - 0x245], 0
jmp 0x42963a
jns 0x4294e1
push 0x80070057
call fcn.00425150
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x4294fe
push esi
lea ecx, [ebp - 0x18]
call fcn.004251b0
mov eax, dword [ebp - 0x18]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.00518572
mov eax, dword [ebp - 0x18]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x4294d7
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x18]
push ecx
push 2
mov word [eax + esi*2], cx
mov dword [ebp - 0x244], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x429637
lea eax, [ebp - 0x244]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x429630
lea eax, [ebp - 0x244]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x429630
nop dword [eax]
lea eax, [ebp - 0x220]
mov dword [ebp - 0x14], 0
push eax
lea ecx, [ebp - 0x14]
call fcn.00424890
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
mov esi, dword [eax - 0xc]
test esi, esi
js 0x4294d7
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x4295b5
push esi
lea ecx, [ebp - 0x14]
call fcn.004251b0
mov eax, dword [ebp - 0x14]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.00518572
mov eax, dword [ebp - 0x14]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x4294d7
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov word [eax + esi*2], cx
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x429678
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jl 0x42967b
push ecx
push eax
call fcn.00510bf4
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x429678
mov eax, dword [ebp - 0x14]
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x42967b
lea edx, [eax - 0x10]
mov byte [ebp - 0x245], 1
mov byte [ebp - 4], 0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x429630
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x429656
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0x245]
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.0050e1f3
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x429696
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x244]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x429570
jmp 0x429630