Function at 0x412870
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430ae0
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x43d100]
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 0x4128ed
lea eax, [ebp - 0x284]
mov dword [ebp - 0x284], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x412908
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 0x412b2d
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 0x412950
sub eax, edx
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00404f40
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041b910
mov edi, eax
push dword [ebp - 0x29c]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.0041b910
mov edx, dword [edi + 0x10]
add esp, 0x10
cmp dword [edi + 0x14], 7
jbe 0x4129a3
mov edi, dword [edi]
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x4129ae
mov eax, dword [eax]
cmp ecx, edx
jne 0x4129c8
push ecx
push edi
push eax
call fcn.00415050
add esp, 0xc
mov byte [ebp - 0x285], 1
test eax, eax
je 0x4129cf
mov byte [ebp - 0x285], 0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x412a09
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4129ff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412b48
push ecx
push edx
call fcn.00425074
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 0x412a5b
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x412a51
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412b48
push ecx
push edx
call fcn.00425074
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 0x412aac
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x412aa2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412b48
push ecx
push edx
call fcn.00425074
add esp, 8
cmp byte [ebp - 0x285], 0
mov edi, dword [ebp - 0x28c]
je 0x412af1
cmp esi, edi
je 0x412ad2
mov eax, dword [ebp - 0x27c]
mov dword [esi], eax
add esi, 4
mov dword [ebp - 0x290], esi
jmp 0x412af1
lea eax, [ebp - 0x27c]
push eax
push esi
lea ecx, [ebp - 0x294]
call fcn.004070e0
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 0x412930
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.00425031
mov esp, ebp
pop ebp
ret
call fcn.004260b0
int3