Function at 0x1401bc830
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 0x1401bcb9b
mov edx, 0x5c
mov rcx, qword [r14]
call fcn.1402ba31c
mov rdi, rax
test rax, rax
je 0x1401bcb9b
sub rdi, qword [r14]
sar rdi, 1
test edi, edi
jle 0x1401bcb9b
lea rax, [0x140346ce0]
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.1401feab0
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rbp - 0x19]
call fcn.1401fcb40
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.1402ba94c
mov edx, dword [rbx + 0xc]
lea rcx, [rbp - 0x19]
call fcn.1401fde50
nop
cmp dword [rbp + 0x1f], 0
jle 0x1401bc901
mov rcx, qword [rbp + 0x17]
call fcn.1402b7350
mov r9d, edi
xor r8d, r8d
lea rdx, [rbp + 0x17]
mov rcx, r14
call fcn.1401fed70
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rbp - 9]
call fcn.1401fcb40
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.1402ba94c
mov edx, dword [rbx + 0xc]
lea rcx, [rbp - 9]
call fcn.1401fde50
nop
cmp dword [rbp + 0x1f], 0
jle 0x1401bc956
mov rcx, qword [rbp + 0x17]
call fcn.1402b7350
mov r8, qword [rbp - 9]
mov rdx, qword [rbp - 0x19]
lea rcx, str.SetAndWatchRegistryValue:__s_in__s_n
call fcn.1402b9694
mov r8d, 1
lea rdx, str.HKLMSYSTEMCurrentControlSet
lea rcx, [rbp - 9]
call fcn.1401ff2c0
test al, al
je 0x1401bcb7c
xor bl, bl
mov byte [rbp + 0x6f], bl
lea rcx, [rbp + 0x17]
call fcn.1401b74a0
nop
mov r8, qword [rbp + 0x17]
lea rdx, str.SYSTEM_sControlSession_ManagerSubSystems
lea rcx, [rbp + 7]
call fcn.1401fcfe0
nop
mov rdx, qword [rbp + 7]
lea rcx, str.Watching:__s_n
call fcn.1402b9694
call qword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
shr ax, 8
cmp ecx, 5
jne 0x1401bc9d8
test al, al
jne 0x1401bc9d8
mov r14, qword [rbp + 0x6f]
jmp 0x1401bca04
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.1401b7270
movzx ebx, al
mov byte [rbp + 0x6f], al
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 9]
call fcn.1400eb0d0
mov rdi, rax
mov r13, qword [rbp + 0x7f]
test rax, rax
je 0x1401bcb4c
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 0x1401bcb3f
mov dword [rbp + 0x7f], 0
mov edx, 0x2710
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1401bcb3f
nop word [rax + rax]
lea rcx, str.GetWatchRegistryChangeThreadID___r_n
call fcn.1401b1eb0
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 0x1401bcb25
mov rbx, qword [rbp - 0x29]
test ebx, ebx
je 0x1401bcb25
mov edx, ebx
lea rcx, str.Suspending_thread__d_r_n
call fcn.1401b1eb0
mov ecx, ebx
call fcn.1401b3a30
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 0x1401bcb3b
mov edx, 0x2710
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1401bca80
movzx ebx, byte [rbp + 0x6f]
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
test bl, bl
je 0x1401bcb5c
mov rdx, r13
mov rcx, r15
call fcn.1401b7420
nop
cmp dword [rbp + 0xf], 0
jle 0x1401bcb6c
mov rcx, qword [rbp + 7]
call fcn.1402b7350
nop
cmp dword [rbp + 0x1f], 0
jle 0x1401bcb7c
mov rcx, qword [rbp + 0x17]
call fcn.1402b7350
nop
cmp dword [rbp - 0x11], 0
jle 0x1401bcb8c
mov rcx, qword [rbp - 0x19]
call fcn.1402b7350
nop
cmp dword [rbp - 1], 0
jle 0x1401bcb9b
mov rcx, qword [rbp - 9]
call fcn.1402b7350
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