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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov ebx, dword [ebp + 0x20]
cmp dword [ebx], 0
jne 0x10001824
mov dword [ebp - 0x18], esp
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x100017f2
push 6
call fcn.1000d87e
add esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], esp
push str.GetModuleHandleA
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x1000181c
push 6
call fcn.1000d87e
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000182c
mov ebx, dword [ebp + 0x20]
mov eax, dword [ebx]
mov dword [ebp - 4], eax
cmp dword [0x10012b1e], 0
je 0x1000185f
mov dword [ebp - 0x18], esp
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x1000185d
push 6
call fcn.1000d87e
add esp, 4
jmp 0x1000182c
mov dword [0x10012b1e], 1
mov dword [ebp - 0x18], esp
lea eax, [ebp - 8]
push eax
push 0x40
push 5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x10001899
push 6
call fcn.1000d87e
add esp, 4
push 5
push dword [ebp - 4]
call fcn.100019f3
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x100018bd
push ebx
call fcn.1000d872
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push 0xe9
push dword [ebp - 4]
call fcn.10001aa4
fild dword [ebp - 4]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x10012269]
fstp qword [ebp - 0x24]
fild dword [ebp + 0x10]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fild dword [ebp - 4]
fstp qword [ebp - 0x34]
fsub qword [ebp - 0x34]
fsub qword [0x10012271]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
call fcn.10001091
push eax
fld qword [ebp - 0x24]
call fcn.10001091
push eax
call fcn.10001ac7
mov dword [ebp - 0x18], esp
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp + 0x14]
push dword [ebp - 4]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x1000194a
push 6
call fcn.1000d87e
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], esp
push 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x10001974
push 6
call fcn.1000d87e
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x100019a7
mov dword [ebp - 0x18], esp
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x100019a5
push 6
call fcn.1000d87e
add esp, 4
jmp 0x1000194d
lea eax, [ebp - 0xc]
push eax
call fcn.10001ae8
mov dword [ebp - 0x18], eax
push 5
push dword [ebp - 4]
push dword [ebp - 0x18]
call fcn.100012e1
mov eax, dword [ebp - 0x14]
mov dword [ebp + 0x1c], eax
mov dword [0x10012b1e], 0
mov eax, dword [ebp - 0x10]
jmp 0x100019db
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x100019ec
push ebx
call fcn.1000d872
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x20