Function at 0x140016f90
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x4a0]
sub rsp, 0x5a0
mov rax, qword [0x1402c7100]
xor rax, rsp
mov qword [rbp + 0x490], rax
mov rsi, r8
mov r14, rdx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
xor r12b, r12b
cmp qword [rdx + 0x18], 0xf
jbe 0x140016fdd
mov rdx, qword [rdx]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor r13d, r13d
test eax, eax
jne 0x1400171d5
mov r15d, r13d
mov dword [rsp + 0x5c], pe_nt_image_headers64
mov dword [rsp + 0x58], 0x400
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x90]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x5c]
lea r8, [rbp - 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
je 0x1400171c9
test eax, eax
jne 0x140017133
cmp dword [rsp + 0x60], 1
jne 0x140017133
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r13
mov qword [rbp - 0x80], r13
lea rax, [rbp + 0x90]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r12b
jne 0x140017093
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x68]
call fcn.140004c40
mov r9, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x1400170ba
mov r9, qword [rsi]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [r9 + rax], r12b
jne 0x1400170c1
lea rcx, [rsp + 0x68]
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rbp - 0x80]
cmp rdi, 0xf
cmova rcx, rbx
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
call fcn.14000cf90
cmp rax, 0xffffffffffffffff
jne 0x14001718f
cmp rdi, 0xf
jbe 0x140017133
lea rdx, [rdi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x14001712b
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001729e
mov rcx, rbx
call fcn.140014a40
inc r15d
mov dword [rsp + 0x5c], pe_nt_image_headers64
mov dword [rsp + 0x58], 0x400
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x90]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x5c]
lea r8, [rbp - 0x70]
mov edx, r15d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x140017061
jmp 0x1400171c9
mov r12b, 1
cmp rdi, 0xf
jbe 0x1400171c9
lea rdx, [rdi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400171c1
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001729e
mov rcx, rbx
call fcn.140014a40
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x14001720f
mov rcx, qword [r14]
inc rdx
cmp rdx, 0x1000
jb 0x14001720a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140017292
mov rcx, r8
call fcn.140014a40
mov qword [r14 + 0x10], r13
mov qword [r14 + 0x18], SafeArrayGetDim
mov byte [r14], 0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x140017255
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x140017250
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140017298
mov rcx, r8
call fcn.140014a40
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], SafeArrayGetDim
mov byte [rsi], 0
movzx eax, r12b
mov rcx, qword [rbp + 0x490]
xor rcx, rsp
call fcn.14004d990
mov rbx, qword [rsp + 0x5e0]
add rsp, 0x5a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1401f4404
nop
call fcn.1401f4404
nop
call fcn.1401f4404
int3