Function at 0x1400d5ca0
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r13
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xb8
mov r10d, dword [rcx]
mov rdi, rdx
mov r13, rcx
mov esi, 0x6b6e
test r10d, r10d
je 0x1400d5d12
cmp r10d, 1
jne 0x1400d606e
test rdx, rdx
jne 0x1400d5ced
mov rax, qword [rcx + 8]
mov rdx, qword [rax + 0x18]
xor r15d, r15d
cmp word [rdx + 4], si
mov ebx, r15d
sete bl
jne 0x1400d5d6e
mov eax, dword [rdx + 0x28]
mov dword [rbp - 0x25], eax
mov ecx, dword [rdx + 0x40]
shr ecx, 1
mov dword [rbp + 0x5f], ecx
mov eax, dword [rdx + 0x44]
mov dword [rbp - 0x29], eax
jmp 0x1400d5d71
xor r15d, r15d
lea rax, [rbp - 0x29]
mov qword [rsp + 0x58], r15
xor r9d, r9d
mov qword [rsp + 0x50], r15
xor r8d, r8d
mov qword [rsp + 0x48], rax
xor edx, edx
lea rax, [rbp + 0x5f]
mov rcx, rdi
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x25]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
mov ebx, r15d
sete bl
test eax, eax
je 0x1400d5d6e
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [rbp + 0x5f]
test ebx, ebx
je 0x1400d606e
inc ecx
mov qword [rsp + 0xa8], r14
mov dword [rbp + 0x5f], ecx
lea edx, [rcx + 1]
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp - 0x11], rax
mov r14, rax
test rax, rax
je 0x1400d6066
mov edx, dword [rbp - 0x29]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp - 0x19], rax
mov rbx, rax
test rax, rax
je 0x1400d605d
cmp dword [rbp - 0x25], 0
mov qword [rsp + 0xb0], r12
mov r12d, r15d
jbe 0x1400d604c
mov r9d, 0x6b76
mov eax, dword [rbp + 0x5f]
mov ecx, dword [r13]
mov dword [rbp - 0x31], eax
mov eax, dword [rbp - 0x29]
mov dword [rbp - 0x2d], eax
test ecx, ecx
je 0x1400d5f56
cmp ecx, 1
jne 0x1400d6033
test rdi, rdi
je 0x1400d5e0b
mov rax, rdi
jmp 0x1400d5e13
mov rax, qword [r13 + 8]
mov rax, qword [rax + 0x18]
cmp word [rax + 4], si
jne 0x1400d6033
mov ecx, dword [rax + 0x28]
test ecx, ecx
je 0x1400d6033
cmp r12d, ecx
jae 0x1400d6033
movsxd rcx, dword [rax + 0x2c]
cmp ecx, 0xffffffff
je 0x1400d6033
mov rax, qword [r13 + 8]
mov edx, r12d
add rcx, qword [rax + 0x10]
movsxd rbx, dword [rcx + rdx*4 + 4]
add rbx, qword [rax + 0x10]
cmp word [rbx + 4], r9w
jne 0x1400d6033
movzx eax, word [rbx + 6]
test ax, ax
je 0x1400d5f4d
test byte [rbx + 0x14], 1
mov edi, eax
mov edx, eax
je 0x1400d5e8d
lea rcx, [rbx + 0x18]
call fcn.140012170
inc edi
mov rsi, rax
test rax, rax
je 0x1400d602a
jmp 0x1400d5ebd
shr edi, 1
add rdx, 2
mov ecx, 0x40
inc edi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x1400d602a
movzx r8d, word [rbx + 6]
lea rdx, [rbx + 0x18]
mov rcx, rax
call fcn.14011b4a0
cmp dword [rbp - 0x31], edi
mov r14d, r15d
setae r14b
jb 0x1400d5ee1
mov rcx, qword [rbp - 0x11]
mov rdx, rsi
mov r8d, edi
add r8, r8
call fcn.14011b4a0
lea eax, [rdi - 1]
mov dword [rbp - 0x31], eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r14d, r14d
je 0x1400d602a
mov edi, dword [rbx + 8]
mov esi, r15d
mov eax, dword [rbx + 0x10]
btr edi, 0x1f
cmp dword [rbp - 0x2d], edi
mov dword [rbp - 0x21], eax
setae sil
jb 0x1400d5f40
cmp dword [rbx + 8], 0
lea rdx, [rbx + 0xc]
jl 0x1400d5f28
mov rax, qword [r13 + 8]
movsxd rdx, dword [rdx]
mov rax, qword [rax + 0x10]
add rax, 4
add rdx, rax
mov rbx, qword [rbp - 0x19]
mov rcx, rbx
mov r8d, edi
call fcn.14011b4a0
mov r14, qword [rbp - 0x11]
mov dword [rbp - 0x2d], edi
jmp 0x1400d5f9a
mov rbx, qword [rbp - 0x19]
mov r14, qword [rbp - 0x11]
mov dword [rbp - 0x2d], edi
jmp 0x1400d5f9a
mov dword [rbp - 0x31], r15d
jmp 0x1400d6033
lea rax, [rbp - 0x2d]
mov r8, r14
mov qword [rsp + 0x38], rax
lea r9, [rbp - 0x31]
lea rax, [rbp - 0x21]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
mov edx, r12d
mov rcx, rdi
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
mov esi, r15d
sete sil
test eax, eax
je 0x1400d5f9a
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x1400d602a
mov rdx, r14
lea rcx, str._t__s__n
call fcn.14000afb0
mov edx, dword [rbp - 0x21]
cmp edx, 3
jne 0x1400d601e
mov r9d, dword [rbp + 0x77]
lea rax, [rbp - 9]
mov edx, dword [rbp - 0x2d]
xor r8d, r8d
mov qword [rsp + 0x48], r15
mov rcx, rbx
mov qword [rsp + 0x40], rax
lea rax, [rbp - 1]
mov qword [rsp + 0x38], rax
mov rax, qword [rbp + 0x6f]
mov dword [rsp + 0x30], 0x10
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x7f]
mov qword [rsp + 0x20], rax
call fcn.1400cd150
test eax, eax
je 0x1400d602a
mov r8, qword [rbp - 1]
lea rcx, str._tSlot_password:__.S_n
mov edx, dword [rbp - 9]
call fcn.14000afb0
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400d602a
lea rcx, str.ERROR_kuhl_m_dpapi_safenet_ksp_registry_user_parser___Incompatible_REG_type:__u_n
call fcn.14000afb0
mov esi, 0x6b6e
lea r9d, [rsi + 8]
mov rdi, qword [rbp + 0x67]
inc r12d
mov rbx, qword [rbp - 0x19]
mov r14, qword [rbp - 0x11]
cmp r12d, dword [rbp - 0x25]
jb 0x1400d5de0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r12, qword [rsp + 0xb0]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r14, qword [rsp + 0xa8]
add rsp, 0xb8
pop r15
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret