Function at 0x14006aad0
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r12, rdx
mov rbp, rcx
mov rsi, qword [rdx + 0x10]
mov qword [rsp + 0x70], rsi
test rsi, rsi
je 0x14006ae20
xor r13d, r13d
mov qword [rax + 0x18], r13
lea rdx, [rax - 0x60]
mov rcx, qword [rcx + 0x10]
call fcn.14000f700
nop
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x30], rax
mov rbx, qword [rsp + 0x58]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0xffffffff80000002
lea r9, str.hKey_x__lpszSubKey_s__phSubKey_x
lea r8, str.OpenSubKey
lea rdx, str.CRegistryIF
mov rcx, qword [rbp]
call fcn.140081070
mov edi, r13d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14006ab99
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0xd0], rax
mov edi, 1
mov dword [rsp + 0x20], edi
lea r9, [0x1400fb428]
lea r8, str.OpenSubKey
lea rdx, str.CRegistryIF
mov rcx, qword [rbp]
call fcn.140081270
test edi, edi
jne 0x14006ac9f
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0xffffffff80000002
lea r9, str.hKey_x__lpszSubKey_s__phSubKey_x
lea r8, str.MakeSubKey
lea rdx, str.CRegistryIF
mov rcx, qword [rbp]
call fcn.140081070
mov edi, r13d
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14006ac54
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xd0], rax
mov edi, 1
mov dword [rsp + 0x20], edi
lea r9, [0x1400fb428]
lea r8, str.MakeSubKey
lea rdx, str.CRegistryIF
mov rcx, qword [rbp]
call fcn.140081270
test edi, edi
jne 0x14006ac9f
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14006ae20
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14006ae20
mov rdi, r13
test rsi, rsi
jle 0x14006adf5
nop
nop
test rdi, rdi
js 0x14006adef
cmp rdi, qword [r12 + 0x10]
jge 0x14006adef
mov rax, qword [r12 + 8]
mov rsi, qword [rax + rdi*8]
test rsi, rsi
je 0x14006adde
mov r14d, dword [rsi + 0xc]
mov r15, qword [rsi + 0x10]
mov r13d, dword [rsi + 8]
mov rax, qword [rsi]
mov qword [rsp + 0xd8], rax
mov rcx, qword [rsp + 0xd0]
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, str.hKey_x__lpszEntry_s__dwType_u__lpbyVal_x__nSize_u
lea r8, str.SetValueEx
lea rdx, str.CRegistryIF
mov rcx, qword [rbp]
call fcn.140081070
cmp r13d, 1
jne 0x14006ad63
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r15
mov r9d, r13d
xor r8d, r8d
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
test eax, eax
sete cl
jmp 0x14006ad8d
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r15
mov r9d, r13d
xor r8d, r8d
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
test eax, eax
sete cl
mov dword [rsp + 0x20], ecx
lea r9, [0x1400fb428]
lea r8, str.SetValueEx
lea rdx, str.CRegistryIF
mov rcx, qword [rbp]
call fcn.140081270
mov r8, qword [rsi]
mov rcx, qword [rbp + 8]
test r8, r8
je 0x14006adc6
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [rsi + 0x10]
mov rcx, qword [rbp + 8]
test r8, r8
je 0x14006adde
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rdi, 1
cmp rdi, qword [rsp + 0x70]
jl 0x14006acb0
jmp 0x14006adf5
call fcn.1400a0610
int3
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14006ae20
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret