Function at 0x4041c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ca97b
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x667ce0]
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 + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x280], esi
test esi, esi
jne 0x40420a
xor eax, eax
jmp 0x404503
push 0x228
lea eax, [ebp - 0x268]
push 0
push eax
call fcn.005a2240
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x274], eax
cmp eax, 0xffffffff
je 0x404203
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x26c], 0x22c
push ecx
push eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4044f3
nop dword [eax]
nop word [eax + eax]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404292
sub eax, edx
lea ecx, [ebp - 0x40]
sar eax, 1
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00403240
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4042b6
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00403240
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
sub esp, 0x18
mov dword [ebp - 0x27c], eax
cmp dword [ebp - 0x14], 8
mov edi, esp
mov dword [ebp - 0x288], esp
cmovae ecx, eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x270], ecx
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
cmp eax, 8
jae 0x404318
movups xmm0, xmmword [ecx]
movups xmmword [edi], xmm0
mov dword [edi + 0x14], 7
jmp 0x404358
mov esi, eax
mov ecx, edi
or esi, 7
mov eax, bind
cmp esi, 0x7ffffffe
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.00403950
mov ecx, dword [ebp - 0x18]
mov dword [edi], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x270]
push eax
call fcn.005a1740
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], eax
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x40]
mov edi, dword [ebp - 0x40]
sub esp, 0x18
mov edx, dword [ebp - 0x30]
mov ecx, esp
cmp esi, 8
mov byte [ebp - 4], 2
mov dword [ebp - 0x270], ecx
cmovae eax, edi
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ebp - 0x278], eax
cmp edx, 8
jae 0x4043a7
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], 7
jmp 0x4043f7
mov esi, edx
mov eax, bind
or esi, 7
cmp esi, 0x7ffffffe
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.00403950
mov ecx, dword [ebp - 0x270]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x278]
push eax
call fcn.005a1740
mov eax, dword [ebp - 0x270]
add esp, 0xc
mov ecx, dword [ebp - 0x30]
mov dword [eax + 0x14], esi
mov esi, dword [ebp - 0x2c]
mov dword [eax + 0x10], ecx
mov byte [ebp - 4], 1
call fcn.00405bb0
add esp, 0x30
test al, al
jne 0x4044ae
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40444b
mov ecx, dword [ebp - 0x27c]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404441
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40451e
push edx
push ecx
call fcn.0059c9cd
add esp, 8
mov dword [ebp - 4], 0xffffffff
cmp esi, 8
jb 0x404486
lea ecx, [esi*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x40447c
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40451e
push ecx
push edi
call fcn.0059c9cd
add esp, 8
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x274]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x4044a7
mov esi, dword [ebp - 0x280]
jmp 0x404260
mov esi, 1
jmp 0x4044f5
push dword [ebp - 0x264]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp - 0x284]
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push dword [ebp - 0x274]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x28]
call fcn.00402fe0
lea ecx, [ebp - 0x40]
call fcn.00402fe0
jmp 0x404501
xor esi, esi
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
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.0059cf09
mov esp, ebp
pop ebp
ret
call fcn.005a57f9
int3