Function at 0x140031990
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x140106b98]
xor rax, rsp
mov qword [rbp + 0x78], rax
mov rax, r8
mov r12, rdx
mov rsi, rcx
mov qword [rsp + 0x68], rdx
xor r13d, r13d
mov dword [rsp + 0x60], r13d
cmp qword [rcx + 0x28], r13
je 0x140031ef8
mov qword [rbp + 0x18], r13
mov qword [rbp + 0x28], r13
mov qword [rbp + 0x30], 7
mov word [rbp + 0x18], r13w
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r13w
lea r8, [rbp - 0x48]
lea rdx, [rbp + 0x18]
mov rcx, rax
call fcn.140031fa0
mov dword [rsp + 0x40], r13d
lea r8, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae r8, qword [rbp - 0x48]
lea rdx, [rbp + 0x18]
cmp qword [rbp + 0x30], 8
cmovae rdx, qword [rbp + 0x18]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9d, [r13 + 0x20]
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140031a66
cmp eax, 0xea
jne 0x140031f1b
mov ebx, dword [rsp + 0x40]
inc rbx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r13
cmp rbx, 2
jb 0x140031ab2
lfence
and rbx, 0xfffffffffffffffe
mov rcx, rbx
call fcn.1400034f0
mov qword [rsp + 0x48], rax
lea rdi, [rbx + rax]
mov qword [rsp + 0x58], rdi
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.14006d5a0
mov qword [rsp + 0x50], rdi
jmp 0x140031ab7
mov rdi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
sub rdi, rcx
sar rdi, 1
lea eax, [rdi + rdi]
mov dword [rsp + 0x40], eax
lea r8, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae r8, qword [rbp - 0x48]
lea rdx, [rbp + 0x18]
cmp qword [rbp + 0x30], 8
cmovae rdx, qword [rbp + 0x18]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r13
mov r9d, 0x20
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140031f3c
mov edx, dword [rsp + 0x40]
shr rdx, 1
lea rcx, [rsp + 0x48]
call fcn.1400330c0
mov qword [rbp - 8], r13
mov rax, r13
mov qword [rbp + 8], rax
mov edi, 7
mov qword [rbp + 0x10], rdi
mov word [rbp - 8], r13w
mov rcx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x50]
cmp rcx, r8
je 0x140031b69
sub r8, rcx
sar r8, 1
mov rdx, rcx
lea rcx, [rbp - 8]
call fcn.1400099f0
mov rcx, qword [rsp + 0x48]
mov rdi, qword [rbp + 0x10]
mov rax, qword [rbp + 8]
mov qword [r12], r13
mov qword [r12 + 8], r13
mov qword [r12 + 0x10], r13
mov dword [rsp + 0x60], 1
mov r15, r13
mov rbx, qword [rbp - 8]
test rax, rax
je 0x140031daf
nop
lea rax, [rbp - 8]
cmp rdi, 8
cmovae rax, rbx
cmp word [rax + r15*2], 0
je 0x140031daa
lea rax, [rbp - 8]
cmp rdi, 8
cmovae rax, rbx
lea rdx, [rax + r15*2]
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r13w
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x140031bd4
lea rcx, [rbp - 0x28]
call fcn.1400099f0
nop
mov rdx, qword [r12 + 8]
cmp rdx, qword [r12 + 0x10]
je 0x140031cb0
mov rbx, rdx
mov qword [rdx], r13
mov qword [rdx + 0x10], r13
mov qword [rdx + 0x18], r13
lea r14, [rbp - 0x28]
mov r8, qword [rbp - 0x28]
mov r9, qword [rbp - 0x10]
cmp r9, 8
cmovae r14, r8
mov rsi, qword [rbp - 0x18]
cmp rsi, 8
jae 0x140031c44
movups xmm0, xmmword [r14]
movups xmmword [rdx], xmm0
mov edi, 7
mov qword [rdx + 0x10], rsi
mov qword [rdx + 0x18], rdi
add qword [r12 + 8], 0x20
jmp 0x140031cc4
mov rdi, rsi
or rdi, 7
movabs rax, 0x7ffffffffffffffe
cmp rdi, rax
cmova rdi, rax
lea rcx, [rdi + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140031f7f
lfence
add rcx, rcx
call fcn.1400034f0
mov qword [rbx], rax
mov rsi, qword [rbp - 0x18]
lea r8, [rsi*2 + 2]
mov rdx, r14
mov rcx, rax
call fcn.14006ec80
mov r9, qword [rbp - 0x10]
mov r8, qword [rbp - 0x28]
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rdi
add qword [r12 + 8], 0x20
jmp 0x140031cc4
lea r8, [rbp - 0x28]
mov rcx, r12
call fcn.140030200
mov r9, qword [rbp - 0x10]
mov r8, qword [rbp - 0x28]
lea r10, [rbp - 8]
mov rbx, qword [rbp - 8]
mov rdi, qword [rbp + 0x10]
cmp rdi, 8
cmovae r10, rbx
mov rsi, qword [rbp + 8]
cmp r15, rsi
jae 0x140031d6f
mov rax, rsi
sub rax, r15
lea rcx, [r10 + r15*2]
mov rdx, r13
je 0x140031d15
cmp word [rcx], dx
je 0x140031d12
nop dword [rax]
cmp rax, 1
je 0x140031d15
dec rax
add rcx, 2
cmp word [rcx], dx
jne 0x140031d00
mov rdx, rcx
test rdx, rdx
je 0x140031d6f
sub rdx, r10
sar rdx, 1
cmp rdx, 0xffffffffffffffff
je 0x140031d6f
lea r15, [rdx + 1]
cmp r9, 8
jb 0x140031d65
lea rdx, [r9*2 + 2]
mov rax, r8
cmp rdx, 0x1000
jb 0x140031d5d
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031f85
mov rcx, r8
call fcn.14006b8b4
cmp r15, rsi
jae 0x140031daa
jmp 0x140031b90
cmp r9, 8
jb 0x140031daa
lea rdx, [r9*2 + 2]
mov rax, r8
cmp rdx, 0x1000
jb 0x140031da2
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031f85
mov rcx, r8
call fcn.14006b8b4
mov rcx, qword [rsp + 0x48]
cmp rdi, 8
jb 0x140031def
lea rdx, [rdi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140031de2
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031f8b
mov rcx, rbx
call fcn.14006b8b4
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140031e3b
mov rax, qword [rsp + 0x58]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031e28
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031f91
call fcn.14006b8b4
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r13
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x140031e7b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031e76
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031f97
call fcn.14006b8b4
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r13w
mov rdx, qword [rbp + 0x30]
cmp rdx, 8
jb 0x140031ec8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031ec3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031ef2
call fcn.14006b8b4
mov rax, r12
mov rcx, qword [rbp + 0x78]
xor rcx, rsp
call fcn.14006b950
mov rbx, qword [rsp + 0x1d8]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14007ce08
int3
lea rdx, str.Registry_root_key_handle_is_null
lea rcx, [rsp + 0x70]
call fcn.1400207e0
lea rdx, [0x140103928]
lea rcx, [rsp + 0x70]
call fcn.14006db8c
nop
lea rdx, str.Failed_to_get_registry_value_size
lea rcx, [rbp - 0x78]
call fcn.1400207e0
lea rdx, [0x140103928]
lea rcx, [rbp - 0x78]
call fcn.14006db8c
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp + 0x38]
call fcn.14001ec20
nop
mov r8, rax
lea rdx, str.Failed_to_read_registry_value__error
lea rcx, [rbp + 0x58]
call fcn.14001d1c0
nop
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.14001d890
lea rdx, [0x140103928]
lea rcx, [rbp - 0x60]
call fcn.14006db8c
nop
call fcn.140009770
nop
call fcn.14007ce08
nop
call fcn.14007ce08
nop
call fcn.14007ce08
nop
call fcn.14007ce08
int3