Function at 0x140038070
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 [0x1400a7038]
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 0x1400380bc
mov rsi, qword [rdx]
mov ecx, 0x18
call fcn.140055f48
mov rbx, rax
mov qword [rsp + 0x38], rax
xor r14d, r14d
test rax, rax
je 0x1400380ee
mov qword [rax + 8], r14
mov dword [rax + 0x10], 1
mov rcx, rsi
call fcn.140055a60
mov qword [rbx], rax
jmp 0x1400380f1
mov rbx, r14
test rbx, rbx
je 0x14003845e
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 0x140038163
mov rcx, qword [rbx]
test rcx, rcx
je 0x140038144
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r14
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140038156
call fcn.140055f30
mov qword [rbx + 8], r14
mov edx, 0x18
mov rcx, rbx
call fcn.140055f30
test r13d, r13d
jne 0x14003837c
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 0x1400381c2
lea rdx, str.iusl::HKeyContainer::GetValueString
lea rcx, [rbp - 0x60]
call fcn.140020570
nop
mov dword [rax + 0x6c], 3
lea rdx, str.Malloc_failed__GetValueString_cant_retrieve_value.
mov rcx, rax
call fcn.140020c20
nop
lea rcx, [rbp - 0x60]
call fcn.140020720
mov r13d, 0xea
jmp 0x1400383ad
mov r8, r12
xor edx, edx
mov rcx, r15
call sub.VCRUNTIME140.dll_memset
mov r13, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x1400381dc
mov r13, qword [rdi]
mov ecx, 0x18
call fcn.140055f48
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14003820b
mov qword [rax + 8], r14
mov dword [rax + 0x10], 1
mov rcx, r13
call fcn.140055a60
mov qword [rbx], rax
jmp 0x14003820e
mov rbx, r14
test rbx, rbx
je 0x14003845e
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 0x14003827e
mov rcx, qword [rbx]
test rcx, rcx
je 0x14003825f
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r14
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140038271
call fcn.140055f30
mov qword [rbx + 8], r14
mov edx, 0x18
mov rcx, rbx
call fcn.140055f30
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 0x1400382a0
mov r8, rsi
mov rdx, r15
lea rcx, [rsp + 0x50]
call fcn.140026a20
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x78]
call fcn.14001fe10
mov rdx, rax
mov rsi, qword [rsp + 0x48]
mov rcx, rsi
call fcn.1400263e0
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x140038319
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140038314
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140038314
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140055f30
cmp qword [rsi + 0x10], rbx
jne 0x140038426
lea rdx, str.iusl::HKeyContainer::GetValueString
lea rcx, [rbp - 0x60]
call fcn.140020570
nop
mov dword [rax + 0x6c], 1
lea rdx, str.GetValueString_success._Value_
mov rcx, rax
call fcn.140020c20
mov rbx, rax
mov rdx, rsi
mov rcx, rax
call fcn.140020e30
lea rdx, [0x140094bdc]
mov rcx, rbx
call fcn.140020c20
nop
lea rcx, [rbp - 0x60]
call fcn.140020720
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400383ad
lea rdx, str.iusl::HKeyContainer::GetValueString
lea rcx, [rbp - 0x60]
call fcn.140020570
nop
mov dword [rax + 0x6c], 1
lea rdx, str.GetValueString_failed.
mov rcx, rax
call fcn.140020c20
nop
lea rcx, [rbp - 0x60]
call fcn.140020720
movzx ebx, r13w
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1400383e7
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400383e2
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14003841f
mov rcx, r8
call fcn.140055f30
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov eax, ebx
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140055f10
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.1400264a0
nop
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x60]
call fcn.14001fc20
lea rdx, [0x1400a2b30]
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov ecx, 0x8007000e
call fcn.140055a50
int3