Function at 0x14001bbe0
Capabilities:
Set registry value

Disassembly:
mov byte [rsp + 0x20], r9b
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xf8
mov qword [rbp + 7], 0xfffffffffffffffe
mov r12, rdx
mov rsi, rcx
mov edi, dword [0x1401c3d80]
mov r9d, edi
imul r9d, edi
mov eax, 0x30c30c31
imul r9d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x15
sub r9d, edx
xor r14d, r14d
cmp r9d, 2
jne 0x14001bc9a
lea r8d, [r14 + 0x50]
mov r11d, r14d
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
test ebx, ebx
jle 0x14001bc92
mov eax, edi
cdq
and edx, 3
add eax, edx
sar eax, 2
mov r9d, r14d
mov r10, rbx
nop dword [rax]
test eax, eax
jle 0x14001bc8a
mov ecx, r9d
mov edx, eax
nop dword [rax]
add r8d, ecx
dec ecx
dec rdx
jne 0x14001bc80
add r9d, r11d
dec r10
jne 0x14001bc70
inc r11d
cmp r11d, r8d
jl 0x14001bc58
movzx eax, byte [0x1401c3d84]
neg al
sbb r15, r15
add r15, 0xffffffff80000002
mov qword [rbp - 0x49], r15
lea rcx, [0x1401bb9a8]
mov rax, qword [0x1401bb9a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x69], rax
mov qword [rsp + 0x58], r14
mov dword [rbp - 0x79], r14d
mov qword [rbp - 0x71], r14
lea rcx, [0x1401bb9a8]
mov rax, qword [0x1401bb9a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
mov ecx, dword [0x1401c3d80]
imul ecx, ecx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub ecx, eax
cmp ecx, 0x16
jne 0x14001bd3a
mov ecx, 4
call fcn.1400ce278
mov rdi, rax
call fcn.1400ce478
mov dword [rdi], eax
mov dword [0x1401c3d80], eax
mov rcx, rdi
call fcn.1400cdaa0
lea rcx, [0x1401bb9a8]
mov rax, qword [0x1401bb9a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x51], rax
lea rax, [0x14014ef80]
mov r14, rax
shr r14, 0x10
mov qword [rbp - 0x61], r14
test r14, r14
jne 0x14001bd8a
movzx edi, ax
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x14001bd97
mov r8d, edi
mov rdx, rax
lea rcx, [rbp - 0x51]
call fcn.1400025b0
jmp 0x14001bd97
mov rdx, rax
lea rcx, [rbp - 0x51]
call fcn.140003290
nop
lea r8, [rbp - 0x51]
lea rdx, [rbp - 0x69]
lea rcx, [rbp - 0x21]
call fcn.14000fc80
nop
lea r8, [0x1401c40f0]
mov rdx, rax
lea rcx, [rbp - 0x11]
call fcn.14000fc80
nop
lea r8, [0x14014ef10]
mov rdx, rax
lea rcx, [rbp - 0x41]
call fcn.14001a660
nop
mov r8, rsi
mov rdx, rax
lea rcx, [rbp - 9]
call fcn.14000fc80
nop
mov r13, qword [rax]
lea rcx, [r13 - 0x18]
lea rsi, [rbx - 0x18]
or edi, 0xffffffff
cmp rcx, rsi
je 0x14001bf43
cmp dword [rsi + 0x10], 0
jl 0x14001be2f
mov rax, qword [rsi]
cmp qword [rcx], rax
jne 0x14001be2f
call fcn.140002410
mov rbx, rax
lock add dword [rsi + 0x10], edi
jg 0x14001be21
mov rcx, qword [rsi]
mov r8, qword [rcx]
mov rdx, rsi
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rbx + 0x18]
mov qword [rsp + 0x50], rax
jmp 0x14001bf43
movsxd r14, dword [r13 - 0x10]
test r14d, r14d
jne 0x14001be9a
mov r14, qword [rsi]
cmp dword [rsi + 8], 0
je 0x14001bf3f
cmp dword [rsi + 0x10], 0
jge 0x14001be70
cmp dword [rbx - 0xc], 0
jge 0x14001be5c
mov ecx, 0x80070057
call fcn.140001920
int3
xor r13d, r13d
mov dword [rbx - 0x10], r13d
mov word [rbx], r13w
mov r14, qword [rbp - 0x61]
jmp 0x14001bf46
lock add dword [rsi + 0x10], 0xffffffff
jg 0x14001be83
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
jmp 0x14001bf3f
test r13, r13
jne 0x14001beaa
mov ecx, 0x80070057
call fcn.140001920
int3
mov r12d, dword [rbx - 0x10]
mov r15, r13
sub r15, rbx
sar r15, 1
test r14d, r14d
jns 0x14001bec7
mov ecx, 0x80070057
call fcn.140001920
int3
mov ecx, 1
sub ecx, dword [rsi + 0x10]
mov eax, dword [rsi + 0xc]
sub eax, r14d
or eax, ecx
jge 0x14001beeb
mov edx, r14d
lea rcx, [rsp + 0x50]
call fcn.1400023b0
mov rbx, qword [rsp + 0x50]
lea rsi, [r14 + r14]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
mov r9, rsi
add rdx, rdx
cmp r15, r12
ja 0x14001bf0c
lea r8, [rbx + r15*2]
call fcn.1400ce2e4
jmp 0x14001bf14
mov r8, r13
call fcn.1400ce4a4
cmp r14d, dword [rbx - 0xc]
jg 0x14001bf34
mov dword [rbx - 0x10], r14d
xor r13d, r13d
mov word [rsi + rbx], r13w
mov r14, qword [rbp - 0x61]
mov r15, qword [rbp - 0x49]
mov r12, qword [rbp + 0x6f]
jmp 0x14001bf46
mov ecx, 0x80070057
call fcn.140001920
int3
mov r14, qword [rbp - 0x61]
xor r13d, r13d
mov rdx, qword [rbp - 9]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001bf5f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x41]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001bf78
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x11]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001bf91
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x21]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001bfaa
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x51]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001bfc2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [0x1401bb9a8]
mov rax, qword [0x1401bb9a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x59], rax
lea rdx, [0x14014ef80]
test r14, r14
jne 0x14001c007
movzx ebx, dx
mov ecx, ebx
call fcn.1400019e0
test rax, rax
je 0x14001c011
mov r8d, ebx
mov rdx, rax
lea rcx, [rbp - 0x59]
call fcn.1400025b0
jmp 0x14001c011
lea rcx, [rbp - 0x59]
call fcn.140003290
nop
lea r8, [rbp - 0x59]
lea rdx, [rbp - 0x69]
lea rcx, [rbp - 0x19]
call fcn.14000fc80
nop
lea r8, [0x1401c40f0]
mov rdx, rax
lea rcx, [rbp - 0x29]
call fcn.14000fc80
nop
lea r8, [0x14014ef10]
mov rdx, rax
lea rcx, [rbp - 0x39]
call fcn.14001a660
nop
mov rsi, qword [rbp + 0x67]
mov r8, rsi
mov rdx, rax
lea rcx, [rbp - 1]
call fcn.14000fc80
nop
mov qword [rbp - 0x49], r13
lea rcx, [rbp - 0x31]
mov qword [rsp + 0x40], rcx
lea rcx, [rbp - 0x49]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ecx, eax
test eax, eax
jne 0x14001c0af
mov dword [rbp - 0x79], r13d
mov ecx, r13d
mov rax, qword [rbp - 0x49]
mov qword [rsp + 0x58], rax
test ecx, ecx
setne bl
mov rdx, qword [rbp - 1]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001c0cd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x39]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001c0e6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x29]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001c0ff
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x19]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001c118
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x59]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001c130
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
je 0x14001c1bf
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001c152
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14001c167
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x58], r13
mov dword [rbp - 0x79], r13d
mov rdx, qword [rbp - 0x69]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001c184
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14001c1a0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r12]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001c1b8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x14001c375
mov eax, dword [rbp + 0x77]
mov dword [rbp + 0x7f], eax
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [r12]
mov rbx, qword [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14001c2dc
mov edx, dword [0x1401c3d80]
lea r8d, [rdx + 2]
lea ecx, [rdx + 1]
imul r8d, ecx
imul r8d, edx
mov eax, 0x2aaaaaab
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub r8d, eax
cmp r8d, 4
jne 0x14001c258
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9d, eax
mov eax, 0xcccccccd
mul r9d
shr edx, 6
lea r8d, [rdx + rdx*4]
shl r8d, 4
sub r9d, r8d
lea eax, [r9 + 1]
mov dword [0x1401c3d80], eax
test rbx, rbx
je 0x14001c26b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x58], r13
mov dword [rbp - 0x79], r13d
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001c289
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14001c29e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x58], r13
mov dword [rbp - 0x79], r13d
mov rdx, qword [rbp - 0x69]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001c2bb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14001c2d7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x14001c1a0
test rbx, rbx
je 0x14001c2ef
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x58], r13
mov dword [rbp - 0x79], r13d
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001c30d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14001c322
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x58], r13
mov dword [rbp - 0x79], r13d
mov rdx, qword [rbp - 0x69]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001c33f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14001c35b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r12]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001c373
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov al, 1
add rsp, 0xf8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret