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

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x6c0
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x110
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x6e8]
mov rax, qword [0x140359100]
xor rax, rbp
mov qword [rbp + 0x670], rax
lea rcx, [0x140383123]
call fcn.1400ee856
nop
mov rdx, qword [rbp + 0x6a0]
lea rcx, [rbp + 0x2e8]
call fcn.1400eba02
mov qword [rbp + 0x658], rax
mov rax, qword [rbp + 0x658]
mov qword [rbp + 0x660], rax
mov rax, qword [rbp + 0x660]
mov qword [rbp + 0x668], rax
lea rdx, [rbp + 8]
mov rcx, qword [rbp + 0x668]
call fcn.1400eefe0
nop
lea rcx, [rbp + 0x2e8]
call fcn.1400edf46
nop
mov r8d, dword [rbp + 0x6a8]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x14014517d
lea rax, str.Failed_to_open_process_with_PID:_
mov qword [rbp + 0x358], rax
mov qword [rbp + 0x360], 0x23
lea rax, [rbp + 0x5b0]
lea rcx, [rbp + 0x358]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea r8, [rbp + 0x6a8]
lea rdx, [rbp + 0x5b0]
lea rcx, [rbp + 0x388]
call fcn.1400ed51e
mov qword [rbp + 0x658], rax
mov rax, qword [rbp + 0x658]
mov qword [rbp + 0x660], rax
mov rdx, qword [rbp + 0x660]
lea rcx, [rbp + 0x328]
call fcn.1400ea738
lea rdx, [0x140358140]
lea rcx, [rbp + 0x328]
call fcn.1400ef201
nop
lea rcx, [rbp + 0x388]
call fcn.1400e936f
nop
lea rcx, [rbp + 8]
call fcn.1400e9202
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8, rax
xor edx, edx
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x140145249
lea rax, str.Failed_to_allocate_memory_in_process_with_PID:_
mov qword [rbp + 0x3f8], rax
mov qword [rbp + 0x400], 0x31
lea rax, [rbp + 0x5e0]
lea rcx, [rbp + 0x3f8]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea r8, [rbp + 0x6a8]
lea rdx, [rbp + 0x5e0]
lea rcx, [rbp + 0x428]
call fcn.1400ed51e
mov qword [rbp + 0x658], rax
mov rax, qword [rbp + 0x658]
mov qword [rbp + 0x660], rax
mov rdx, qword [rbp + 0x660]
lea rcx, [rbp + 0x3c8]
call fcn.1400ea738
lea rdx, [0x140358140]
lea rcx, [rbp + 0x3c8]
call fcn.1400ef201
nop
lea rcx, [rbp + 0x428]
call fcn.1400e936f
nop
lea rcx, [rbp + 8]
call fcn.1400e9202
shl rax, 1
mov qword [rbp + 0x658], rax
lea rcx, [rbp + 8]
call fcn.1400eb944
mov qword [rbp + 0x660], rax
mov qword [rsp + 0x20], 0
mov r9, qword [rbp + 0x658]
mov r8, qword [rbp + 0x660]
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140145330
lea rax, str.Failed_to_write_memory_in_process_with_PID:_
mov qword [rbp + 0x498], rax
mov qword [rbp + 0x4a0], 0x2e
lea rax, [rbp + 0x610]
lea rcx, [rbp + 0x498]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea r8, [rbp + 0x6a8]
lea rdx, [rbp + 0x610]
lea rcx, [rbp + 0x4c8]
call fcn.1400ed51e
mov qword [rbp + 0x658], rax
mov rax, qword [rbp + 0x658]
mov qword [rbp + 0x660], rax
mov rdx, qword [rbp + 0x660]
lea rcx, [rbp + 0x468]
call fcn.1400ea738
lea rdx, [0x140358140]
lea rcx, [rbp + 0x468]
call fcn.1400ef201
nop
lea rcx, [rbp + 0x4c8]
call fcn.1400e936f
nop
lea rcx, str.Kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp + 0x88], rax
lea rdx, str.LoadLibraryW
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rcx, qword [rbp + 0x68]
mov qword [rsp + 0x20], rcx
mov r9, rax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
jne 0x140145424
lea rax, str.Failed_to_run_dll_inject_in_process_with_PID:_
mov qword [rbp + 0x538], rax
mov qword [rbp + 0x540], 0x30
lea rax, [rbp + 0x640]
lea rcx, [rbp + 0x538]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea r8, [rbp + 0x6a8]
lea rdx, [rbp + 0x640]
lea rcx, [rbp + 0x568]
call fcn.1400ed51e
mov qword [rbp + 0x658], rax
mov rax, qword [rbp + 0x658]
mov qword [rbp + 0x660], rax
mov rdx, qword [rbp + 0x660]
lea rcx, [rbp + 0x508]
call fcn.1400ea738
lea rdx, [0x140358140]
lea rcx, [rbp + 0x508]
call fcn.1400ef201
nop
lea rcx, [rbp + 0x568]
call fcn.1400e936f
nop
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp + 8]
call fcn.1400ed91a
nop
lea rcx, [rbp - 0x40]
lea rdx, [0x1402d5980]
call fcn.1400ed668
mov rcx, qword [rbp + 0x670]
xor rcx, rbp
call fcn.1400eb296
lea rsp, [rbp + 0x680]
pop rdi
pop rsi
pop rbp
ret