Function at 0x140025850
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x14007f010]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rbp + 0x17], rdx
xor r15d, r15d
mov dword [rbp - 0x39], r15d
mov qword [rdx], r15
mov qword [rdx + 0x10], r15
mov qword [rdx + 0x18], 7
mov word [rdx], r15w
mov dword [rbp - 0x39], 1
lea rdi, [rcx + 8]
mov r14, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400258b2
mov r14, qword [rdi]
mov edx, 1
mov rcx, qword [rcx]
call fcn.14002df60
lea rcx, [rbp + 0x27]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x2b]
xor r8d, r8d
mov rdx, r14
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r14d, eax
test eax, eax
jne 0x140025c4c
mov eax, dword [rbp + 0x2b]
sub eax, 1
je 0x140025b27
sub eax, 3
je 0x140025a7a
sub eax, 3
je 0x1400259bf
cmp eax, 4
jne 0x140025c87
mov dword [rbp + 0x27], 8
cmp qword [rdi + 0x18], 8
jb 0x140025923
mov rdi, qword [rdi]
mov edx, 1
mov rcx, qword [rsi]
call fcn.14002df60
lea rcx, [rbp + 0x27]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x1f]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x2b]
xor r8d, r8d
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
lea rcx, [rbp - 0x31]
test eax, eax
jne 0x140025cc4
mov rdx, qword [rbp + 0x1f]
call fcn.140022a10
mov rdx, rax
mov rcx, rbx
call fcn.14001ba80
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x140025be6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025b1d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140025c46
jmp 0x140025b1d
xor r8d, r8d
mov edx, dword [rbp + 0x27]
shr rdx, 1
mov rcx, rbx
call fcn.140026d50
mov r14, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400259dd
mov r14, qword [rbx]
cmp qword [rdi + 0x18], 8
jb 0x1400259e7
mov rdi, qword [rdi]
mov edx, 1
mov rcx, qword [rsi]
call fcn.14002df60
lea rcx, [rbp + 0x27]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0x2b]
xor r8d, r8d
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x140025cfa
xor r8d, r8d
mov rdx, qword [rbx + 0x10]
sub rdx, 2
mov rcx, rbx
call fcn.140026d50
cmp qword [rbx + 0x18], 8
jb 0x140025a44
mov r8, qword [rbx]
mov rdx, r8
mov rcx, r8
jmp 0x140025a4d
mov rcx, rbx
mov rdx, rbx
mov r8, rbx
mov rax, qword [rbx + 0x10]
lea rdx, [rdx + rax*2]
cmp r8, rdx
je 0x140025be6
mov eax, 0x20
cmp word [rcx], 0
jne 0x140025a6c
mov word [rcx], ax
add rcx, 2
cmp rcx, rdx
jne 0x140025a63
jmp 0x140025be6
mov dword [rbp + 0x27], 4
cmp qword [rdi + 0x18], 8
jb 0x140025a8b
mov rdi, qword [rdi]
mov edx, 1
mov rcx, qword [rsi]
call fcn.14002df60
lea rcx, [rbp + 0x27]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x1f]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x2b]
xor r8d, r8d
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
lea rcx, [rbp - 0x31]
test eax, eax
jne 0x140025d34
mov edx, dword [rbp + 0x1f]
call fcn.140022960
mov rdx, rax
mov rcx, rbx
call fcn.14001ba80
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x140025be6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025b1d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140025d6a
call fcn.14002ef0c
jmp 0x140025be6
xor r8d, r8d
mov edx, dword [rbp + 0x27]
shr rdx, 1
mov rcx, rbx
call fcn.140026d50
mov r14, rbx
cmp qword [rbx + 0x18], 8
jb 0x140025b45
mov r14, qword [rbx]
cmp qword [rdi + 0x18], 8
jb 0x140025b4f
mov rdi, qword [rdi]
mov edx, 1
mov rcx, qword [rsi]
call fcn.14002df60
lea rcx, [rbp + 0x27]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0x2b]
xor r8d, r8d
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x140025c0c
mov r8, qword [rbx + 0x10]
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140025b98
mov rcx, qword [rbx]
test r8, r8
je 0x140025be6
dec r8
mov rax, 0xffffffffffffffff
cmp r8, rax
cmovb rax, r8
lea rdx, [rcx + rax*2]
cmp word [rdx], 0
jne 0x140025bc7
cmp rdx, rcx
je 0x140025be6
sub rdx, 2
cmp word [rdx], 0
je 0x140025bb8
sub rdx, rcx
sar rdx, 1
cmp rdx, 0xffffffffffffffff
je 0x140025be6
cmp rdx, r8
je 0x140025be6
xor r8d, r8d
inc rdx
mov rcx, rbx
call fcn.140026d50
mov rax, rbx
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14002ec60
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov r8, rsi
lea rdx, str.Failed_to_read_string_registry_value
lea rcx, [rbp - 0x31]
call fcn.140027780
mov r9, rax
call fcn.140012df0
mov r8, rax
mov edx, edi
lea rcx, [rbp - 0x11]
call fcn.1400046a0
lea rdx, [0x14007d108]
lea rcx, [rbp - 0x11]
call fcn.140033e04
nop
call fcn.1400385e8
int3
mov r8, rsi
lea rdx, str.Failed_to_read_registry_value_as_string
lea rcx, [rbp - 0x31]
call fcn.140027780
mov r9, rax
call fcn.140012df0
mov r8, rax
mov edx, r14d
lea rcx, [rbp - 0x11]
call fcn.1400046a0
lea rdx, [0x14007d108]
lea rcx, [rbp - 0x11]
call fcn.140033e04
nop
mov r8, rsi
lea rdx, str.Value_type_not_supported
lea rcx, [rbp - 0x31]
call fcn.140027780
mov r9, rax
call fcn.140012df0
mov r8, rax
mov edx, 0x32
lea rcx, [rbp - 0x11]
call fcn.1400046a0
lea rdx, [0x14007d108]
lea rcx, [rbp - 0x11]
call fcn.140033e04
nop
mov r8, rsi
lea rdx, str.Failed_to_provide_integer_registry_value_as_string
call fcn.140027780
mov r9, rax
call fcn.140012df0
mov r8, rax
mov edx, edi
lea rcx, [rbp - 0x11]
call fcn.1400046a0
lea rdx, [0x14007d108]
lea rcx, [rbp - 0x11]
call fcn.140033e04
nop
mov r8, rsi
lea rdx, str.Failed_to_read_string_registry_value_as_multi_string
lea rcx, [rbp - 0x31]
call fcn.140027780
mov r9, rax
call fcn.140012df0
mov r8, rax
mov edx, edi
lea rcx, [rbp - 0x11]
call fcn.1400046a0
lea rdx, [0x14007d108]
lea rcx, [rbp - 0x11]
call fcn.140033e04
nop
mov r8, rsi
lea rdx, str.Failed_to_provide_integer_registry_value_as_string
call fcn.140027780
mov r9, rax
call fcn.140012df0
mov r8, rax
mov edx, edi
lea rcx, [rbp - 0x11]
call fcn.1400046a0
lea rdx, [0x14007d108]
lea rcx, [rbp - 0x11]
call fcn.140033e04
nop
call fcn.1400385e8
int3