Function at 0x412a10
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433050
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x440100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push 0
mov dword [ebp - 0x29c], esi
push 2
mov dword [ebp - 0x2a0], esi
mov dword [ebp - 0x29c], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x298], edi
cmp edi, 0xffffffff
je 0x412a8d
lea eax, [ebp - 0x284]
mov dword [ebp - 0x284], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x412aa8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov eax, esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
jmp 0x412ccd
xor esi, esi
mov dword [ebp - 0x294], 0
xor edi, edi
mov dword [ebp - 0x290], esi
mov dword [ebp - 0x28c], edi
mov dword [ebp - 4], edi
nop word [eax + eax]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x260]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412af0
sub eax, edx
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00404fc0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041bbf0
mov edi, eax
push dword [ebp - 0x29c]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.0041bbf0
mov edx, dword [edi + 0x10]
add esp, 0x10
cmp dword [edi + 0x14], 7
jbe 0x412b43
mov edi, dword [edi]
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x412b4e
mov eax, dword [eax]
cmp ecx, edx
jne 0x412b68
push ecx
push edi
push eax
call fcn.004151e0
add esp, 0xc
mov byte [ebp - 0x285], 1
test eax, eax
je 0x412b6f
mov byte [ebp - 0x285], 0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x412ba9
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x412b9f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412ce8
push ecx
push edx
call fcn.0042755b
add esp, 8
mov ecx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 1
cmp ecx, 7
jbe 0x412bfb
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x412bf1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412ce8
push ecx
push edx
call fcn.0042755b
add esp, 8
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov byte [ebp - 4], al
cmp ecx, 7
jbe 0x412c4c
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x412c42
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412ce8
push ecx
push edx
call fcn.0042755b
add esp, 8
cmp byte [ebp - 0x285], 0
mov edi, dword [ebp - 0x28c]
je 0x412c91
cmp esi, edi
je 0x412c72
mov eax, dword [ebp - 0x27c]
mov dword [esi], eax
add esi, 4
mov dword [ebp - 0x290], esi
jmp 0x412c91
lea eax, [ebp - 0x27c]
push eax
push esi
lea ecx, [ebp - 0x294]
call fcn.00407150
mov esi, dword [ebp - 0x290]
mov edi, dword [ebp - 0x28c]
lea eax, [ebp - 0x284]
push eax
push dword [ebp - 0x298]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x412ad0
push dword [ebp - 0x298]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2a0]
mov eax, dword [ebp - 0x294]
mov dword [ecx], eax
mov eax, ecx
mov dword [ecx + 4], esi
mov dword [ecx + 8], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00427518
mov esp, ebp
pop ebp
ret
call fcn.00428610
int3