Function at 0x403f90
Capabilities:
Enumerate processes
Terminate process

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 0x413355
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
lea ecx, [ebp - 0x48]
call fcn.00403d30
mov dword [ebp - 4], 0
lea eax, [ebp - 0x48]
cmp dword [ebp - 0x34], 7
lea ecx, [ebp - 0x48]
mov edx, dword [ebp - 0x48]
lea edi, [ebp - 0x48]
cmova eax, edx
cmova ecx, edx
mov dword [ebp - 0x280], eax
cmova edi, edx
mov eax, dword [ebp - 0x38]
lea eax, [ecx + eax*2]
mov dword [ebp - 0x284], eax
cmp edi, eax
je 0x404057
sub dword [ebp - 0x280], edi
nop word [eax + eax]
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 0x404040
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towupper]
add esp, 4
movzx eax, ax
jmp 0x404042
mov eax, esi
mov ecx, dword [ebp - 0x280]
mov word [edi + ecx], ax
add edi, 2
cmp edi, dword [ebp - 0x284]
jne 0x404020
push 0
push 2
mov byte [ebp - 0x279], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x284], eax
cmp eax, 0xffffffff
je 0x40425c
xorps xmm0, xmm0
mov dword [ebp - 0x278], 0x22c
xor ecx, ecx
mov dword [ebp - 0x20], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], 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 0x404200
nop word [eax + eax]
lea eax, [ebp - 0x254]
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4040d0
mov ecx, dword [ebp - 0x1c]
sub eax, edx
sar eax, 1
cmp eax, ecx
ja 0x40410f
lea esi, [eax + eax]
mov dword [ebp - 0x20], eax
cmp ecx, 7
lea eax, [ebp - 0x254]
push esi
lea edi, [ebp - 0x30]
cmova edi, dword [ebp - 0x30]
push eax
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x404122
lea ecx, [ebp - 0x254]
push ecx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x30]
push eax
call fcn.00408680
cmp dword [ebp - 0x1c], 7
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x30]
cmova eax, edx
lea edi, [ebp - 0x30]
mov dword [ebp - 0x280], eax
cmova ecx, edx
mov eax, dword [ebp - 0x20]
cmova edi, edx
lea eax, [ecx + eax*2]
mov dword [ebp - 0x288], eax
cmp edi, eax
je 0x404197
sub dword [ebp - 0x280], edi
nop word [eax + eax]
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 0x404180
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towupper]
add esp, 4
movzx eax, ax
jmp 0x404182
mov eax, esi
mov ecx, dword [ebp - 0x280]
mov word [edi + ecx], ax
add edi, 2
cmp edi, dword [ebp - 0x288]
jne 0x404160
push ecx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x30]
call fcn.00406ad0
cmp eax, 0xffffffff
je 0x4041e5
push dword [ebp - 0x270]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4041e5
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x279], 1
lea eax, [ebp - 0x278]
push eax
push dword [ebp - 0x284]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4040c0
push dword [ebp - 0x284]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1c]
cmp ecx, 7
jbe 0x404248
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40423e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40423e
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
cmp byte [ebp - 0x279], 0
je 0x40425c
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x34]
cmp ecx, 7
jbe 0x404298
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40428e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40428e
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 - 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