Function at 0x140064560
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x2190
call fcn.14007eb70
sub rsp, rax
mov rax, qword [0x1400dbc58]
xor rax, rsp
mov qword [rsp + 0x2180], rax
mov r14, r8
mov qword [rsp + 0x48], r8
mov r13, rdx
mov qword [rsp + 0x50], rdx
mov r12, rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x68], r9
xor esi, esi
mov word [rsp + 0x30], si
lea rdx, [rsp + 0x180]
call fcn.14006539c
test eax, eax
js 0x1400645e5
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x180]
call fcn.1400673b4
test eax, eax
jne 0x140064608
mov eax, 0x80020009
mov rcx, qword [rsp + 0x2180]
xor rcx, rsp
call fcn.14007e630
add rsp, 0x2190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov rdx, qword [r12]
movzx ecx, word [rdx]
sub ecx, 9
je 0x1400649ff
sub ecx, 1
je 0x1400649ff
sub ecx, 3
je 0x1400649ff
cmp ecx, 0x13
je 0x1400649ff
lea rdx, [rsp + 0x180]
mov rcx, r12
call fcn.14006539c
test eax, eax
js 0x1400645e5
movzx eax, word [rsp + 0x30]
cmp eax, 8
je 0x140064991
cmp eax, 0x11
je 0x14006481c
cmp eax, 0x13
je 0x1400647bf
cmp eax, 0x4008
jne 0x1400649e6
lea rcx, [rsp + 0x180]
or rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp word [rcx + rax*2], si
jne 0x140064681
add eax, 2
mov qword [rsp + 0x70], rsi
movsxd rcx, eax
test eax, eax
je 0x1400646c4
xor edx, edx
mov rax, rdi
div rcx
cmp rax, 2
jb 0x140064a11
lea rdx, [rcx + rcx]
cmp rdx, 0x100
jbe 0x1400646c4
lea rcx, [rsp + 0x70]
call fcn.140064a28
jmp 0x1400646ce
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
mov r15, qword [rsp + 0x48]
jmp 0x1400646ea
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x14006479b
lea r14, [rsp + 0x180]
cmp word [rsp + 0x180], si
je 0x140064745
mov rcx, r14
call qword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [r14]
cmp cx, 0x5c
jne 0x140064734
cmp word [rax], 0x30
jne 0x140064734
mov word [rbx], si
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextW]
mov r14, rax
jmp 0x14006473b
mov word [rbx], cx
add r14, 2
add rbx, 2
cmp word [r14], si
jne 0x14006470a
and dword [rbx], 0
mov rdx, qword [rsp + 0x70]
test rdx, rdx
jne 0x140064757
lea ebx, [rdx + 0xd]
jmp 0x1400647a0
mov r9d, esi
mov r8, rdx
mov rcx, rdi
inc rcx
cmp word [r8 + rcx*2], si
jne 0x140064760
inc ecx
lea r8, [r8 + rcx*2]
lea r9d, [r9 + rcx*2]
cmp ecx, 1
jne 0x14006475d
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rdx
lea r9d, [rcx + 6]
xor r8d, r8d
mov rdx, r15
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
jmp 0x1400647a0
mov ebx, Ordinal_16
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1400649d6
lea rcx, [rsp + 0x70]
call fcn.140064d98
jmp 0x1400649d6
mov qword [rsp + 0x50], rsi
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x180]
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
jns 0x1400647e5
jmp 0x1400645e5
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, r14
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
jmp 0x1400649d6
lea rax, [rsp + 0x180]
or rdi, 0xffffffffffffffff
mov rbx, rdi
inc rbx
cmp word [rax + rbx*2], si
jne 0x14006482b
mov dword [rsp + 0x38], ebx
test bl, 1
jne 0x1400648db
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
movsxd r15, eax
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x70], rsi
mov rcx, r15
test eax, eax
jne 0x140064861
mov rcx, rsi
jmp 0x140064873
xor edx, edx
mov rax, rdi
div rcx
cmp rax, 1
jb 0x140064a1c
cmp rcx, 0x100
jbe 0x14006488b
mov rdx, rcx
lea rcx, [rsp + 0x70]
call fcn.140064a28
jmp 0x140064895
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x1400648bb
mov rcx, qword [rsp + 0x70]
test rcx, rcx
jne 0x1400648e5
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1400648db
lea rcx, [rsp + 0x70]
call fcn.140064d98
mov eax, 0x80004005
jmp 0x1400645e5
movsxd r8, r15d
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov r14d, esi
movsxd rax, ebx
test ebx, ebx
jle 0x14006494c
mov r13, rsi
mov r15, rax
mov eax, r14d
test r14d, r14d
jns 0x14006490b
lea eax, [r14 + 1]
sar eax, 1
movsxd rdi, eax
mov rbx, qword [rsp + 0x70]
movzx ecx, word [rsp + r13*2 + 0x180]
call fcn.140064bd0
mov dl, al
mov ecx, r14d
and ecx, 1
shl ecx, 2
mov eax, 4
sub eax, ecx
mov cl, al
shl dl, cl
or byte [rdi + rbx], dl
inc r14d
inc r13
cmp r13, r15
jl 0x1400648ff
mov r15d, dword [rsp + 0x30]
mov dword [rsp + 0x28], r15d
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1400649d6
lea rcx, [rsp + 0x70]
call fcn.140064d98
jmp 0x1400649d6
lea rax, [rsp + 0x180]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], si
jne 0x14006499d
lea eax, [rdi*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x180]
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
test ebx, ebx
je 0x1400649e6
mov ecx, ebx
call fcn.140064bc0
jmp 0x1400645e5
mov rdx, qword [rsp + 0x68]
mov rcx, r12
call fcn.14006539c
test eax, eax
cmovs esi, eax
mov eax, esi
jmp 0x1400645e5
mov rcx, rdx
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [r12], rax
jmp 0x140064608
mov ecx, 0x80070216
call fcn.140006c40
nop
mov ecx, 0x80070216
call fcn.140006c40
int3