Function at 0x140001270
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, 0x2c0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140005010]
xor rax, rsp
mov qword [rsp + 0x2b0], 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 + 0x84], edi
mov word [rsp + 0x80], di
lea r9, [rsp + 0x84]
lea r8d, [rdi + 2]
lea rdx, [rsp + 0x80]
lea ecx, [rdi + 0x23]
call rax
movzx r8d, byte [rsp + 0x81]
movzx edx, byte [rsp + 0x80]
lea rcx, str.NtQuerySystemInformation_SystemKernelDebuggerInformation___0x_X_0x_X_n
call fcn.140001090
cmp byte [rsp + 0x80], dil
je 0x140001325
lea rcx, str.____Debugging____n_n
call fcn.140001090
jmp 0x14000163c
lea rcx, str.____Not_debugging..._n_n
call fcn.140001090
rdtsc
shl rdx, 0x20
or rax, rdx
mov rbx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FlsAlloc]
cmp eax, 0xffffffff
jne 0x14000135b
lea rcx, str.FLS_OUT_OF_INDEXES_n
call fcn.140001090
jmp 0x14000163c
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 0x14000139a
lea rcx, str.VirtualAllocExNuma_NULL_n
call fcn.140001090
jmp 0x14000163c
rdtsc
shl rdx, 0x20
or rax, rdx
sub rax, rbx
sub rax, 0x2710
cmp rax, 0x15f90
ja 0x14000163c
mov dword [rsp + 0x88], 0x200
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x78]
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 0x140001465
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x8c]
xor r8d, r8d
lea rdx, str.SystemStartOptions
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000145c
cmp dword [rsp + 0x8c], 1
jne 0x140001473
lea rdx, [rsp + 0xb0]
lea rcx, str.SystemStartOptions:__s_n
call fcn.140001030
jmp 0x140001473
lea rcx, str.RegQueryValueEx_Error:__d_n
jmp 0x14000146c
lea rcx, str.RegCreateKeyEx_Error:__d_n
mov edx, eax
call fcn.140001090
movdqa xmm0, xmmword [0x1400036b0]
movdqu xmmword [rsp + 0xa0], xmm0
mov word [rsp + 0x90], di
lea rax, [rsp + 0xb0]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], di
jne 0x1400014a0
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x90]
call fcn.140001710
nop
lea r10, [rsp + 0x90]
mov rbx, qword [rsp + 0x90]
mov rdi, qword [rsp + 0xa8]
cmp rdi, 8
cmovae r10, rbx
mov rax, qword [rsp + 0xa0]
cmp rax, 5
jb 0x14000155d
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 0x14000155d
cmp word [rax], 0x44
je 0x14000151b
add rax, 2
sub rcx, 1
jmp 0x140001509
test rax, rax
je 0x14000155d
mov r8d, 5
mov rdx, r14
mov r9, rax
sub r9, r14
nop
movzx ecx, word [rdx]
cmp word [r9 + rdx], cx
jne 0x140001584
add rdx, 2
sub r8, 1
jne 0x140001530
sub rax, r10
sar rax, 1
cmp rax, 0xffffffffffffffff
je 0x14000155d
lea rcx, str.DEBUG_n
call fcn.140001090
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 0x140001668
jmp 0x14000158d
add rax, 2
jmp 0x140001500
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 0x1400015fe
cmp rdi, 8
jb 0x14000163c
lea rdx, [rdi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140001634
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001634
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.140001ed0
xor eax, eax
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.140001a40
lea r11, [rsp + 0x2c0]
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.140001090
lea rcx, [rsp + 0x60]
call fcn.1400011a0
lea rdx, [0x140004068]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
int3