Function at 0x1400404b0
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 - 0x40]
sub rsp, 0x140
mov rax, qword [0x1400a0038]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov qword [rsp + 0x48], r8
mov rdi, rdx
mov r15, rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x70], rdx
mov rsi, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x1400404fc
mov rsi, qword [rdx]
mov ecx, 0x18
call fcn.140053780
mov rbx, rax
mov qword [rsp + 0x38], rax
xor r14d, r14d
test rax, rax
je 0x14004052e
mov qword [rax + 8], r14
mov dword [rax + 0x10], 1
mov rcx, rsi
call fcn.140053430
mov qword [rbx], rax
jmp 0x140040531
mov rbx, r14
test rbx, rbx
je 0x14004089e
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r13d, eax
mov rsi, 0xffffffffffffffff
mov ecx, esi
lock xadd dword [rbx + 0x10], ecx
cmp ecx, 1
jne 0x1400405a3
mov rcx, qword [rbx]
test rcx, rcx
je 0x140040584
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r14
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140040596
call fcn.140053a0c
mov qword [rbx + 8], r14
mov edx, 0x18
mov rcx, rbx
call fcn.140053a0c
test r13d, r13d
jne 0x1400407bc
mov r12d, dword [rsp + 0x30]
add r12, 2
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r15, rax
test rax, rax
jne 0x140040602
lea rdx, str.iusl::HKeyContainer::GetValueString
lea rcx, [rbp - 0x60]
call fcn.1400217f0
nop
mov dword [rax + 0x6c], 3
lea rdx, str.Malloc_failed__GetValueString_cant_retrieve_value.
mov rcx, rax
call fcn.140021ea0
nop
lea rcx, [rbp - 0x60]
call fcn.1400219a0
mov r13d, 0xea
jmp 0x1400407ed
mov r8, r12
xor edx, edx
mov rcx, r15
call sub.VCRUNTIME140.dll_memset
mov r13, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14004061c
mov r13, qword [rdi]
mov ecx, 0x18
call fcn.140053780
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14004064b
mov qword [rax + 8], r14
mov dword [rax + 0x10], 1
mov rcx, r13
call fcn.140053430
mov qword [rbx], rax
jmp 0x14004064e
mov rbx, r14
test rbx, rbx
je 0x14004089e
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r13d, eax
mov eax, esi
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x1400406be
mov rcx, qword [rbx]
test rcx, rcx
je 0x14004069f
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r14
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400406b1
call fcn.140053a0c
mov qword [rbx + 8], r14
mov edx, 0x18
mov rcx, rbx
call fcn.140053a0c
mov rdx, r12
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
mov rbx, rax
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], 7
inc rsi
cmp word [r15 + rsi*2], 0
jne 0x1400406e0
mov r8, rsi
mov rdx, r15
lea rcx, [rsp + 0x50]
call fcn.140020520
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x78]
call fcn.140021090
mov rdx, rax
mov rsi, qword [rsp + 0x48]
mov rcx, rsi
call fcn.140026f60
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x140040759
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040754
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140040754
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140053a0c
cmp qword [rsi + 0x10], rbx
jne 0x140040866
lea rdx, str.iusl::HKeyContainer::GetValueString
lea rcx, [rbp - 0x60]
call fcn.1400217f0
nop
mov dword [rax + 0x6c], 1
lea rdx, str.GetValueString_success._Value_
mov rcx, rax
call fcn.140021ea0
mov rbx, rax
mov rdx, rsi
mov rcx, rax
call fcn.1400220b0
lea rdx, [0x140090590]
mov rcx, rbx
call fcn.140021ea0
nop
lea rcx, [rbp - 0x60]
call fcn.1400219a0
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400407ed
lea rdx, str.iusl::HKeyContainer::GetValueString
lea rcx, [rbp - 0x60]
call fcn.1400217f0
nop
mov dword [rax + 0x6c], 1
lea rdx, str.GetValueString_failed.
mov rcx, rax
call fcn.140021ea0
nop
lea rcx, [rbp - 0x60]
call fcn.1400219a0
movzx ebx, r13w
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140040827
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140040822
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14004085f
mov rcx, r8
call fcn.140053a0c
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov eax, ebx
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140053760
mov rbx, qword [rsp + 0x198]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, r15
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 + 0x10]
call fcn.1400204e0
nop
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x60]
call fcn.140020ea0
lea rdx, [0x14009c608]
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov ecx, 0x8007000e
call fcn.1400532a0
int3