Function at 0x14001ab30
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, 0xe8
mov qword [rbp + 0xf], 0xfffffffffffffffe
mov r13d, r8d
mov r14, rdx
mov r15, rcx
movzx eax, byte [0x1401a9d84]
neg al
sbb r12, r12
lea rcx, [0x1401a19a8]
mov rax, qword [0x1401a19a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x61], rax
mov eax, dword [0x1401a9d80]
lea ecx, [rax + 1]
imul ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 7
sub ecx, edx
cmp ecx, 1
jne 0x14001abd0
mov edx, 0x95
lea r8d, [rdx + 1]
lea rcx, str._d__d_n
call fcn.1400c4884
xor eax, eax
mov qword [rbp - 0x79], rax
mov dword [rbp - 0x71], eax
mov qword [rbp - 0x69], rax
mov eax, dword [0x1401a9d80]
lea ecx, [rax + 1]
imul ecx, eax
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xd
sub ecx, edx
cmp ecx, 8
jne 0x14001ac0c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetFileType]
lea rcx, [0x1401a19a8]
mov rax, qword [0x1401a19a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x59], rbx
lea rcx, [0x1401a19a8]
mov rax, qword [0x1401a19a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x51], rax
lea rax, [0x140135ea8]
mov rsi, rax
shr rsi, 0x10
test rsi, rsi
jne 0x14001ac71
movzx edi, ax
mov ecx, edi
call fcn.1400019f0
test rax, rax
je 0x14001ac7e
mov r8d, edi
mov rdx, rax
lea rcx, [rbp - 0x51]
call fcn.140002530
jmp 0x14001ac7e
mov rdx, rax
lea rcx, [rbp - 0x51]
call fcn.140003150
nop
lea r8, [rbp - 0x51]
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x19]
call fcn.14000ee60
nop
lea r8, [0x1401a9fc0]
mov rdx, rax
lea rcx, [rbp - 9]
call fcn.14000ee60
nop
lea r8, [0x140135e30]
mov rdx, rax
lea rcx, [rbp - 0x39]
call fcn.140019610
nop
mov r8, r15
mov rdx, rax
lea rcx, [rbp - 1]
call fcn.14000ee60
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
lea rdi, [rbx - 0x18]
or ebx, 0xffffffff
cmp rcx, rdi
je 0x14001ad20
cmp dword [rdi + 0x10], 0
jl 0x14001ad12
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14001ad12
call fcn.140002390
mov r13, rax
lock add dword [rdi + 0x10], ebx
jg 0x14001ad04
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [r13 + 0x18]
mov qword [rbp - 0x59], rax
mov r13d, dword [rbp + 0x77]
jmp 0x14001ad20
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x59]
call fcn.140002240
nop
mov rdx, qword [rbp - 1]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001ad39
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 0x14001ad52
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 9]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001ad6b
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 0x14001ad84
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 0x14001ad9c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [0x1401a19a8]
mov rax, qword [0x1401a19a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x49], rax
lea rdx, [0x140135ea8]
test rsi, rsi
jne 0x14001ade1
movzx edi, dx
mov ecx, edi
call fcn.1400019f0
test rax, rax
je 0x14001adeb
mov r8d, edi
mov rdx, rax
lea rcx, [rbp - 0x49]
call fcn.140002530
jmp 0x14001adeb
lea rcx, [rbp - 0x49]
call fcn.140003150
nop
lea r8, [rbp - 0x49]
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x11]
call fcn.14000ee60
nop
lea r8, [0x1401a9fc0]
mov rdx, rax
lea rcx, [rbp - 0x21]
call fcn.14000ee60
nop
lea r8, [0x140135e30]
mov rdx, rax
lea rcx, [rbp - 0x31]
call fcn.140019610
nop
mov r8, r15
mov rdx, rax
lea rcx, [rbp + 7]
call fcn.14000ee60
nop
xor esi, esi
mov qword [rbp - 0x41], rsi
lea rcx, [rbp - 0x29]
mov qword [rsp + 0x40], rcx
lea rcx, [rbp - 0x41]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rax]
lea rcx, [r12 - 0x7ffffffe]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ecx, eax
test eax, eax
jne 0x14001ae88
mov dword [rbp - 0x71], esi
mov ecx, esi
mov rax, qword [rbp - 0x41]
mov qword [rbp - 0x79], rax
test ecx, ecx
setne dil
mov rdx, qword [rbp + 7]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001aea7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x31]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001aec0
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 0x14001aed9
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 0x14001aef2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x49]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001af0a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x14001af95
mov rdx, qword [rbp - 0x59]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001af2c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rbp - 0x79]
test rcx, rcx
je 0x14001af3f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x79], rsi
mov dword [rbp - 0x71], esi
mov rdx, qword [rbp - 0x61]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001af5b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r15]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14001af77
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001af8e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x14001b0d7
mov dword [rbp + 0x7f], r13d
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [r14]
mov rdi, qword [rbp - 0x79]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14001b045
test rdi, rdi
je 0x14001afd9
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x79], rsi
mov dword [rbp - 0x71], esi
mov rdx, qword [rbp - 0x59]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001aff5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rbp - 0x79]
test rcx, rcx
je 0x14001b008
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x79], rsi
mov dword [rbp - 0x71], esi
mov rdx, qword [rbp - 0x61]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001b024
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r15]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14001b040
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x14001af77
test rdi, rdi
je 0x14001b057
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x79], rsi
mov dword [rbp - 0x71], esi
mov rdx, qword [rbp - 0x59]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001b073
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rbp - 0x79]
test rcx, rcx
je 0x14001b086
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x79], rsi
mov dword [rbp - 0x71], esi
mov rdx, qword [rbp - 0x61]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001b0a2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r15]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14001b0be
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001b0d5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov al, 1
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret