Function at 0x1400239e8
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rsi, rdx
mov r12, rcx
mov rcx, qword [section..data]
lea r14, section..data
cmp rcx, r14
je 0x140023a39
test byte [rcx + 0x1c], 1
je 0x140023a39
cmp byte [rcx + 0x19], 5
jb 0x140023a39
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400aca20]
mov edx, 0x3f
call fcn.140045cf4
mov rcx, qword [r12]
lea rax, [rbp + 0x40]
xor r13d, r13d
xor r9d, r9d
mov qword [rsp + 0x58], r13
xor r8d, r8d
mov qword [rsp + 0x50], r13
xor edx, edx
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x50], r13d
mov dword [rbp + 0x40], r13d
call qword [sym.imp.KERNEL32.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
mov edi, eax
mov r10, qword [section..data]
cmp r10, r14
je 0x140023ac6
test byte [r10 + 0x1c], 2
je 0x140023ac6
cmp byte [r10 + 0x19], 4
jb 0x140023ac6
mov rcx, qword [r10 + 0x10]
lea edx, [r13 + 0x40]
mov r9d, eax
lea r8, [0x1400aca20]
call fcn.1400438d8
mov r10, qword [section..data]
inc dword [rbp + 0x40]
test edi, edi
jne 0x140023cd8
mov rax, qword [0x1400c9e40]
movabs r10, 0xb1a8ae8f5a5da170
mov rax, qword [rax + 0x18]
lea rcx, [0x1400c9e40]
call qword [case.0x140028cb6.0]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x10], rbx
mov rcx, qword [section..data]
cmp rcx, r14
je 0x140023b2a
test byte [rcx + 0x1c], 2
je 0x140023b2a
cmp byte [rcx + 0x19], 4
jb 0x140023b2a
mov r9d, dword [rbp + 0x50]
lea edx, [rdi + 0x41]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400aca20]
call fcn.140049660
mov r15d, r13d
cmp dword [rbp + 0x50], r13d
jbe 0x140023cc8
test edi, edi
jne 0x140023cc8
movsxd rdi, dword [rbp + 0x40]
mov ecx, 1
mov dword [rbp + 0x58], edi
mov eax, dword [rbx - 0xc]
sub ecx, dword [rbx - 8]
sub eax, edi
or ecx, eax
jge 0x140023b66
mov edx, edi
lea rcx, [rbp - 0x10]
call fcn.14000efe0
mov rbx, qword [rbp - 0x10]
test edi, edi
js 0x140023bfb
cmp edi, dword [rbx - 0xc]
jg 0x140023bfb
mov dword [rbx - 0x10], edi
lea rax, [rbp - 8]
mov qword [rsp + 0x38], rax
lea r9, [rbp + 0x58]
mov qword [rsp + 0x30], r13
mov r8, rbx
mov word [rbx + rdi*2], r13w
mov edx, r15d
mov rcx, qword [r12]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [section..data]
cmp rcx, r14
je 0x140023be3
test byte [rcx + 0x1c], 2
je 0x140023be3
cmp byte [rcx + 0x19], 4
jb 0x140023be3
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400aca20]
mov edx, 0x42
mov r9d, eax
call fcn.1400438d8
test edi, edi
jne 0x140023c06
mov eax, dword [rbp + 0x58]
cmp eax, 0xffffffff
jne 0x140023bf7
mov rcx, rbx
call fcn.1400024a0
test eax, eax
jns 0x140023c09
mov ecx, 0x80070057
call fcn.1400407c4
int3
mov eax, r13d
cmp eax, dword [rbx - 0xc]
jg 0x140023bfb
mov dword [rbx - 0x10], eax
mov eax, eax
mov word [rbx + rax*2], r13w
test edi, edi
jne 0x140023cbb
mov r14d, dword [rsi + 8]
cmp r14d, dword [rsi + 0xc]
jne 0x140023c68
cmp dword [rsi + 0xc], r13d
jne 0x140023c36
lea r14d, [rdi + 1]
jmp 0x140023c3b
add r14d, r14d
js 0x140023c84
mov edx, r14d
cmp rdx, 0xfffffff
ja 0x140023c84
mov rcx, qword [rsi]
mov r8d, 8
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__recalloc]
nop dword [rax + rax]
test rax, rax
je 0x140023c84
mov dword [rsi + 0xc], r14d
mov qword [rsi], rax
movsxd rcx, dword [rsi + 8]
mov rax, qword [rsi]
lea rcx, [rax + rcx*8]
test rcx, rcx
je 0x140023c81
lea rdx, [rbp - 0x10]
call fcn.140023dd0
inc dword [rsi + 8]
mov rcx, qword [section..data]
lea r14, section..data
cmp rcx, r14
je 0x140023cbb
test byte [rcx + 0x1c], 2
je 0x140023cbb
cmp byte [rcx + 0x19], 4
jb 0x140023cbb
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400aca20]
mov edx, 0x43
mov r9, rbx
call fcn.140043490
inc r15d
cmp r15d, dword [rbp + 0x50]
jb 0x140023b37
lea rcx, [rbx - 0x18]
call fcn.14000ccd0
mov r10, qword [section..data]
cmp r10, r14
je 0x140023d11
test byte [r10 + 0x1c], 1
je 0x140023d11
movzx edx, byte [r10 + 0x19]
mov eax, edi
neg eax
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 5
cmp edx, ecx
jb 0x140023d11
mov rcx, qword [r10 + 0x10]
lea r8, [0x1400aca20]
mov edx, 0x44
mov r9d, edi
call fcn.1400438d8
mov rbx, qword [rsp + 0xb8]
mov eax, edi
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret