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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov dword [ebp - 4], ecx
push 0
call fcn.10129250
call fcn.10128f10
mov eax, dword [0x101d84cc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
call fcn.10140b30
call fcn.1005a700
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0xfffffffffffffffc
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x68]
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ebp - 0x18], eax
mov ecx, dword [0x101d84b8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x24], edx
mov eax, dword [0x101d84b8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x24]
mov dword [ecx], edx
mov eax, dword [0x101d84b8]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x3c]
push ecx
push 0x40
push 4
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10168019
mov ecx, dword [0x101d84b8]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x60]
add eax, 4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
sub edx, eax
mov dword [ebp - 0x38], edx
mov eax, dword [0x101d84b8]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
add ecx, 0x60
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x44], edx
mov eax, dword [0x101d84b8]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 0x60]
mov dword [ebp - 0x48], edx
push 0
mov eax, dword [ebp - 0x44]
push eax
push 4
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [0x101d84b8]
mov dword [ebp - 0x4c], edx
lea eax, [ebp - 0x60]
push eax
push 0x40
push 4
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1016809d
mov eax, dword [0x101d84b8]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0x64]
add edx, 4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
sub ecx, edx
mov dword [ebp - 0x5c], ecx
mov edx, dword [0x101d84b8]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
add eax, 0x64
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x5c]
mov dword [edx], eax
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x68], ecx
mov edx, dword [0x101d84b8]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 0x64]
mov dword [ebp - 0x6c], ecx
push 0
mov edx, dword [ebp - 0x68]
push edx
push 4
mov eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x64]
push edx
push 0x10167ea0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x101680ca
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret