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 + 0x308], rax
rdtsc
shl rdx, 0x20
or rax, rdx
mov rdi, rax
movdqa xmm0, xmmword [0x140004ad0]
movdqu xmmword [rsp + 0x98], xmm0
mov byte [rsp + 0x88], 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 - 0x290]
call fcn.140001e70
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 + 0xa0]
cmp rdx, 0x10
jb 0x140001bdc
inc rdx
mov rcx, qword [rsp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001bd7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001bd7
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 + 0xa0]
cmp rdx, 0x10
jb 0x140001bdc
inc rdx
mov rcx, qword [rsp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001bd7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001bd7
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 0x140001b96
mov dword [rsp + 0x80], 0x200
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x78]
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 0x14000191c
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x100]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x84]
xor r8d, r8d
lea rdx, str.SystemStartOptions
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140001913
cmp dword [rsp + 0x84], 1
jne 0x14000192a
lea rdx, [rsp + 0x100]
lea rcx, str.SystemStartOptions:__s_n
call fcn.140001040
jmp 0x14000192a
lea rcx, str.RegQueryValueEx_Error:__d_n
jmp 0x140001923
lea rcx, str.RegCreateKeyEx_Error:__d_n
mov edx, eax
call fcn.1400010a0
movdqa xmm0, xmmword [0x140004ac0]
movdqu xmmword [rsp + 0xb8], xmm0
mov word [rsp + 0xa8], si
lea rax, [rsp + 0x100]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], si
jne 0x140001952
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0xa8]
call fcn.140001d00
nop
lea r10, [rsp + 0xa8]
mov rbx, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xc0]
cmp rdi, 8
cmovae r10, rbx
mov rax, qword [rsp + 0xb8]
cmp rax, 5
jb 0x140001ac6
add rax, 0xfffffffffffffffc
lea r11, [r10 + rax*2]
mov rax, r10
lea rsi, str.DEBUG
nop word [rax + rax]
mov rcx, r11
sub rcx, rax
sar rcx, 1
je 0x140001ac6
cmp word [rax], 0x44
je 0x1400019df
add rax, 2
sub rcx, 1
jmp 0x1400019c9
test rax, rax
je 0x140001ac6
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 0x140001a67
add rdx, 2
sub r8, 1
jne 0x140001a00
sub rax, r10
sar rax, 1
cmp rax, 0xffffffffffffffff
je 0x140001ac6
lea rcx, str.DEBUG_n
call fcn.1400010a0
nop
cmp rdi, 8
jb 0x140001a79
lea rdx, [rdi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140001a70
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001a70
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
add rax, 2
jmp 0x1400019c0
mov rcx, rbx
call fcn.140002710
nop
mov rdx, qword [rsp + 0xa0]
cmp rdx, 0x10
jb 0x140001bdc
inc rdx
mov rcx, qword [rsp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001bd7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001bd7
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 0x140001c03
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 0x140001b16
cmp rdi, 8
jb 0x140001b55
lea rdx, [rdi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140001b4c
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001b4c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.140002710
nop
mov rdx, qword [rsp + 0xa0]
cmp rdx, 0x10
jb 0x140001bdc
inc rdx
mov rcx, qword [rsp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001bd7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001bd7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, qword [rsp + 0xa0]
cmp rdx, 0x10
jb 0x140001bdc
inc rdx
mov rcx, qword [rsp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001bd7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001bd7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002710
xor eax, eax
mov rcx, qword [rsp + 0x308]
xor rcx, rsp
call fcn.140002160
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 + 0x60]
call fcn.1400011b0
lea rdx, [0x140005518]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
int3