Function at 0x1401c0050
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 0x1401c03bb
mov edx, 0x5c
mov rcx, qword [r14]
call fcn.1402c00ac
mov rdi, rax
test rax, rax
je 0x1401c03bb
sub rdi, qword [r14]
sar rdi, 1
test edi, edi
jle 0x1401c03bb
lea rax, [0x14034d1a0]
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.140204810
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rbp - 0x19]
call fcn.1402028a0
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.1402c06dc
mov edx, dword [rbx + 0xc]
lea rcx, [rbp - 0x19]
call fcn.140203bb0
nop
cmp dword [rbp + 0x1f], 0
jle 0x1401c0121
mov rcx, qword [rbp + 0x17]
call fcn.1402bd0e0
mov r9d, edi
xor r8d, r8d
lea rdx, [rbp + 0x17]
mov rcx, r14
call fcn.140204ad0
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rbp - 9]
call fcn.1402028a0
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.1402c06dc
mov edx, dword [rbx + 0xc]
lea rcx, [rbp - 9]
call fcn.140203bb0
nop
cmp dword [rbp + 0x1f], 0
jle 0x1401c0176
mov rcx, qword [rbp + 0x17]
call fcn.1402bd0e0
mov r8, qword [rbp - 9]
mov rdx, qword [rbp - 0x19]
lea rcx, str.SetAndWatchRegistryValue:__s_in__s_n
call fcn.1402bf424
mov r8d, 1
lea rdx, str.HKLMSYSTEMCurrentControlSet
lea rcx, [rbp - 9]
call fcn.140205020
test al, al
je 0x1401c039c
xor bl, bl
mov byte [rbp + 0x6f], bl
lea rcx, [rbp + 0x17]
call fcn.1401bacb0
nop
mov r8, qword [rbp + 0x17]
lea rdx, str.SYSTEM_sControlSession_ManagerSubSystems
lea rcx, [rbp + 7]
call fcn.140202d40
nop
mov rdx, qword [rbp + 7]
lea rcx, str.Watching:__s_n
call fcn.1402bf424
call qword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
shr ax, 8
cmp ecx, 5
jne 0x1401c01f8
test al, al
jne 0x1401c01f8
mov r14, qword [rbp + 0x6f]
jmp 0x1401c0224
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.1401baa80
movzx ebx, al
mov byte [rbp + 0x6f], al
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 9]
call fcn.1400ed8e0
mov rdi, rax
mov r13, qword [rbp + 0x7f]
test rax, rax
je 0x1401c036c
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 0x1401c035f
mov dword [rbp + 0x7f], 0
mov edx, 0x2710
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1401c035f
nop word [rax + rax]
lea rcx, str.GetWatchRegistryChangeThreadID___r_n
call fcn.1401b5550
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 0x1401c0345
mov rbx, qword [rbp - 0x29]
test ebx, ebx
je 0x1401c0345
mov edx, ebx
lea rcx, str.Suspending_thread__d_r_n
call fcn.1401b5550
mov ecx, ebx
call fcn.1401b70a0
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 0x1401c035b
mov edx, 0x2710
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1401c02a0
movzx ebx, byte [rbp + 0x6f]
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
test bl, bl
je 0x1401c037c
mov rdx, r13
mov rcx, r15
call fcn.1401bac30
nop
cmp dword [rbp + 0xf], 0
jle 0x1401c038c
mov rcx, qword [rbp + 7]
call fcn.1402bd0e0
nop
cmp dword [rbp + 0x1f], 0
jle 0x1401c039c
mov rcx, qword [rbp + 0x17]
call fcn.1402bd0e0
nop
cmp dword [rbp - 0x11], 0
jle 0x1401c03ac
mov rcx, qword [rbp - 0x19]
call fcn.1402bd0e0
nop
cmp dword [rbp - 1], 0
jle 0x1401c03bb
mov rcx, qword [rbp - 9]
call fcn.1402bd0e0
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