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

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x310
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov rax, qword [0x140006010]
xor rax, rsp
mov qword [rsp + 0x300], rax
rdtsc
shl rdx, 0x20
or rax, rdx
mov rdi, rax
movdqa xmm0, xmmword [0x140004ad0]
movdqu xmmword [rsp + 0xa0], xmm0
mov byte [rsp + 0x90], 0
mov r8d, 0x4ac
lea rdx, str.L5tQNyM7G9PT05KCkoOBgoWb4gG2m1iBs5tYgcubWIHzm1ihg5vcZJmZnuIamITfyr9H_85ISGt6S0hIxPoGSgptYgfNYkeb0gO1UqvL2NGmoVhTW9PT05tWE6e0m9IDg1iby5dYk_Oa0gMwhZssGpJY51ub0gWe4hqb4hN_khIa3pLSEuszpiKf0J_325bqAqYLi5dYk_ea0gO1kljfm5dYk8a0gOSWNdbm9IDkouSi42KiZKLkoqSiZtQP_OSgSwzi5KKiZtYwTqcLCwsjrnTmm2kur26vban05KFmlo1n1oikmmfpPXULAab4hqb4gGe4hOe4hqSg5KDkmnphap0LAY4oImbWhKSa4PT09Oe4hqSgpKCudCSgpJphFpMFSwGOIqIm1oSmIBmloLnuIagbvT0ZNXgYGSaTiG_egsBptaFZtQEIO52YybWiKbWgmaFBMsLCwsnuIagYGSaf7Vy6gsBlYT3FZO0tPTmywc3Fdf0tPTOAA6N9LT0ztxLCws_IGjsNMkx60f2Ayi6omUmJU5RMHBj_9CU4hSAdV9gUCQW76HpjgePJ9IQXqnbejVFM08zrTfu7Q39BbRuA_RnfChmhe1MGmL_hmoH7BQ9ObvKCn6fO8pqe_vLy4_b6pbb9sLy3tmSsLC2o6fp8_n8d7ZhqC2of6StLa9pnznrypur_svzm_ePz4S6vbe8pKDznYfz5f3ivOSo6O_toS2sZi6p_zm4OT94OXz5ibh56f__O_uri285S2sLi8t7Z01e6yYXEhnPrbxvfdkPlEVni8AmgK9g4COe5z8iLcJN3A43sNCKqgoW9zjBMy5PzOCCEW_8UnBXbZJxiN0H0rma7M4S0E09Pd1unnZtWfSGnUcv68wBGB0H5yR3AW55zEEJHdnK7A0V8CELmdCzAisgmRy6tHmYHcbi8hLr6c9oKnDDIFPjAiLBhqAN96oEIRteOtvqZRWsdmqSbqCEqQezXgW1i4N0mox1ubhVTHxjCLd3Tkm0jZnGFLAab4hpp09OT05Jr08PT05Jqk9PT05Jpi3eANiwGm0CAgJtaNJtaIptaCZJr0_PT05paKpJpwUVaMSwGm1AX81YTp2W1WNSb0hBWE6YEi4uLm9bT09PTgxA7TC4sLOLq4f3i5ev94uP94ubi04LabL6QkJA
lea rcx, [r11 - 0x288]
call fcn.140001e80
nop
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FlsAlloc]
cmp eax, 0xffffffff
jne 0x1400017b4
lea rcx, str.FLS_OUT_OF_INDEXES_n
call fcn.1400010a0
nop
mov rdx, qword [rsp + 0xa8]
cmp rdx, 0x10
jb 0x140001bec
inc rdx
mov rcx, qword [rsp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001be7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001be7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor esi, esi
mov dword [rsp + 0x28], esi
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 0x14000183e
lea rcx, str.VirtualAllocExNuma_NULL_n
call fcn.1400010a0
nop
mov rdx, qword [rsp + 0xa8]
cmp rdx, 0x10
jb 0x140001bec
inc rdx
mov rcx, qword [rsp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001be7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001be7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
rdtsc
shl rdx, 0x20
or rax, rdx
mov rbx, rax
sub rbx, rdi
mov rdx, rbx
lea rcx, str.new_time___old_time:__lld_n
call fcn.1400010a0
lea rax, [rbx - 0x2710]
cmp rax, 0x15f90
ja 0x140001ba6
mov dword [rsp + 0x88], 0x200
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControl
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140001922
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x100]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x8c]
xor r8d, r8d
lea rdx, str.SystemStartOptions
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140001919
cmp dword [rsp + 0x8c], 1
jne 0x140001930
lea rdx, [rsp + 0x100]
lea rcx, str.SystemStartOptions:__s_n
call fcn.140001040
jmp 0x140001930
lea rcx, str.RegQueryValueEx_Error:__d_n
jmp 0x140001929
lea rcx, str.RegCreateKeyEx_Error:__d_n
mov edx, eax
call fcn.1400010a0
movdqa xmm0, xmmword [0x140004ac0]
movdqu xmmword [rsp + 0xc0], xmm0
mov word [rsp + 0xb0], si
lea rax, [rsp + 0x100]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], si
jne 0x140001960
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0xb0]
call fcn.140001d10
nop
lea r10, [rsp + 0xb0]
mov rbx, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xc8]
cmp rdi, 8
cmovae r10, rbx
mov rax, qword [rsp + 0xc0]
cmp rax, 5
jb 0x140001ad6
add rax, 0xfffffffffffffffc
lea r11, [r10 + rax*2]
mov rax, r10
lea rsi, str.DEBUG
nop dword [rax]
nop dword [rax + rax]
mov rcx, r11
sub rcx, rax
sar rcx, 1
je 0x140001ad6
cmp word [rax], 0x44
je 0x1400019ef
add rax, 2
sub rcx, 1
jmp 0x1400019d9
test rax, rax
je 0x140001ad6
mov r8d, 5
mov rdx, rsi
mov r9, rax
sub r9, rsi
nop word [rax + rax]
movzx ecx, word [rdx]
cmp word [r9 + rdx], cx
jne 0x140001a77
add rdx, 2
sub r8, 1
jne 0x140001a10
sub rax, r10
sar rax, 1
cmp rax, 0xffffffffffffffff
je 0x140001ad6
lea rcx, str.DEBUG_n
call fcn.1400010a0
nop
cmp rdi, 8
jb 0x140001a89
lea rdx, [rdi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140001a80
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001a80
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
add rax, 2
jmp 0x1400019d0
mov rcx, rbx
call fcn.140002720
nop
mov rdx, qword [rsp + 0xa8]
cmp rdx, 0x10
jb 0x140001bec
inc rdx
mov rcx, qword [rsp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001be7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001be7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
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 0x140001c13
lea rcx, str.CppTest.exe
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 0x140001b26
cmp rdi, 8
jb 0x140001b65
lea rdx, [rdi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140001b5c
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001b5c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.140002720
nop
mov rdx, qword [rsp + 0xa8]
cmp rdx, 0x10
jb 0x140001bec
inc rdx
mov rcx, qword [rsp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001be7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001be7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, qword [rsp + 0xa8]
cmp rdx, 0x10
jb 0x140001bec
inc rdx
mov rcx, qword [rsp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001be7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001be7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002720
xor eax, eax
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.140002170
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
lea rcx, str.CreateMutex_ERROR_ALREADY_EXISTS_n
call fcn.1400010a0
lea rcx, [rsp + 0x68]
call fcn.1400011b0
lea rdx, [0x140005520]
lea rcx, [rsp + 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
int3