Function at 0x1400068d8
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x21a0
call fcn.14000e510
sub rsp, rax
mov rax, qword [0x14001c508]
xor rax, rsp
mov qword [rsp + 0x2190], rax
mov r13, r8
mov r12, rdx
mov r14, rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x60], r9
xor ebx, ebx
mov word [rsp + 0x30], bx
lea rdx, [rsp + 0x190]
call fcn.140007a34
test eax, eax
js 0x140006953
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x190]
call fcn.140009e38
test eax, eax
jne 0x140006976
mov eax, 0x80020009
mov rcx, qword [rsp + 0x2190]
xor rcx, rsp
call fcn.14000df40
add rsp, 0x21a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov rdx, qword [r14]
movzx ecx, word [rdx]
sub ecx, 9
je 0x140006d1d
sub ecx, 1
je 0x140006d1d
sub ecx, 3
je 0x140006d1d
cmp ecx, 0x13
je 0x140006d1d
lea rdx, [rsp + 0x190]
mov rcx, r14
call fcn.140007a34
test eax, eax
js 0x140006953
movzx eax, word [rsp + 0x30]
cmp eax, 8
je 0x140006cb6
cmp eax, 0x11
je 0x140006b3b
cmp eax, 0x13
je 0x140006afb
cmp eax, 0x4008
jne 0x140006d04
lea rcx, [rsp + 0x190]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
add eax, 2
mov qword [rsp + 0x80], rbx
movsxd rcx, eax
test eax, eax
je 0x140006a36
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140006d2e
lea rdx, [rcx + rcx]
cmp rdx, 0x100
jbe 0x140006a36
lea rcx, [rsp + 0x80]
call fcn.140006d48
mov rdi, qword [rsp + 0x80]
jmp 0x140006a46
lea rdi, [rsp + 0x88]
mov qword [rsp + 0x80], rdi
jmp 0x140006a61
test rdi, rdi
je 0x140006ad3
lea rsi, [rsp + 0x190]
cmp word [rsp + 0x190], bx
je 0x140006ab1
mov rcx, rsi
call qword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [rsi]
cmp cx, 0x5c
jne 0x140006aa1
cmp word [rax], 0x30
jne 0x140006aa1
mov word [rdi], bx
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextW]
mov rsi, rax
jmp 0x140006aa8
mov word [rdi], cx
add rsi, 2
add rdi, 2
cmp word [rsi], bx
jne 0x140006a78
and dword [rdi], 0
mov r8, qword [rsp + 0x80]
mov rdx, r13
mov rcx, r12
call fcn.140009524
mov esi, eax
mov rdi, qword [rsp + 0x80]
jmp 0x140006ad8
mov esi, SafeArrayDestroy
lea rax, [rsp + 0x88]
cmp rdi, rax
je 0x140006cf4
lea rcx, [rsp + 0x80]
call fcn.14000781c
jmp 0x140006cf4
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x190]
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
js 0x140006953
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x38]
mov r9d, 4
jmp 0x140006cdd
lea rcx, [rsp + 0x190]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov rsi, rax
mov dword [rsp + 0x38], eax
test al, 1
jne 0x140006bfa
cdq
sub eax, edx
sar eax, 1
movsxd r15, eax
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x80], rbx
mov rdi, r15
mov qword [rsp + 0x40], r15
test eax, eax
je 0x140006baf
xor edx, edx
or rax, 0xffffffffffffffff
div rdi
cmp rax, 1
jb 0x140006d39
cmp rdi, 0x100
jbe 0x140006baf
mov rdx, rdi
lea rcx, [rsp + 0x80]
call fcn.140006d48
mov rcx, qword [rsp + 0x80]
jmp 0x140006bbf
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x80], rcx
jmp 0x140006be8
test rcx, rcx
jne 0x140006c04
lea rcx, [rsp + 0x80]
call fcn.14000781c
mov eax, 0x80004005
jmp 0x140006953
mov r8, rdi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov edi, ebx
movsxd rax, esi
test esi, esi
jle 0x140006c6b
mov rsi, rbx
mov r15, rax
movzx ecx, word [rsp + rsi*2 + 0x190]
call fcn.140006ff0
movzx r8d, al
mov ecx, edi
and ecx, 1
shl ecx, 2
mov eax, 4
sub eax, ecx
mov cl, al
shl r8d, cl
mov eax, edi
test edi, edi
jns 0x140006c4b
lea eax, [rdi + 1]
sar eax, 1
movsxd rdx, eax
mov rcx, qword [rsp + 0x80]
or byte [rdx + rcx], r8b
inc edi
inc rsi
cmp rsi, r15
jl 0x140006c1d
mov r15d, dword [rsp + 0x30]
mov dword [rsp + 0x28], r15d
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, r13
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea rax, [rsp + 0x88]
cmp qword [rsp + 0x80], rax
je 0x140006cf4
lea rcx, [rsp + 0x80]
call fcn.14000781c
jmp 0x140006cf4
lea rcx, [rsp + 0x190]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
lea rax, [rsp + 0x190]
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, r13
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x140006d04
mov ecx, esi
call fcn.140006ed8
jmp 0x140006953
mov rdx, qword [rsp + 0x60]
mov rcx, r14
call fcn.140007a34
test eax, eax
cmovs ebx, eax
mov eax, ebx
jmp 0x140006953
mov rcx, rdx
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [r14], rax
jmp 0x140006976
mov ecx, 0x80070216
call fcn.140001da0
nop
mov ecx, 0x80070216
call fcn.140001da0
int3