Function at 0x140070b04
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xd0
mov qword [rbp - 0x61], 0xfffffffffffffffe
mov rax, qword [0x140121c90]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov rdi, r8
mov r15d, edx
mov rsi, rcx
mov r14, qword [rbp + 0x7f]
xor r12d, r12d
mov qword [rbp - 0x71], r12
mov rcx, r14
call fcn.140050954
mov ecx, 0x8000
call fcn.1400a1bc0
mov rbx, rax
mov qword [rbp - 0x59], rax
test rax, rax
jne 0x140070ba0
lea edi, [rax + 0xe]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
nop
lea rcx, [rbp - 0x71]
call fcn.140006284
mov eax, edi
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.1400be5a0
add rsp, 0xd0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
cmp qword [rbp - 0x71], r12
jne 0x140070d4a
cmp qword [rdi + 0x18], 8
jb 0x140070bb4
mov rdi, qword [rdi]
mov edx, r15d
mov rcx, rsi
call fcn.14007080c
mov rcx, rax
lea rax, [rbp - 0x71]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x140070b66
mov esi, r12d
mov dword [rbp - 0x69], 0x4000
mov rcx, qword [rbp - 0x71]
test rcx, rcx
setne al
test al, al
je 0x140070d1b
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea rax, [rbp - 0x65]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x69]
mov r8, rbx
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x140070ce8
cmp dword [rbp - 0x65], 1
jne 0x140070cd5
mov qword [rbp + 7], 7
mov qword [rbp - 1], r12
mov word [rbp - 0x11], r12w
cmp word [rbx], r12w
jne 0x140070c66
mov r8, r12
jmp 0x140070c74
or r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], r12w
jne 0x140070c6a
mov rdx, rbx
lea rcx, [rbp - 0x11]
call fcn.1400064dc
nop
mov r15, qword [r14]
lea r9, [rbp - 0x11]
mov r8, qword [r15 + 8]
mov rdx, r15
call fcn.140077388
mov rdx, qword [r14 + 8]
movabs rcx, 0x555555555555554
sub rcx, rdx
cmp rcx, 1
jb 0x140070d0e
lea rcx, [rdx + 1]
mov qword [r14 + 8], rcx
mov qword [r15 + 8], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rax
cmp qword [rbp + 7], 8
jb 0x140070cd5
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
inc esi
cmp esi, 0x1000
jae 0x140070b66
jmp 0x140070bf0
cmp eax, 0x103
jne 0x140070d01
mov edi, 2
cmp qword [r14 + 8], r12
cmova edi, r12d
jmp 0x140070b66
mov rcx, r14
call fcn.140050954
jmp 0x140070b66
lea rcx, str.list_T__too_long
call fcn.1400a0d5c
nop
lea rdx, str.Attempting_to_use_an_invalid_handle.
lea rcx, [rbp - 0x11]
call fcn.1400062e8
nop
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 0x51]
call fcn.140005b04
lea rdx, [0x140117d50]
lea rcx, [rbp - 0x51]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, str.Attempting_to_assign_an_already_valid_handle.
lea rcx, [rbp - 0x11]
call fcn.1400062e8
nop
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 0x51]
call fcn.140005b04
lea rdx, [0x140117d50]
lea rcx, [rbp - 0x51]
call sub.msvcrt.dll__CxxThrowException
int3