Function at 0x140067920
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0xf90]
mov eax, 0x1090
call fcn.1400d2b70
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov rax, qword [0x1401bbe90]
xor rax, rsp
mov qword [rbp + 0xf80], rax
mov rdi, r8
mov rsi, rcx
lea r8, str._ver
lea rcx, [rsp + 0x60]
call fcn.14001a660
nop
xor r14d, r14d
mov dword [rsp + 0x48], r14d
mov byte [rbp - 0x80], r14b
xor edx, edx
mov r8d, 0xfff
lea rcx, [rbp - 0x7f]
call fcn.1400d2f00
mov dword [rsp + 0x40], 0x1000
mov dword [rsp + 0x44], 0xffffffff
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or ebx, 0xffffffff
test eax, eax
jne 0x140067aeb
cmp dword [rsp + 0x44], 3
jne 0x140067aeb
cmp dword [rsp + 0x40], 0x1000
je 0x140067aeb
mov eax, dword [rbp - 0x80]
inc eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9d, [r14 + 3]
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140067ae3
mov eax, dword [0x1401c3d80]
mov ecx, eax
imul ecx, eax
imul ecx, eax
mov eax, 0x38e38e39
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
add eax, eax
sub ecx, eax
cmp ecx, 0xc
jne 0x140067a74
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
lea rcx, [0x1401bb9a8]
mov rax, qword [0x1401bb9a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x58], rax
lea rdx, str.error_writing_ver
test rdx, 0xffffffffffff0000
jne 0x140067abf
movzx edi, dx
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x140067aca
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.1400025b0
jmp 0x140067aca
lea rcx, [rsp + 0x58]
call fcn.140003290
nop
lea rdx, [rsp + 0x58]
mov rcx, qword [rsi + 0x40]
call fcn.14005cd70
nop
mov rdx, qword [rsp + 0x58]
jmp 0x140067bb8
mov dil, 1
jmp 0x140067bd3
lea rcx, [0x1401bb9a8]
mov rax, qword [0x1401bb9a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
lea rdx, str.error_reading_ver
test rdx, 0xffffffffffff0000
jne 0x140067b36
movzx edi, dx
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x140067b41
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1400025b0
jmp 0x140067b41
lea rcx, [rsp + 0x50]
call fcn.140003290
nop
mov rdi, qword [rsi + 0x40]
call fcn.140053620
mov r8, rax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.14001a660
nop
lea r8, [rdi + 0x190]
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.14000fc80
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140067b8b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [rsp + 0x68]
mov rcx, rdi
call fcn.140014fc0
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140067bb3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x140067bd0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor dil, dil
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140067bed
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
movzx eax, dil
mov rcx, qword [rbp + 0xf80]
xor rcx, rsp
call fcn.1400cdac0
add rsp, 0x1090
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret