Function at 0x140006580
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x7b8]
sub rsp, 0x8b8
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rax, qword [0x14003a200]
xor rax, rsp
mov qword [rbp + 0x7a0], rax
mov r15, r9
mov r14, r8
mov rsi, rdx
mov rbx, rcx
mov rdx, qword [rbp + 0x810]
xor edi, edi
mov dword [rsp + 0x6c], edi
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], rdi
mov word [rsp + 0x78], di
cmp word [rdx], di
jne 0x1400065e6
mov r8d, edi
jmp 0x1400065fa
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], di
jne 0x1400065f0
lea rcx, [rsp + 0x78]
call fcn.1400051d0
nop
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0xf013f
xor r8d, r8d
lea rdx, str.SoftWare
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000666f
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rdi
cmp qword [rbx + 0x18], 8
jb 0x140006657
mov rax, qword [rbx]
jmp 0x14000665a
mov rax, rbx
mov word [rax], di
lea rdx, [rsp + 0x78]
mov rcx, rbx
call fcn.140004b30
jmp 0x1400067ca
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0xf013f
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1400066b4
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000663f
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0xf013f
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x140006707
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000663f
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x60]
call fcn.140010590
mov dword [rsp + 0x68], 0x400
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, r15
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rbp - 0x60]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x140006770
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rdi
test eax, eax
je 0x14000664b
cmp qword [rbx + 0x18], 8
jb 0x14000679a
mov rax, qword [rbx]
jmp 0x14000679d
mov rax, rbx
mov word [rax], di
cmp word [rbp - 0x60], 0
je 0x1400067ba
lea rax, [rbp - 0x60]
or rdi, 0xffffffffffffffff
nop
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1400067b0
mov r8, rdi
lea rdx, [rbp - 0x60]
mov rcx, rbx
call fcn.1400051d0
nop
mov r8, qword [rbp - 0x70]
cmp r8, 8
jb 0x1400067e6
inc r8
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x78]
call fcn.140005320
mov rax, rbx
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.14000d1c0
add rsp, 0x8b8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret