Function at 0x40f2fe
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
mov eax, 0x41bd78
call sub.MSVCRT.dll__EH_prolog
mov eax, 0x1438
call fcn.00415c50
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
jne 0x40f325
or eax, 0xffffffff
jmp 0x40f4ee
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x236]
mov word [ebp - 0x238], bx
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_wcslen]
cmp word [esi + eax*2 - 2], 0x5c
pop ecx
push esi
jne 0x40f356
push 0x42b428
jmp 0x40f35b
push 0x42b41c
lea eax, [ebp - 0x238]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040fa00
push 0x5c
push 0x2f
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.0040fa48
lea eax, [ebp - 0x2c]
or esi, 0xffffffff
push eax
lea eax, [ebp - 0x1444]
push 0x1000
push eax
mov dword [ebp - 0x14], esi
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x40f4df
mov edx, dword [ebp - 0x2c]
mov al, byte [ebp + 0xb]
shr edx, 2
mov byte [ebp - 0x28], al
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
push 0
mov ecx, 0x82
pop eax
lea edi, [ebp - 0x442]
mov word [ebp - 0x444], bx
mov byte [ebp - 4], 1
rep stosd dword es:[edi], eax
mov dword [ebp - 0x18], ebx
je 0x40f4d1
lea esi, [ebp - 0x1444]
mov edi, edx
push dword [esi]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x40f467
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x18]
push 4
push ecx
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x40f45e
lea eax, [ebp - 0x444]
push 0x104
push eax
push dword [ebp - 0x18]
push dword [ebp + 8]
call sub.PSAPI.DLL_GetModuleFileNameExW
push dword [ebp - 0x10]
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x40f45e
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp + 8]
lea ecx, [ebp - 0x28]
push eax
call fcn.0040f81f
jmp 0x40f467
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
dec edi
jne 0x40f3f2
cmp dword [ebp - 0x24], ebx
je 0x40f4d1
mov esi, dword [ebp - 0x20]
sub esi, dword [ebp - 0x24]
sar esi, 2
je 0x40f4d1
mov eax, esi
shl eax, 2
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
pop ecx
cmp edi, ebx
je 0x40f4ba
xor eax, eax
cmp esi, ebx
jbe 0x40f4a3
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx + eax*4]
mov dword [edi + eax*4], ecx
inc eax
cmp eax, esi
jb 0x40f495
push dword [ebp + 0xc]
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push edi
mov dword [ebp - 0x14], eax
call fcn.0040ebda
pop ecx
xor edi, edi
cmp esi, ebx
jbe 0x40f4d1
mov eax, dword [ebp - 0x24]
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, esi
jb 0x40f4c0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.0040deaa
mov esi, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040fa91
mov eax, esi
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret