Function at 0x402ef0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x408d6d
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [section..data]
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, ecx
mov dword [ebp - 0x260], esi
mov dword [ebp - 0x25c], esi
xorps xmm0, xmm0
mov dword [ebp - 0x25c], esi
xor eax, eax
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push eax
push 2
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x268], eax
cmp eax, 0xffffffff
jne 0x402fca
xorps xmm0, xmm0
mov ecx, esi
push 0
movups xmmword [esi], xmm0
push 0x40a4f4
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00406320
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4031d4
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402fbb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402fbb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00407bfd
add esp, 8
jmp 0x4031d4
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x254], 0x22c
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4031a3
nop word [eax + eax]
lea edx, [ebp - 0x230]
lea ecx, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x403000
mov edi, dword [ebp - 0x18]
sub edx, ecx
sar edx, 1
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 7
mov dword [ebp - 0x258], edx
cmova ecx, dword [ebp - 0x28]
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 0x264], edi
cmp edx, edi
ja 0x4030ea
mov eax, edi
sub eax, edx
test edx, edx
je 0x403182
inc eax
lea esi, [ecx + eax*2]
mov eax, ecx
mov dword [ebp - 0x270], esi
nop
mov ecx, esi
mov esi, 0
sub ecx, eax
sar ecx, 1
je 0x403080
mov di, word [ebp - 0x230]
cmp word [eax], di
je 0x40307e
nop dword [eax]
cmp ecx, 1
je 0x403080
add eax, 2
dec ecx
cmp word [eax], di
jne 0x403070
mov esi, eax
mov eax, esi
test eax, eax
je 0x4030e4
lea esi, [ebp - 0x230]
mov edi, edx
test edx, edx
je 0x4030d3
mov ecx, eax
mov edx, esi
sub ecx, edx
mov dword [ebp - 0x26c], ecx
nop
movzx edx, word [esi + ecx]
movzx ecx, word [esi]
cmp dx, cx
jne 0x4030bc
add esi, 2
sub edi, 1
je 0x4030cd
mov ecx, dword [ebp - 0x26c]
jmp 0x4030a0
mov edx, dword [ebp - 0x258]
add eax, 2
mov esi, dword [ebp - 0x270]
jmp 0x403050
mov edx, dword [ebp - 0x258]
sub eax, dword [ebp - 0x25c]
sar eax, 1
cmp eax, 0xffffffff
jne 0x403182
mov edi, dword [ebp - 0x264]
mov ecx, dword [ebp - 0x14]
mov eax, ecx
sub eax, edi
cmp edx, eax
ja 0x40312c
lea eax, [edi + edx]
cmp ecx, 7
mov dword [ebp - 0x18], eax
lea esi, [ebp - 0x28]
cmova esi, dword [ebp - 0x28]
lea eax, [edx + edx]
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [esi + edi*2]
push ecx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x258]
add esp, 0xc
add eax, edi
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x403143
push edx
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x260]
lea ecx, [ebp - 0x28]
push edx
call fcn.004061a0
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
cmp eax, 1
jb 0x40316b
lea eax, [ecx + 1]
cmp edx, 7
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
mov dword [eax + ecx*2], 0xa
jmp 0x403182
push 1
push 0x40a4f8
push dword [ebp - 0x260]
lea ecx, [ebp - 0x28]
push 1
call fcn.004061a0
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x402ff0
mov esi, dword [ebp - 0x260]
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
movups xmm0, xmmword [ebp - 0x28]
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
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.00407aa5
mov esp, ebp
pop ebp
ret