Function at 0x4016d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4103ad
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x418008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.NtQueryInformationProcess
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
mov esi, eax
lea eax, [ebp - 0x29c]
push 0x18
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
xor edi, edi
mov dword [ebp - 0x40], 0
test eax, eax
mov dword [ebp - 0x30], 0
push 0xc
cmovns edi, dword [ebp - 0x288]
lea ecx, [ebp - 0x40]
xor eax, eax
mov dword [ebp - 0x2c], 7
push str.services.exe
mov word [ebp - 0x40], ax
call fcn.00402f00
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x40]
test edi, edi
je 0x401963
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
push eax
push 2
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
test esi, esi
je 0x401826
push 0x228
lea eax, [ebp - 0x280]
push 0
push eax
call fcn.00404840
add esp, 0xc
mov dword [ebp - 0x284], 0x22c
lea eax, [ebp - 0x284]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40181f
lea eax, [ebp - 0x284]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp dword [ebp - 0x27c], edi
je 0x4017f3
test eax, eax
jne 0x4017d7
jmp 0x40181f
lea ecx, [ebp - 0x260]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401800
sub ecx, edx
lea eax, [ebp - 0x260]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.00402f00
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [ebp - 0x58]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [ebp - 0x48]
movq qword [ebp - 0x18], xmm0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
mov edi, dword [ebp - 0x28]
lea edx, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
cmovae eax, edi
cmovae esi, edi
cmovae edx, edi
lea eax, [eax + ecx*2]
mov dword [ebp - 0x2a8], eax
cmp esi, eax
je 0x401891
sub edx, esi
mov edi, edx
nop dword [eax]
movzx eax, word [esi]
push eax
call fcn.00406420
mov word [edi + esi], ax
add esp, 4
add esi, 2
cmp esi, dword [ebp - 0x2a8]
jne 0x401870
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov esi, dword [ebp - 0x40]
lea edx, [ebp - 0x28]
cmovae eax, esi
cmp dword [ebp - 0x14], 8
cmovae edx, edi
mov dword [ebp - 0x2a4], edx
cmp ecx, dword [ebp - 0x30]
jne 0x4018eb
test ecx, ecx
je 0x40191d
movzx edx, word [edx]
movzx esi, word [eax]
cmp dx, si
jb 0x4018e8
sub dword [ebp - 0x2a4], eax
cmp dx, si
ja 0x4018e8
cmp ecx, 1
je 0x40191a
mov edx, dword [ebp - 0x2a4]
add eax, 2
dec ecx
movzx edx, word [eax + edx]
movzx esi, word [eax]
cmp dx, si
jae 0x4018cb
mov esi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x401963
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x401959
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4019be
jmp 0x401959
mov esi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x401950
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x401946
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4019be
push ecx
push edi
call fcn.004036ce
add esp, 8
mov byte [ebp - 0x29d], 1
jmp 0x40196a
push ecx
push edi
call fcn.004036ce
add esp, 8
mov byte [ebp - 0x29d], 0
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x40199d
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x401993
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4019c3
push ecx
push esi
call fcn.004036ce
add esp, 8
mov al, byte [ebp - 0x29d]
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.0040343f
mov esp, ebp
pop ebp
ret
call fcn.004067ef
call fcn.004067ef
int3