Function at 0x140064d00
Capabilities:
Set registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov rsi, rdx
mov rbp, rcx
mov edx, 0x5c
mov rcx, qword [rcx + 0x1b0]
call fcn.1400d9b88
or rdi, 0xffffffffffffffff
test rax, rax
jne 0x140064d3a
mov eax, edi
jmp 0x140064d44
sub rax, qword [rbp + 0x1b0]
sar rax, 1
lea r8d, [rax + 1]
lea rdx, [rsp + 0x88]
lea rcx, [rbp + 0x1b0]
call fcn.14002d440
nop
mov ecx, dword [0x1401ddd80]
lea r8d, [rcx + 2]
lea eax, [rcx + 1]
imul r8d, eax
imul r8d, ecx
mov eax, 0x88888889
imul r8d
add edx, r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xf
sub r8d, edx
cmp r8d, 0xc
jne 0x140064d99
inc dword [0x1401df5d4]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rbp + 0x1b0]
mov rcx, qword [rbp + 0x2d8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140064e29
call fcn.14005b4b0
mov r8, rax
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x38]
call fcn.14001c2d0
nop
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x20], rsi
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140064e1e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test ebx, ebx
jne 0x140064e29
mov bl, 1
jmp 0x140064f7d
call fcn.140058a50
call fcn.14005beb0
mov rsi, rax
lea rcx, [0x1401d59a8]
mov rdx, qword [0x1401d59a8]
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x70], rax
xor ebx, ebx
test rsi, rsi
je 0x140064e8f
test rsi, 0xffffffffffff0000
jne 0x140064e81
movzx esi, si
mov ecx, esi
call fcn.1400019e0
test rax, rax
je 0x140064ea2
mov r8d, esi
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140002a60
jmp 0x140064ea2
mov rax, rdi
inc rax
cmp word [rsi + rax*2], bx
jne 0x140064e84
jmp 0x140064e91
mov eax, ebx
mov r8d, eax
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.140002770
nop
call fcn.14005b820
mov r8, rax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.14001c2d0
nop
lea r8, [rbp + 0x190]
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.1400109e0
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140064eeb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [rsp + 0x80]
mov rcx, rbp
call fcn.140016430
nop
mov rdx, qword [rsp + 0x80]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140064f19
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140064f32
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8d, dword [0x1401ddd80]
mov ecx, r8d
imul ecx, r8d
mov eax, 0x78787879
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x11
sub ecx, edx
cmp ecx, 0xb
jne 0x140064f7b
test r8d, r8d
je 0x140064f75
mov ecx, r8d
and ecx, 1
add ebx, ecx
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
mov r8d, eax
jne 0x140064f60
mov dword [0x1401ddd80], ebx
xor bl, bl
mov rdx, qword [rsp + 0x88]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140064f9a
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
movzx eax, bl
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret