Function at 0x418d80
Capabilities:
Enumerate processes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e85e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2d8
mov eax, dword [0x42f040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x2e0], esi
mov edi, ecx
mov dword [ebp - 0x2d0], edi
mov dword [ebp - 0x2c8], edi
mov dword [ebp - 0x2e4], edi
mov dword [ebp - 0x2dc], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push 0x228
lea eax, [ebp - 0x2bc]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x2dc], 1
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x2c0], 0x22c
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x2d8], eax
cmp eax, 0xffffffff
je 0x4190a8
lea ecx, [ebp - 0x2c0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x41909c
nop dword [eax + eax]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x29c]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x2c], xmm0
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418e80
sub ecx, edx
lea eax, [ebp - 0x29c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.004020e0
mov ecx, dword [esi + 0x10]
cmp ecx, dword [ebp - 0x1c]
jne 0x418f3a
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
cmp edx, 7
cmova eax, dword [ebp - 0x2c]
cmp dword [esi + 0x14], 7
mov dword [ebp - 0x2cc], eax
jbe 0x418ed3
mov eax, dword [esi]
mov esi, eax
lea ecx, [eax + ecx*2]
mov eax, dword [ebp - 0x2cc]
jmp 0x418ed6
lea ecx, [esi + ecx*2]
mov dword [ebp - 0x2d4], ecx
cmp esi, ecx
je 0x418f31
sub eax, esi
mov dword [ebp - 0x2cc], eax
nop dword [eax + eax]
movzx eax, word [eax + esi]
mov dword [ebp - 0x2c8], eax
movzx eax, word [esi]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov edi, eax
mov eax, dword [ebp - 0x2c8]
movzx eax, ax
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
add esp, 8
cmp edi, eax
jne 0x418f3a
mov eax, dword [ebp - 0x2cc]
add esi, 2
cmp esi, dword [ebp - 0x2d4]
jne 0x418ef0
mov edx, dword [ebp - 0x18]
mov byte [ebp - 0x2c1], 1
jmp 0x418f44
mov edx, dword [ebp - 0x18]
mov byte [ebp - 0x2c1], 0
cmp edx, 7
jbe 0x418f7b
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418f71
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419090
push edx
push ecx
call fcn.0041c16d
add esp, 8
cmp byte [ebp - 0x2c1], 0
je 0x41906e
sub esp, 0x18
lea ecx, [ebp - 0x29c]
mov edx, esp
lea esi, [ecx + 2]
xorps xmm0, xmm0
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418fb0
sub ecx, esi
lea eax, [ebp - 0x29c]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.004020e0
push dword [ebp - 0x2b8]
lea ecx, [ebp - 0x90]
call fcn.00418ba0
mov edi, eax
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x2d0]
mov esi, dword [eax + 4]
cmp esi, dword [eax + 8]
je 0x419056
mov eax, dword [edi]
lea ecx, [esi + 0x14]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
lea eax, [edi + 0x14]
push eax
mov dword [ebp - 0x2c8], esi
call fcn.00405910
lea eax, [edi + 0x2c]
mov byte [ebp - 4], 2
lea ecx, [esi + 0x2c]
push eax
call fcn.00405910
mov byte [ebp - 4], 3
lea ecx, [esi + 0x48]
mov al, byte [edi + 0x44]
mov byte [esi + 0x44], al
lea eax, [edi + 0x48]
push eax
call fcn.00405910
mov eax, dword [ebp - 0x2d0]
add dword [eax + 4], 0x60
jmp 0x41905f
push edi
push esi
mov ecx, eax
call fcn.00419c70
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0
call fcn.00418c90
lea eax, [ebp - 0x2c0]
push eax
push dword [ebp - 0x2d8]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x419096
mov esi, dword [ebp - 0x2e0]
jmp 0x418e60
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov edi, dword [ebp - 0x2d0]
push dword [ebp - 0x2d8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041bed2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret