Function at 0x1401bde50
Capabilities:
Check os version
Set registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
mov qword [rbp - 0x21], 0xfffffffffffffffe
mov qword [rsp + 0xe0], rbx
mov r12, r8
mov r14, rdx
mov r15, rcx
xor sil, sil
cmp dword [rdx + 0xc], 0
je 0x1401be1bb
mov edx, 0x5c
mov rcx, qword [r14]
call fcn.1402bcbec
mov rdi, rax
test rax, rax
je 0x1401be1bb
sub rdi, qword [r14]
sar rdi, 1
test edi, edi
jle 0x1401be1bb
lea rax, [0x140348ca0]
mov qword [rbp - 9], rax
xor ecx, ecx
mov qword [rbp - 1], rcx
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], rcx
lea r8d, [rdi + 1]
lea rdx, [rbp + 0x17]
mov rcx, r14
call fcn.1402011d0
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rbp - 0x19]
call fcn.1401ff260
movsxd r9, dword [rbx + 0xc]
mov eax, dword [rbp - 0x11]
inc eax
movsxd rdx, eax
mov r8, qword [rbx]
mov rcx, qword [rbp - 0x19]
call fcn.1402bd21c
mov edx, dword [rbx + 0xc]
lea rcx, [rbp - 0x19]
call fcn.140200570
nop
cmp dword [rbp + 0x1f], 0
jle 0x1401bdf21
mov rcx, qword [rbp + 0x17]
call fcn.1402b9c20
mov r9d, edi
xor r8d, r8d
lea rdx, [rbp + 0x17]
mov rcx, r14
call fcn.140201490
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rbp - 9]
call fcn.1401ff260
movsxd r9, dword [rbx + 0xc]
mov eax, dword [rbp - 1]
inc eax
movsxd rdx, eax
mov r8, qword [rbx]
mov rcx, qword [rbp - 9]
call fcn.1402bd21c
mov edx, dword [rbx + 0xc]
lea rcx, [rbp - 9]
call fcn.140200570
nop
cmp dword [rbp + 0x1f], 0
jle 0x1401bdf76
mov rcx, qword [rbp + 0x17]
call fcn.1402b9c20
mov r8, qword [rbp - 9]
mov rdx, qword [rbp - 0x19]
lea rcx, str.SetAndWatchRegistryValue:__s_in__s_n
call fcn.1402bbf64
mov r8d, 1
lea rdx, str.HKLMSYSTEMCurrentControlSet
lea rcx, [rbp - 9]
call fcn.1402019e0
test al, al
je 0x1401be19c
xor bl, bl
mov byte [rbp + 0x6f], bl
lea rcx, [rbp + 0x17]
call fcn.1401b8ab0
nop
mov r8, qword [rbp + 0x17]
lea rdx, str.SYSTEM_sControlSession_ManagerSubSystems
lea rcx, [rbp + 7]
call fcn.1401ff700
nop
mov rdx, qword [rbp + 7]
lea rcx, str.Watching:__s_n
call fcn.1402bbf64
call qword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
shr ax, 8
cmp ecx, 5
jne 0x1401bdff8
test al, al
jne 0x1401bdff8
mov r14, qword [rbp + 0x6f]
jmp 0x1401be024
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r14, rax
lea r9, [rbp + 0x7f]
mov r8, rax
lea rdx, [rbp + 7]
mov rcx, r15
call fcn.1401b8880
movzx ebx, al
mov byte [rbp + 0x6f], al
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 9]
call fcn.1400ec370
mov rdi, rax
mov r13, qword [rbp + 0x7f]
test rax, rax
je 0x1401be16c
mov eax, dword [r12 + 0xc]
mov rcx, qword [r12]
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rbp - 0x19]
mov rcx, qword [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov sil, 1
test bl, bl
je 0x1401be15f
mov dword [rbp + 0x7f], 0
mov edx, 0x2710
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1401be15f
nop word [rax + rax]
lea rcx, str.GetWatchRegistryChangeThreadID___r_n
call fcn.1401b34f0
mov qword [rbp - 0x31], r13
mov qword [rsp + 0x38], 0
lea rax, [rbp - 0x39]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 8
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
mov r9d, 8
lea r8, [rbp - 0x31]
mov edx, 0x22e048
mov rcx, qword [r15 + 0x20]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1401be145
mov rbx, qword [rbp - 0x29]
test ebx, ebx
je 0x1401be145
mov edx, ebx
lea rcx, str.Suspending_thread__d_r_n
call fcn.1401b34f0
mov ecx, ebx
call fcn.1401b5040
mov eax, dword [r12 + 0xc]
mov rcx, qword [r12]
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rbp - 0x19]
mov rcx, qword [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, dword [rbp + 0x7f]
inc ebx
mov dword [rbp + 0x7f], ebx
cmp ebx, 2
je 0x1401be15b
mov edx, 0x2710
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1401be0a0
movzx ebx, byte [rbp + 0x6f]
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
test bl, bl
je 0x1401be17c
mov rdx, r13
mov rcx, r15
call fcn.1401b8a30
nop
cmp dword [rbp + 0xf], 0
jle 0x1401be18c
mov rcx, qword [rbp + 7]
call fcn.1402b9c20
nop
cmp dword [rbp + 0x1f], 0
jle 0x1401be19c
mov rcx, qword [rbp + 0x17]
call fcn.1402b9c20
nop
cmp dword [rbp - 0x11], 0
jle 0x1401be1ac
mov rcx, qword [rbp - 0x19]
call fcn.1402b9c20
nop
cmp dword [rbp - 1], 0
jle 0x1401be1bb
mov rcx, qword [rbp - 9]
call fcn.1402b9c20
movzx eax, sil
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret