Function at 0x412260
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ac70
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x448100]
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 0x4122dd
lea eax, [ebp - 0x284]
mov dword [ebp - 0x284], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x4122f8
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 0x41252a
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 0x412340
sub eax, edx
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00405e10
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041b7c0
mov edi, eax
push dword [ebp - 0x29c]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.0041b7c0
mov edx, dword [edi + 0x10]
add esp, 0x10
cmp dword [edi + 0x14], 7
jbe 0x412393
mov edi, dword [edi]
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x41239e
mov eax, dword [eax]
cmp ecx, edx
je 0x4123ab
mov byte [ebp - 0x285], 0
jmp 0x4123cc
test ecx, ecx
jne 0x4123b8
mov byte [ebp - 0x285], 1
jmp 0x4123cc
push ecx
push edi
push eax
call fcn.00414a50
add esp, 0xc
test eax, eax
sete byte [ebp - 0x285]
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x412406
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4123fc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412545
push ecx
push edx
call fcn.00428607
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 0x412458
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41244e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412545
push ecx
push edx
call fcn.00428607
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 0x4124a9
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41249f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412545
push ecx
push edx
call fcn.00428607
add esp, 8
cmp byte [ebp - 0x285], 0
mov edi, dword [ebp - 0x28c]
je 0x4124ee
cmp esi, edi
je 0x4124cf
mov eax, dword [ebp - 0x27c]
mov dword [esi], eax
add esi, 4
mov dword [ebp - 0x290], esi
jmp 0x4124ee
lea eax, [ebp - 0x27c]
push eax
push esi
lea ecx, [ebp - 0x294]
call fcn.00406d90
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 0x412320
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.004284af
mov esp, ebp
pop ebp
ret
call fcn.004297c0
int3