Function at 0x40b384
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
mov eax, 0x4128ac
call sub.MSVCRT.dll__EH_prolog
mov eax, 0x1438
call fcn.00412410
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
jne 0x40b3ab
or eax, 0xffffffff
jmp 0x40b574
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 0x40b3dc
push 0x41fd40
jmp 0x40b3e1
push str._s
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.0040b992
push 0x5c
push 0x2f
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.0040b9da
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 0x40b565
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 0x40b557
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 0x40b4ed
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 0x40b4e4
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 0x40b4e4
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.0040b7b1
jmp 0x40b4ed
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
dec edi
jne 0x40b478
cmp dword [ebp - 0x24], ebx
je 0x40b557
mov esi, dword [ebp - 0x20]
sub esi, dword [ebp - 0x24]
sar esi, 2
je 0x40b557
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 0x40b540
xor eax, eax
cmp esi, ebx
jbe 0x40b529
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx + eax*4]
mov dword [edi + eax*4], ecx
inc eax
cmp eax, esi
jb 0x40b51b
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.0040ac60
pop ecx
xor edi, edi
cmp esi, ebx
jbe 0x40b557
mov eax, dword [ebp - 0x24]
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, esi
jb 0x40b546
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.00410259
mov esi, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040ba23
mov eax, esi
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret