Function at 0x1401ac950
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 0x1401accbb
mov edx, 0x5c
mov rcx, qword [r14]
call fcn.14029aea8
mov rdi, rax
test rax, rax
je 0x1401accbb
sub rdi, qword [r14]
sar rdi, 1
test edi, edi
jle 0x1401accbb
lea rax, [0x140323de0]
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.1401eaef0
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rbp - 0x19]
call fcn.1401e9030
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.14029b4d8
mov edx, dword [rbx + 0xc]
lea rcx, [rbp - 0x19]
call fcn.1401ea290
nop
cmp dword [rbp + 0x1f], 0
jle 0x1401aca21
mov rcx, qword [rbp + 0x17]
call fcn.140298600
mov r9d, edi
xor r8d, r8d
lea rdx, [rbp + 0x17]
mov rcx, r14
call fcn.1401eb1b0
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rbp - 9]
call fcn.1401e9030
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.14029b4d8
mov edx, dword [rbx + 0xc]
lea rcx, [rbp - 9]
call fcn.1401ea290
nop
cmp dword [rbp + 0x1f], 0
jle 0x1401aca76
mov rcx, qword [rbp + 0x17]
call fcn.140298600
mov r8, qword [rbp - 9]
mov rdx, qword [rbp - 0x19]
lea rcx, str.SetAndWatchRegistryValue:__s_in__s_n
call fcn.14029a88c
mov r8d, 1
lea rdx, str.HKLMSYSTEMCurrentControlSet
lea rcx, [rbp - 9]
call fcn.1401eb700
test al, al
je 0x1401acc9c
xor bl, bl
mov byte [rbp + 0x6f], bl
lea rcx, [rbp + 0x17]
call fcn.1401a76e0
nop
mov r8, qword [rbp + 0x17]
lea rdx, str.SYSTEM_sControlSession_ManagerSubSystems
lea rcx, [rbp + 7]
call fcn.1401e94c0
nop
mov rdx, qword [rbp + 7]
lea rcx, str.Watching:__s_n
call fcn.14029a88c
call qword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
shr ax, 8
cmp ecx, 5
jne 0x1401acaf8
test al, al
jne 0x1401acaf8
mov r14, qword [rbp + 0x6f]
jmp 0x1401acb24
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.1401a74b0
movzx ebx, al
mov byte [rbp + 0x6f], al
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 9]
call fcn.1400ecf50
mov rdi, rax
mov r13, qword [rbp + 0x7f]
test rax, rax
je 0x1401acc6c
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 0x1401acc5f
mov dword [rbp + 0x7f], 0
mov edx, 0x2710
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1401acc5f
nop word [rax + rax]
lea rcx, str.GetWatchRegistryChangeThreadID___r_n
call fcn.1401a2060
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 0x1401acc45
mov rbx, qword [rbp - 0x29]
test ebx, ebx
je 0x1401acc45
mov edx, ebx
lea rcx, str.Suspending_thread__d_r_n
call fcn.1401a2060
mov ecx, ebx
call fcn.1401a3be0
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 0x1401acc5b
mov edx, 0x2710
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1401acba0
movzx ebx, byte [rbp + 0x6f]
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
test bl, bl
je 0x1401acc7c
mov rdx, r13
mov rcx, r15
call fcn.1401a7660
nop
cmp dword [rbp + 0xf], 0
jle 0x1401acc8c
mov rcx, qword [rbp + 7]
call fcn.140298600
nop
cmp dword [rbp + 0x1f], 0
jle 0x1401acc9c
mov rcx, qword [rbp + 0x17]
call fcn.140298600
nop
cmp dword [rbp - 0x11], 0
jle 0x1401accac
mov rcx, qword [rbp - 0x19]
call fcn.140298600
nop
cmp dword [rbp - 1], 0
jle 0x1401accbb
mov rcx, qword [rbp - 9]
call fcn.140298600
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