Function at 0x10008ae0
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0x188]
mov eax, ecx
push esi
mov esi, dword [ebp + 8]
and eax, 0x40
or eax, 0
mov dword [ebp - 4], esi
push edi
je 0x10008b6b
and ecx, 0x80
or ecx, 0
je 0x10008b40
lea eax, [ebp + 0x110]
push eax
lea eax, [ebp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x10008b66
push 0x100c8fc0
call fcn.10005940
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x608
lea eax, [ebp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x10008b66
push 0x100c8fd0
call fcn.10005940
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x608
add esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x10008d4f
push 0
push 0
push esi
call fcn.10007120
push 0xc350
call fcn.100ab059
mov dword [ebx + 0x6c0], eax
add esp, 0x10
mov eax, dword [0x100eb3cc]
test eax, eax
je 0x10008ba7
cmp eax, 0xffffffff
je 0x10008ba7
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 4]
lea esi, [ebp + 8]
mov ecx, 0x182
mov dword [ebx + 0x608], eax
mov edi, ebx
mov dword [ebx + 0x60c], 0
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x100eb3cc]
test eax, eax
je 0x10008bdb
cmp eax, 0xffffffff
je 0x10008bdb
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp + 0x18c]
mov ecx, dword [ebp + 0x188]
mov dword [ebx + 0x614], eax
mov eax, ecx
and eax, 0x1000
mov dword [ebx + 0x610], ecx
or eax, 0
je 0x10008c38
push 0
push 0
push ebx
push 0x100084e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0
mov dword [ebx + 0x620], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebx + 0x628], eax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x608
mov edx, dword [ebx + 0x608]
and ecx, 0x8000000
or ecx, 0
je 0x10008c7b
mov al, byte [ebp - 5]
push 0
sub esp, 0x28
mov ecx, esp
push edx
mov dword [ecx], vtable.std::_Func_impl_no_alloc_class_std::_Binder_struct_std::_Unforced__unsigned_char____cdecl_TextHook::__bool__struct__CONTEXT____class_TextHook___struct_std::_Ph_1__const____bool__struct__CONTEXT__.0
mov dword [ecx + 4], 0x100097b0
mov byte [ecx + 8], al
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x24], ecx
call fcn.10073ef0
add esp, 0x30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x608
push 0x100eb440
push 0x40
push 0xa
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
lea esi, [ebx + 0x631]
push esi
push dword [ebx + 0x608]
call fcn.10078150
test eax, eax
je 0x10008cd8
cmp eax, 3
jne 0x10008d40
push 9
push dword [ebx + 0x60c]
push dword [ebx + 0x608]
call fcn.10007120
add esp, 0xc
lea eax, [ebp - 4]
push eax
push esi
push dword [ebx + 0x608]
call fcn.10078150
test eax, eax
jne 0x10008ca5
mov eax, dword [0x100e6364]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x100e6344], ebx
mov eax, dword [0x100e6368]
mov dword [eax + 0x100e6344], 0x10008fb0
mov eax, dword [0x100e636c]
mov dword [eax + 0x100e6344], ecx
movups xmm0, xmmword [0x100e6344]
push dword [ebx + 0x608]
movups xmmword [esi], xmm0
movq xmm0, qword [0x100e6354]
movq qword [esi + 0x10], xmm0
mov eax, dword [0x100e635c]
mov dword [esi + 0x18], eax
mov al, byte [0x100e6360]
mov byte [esi + 0x1c], al
call fcn.10078380
test eax, eax
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x608
push eax
call fcn.10078580
push eax
call fcn.10005940
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x608