Function at 0x40b3c3
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
mov eax, 0x4128ec
call sub.MSVCRT.dll__EH_prolog
mov eax, 0x1438
call fcn.00412450
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
jne 0x40b3ea
or eax, 0xffffffff
jmp 0x40b5b3
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 0x40b41b
push 0x420808
jmp 0x40b420
push 0x4207fc
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.0040b9d1
push 0x5c
push 0x2f
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.0040ba19
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 0x40b5a4
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 0x40b596
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 0x40b52c
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 0x40b523
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 0x40b523
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.0040b7f0
jmp 0x40b52c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
dec edi
jne 0x40b4b7
cmp dword [ebp - 0x24], ebx
je 0x40b596
mov esi, dword [ebp - 0x20]
sub esi, dword [ebp - 0x24]
sar esi, 2
je 0x40b596
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 0x40b57f
xor eax, eax
cmp esi, ebx
jbe 0x40b568
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx + eax*4]
mov dword [edi + eax*4], ecx
inc eax
cmp eax, esi
jb 0x40b55a
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.0040ac9f
pop ecx
xor edi, edi
cmp esi, ebx
jbe 0x40b596
mov eax, dword [ebp - 0x24]
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, esi
jb 0x40b585
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.00410262
mov esi, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040ba62
mov eax, esi
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret