Function at 0x140038990
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x2d8]
sub rsp, 0x3b0
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400b8518]
xor rax, rsp
mov qword [rbp + 0x2a0], rax
mov r12, rdx
mov r14, rcx
mov qword [rbp], 0xf
xor edi, edi
mov qword [rbp - 8], rdi
mov byte [rbp - 0x18], dil
mov qword [rbp + 0x20], 0xf
mov qword [rbp + 0x18], rdi
mov byte [rbp + 8], dil
mov qword [rbp + 0x60], 0xf
mov qword [rbp + 0x58], rdi
mov byte [rbp + 0x48], dil
lea r9d, [rdi + 1]
xor r8d, r8d
call fcn.140039e10
mov rsi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400391d3
mov r9, rax
xor r8d, r8d
lea rdx, [rbp + 0xa8]
mov rcx, r14
call fcn.140039990
mov rdx, rax
lea rcx, [rbp + 0x48]
call fcn.1400321e0
lea rcx, [rbp + 0xa8]
call fcn.140023b60
lea rcx, [rbp + 0x48]
call fcn.140038800
mov r15, rax
nop dword [rax + rax]
lea rbx, [rsi + 1]
mov r9d, 1
mov r8, rbx
mov rcx, r14
call fcn.140039e10
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140038c7b
cmp rbx, rax
jae 0x140038c7b
mov eax, edi
cmp qword [rbp - 8], rax
seta al
mov r9, rsi
mov r8, rbx
mov rcx, r14
sub r9, rbx
test eax, eax
je 0x140038b9f
lea rdx, [rbp + 0x68]
call fcn.140039990
nop
mov r8, rax
lea rcx, [rbp + 0x28]
call fcn.140039f60
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp - 0x18]
call fcn.14002ca80
nop
mov rax, qword [rbp + 0x40]
cmp rax, 0x10
jb 0x140038b2b
inc rax
mov rcx, qword [rbp + 0x28]
cmp rax, 0xffffffffffffffff
ja 0x140038c2e
cmp rax, 0x1000
jb 0x140038b26
test cl, 0x1f
jne 0x140038c27
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x140038c20
sub rcx, rax
cmp rcx, 8
jb 0x140038c19
cmp rcx, 0x27
ja 0x140038c12
mov rcx, rax
call fcn.14005afe8
mov qword [rbp + 0x40], 0xf
mov qword [rbp + 0x38], rdi
mov byte [rbp + 0x28], 0
mov rax, qword [rbp + 0x80]
cmp rax, 0x10
jb 0x140038a60
inc rax
mov rcx, qword [rbp + 0x68]
cmp rax, 0xffffffffffffffff
ja 0x140038c51
cmp rax, 0x1000
jb 0x140038b95
test cl, 0x1f
jne 0x140038c4a
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x140038c43
sub rcx, rax
cmp rcx, 8
jb 0x140038c3c
cmp rcx, 0x27
ja 0x140038c35
mov rcx, rax
call fcn.14005afe8
jmp 0x140038a60
lea rdx, [rbp + 0x88]
call fcn.140039990
mov rdx, rax
lea rcx, [rbp - 0x18]
call fcn.1400321e0
mov rax, qword [rbp + 0xa0]
cmp rax, 0x10
jb 0x140038a60
inc rax
mov rcx, qword [rbp + 0x88]
cmp rax, 0xffffffffffffffff
ja 0x140038c74
cmp rax, 0x1000
jb 0x140038c08
test cl, 0x1f
jne 0x140038c6d
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x140038c66
sub rcx, rax
cmp rcx, 8
jb 0x140038c5f
cmp rcx, 0x27
ja 0x140038c58
mov rcx, rax
call fcn.14005afe8
jmp 0x140038a60
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov r9, qword [r14 + 0x10]
mov r8, rbx
lea rdx, [rbp + 0xc8]
mov rcx, r14
call fcn.140039990
mov rdx, rax
lea rcx, [rbp + 8]
call fcn.1400321e0
lea rcx, [rbp + 0xc8]
call fcn.140023b60
lea rsi, [rbp - 0x18]
cmp qword [rbp], 0x10
cmovae rsi, qword [rbp - 0x18]
mov ecx, 0x18
call fcn.14005ac34
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140038ce6
mov qword [rax + 8], rdi
mov dword [rax + 0x10], 1
mov rcx, rsi
call fcn.14005bf70
mov qword [rbx], rax
jmp 0x140038ce9
mov rbx, rdi
test rbx, rbx
jne 0x140038cf9
mov ecx, 0x8007000e
call fcn.14005be20
int3
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
setne sil
or eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x140038d5b
mov rcx, qword [rbx]
test rcx, rcx
je 0x140038d3c
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rdi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140038d4e
call fcn.14005aff0
mov qword [rbx + 8], rdi
mov edx, 0x18
mov rcx, rbx
call fcn.14005aff0
test sil, sil
je 0x140038efd
lea rsi, [rbp - 0x18]
cmp qword [rbp], 0x10
cmovae rsi, qword [rbp - 0x18]
mov ecx, 0x18
call fcn.14005ac34
mov rbx, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140038da1
mov qword [rax + 8], rdi
mov dword [rax + 0x10], 1
mov rcx, rsi
call fcn.14005bf70
mov qword [rbx], rax
jmp 0x140038da4
mov rbx, rdi
test rbx, rbx
jne 0x140038db4
mov ecx, 0x8007000e
call fcn.14005be20
int3
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
setne sil
or eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x140038e16
mov rcx, qword [rbx]
test rcx, rcx
je 0x140038df7
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rdi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140038e09
call fcn.14005aff0
mov qword [rbx + 8], rdi
mov edx, 0x18
mov rcx, rbx
call fcn.14005aff0
test sil, sil
je 0x140038efd
lea rdx, str.iusl::WindowsRegistry::GetValueString
lea rcx, [rbp + 0x110]
call fcn.140030380
nop
mov dword [rax + 0x4c], 1
lea rdx, str._DBG___N_A_
mov rcx, rax
call fcn.140028450
mov rcx, rax
lea rdx, str.Key__
call fcn.140028450
mov rsi, rax
mov qword [rbp - 0x68], 0xf
mov qword [rbp - 0x70], rdi
mov byte [rbp - 0x80], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x80]
call fcn.140025680
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x60]
call fcn.140027ca0
mov rbx, rax
lea rcx, [rsi + 8]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
call fcn.14002d0b0
lea rcx, [rsi + 0x28]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
call fcn.14002d0b0
nop
mov r8, qword [rbp - 0x48]
cmp r8, 8
jb 0x140038ecc
inc r8
mov rdx, qword [rbp - 0x60]
call fcn.14002cf50
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], rdi
mov word [rbp - 0x60], di
lea rdx, str.__not_found.
mov rcx, rsi
call fcn.140028450
nop
lea rcx, [rbp + 0x110]
call fcn.140027f10
jmp 0x140039259
mov r14, qword [rsp + 0x50]
lea rdx, [rbp + 8]
cmp qword [rbp + 0x20], 0x10
cmovae rdx, qword [rbp + 8]
lea rcx, [rsp + 0x58]
call fcn.140038280
mov rdx, qword [rax]
test rdx, rdx
je 0x140038f27
mov rdx, qword [rdx]
jmp 0x140038f2a
mov rdx, rdi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
lea rcx, [rsp + 0x58]
call fcn.140028740
test esi, esi
jne 0x140039140
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r15, rax
test rax, rax
jne 0x14003900f
lea rdx, str.iusl::WindowsRegistry::GetValueString
lea rcx, [rbp + 0x160]
call fcn.140030380
nop
mov dword [rax + 0x4c], 3
lea rdx, str._ERR___N_A_
mov rcx, rax
call fcn.140028450
mov rcx, rax
lea rdx, str.Malloc_failed_
call fcn.140028450
mov rcx, rax
lea rdx, str.Value__
call fcn.140028450
mov rbx, rax
lea rdx, [rbp + 8]
mov rcx, rax
call fcn.1400285b0
lea rdx, str.__from_key__
mov rcx, rbx
call fcn.140028450
mov rbx, rax
lea rdx, [rbp - 0x18]
mov rcx, rax
call fcn.1400285b0
lea rdx, str.__not_read.
mov rcx, rbx
call fcn.140028450
nop
lea rcx, [rbp + 0x160]
call fcn.140027f10
mov esi, 0xea
jmp 0x1400391c2
lea rdx, [rbp + 8]
cmp qword [rbp + 0x20], 0x10
cmovae rdx, qword [rbp + 8]
lea rcx, [rsp + 0x38]
call fcn.140038280
mov rcx, qword [rax]
test rcx, rcx
je 0x140039032
mov rdi, qword [rcx]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
lea rcx, [rsp + 0x38]
call fcn.140028740
mov rdx, r15
lea rcx, [rbp - 0x38]
call fcn.14002ba30
mov rdx, rax
lea rcx, [rbp + 0xe8]
call fcn.14002ed10
mov rdx, rax
mov rcx, r12
call fcn.1400321e0
lea rcx, [rbp + 0xe8]
call fcn.140023b60
lea rdx, str.iusl::WindowsRegistry::GetValueString
lea rcx, [rbp + 0x1b0]
call fcn.140030380
nop
mov dword [rax + 0x4c], 1
lea rdx, str._DBG___N_A_
mov rcx, rax
call fcn.140028450
mov rcx, rax
lea rdx, str.Value__
call fcn.140028450
mov rbx, rax
lea rdx, [rbp + 8]
mov rcx, rax
call fcn.1400285b0
lea rdx, str.__from_key__
mov rcx, rbx
call fcn.140028450
mov rbx, rax
lea rdx, [rbp - 0x18]
mov rcx, rax
call fcn.1400285b0
lea rdx, str.__read_successfully._Value_
mov rcx, rbx
call fcn.140028450
mov rbx, rax
mov rdx, r12
mov rcx, rax
call fcn.1400285b0
lea rdx, [0x1400a16c0]
mov rcx, rbx
call fcn.140028450
nop
lea rcx, [rbp + 0x1b0]
call fcn.140027f10
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400391c2
lea rdx, str.iusl::WindowsRegistry::GetValueString
lea rcx, [rbp + 0x200]
call fcn.140030380
nop
mov dword [rax + 0x4c], 1
lea rdx, str._DBG___N_A_
mov rcx, rax
call fcn.140028450
mov rcx, rax
lea rdx, str.Value__
call fcn.140028450
mov rbx, rax
lea rdx, [rbp + 8]
mov rcx, rax
call fcn.1400285b0
lea rdx, str.__from_key__
mov rcx, rbx
call fcn.140028450
mov rbx, rax
lea rdx, [rbp - 0x18]
mov rcx, rax
call fcn.1400285b0
lea rdx, str.__not_read.
mov rcx, rbx
call fcn.140028450
nop
lea rcx, [rbp + 0x200]
call fcn.140027f10
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx ebx, si
jmp 0x14003925e
mov dword [rsp + 0x60], 0xdf
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rdi
lea rdx, str.iusl::WindowsRegistry::GetValueString
lea rcx, [rbp + 0x250]
call fcn.140030380
nop
mov dword [rax + 0x4c], 3
lea rdx, str._ERR___N_A_
mov rcx, rax
call fcn.140028450
mov rcx, rax
lea rdx, [rsp + 0x60]
call fcn.140038630
nop
lea rcx, [rbp + 0x250]
call fcn.140027f10
nop
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x140039259
mov rdx, qword [rsp + 0x70]
mov rcx, rbx
call fcn.14003a4d0
mov r8, qword [rsp + 0x78]
sub r8, rbx
sar r8, 5
mov rdx, rbx
call fcn.140037eb0
mov ebx, 5
lea rcx, [rbp + 0x48]
call fcn.140023b60
nop
lea rcx, [rbp + 8]
call fcn.140023b60
nop
lea rcx, [rbp - 0x18]
call fcn.140023b60
mov eax, ebx
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.14005ac10
lea r11, [rsp + 0x3b0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret