Function at 0x140001340
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x90
mov rax, qword [0x140007010]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rcx, str.ntdll
mov qword [rsp + 0xa8], rsi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
mov qword [0x140007728], rax
lea rdx, str.RtlAdjustPrivilege
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r8d, r8d
lea r9, [rsp + 0x78]
mov dl, 1
lea ecx, [r8 + 0x14]
call rax
cmp qword [0x140007060], 0x10
lea rcx, [0x140007048]
cmovae rcx, qword [0x140007048]
call fcn.140001290
lea rcx, str.cs2.exe
mov dword [0x140007700], eax
call fcn.140001290
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.proxy_pid:
mov dword [0x140007704], eax
call fcn.140001fe0
mov edx, dword [0x140007700]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, str._target_pid:
call fcn.140001fe0
mov edx, dword [0x140007704]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x1400021b0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov r8d, dword [0x140007700]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, 0x10000
mov qword [0x140007738], rax
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, qword [0x140007728]
lea rdx, str.NtQuerySystemInformation
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r9d, r9d
mov r8d, edi
mov rsi, rax
mov rdx, rbx
lea ecx, [r9 + 0x10]
call rsi
cmp eax, 0xc0000004
jne 0x1400014a9
nop dword [rax]
lea ecx, [rdi + rdi]
mov edi, ecx
mov edx, ecx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
xor r9d, r9d
mov r8d, edi
mov rdx, rax
mov rbx, rax
lea ecx, [r9 + 0x10]
call rsi
cmp eax, 0xc0000004
je 0x140001480
xor r14d, r14d
mov esi, r14d
cmp dword [rbx], r14d
jbe 0x1400015a9
lea rdi, [rbx + 8]
mov qword [rsp + 0xa0], rbp
movups xmm1, xmmword [rdi]
movsd xmm0, qword [rdi + 0x10]
movd eax, xmm1
movups xmmword [rsp + 0x48], xmm1
cmp eax, dword [0x140007700]
movsd qword [rsp + 0x58], xmm0
jne 0x140001551
mov rax, qword [rsp + 0x48]
shr rax, 0x20
cmp al, 7
jne 0x140001551
movzx ebp, word [rsp + 0x4e]
mov qword [rsp + 0x40], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, qword [0x140007738]
lea r9, [rsp + 0x40]
mov dword [rsp + 0x30], 2
mov r8, rax
mov dword [rsp + 0x28], r14d
mov edx, ebp
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcessId]
cmp eax, dword [0x140007704]
jne 0x140001551
cmp dword [rsp + 0x58], 0x1fffff
mov rcx, qword [rsp + 0x40]
je 0x140001561
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
add rdi, 0x18
cmp esi, dword [rbx]
jb 0x1400014c4
jmp 0x1400015a1
mov qword [0x140007720], rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.found_existing_handle:
call fcn.140001fe0
mov rdx, qword [0x140007720]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [0x1400021b0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rbp, qword [rsp + 0xa0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp qword [0x140007720], r14
mov rsi, qword [rsp + 0xa8]
jne 0x14000172c
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.no_existing_handle_found__creating_new_one..._n
call fcn.140001fe0
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
xor edx, edx
mov rcx, qword [0x140007738]
mov r9d, 0x3000
mov qword [rsp + 0x58], rax
mov eax, dword [0x140007704]
lea r8d, [rdx + 0x18]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x4c], r14d
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
test rax, rax
jne 0x14000162d
lea ecx, [rax + 0xa]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [0x140007738]
lea r8, [rsp + 0x48]
mov r9d, 0x18
mov qword [rsp + 0x20], r14
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [0x140007738]
xor edx, edx
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
test rax, rax
jne 0x140001682
lea ecx, [rax + 0x14]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [0x140007738]
lea r8, [0x140001200]
mov r9d, 0x1000
mov qword [rsp + 0x20], r14
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [0x140007738]
mov r9, rbx
mov qword [rsp + 0x30], r14
xor r8d, r8d
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
je 0x1400016e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop word [rax + rax]
mov rcx, qword [0x140007738]
lea r8, [rsp + 0x60]
xor eax, eax
mov qword [rsp + 0x20], r14
xorps xmm0, xmm0
mov qword [rsp + 0x70], rax
mov rdx, rdi
movups xmmword [rsp + 0x60], xmm0
lea r9d, [rax + 0x18]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rax, qword [rsp + 0x68]
mov ecx, 0x1e
mov ebx, dword [rsp + 0x64]
mov qword [0x140007720], rax
call qword [sym.imp.KERNEL32.dll_Sleep]
test ebx, ebx
je 0x1400016e0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x1400011e0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
lea rdx, str.proxy_handle:
call fcn.140001fe0
mov rdx, qword [0x140007738]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const____ptr64____ptr64]
mov rcx, rax
lea rdx, str._target_handle:
call fcn.140001fe0
mov rdx, qword [0x140007720]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [0x1400021b0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
cmp qword [0x140007730], r14
jne 0x140001801
mov rcx, qword [0x140007738]
xor edx, edx
mov r9d, 0x3000
mov dword [rsp + 0x20], 4
lea r8d, [rdx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [0x140007730], rax
test rax, rax
jne 0x1400017ce
lea ecx, [rax + 0x32]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.readwrite_data_base_at_0x
call fcn.140001fe0
mov rdx, qword [0x140007730]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
mov rcx, rax
lea rdx, [0x1400021b0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
cmp qword [0x140007710], r14
jne 0x1400018a0
mov rcx, qword [0x140007738]
xor edx, edx
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [0x140007710], rax
test rax, rax
jne 0x140001847
lea ecx, [rax + 0x3c]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.shellcode_data_base_at_0x
call fcn.140001fe0
mov rdx, qword [0x140007710]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
mov rcx, rax
lea rdx, [0x1400021b0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rdx, qword [0x140007710]
lea r8, [0x140001230]
mov rcx, qword [0x140007738]
mov r9d, 0x1000
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140002200
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret