Function at 0x1400016e0
Capabilities:
Allocate or change rwx memory
Check mutex on windows
Execute anti-debugging instructions
Execute command
Execute shellcode via indirect call
Query or enumerate registry value

Disassembly:
mov rax, rsp
push r14
sub rsp, 0x300
mov qword [rax - 0x278], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140006010]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov rsi, qword [rdx]
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.NtQuerySystemInformation
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
mov dword [rsp + 0xc4], edi
mov word [rsp + 0xc0], di
lea r9, [rsp + 0xc4]
lea r8d, [rdi + 2]
lea rdx, [rsp + 0xc0]
lea ecx, [rdi + 0x23]
call rax
movzx r8d, byte [rsp + 0xc1]
movzx edx, byte [rsp + 0xc0]
lea rcx, str.NtQuerySystemInformation_SystemKernelDebuggerInformation___0x_X_0x_X_n
call fcn.1400010a0
cmp byte [rsp + 0xc0], dil
je 0x140001797
lea rcx, str.____Debugging____n_n
call fcn.1400010a0
jmp 0x140001a64
lea rcx, str.____Not_debugging..._n_n
call fcn.1400010a0
rdtsc
shl rdx, 0x20
or rax, rdx
mov rbx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FlsAlloc]
cmp eax, 0xffffffff
jne 0x1400017cd
lea rcx, str.FLS_OUT_OF_INDEXES_n
call fcn.1400010a0
jmp 0x140001a64
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 0x40
xor edx, edx
mov r9d, 0x3000
mov r8d, 0x3e8
call qword [sym.imp.KERNEL32.dll_VirtualAllocExNuma]
test rax, rax
jne 0x14000180c
lea rcx, str.VirtualAllocExNuma_NULL_n
call fcn.1400010a0
jmp 0x140001a64
rdtsc
shl rdx, 0x20
or rax, rdx
sub rax, rbx
sub rax, 0x2710
cmp rax, 0x15f90
ja 0x140001a64
mov dword [rsp + 0xc8], 0x200
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControl
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400018dd
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xcc]
xor r8d, r8d
lea rdx, str.SystemStartOptions
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400018d4
cmp dword [rsp + 0xcc], 1
jne 0x1400018eb
lea rdx, [rsp + 0xf0]
lea rcx, str.SystemStartOptions:__s_n
call fcn.140001040
jmp 0x1400018eb
lea rcx, str.RegQueryValueEx_Error:__d_n
jmp 0x1400018e4
lea rcx, str.RegCreateKeyEx_Error:__d_n
mov edx, eax
call fcn.1400010a0
movdqa xmm0, xmmword [0x1400046b0]
movdqu xmmword [rsp + 0xe0], xmm0
mov word [rsp + 0xd0], di
lea rax, [rsp + 0xf0]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], di
jne 0x140001913
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0xd0]
call fcn.140001b90
nop
lea r10, [rsp + 0xd0]
mov rbx, qword [rsp + 0xd0]
mov rdi, qword [rsp + 0xe8]
cmp rdi, 8
cmovae r10, rbx
mov rax, qword [rsp + 0xe0]
cmp rax, 5
jb 0x1400019cf
add rax, 0xfffffffffffffffc
lea r11, [r10 + rax*2]
mov rax, r10
lea r14, str.DEBUG
mov rcx, r11
sub rcx, rax
sar rcx, 1
je 0x1400019cf
cmp word [rax], 0x44
je 0x14000198e
add rax, 2
sub rcx, 1
jmp 0x14000197c
test rax, rax
je 0x1400019cf
mov r8d, 5
mov rdx, r14
mov r9, rax
sub r9, r14
movzx ecx, word [rdx]
cmp word [r9 + rdx], cx
jne 0x1400019f6
add rdx, 2
sub r8, 1
jne 0x1400019a2
sub rax, r10
sar rax, 1
cmp rax, 0xffffffffffffffff
je 0x1400019cf
lea rcx, str.DEBUG_n
call fcn.1400010a0
nop
lea r8, str.CppTest
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140001a90
jmp 0x1400019ff
add rax, 2
jmp 0x140001973
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
jmp 0x140001a26
cmp rdi, 8
jb 0x140001a64
lea rdx, [rdi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140001a5c
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001a5c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.1400025a0
xor eax, eax
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.140001ff0
lea r11, [rsp + 0x300]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
lea rcx, str.CreateMutex_ERROR_ALREADY_EXISTS_n
call fcn.1400010a0
lea rcx, [rsp + 0xa0]
call fcn.1400011b0
lea rdx, [0x140005108]
lea rcx, [rsp + 0xa0]
call sub.VCRUNTIME140.dll__CxxThrowException
int3