Function at 0x14008a3c0
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x21a0
call fcn.1400b9f10
sub rsp, rax
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rax, qword [0x14017a140]
xor rax, rsp
mov qword [rsp + 0x2190], rax
mov r14, r8
mov qword [rsp + 0x48], r8
mov r13, rdx
mov rdi, rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
xor esi, esi
mov word [rsp + 0x30], si
lea rdx, [rsp + 0x190]
call fcn.14008b730
test eax, eax
js 0x14008a812
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x190]
call fcn.14008d2b0
test eax, eax
jne 0x14008a457
mov eax, 0x80020009
jmp 0x14008a812
mov rcx, rdi
call fcn.14008cd30
lea rdx, [rsp + 0x190]
mov rcx, rdi
call fcn.14008b730
test eax, eax
js 0x14008a812
movzx eax, word [rsp + 0x30]
cmp eax, 8
je 0x14008a7a4
cmp eax, 0x11
je 0x14008a611
cmp eax, 0x13
je 0x14008a5d4
cmp eax, 0x4008
jne 0x14008a7fe
lea rdx, [rsp + 0x190]
or rcx, 0xffffffffffffffff
mov rax, rcx
inc rax
cmp word [rdx + rax*2], si
jne 0x14008a4b1
add eax, 2
mov qword [rsp + 0x80], rsi
movsxd r8, eax
test eax, eax
je 0x14008a500
xor edx, edx
mov rax, rcx
div r8
cmp rax, 2
jb 0x14008a4f6
lea rdx, [r8 + r8]
cmp rdx, 0x100
jbe 0x14008a500
lea rcx, [rsp + 0x80]
call fcn.14008a840
jmp 0x14008a510
mov ecx, 0x80070216
call fcn.14005d864
lea rax, [rsp + 0x88]
mov qword [rsp + 0x80], rax
jmp 0x14008a528
mov rdi, qword [rsp + 0x80]
test rdi, rdi
je 0x14008a5a7
lea rbx, [rsp + 0x190]
cmp word [rsp + 0x190], 0
je 0x14008a58a
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [rbx]
cmp cx, 0x5c
jne 0x14008a579
cmp word [rax], 0x30
jne 0x14008a579
mov word [rdi], si
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextW]
mov rbx, rax
jmp 0x14008a580
mov word [rdi], cx
add rbx, 2
add rdi, 2
cmp word [rbx], 0
jne 0x14008a550
mov dword [rdi], 0
mov r8, qword [rsp + 0x80]
mov rdx, r14
mov rcx, r13
call fcn.14008cc40
mov ebx, eax
jmp 0x14008a5ac
mov ebx, SafeArrayGetDim
lea rax, [rsp + 0x88]
cmp qword [rsp + 0x80], rax
je 0x14008a7ec
lea rcx, [rsp + 0x80]
call fcn.14008b080
jmp 0x14008a7ec
mov qword [rsp + 0x48], rsi
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x190]
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
jns 0x14008a5fa
jmp 0x14008a812
mov r8d, dword [rsp + 0x30]
mov rdx, r14
mov rcx, r13
call fcn.14008cc00
mov ebx, eax
jmp 0x14008a7f1
lea rax, [rsp + 0x190]
or rcx, 0xffffffffffffffff
mov rbx, rcx
inc rbx
cmp word [rax + rbx*2], si
jne 0x14008a620
mov dword [rsp + 0x30], ebx
test bl, 1
jne 0x14008a6ee
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
movsxd r15, eax
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x80], rsi
mov r8, r15
test eax, eax
jne 0x14008a659
mov r8, rsi
jmp 0x14008a671
xor edx, edx
mov rax, rcx
div r8
cmp rax, 1
jae 0x14008a671
mov ecx, 0x80070216
call fcn.14005d864
cmp r8, 0x100
jbe 0x14008a68c
mov rdx, r8
lea rcx, [rsp + 0x80]
call fcn.14008a840
jmp 0x14008a69c
lea rax, [rsp + 0x88]
mov qword [rsp + 0x80], rax
jmp 0x14008a6c2
mov rcx, qword [rsp + 0x80]
test rcx, rcx
jne 0x14008a6f8
lea rax, [rsp + 0x88]
cmp qword [rsp + 0x80], rax
je 0x14008a6ee
lea rcx, [rsp + 0x80]
call fcn.14008b080
mov eax, 0x80004005
jmp 0x14008a812
movsxd r8, r15d
xor edx, edx
call fcn.1400bbca0
mov edi, esi
movsxd r12, ebx
mov r14, rsi
test ebx, ebx
jle 0x14008a757
nop
mov eax, edi
test edi, edi
jns 0x14008a719
lea eax, [rdi + 1]
sar eax, 1
movsxd rbx, eax
add rbx, qword [rsp + 0x80]
movzx ecx, word [rsp + r14*2 + 0x190]
call fcn.14008ab50
movzx edx, al
mov ecx, edi
and ecx, 1
shl ecx, 2
mov eax, 4
sub eax, ecx
movzx ecx, al
shl dl, cl
or byte [rbx], dl
inc edi
inc r14
cmp r14, r12
jl 0x14008a710
mov dword [rsp + 0x28], r15d
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
lea rax, [rsp + 0x88]
cmp qword [rsp + 0x80], rax
je 0x14008a7ec
lea rcx, [rsp + 0x80]
call fcn.14008b080
jmp 0x14008a7ec
lea rax, [rsp + 0x190]
or rcx, 0xffffffffffffffff
lea rcx, [rcx + 1]
cmp word [rax + rcx*2], si
jne 0x14008a7b0
lea eax, [rcx*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x190]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, r14
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
jmp 0x14008a7f1
mov rdi, qword [rsp + 0x38]
test ebx, ebx
je 0x14008a7fe
mov ecx, ebx
call fcn.14008a970
jmp 0x14008a812
mov rdx, qword [rsp + 0x68]
mov rcx, rdi
call fcn.14008b730
test eax, eax
cmovs esi, eax
mov eax, esi
mov rcx, qword [rsp + 0x2190]
xor rcx, rsp
call fcn.1400b9f80
add rsp, 0x21a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret