Function at 0x4042c0
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 0x413395
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x278
mov eax, dword [0x435040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov byte [ebp - 0x279], 0
lea ecx, [ebp - 0x44]
call fcn.00403d30
mov dword [ebp - 4], 0
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 7
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x44]
lea edi, [ebp - 0x44]
cmova eax, edx
cmova ecx, edx
mov dword [ebp - 0x280], eax
cmova edi, edx
mov eax, dword [ebp - 0x34]
lea eax, [ecx + eax*2]
mov dword [ebp - 0x284], eax
cmp edi, eax
je 0x404387
sub dword [ebp - 0x280], edi
nop
movzx esi, word [edi]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_iswalpha]
add esp, 4
test eax, eax
je 0x404370
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towupper]
add esp, 4
movzx eax, ax
jmp 0x404372
mov eax, esi
mov ecx, dword [ebp - 0x280]
mov word [edi + ecx], ax
add edi, 2
cmp edi, dword [ebp - 0x284]
jne 0x404350
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x284], eax
cmp eax, 0xffffffff
je 0x404535
xorps xmm0, xmm0
mov dword [ebp - 0x278], 0x22c
xor ecx, ecx
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], cx
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4044ed
nop
lea ecx, [ebp - 0x254]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4043f0
mov eax, dword [ebp - 0x18]
sub ecx, edx
sar ecx, 1
cmp ecx, eax
ja 0x40442f
cmp eax, 7
mov dword [ebp - 0x1c], ecx
lea esi, [ecx + ecx]
push esi
lea eax, [ebp - 0x254]
lea edi, [ebp - 0x2c]
cmova edi, dword [ebp - 0x2c]
push eax
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x404445
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x288]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00408680
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
cmova eax, edx
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x280], eax
cmova ecx, edx
mov eax, dword [ebp - 0x1c]
cmova esi, edx
lea eax, [ecx + eax*2]
mov dword [ebp - 0x288], eax
cmp esi, eax
je 0x4044b7
sub dword [ebp - 0x280], esi
nop word [eax + eax]
movzx edi, word [esi]
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_iswalpha]
add esp, 4
test eax, eax
je 0x4044a0
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towupper]
add esp, 4
movzx eax, ax
jmp 0x4044a2
mov eax, edi
mov ecx, dword [ebp - 0x280]
mov word [esi + ecx], ax
add esi, 2
cmp esi, dword [ebp - 0x288]
jne 0x404480
push ecx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406ad0
cmp eax, 0xffffffff
jne 0x4044e6
lea eax, [ebp - 0x278]
push eax
push dword [ebp - 0x284]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4043e0
jmp 0x4044ed
mov byte [ebp - 0x279], 1
push dword [ebp - 0x284]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x404535
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40452b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40452b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00412050
add esp, 8
mov ecx, dword [ebp - 0x30]
cmp ecx, 7
jbe 0x404571
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404567
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404567
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00412050
add esp, 8
mov al, byte [ebp - 0x279]
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.00412042
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret