Function at 0x140037270
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 - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x1400a5038]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov qword [rsp + 0x30], r8
mov r15, rdx
mov r14, rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x70], rdx
mov rsi, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x1400372c2
mov rsi, qword [rdx]
mov ecx, 0x18
call fcn.1400570dc
mov rdi, rax
mov qword [rsp + 0x40], rax
xor ebx, ebx
test rax, rax
je 0x1400372f3
mov qword [rax + 8], rbx
mov dword [rax + 0x10], 1
mov rcx, rsi
call fcn.140056bf0
mov qword [rdi], rax
jmp 0x1400372f6
mov rdi, rbx
test rdi, rdi
je 0x140037a01
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x3c]
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, qword [r14]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r13d, eax
mov rsi, 0xffffffffffffffff
mov ecx, esi
lock xadd dword [rdi + 0x10], ecx
cmp ecx, 1
jne 0x140037368
mov rcx, qword [rdi]
test rcx, rcx
je 0x140037349
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], rbx
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14003735b
call fcn.1400570c4
mov qword [rdi + 8], rbx
mov edx, 0x18
mov rcx, rdi
call fcn.1400570c4
test r13d, r13d
jne 0x14003781d
mov r12d, dword [rsp + 0x38]
add r12, 2
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
jne 0x14003750f
lea rax, vtable.LogItem.0
mov qword [rbp + 0x20], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x50], r14b
lea r8d, [r13 + 0x23]
lea rdx, str.iusl::HKeyContainer::GetValueString
lea rcx, [rsp + 0x50]
call fcn.140024110
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x28]
call fcn.14001d2d0
nop
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x70], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x78], r14b
lea r8d, [r13 + 0x23]
lea rdx, str.iusl::HKeyContainer::GetValueString
lea rcx, [rsp + 0x78]
call fcn.140024110
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0x48]
call fcn.14001d2d0
nop
mov dword [rbp + 0x68], 1
mov dword [rbp + 0x6c], 1
mov qword [rbp - 0x30], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x38], 2
mov eax, 0x203a
mov word [rbp - 0x48], ax
mov byte [rbp - 0x46], r14b
movups xmm0, xmmword [rbp - 0x48]
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], 2
mov qword [rbp - 0x10], reloc.WS2_32.dll_ntohs
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x68]
call fcn.14001d2d0
mov rdi, rax
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x140037466
mov rdx, qword [rax]
lea rsi, [rax + 0x10]
mov r8, qword [rsi]
lea rcx, [rbp + 0x28]
call fcn.140024430
cmp qword [rdi + 0x18], 8
jb 0x140037480
mov rdi, qword [rdi]
mov r8, qword [rsi]
mov rdx, rdi
lea rcx, [rbp + 0x48]
call fcn.140024430
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x1400374d3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400374ce
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400374ce
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400570c4
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], bx
mov dword [rbp + 0x6c], 3
lea rdx, str.Malloc_failed__GetValueString_cant_retrieve_value.
lea rcx, [rbp + 0x20]
call fcn.14001dd30
nop
lea rcx, [rbp + 0x20]
call fcn.14001d880
mov r13d, 0xea
jmp 0x140037991
mov r8, r12
xor edx, edx
mov rcx, r14
call sub.VCRUNTIME140.dll_memset
mov r13, r15
cmp qword [r15 + 0x18], 0x10
jb 0x140037529
mov r13, qword [r15]
mov ecx, 0x18
call fcn.1400570dc
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140037558
mov qword [rax + 8], rbx
mov dword [rax + 0x10], 1
mov rcx, r13
call fcn.140056bf0
mov qword [rdi], rax
jmp 0x14003755b
mov rdi, rbx
test rdi, rdi
je 0x140037a01
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x3c]
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r13d, eax
mov eax, esi
lock xadd dword [rdi + 0x10], eax
cmp eax, 1
jne 0x1400375cb
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400375ac
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], rbx
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400375be
call fcn.1400570c4
mov qword [rdi + 8], rbx
mov edx, 0x18
mov rcx, rdi
call fcn.1400570c4
mov rdx, r12
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
mov rdi, rax
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], bx
nop word [rax + rax]
inc rsi
cmp word [r14 + rsi*2], 0
jne 0x1400375f0
mov r8, rsi
mov rdx, r14
lea rcx, [rbp - 0x68]
call fcn.140023f10
lea rdx, [rbp - 0x68]
lea rcx, [rbp + 0x80]
call fcn.14001d160
mov rdx, rax
mov r12, qword [rsp + 0x30]
mov rcx, r12
call fcn.1400238e0
mov rdx, qword [rbp + 0x98]
cmp rdx, 0x10
jb 0x14003766e
inc rdx
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140037669
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140037669
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400570c4
cmp qword [r12 + 0x10], rdi
jne 0x1400379c9
lea rax, vtable.LogItem.0
mov qword [rbp + 0x20], rax
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x70], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x78], 0
mov r8d, 0x23
lea rdx, str.iusl::HKeyContainer::GetValueString
lea rcx, [rsp + 0x78]
call fcn.140024110
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0x28]
call fcn.14001d2d0
nop
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x50], 0
mov r8d, 0x23
lea rdx, str.iusl::HKeyContainer::GetValueString
lea rcx, [rsp + 0x50]
call fcn.140024110
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x48]
call fcn.14001d2d0
nop
mov dword [rbp + 0x68], 1
mov dword [rbp + 0x6c], 1
mov qword [rbp - 0x10], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x18], 2
mov eax, 0x203a
mov word [rbp - 0x28], ax
mov byte [rbp - 0x26], 0
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rbp - 8], xmm0
mov qword [rbp + 8], 2
mov qword [rbp + 0x10], reloc.WS2_32.dll_ntohs
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x48]
call fcn.14001d2d0
mov rdi, rax
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x140037754
mov rdx, qword [rax]
lea rsi, [rax + 0x10]
mov r8, qword [rsi]
lea rcx, [rbp + 0x28]
call fcn.140024430
cmp qword [rdi + 0x18], 8
jb 0x14003776e
mov rdi, qword [rdi]
mov r8, qword [rsi]
mov rdx, rdi
lea rcx, [rbp + 0x48]
call fcn.140024430
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x1400377c1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400377bc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400377bc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400570c4
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], bx
mov dword [rbp + 0x6c], 1
lea rdx, str.GetValueString_success._Value_
lea rcx, [rbp + 0x20]
call fcn.14001dd30
mov rbx, rax
mov rdx, r12
mov rcx, rax
call fcn.14001df20
lea rdx, [0x1400932cc]
mov rcx, rbx
call fcn.14001dd30
nop
lea rcx, [rbp + 0x20]
call fcn.14001d880
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140037991
lea rax, vtable.LogItem.0
mov qword [rbp + 0x20], rax
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x30], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x48], 0
mov r8d, 0x23
lea rdx, str.iusl::HKeyContainer::GetValueString
lea rcx, [rbp - 0x48]
call fcn.140024110
lea rdx, [rbp - 0x48]
lea rcx, [rbp + 0x28]
call fcn.14001d2d0
nop
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x50], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x68], 0
mov r8d, 0x23
lea rdx, str.iusl::HKeyContainer::GetValueString
lea rcx, [rbp - 0x68]
call fcn.140024110
lea rdx, [rbp - 0x68]
lea rcx, [rbp + 0x48]
call fcn.14001d2d0
nop
mov dword [rbp + 0x68], 1
mov dword [rbp + 0x6c], 1
mov qword [rbp + 0x10], reloc.WS2_32.dll_ntohs
mov qword [rbp + 8], 2
mov eax, 0x203a
mov word [rbp - 8], ax
mov byte [rbp - 6], 0
movups xmm0, xmmword [rbp - 8]
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], 2
mov qword [rbp - 0x10], reloc.WS2_32.dll_ntohs
lea rdx, [rbp - 0x28]
lea rcx, [rsp + 0x78]
call fcn.14001d2d0
mov rdi, rax
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x1400378f1
mov rdx, qword [rax]
lea rsi, [rax + 0x10]
mov r8, qword [rsi]
lea rcx, [rbp + 0x28]
call fcn.140024430
cmp qword [rdi + 0x18], 8
jb 0x14003790b
mov rdi, qword [rdi]
mov r8, qword [rsi]
mov rdx, rdi
lea rcx, [rbp + 0x48]
call fcn.140024430
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x14003795f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003795a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003795a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400570c4
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], bx
mov dword [rbp + 0x6c], 1
lea rdx, str.GetValueString_failed.
lea rcx, [rbp + 0x20]
call fcn.14001dd30
nop
lea rcx, [rbp + 0x20]
call fcn.14001d880
movzx ebx, r13w
mov rcx, r15
call fcn.140023880
mov eax, ebx
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1400570a0
mov rbx, qword [rsp + 0x208]
add rsp, 0x1b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rdx, str.Unicode_installation_path_detected__terminating_process.
lea rcx, [rbp - 8]
call fcn.1400239a0
nop
lea rdx, [rbp - 8]
lea rcx, [rbp + 0x20]
call fcn.14001cf70
lea rdx, [0x1400a0bb0]
lea rcx, [rbp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov ecx, 0x8007000e
call fcn.140056be0
int3