Function at 0x404240
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cae0b
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x667d00]
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 0x40428a
xor eax, eax
jmp 0x404583
push 0x228
lea eax, [ebp - 0x268]
push 0
push eax
call fcn.005a26c0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x274], eax
cmp eax, 0xffffffff
je 0x404283
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x26c], 0x22c
push ecx
push eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x404573
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 0x404312
sub eax, edx
lea ecx, [ebp - 0x40]
sar eax, 1
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.004032c0
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404336
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.004032c0
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 0x404398
movups xmm0, xmmword [ecx]
movups xmmword [edi], xmm0
mov dword [edi + 0x14], 7
jmp 0x4043d8
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.004039d0
mov ecx, dword [ebp - 0x18]
mov dword [edi], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x270]
push eax
call fcn.005a1bc0
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 0x404427
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], 7
jmp 0x404477
mov esi, edx
mov eax, bind
or esi, 7
cmp esi, 0x7ffffffe
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.004039d0
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.005a1bc0
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.00405c30
add esp, 0x30
test al, al
jne 0x40452e
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4044cb
mov ecx, dword [ebp - 0x27c]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4044c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40459e
push edx
push ecx
call fcn.0059ce4e
add esp, 8
mov dword [ebp - 4], 0xffffffff
cmp esi, 8
jb 0x404506
lea ecx, [esi*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x4044fc
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40459e
push ecx
push edi
call fcn.0059ce4e
add esp, 8
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x274]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x404527
mov esi, dword [ebp - 0x280]
jmp 0x4042e0
mov esi, 1
jmp 0x404575
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.00403060
lea ecx, [ebp - 0x40]
call fcn.00403060
jmp 0x404581
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.0059d38a
mov esp, ebp
pop ebp
ret
call fcn.005a5c79
int3