Function at 0x140003170
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x1400b8010]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rdi, r8
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x1f], rcx
mov eax, 2
mov dword [rbp + 0x1f], eax
xorps xmm1, xmm1
movdqu xmmword [rbp + 7], xmm1
xor r15d, r15d
mov edx, r15d
mov qword [rbp + 0x17], rdx
nop dword [rax]
mov r8d, eax
and r8d, 1
shr rax, 1
add r8, rax
mov r9, qword [rbp + 0xf]
mov rax, r9
mov rcx, qword [rbp + 7]
sub rax, rcx
sar rax, 1
cmp r8, rax
jae 0x1400031ed
lea rax, [rcx + r8*2]
mov qword [rbp + 0xf], rax
jmp 0x140003227
jbe 0x140003227
sub rdx, rcx
sar rdx, 1
cmp r8, rdx
jbe 0x14000320b
lfence
mov rdx, r8
lea rcx, [rbp + 7]
call fcn.140012720
jmp 0x140003223
sub r8, rax
add r8, r8
lea rbx, [r8 + r9]
xor edx, edx
mov rcx, r9
call fcn.14005f950
mov qword [rbp + 0xf], rbx
mov rcx, qword [rbp + 7]
mov r8, rdi
cmp qword [rdi + 0x18], 8
jb 0x140003234
mov r8, qword [rdi]
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r15
xor edx, edx
lea r9d, [rdx + 2]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
cmp eax, 0xea
jne 0x140003269
mov eax, dword [rbp + 0x1f]
mov rdx, qword [rbp + 0x17]
jmp 0x1400031c0
cmp eax, 2
jne 0x1400032fe
mov qword [rsi], r15
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 7
mov word [rsi], r15w
xor r8d, r8d
lea rdx, [0x1400a0620]
mov rcx, rsi
call fcn.14000f8e0
nop
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x1400032d8
mov rdx, qword [rbp + 0x17]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400032d3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400033d5
call fcn.14005a750
mov rax, rsi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14005a730
mov rbx, qword [rsp + 0x118]
add rsp, 0xd0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
test eax, eax
jne 0x1400033db
mov ecx, dword [rbp + 0x1f]
test cl, 1
jne 0x1400033fc
mov edx, ecx
and edx, 1
mov eax, ecx
shr rax, 1
add rdx, rax
lea rcx, [rbp + 7]
call fcn.14000eff0
mov rcx, qword [rbp + 7]
mov r8, qword [rbp + 0xf]
cmp rcx, r8
je 0x14000341d
add r8, 0xfffffffffffffffe
cmp r15w, word [r8]
jne 0x1400033b4
mov qword [rbp + 0xf], r8
mov qword [rsi], r15
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 7
mov word [rsi], r15w
cmp rcx, r8
je 0x140003374
sub r8, rcx
sar r8, 1
mov rdx, rcx
mov rcx, rsi
call fcn.14000f8e0
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x1400032d8
mov rdx, qword [rbp + 0x17]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400032d3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400033d5
jmp 0x1400032d3
lea rdx, str.String_values_should_always_be_null_terminated
lea rcx, [rbp - 0x11]
call fcn.140001d40
lea rdx, [0x1400b5fc8]
lea rcx, [rbp - 0x11]
call fcn.14005f880
nop
call fcn.14006538c
nop
lea rdx, str.RegGetValueW_failed
lea rcx, [rbp - 0x59]
call fcn.140001d40
lea rdx, [0x1400b5fc8]
lea rcx, [rbp - 0x59]
call fcn.14005f880
int3
lea rdx, str.Invalid_registry_value_data_length
lea rcx, [rbp - 0x41]
call fcn.140001d40
lea rdx, [0x1400b5fc8]
lea rcx, [rbp - 0x41]
call fcn.14005f880
int3
lea rdx, str.String_values_should_always_have_at_least_a_null_terminating_character
lea rcx, [rbp - 0x29]
call fcn.140001d40
lea rdx, [0x1400b5fc8]
lea rcx, [rbp - 0x29]
call fcn.14005f880
int3