Function at 0x1400d7f40
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x57]
sub rsp, 0x90
mov esi, 0x6b6e
mov qword [rax - 0x40], r13
mov r15, rdx
mov dword [rbp - 9], 0
mov edx, dword [rcx]
mov r12, rcx
mov dword [rbp - 0x21], 0
lea edi, [rsi + 8]
test edx, edx
je 0x1400d80ae
cmp edx, 1
jne 0x1400d82f8
xor r14d, r14d
test r15, r15
jne 0x1400d7fab
mov rax, qword [rcx + 8]
mov r15, qword [rax + 0x18]
cmp word [r15 + 4], si
jne 0x1400d8090
mov edx, dword [r15 + 0x28]
test edx, edx
je 0x1400d8090
movsxd rcx, dword [r15 + 0x2c]
cmp ecx, 0xffffffff
je 0x1400d8090
mov rax, qword [r12 + 8]
xor esi, esi
mov r12, rcx
add r12, qword [rax + 0x10]
test edx, edx
je 0x1400d8087
mov r13, qword [rbp + 0x5f]
nop dword [rax]
test r14, r14
jne 0x1400d8087
mov rax, qword [r13 + 8]
movsxd rbx, dword [r12 + rsi*4 + 4]
add rbx, qword [rax + 0x10]
cmp word [rbx + 4], di
jne 0x1400d807b
movzx eax, word [rbx + 6]
test ax, ax
je 0x1400d807b
test byte [rbx + 0x14], 1
mov edx, eax
je 0x1400d8030
lea rcx, [rbx + 0x18]
call fcn.140012170
mov rdi, rax
test rax, rax
je 0x1400d8076
jmp 0x1400d8058
add rdx, 2
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1400d8076
movzx r8d, word [rbx + 6]
lea rdx, [rbx + 0x18]
mov rcx, rax
call fcn.14011b4a0
mov rdx, rdi
lea rcx, str.comment
call fcn.14011ebc8
test eax, eax
mov rcx, rdi
cmove r14, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, 0x6b76
inc esi
cmp esi, dword [r15 + 0x28]
jb 0x1400d7ff0
mov r12, qword [rbp + 0x5f]
mov esi, 0x6b6e
mov r15, qword [rbp + 0x67]
xor ebx, ebx
test r14, r14
setne bl
test r14, r14
je 0x1400d80e9
mov eax, dword [r14 + 8]
btr eax, 0x1f
mov dword [rbp - 0x21], eax
jmp 0x1400d80e9
lea rax, [rbp - 0x21]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, str.comment
xor r8d, r8d
mov qword [rsp + 0x20], 0
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
je 0x1400d80e9
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
je 0x1400d82f8
mov eax, dword [rbp - 0x21]
test eax, eax
je 0x1400d82f0
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp - 0x11], rax
mov r13, rax
test rax, rax
je 0x1400d82f0
mov ecx, dword [r12]
xor ebx, ebx
test ecx, ecx
je 0x1400d827b
cmp ecx, 1
jne 0x1400d82b2
xor r14d, r14d
test r15, r15
jne 0x1400d8141
mov rax, qword [r12 + 8]
mov r15, qword [rax + 0x18]
cmp word [r15 + 4], si
jne 0x1400d8224
mov edx, dword [r15 + 0x28]
test edx, edx
je 0x1400d8224
movsxd rcx, dword [r15 + 0x2c]
cmp ecx, 0xffffffff
je 0x1400d8224
mov rax, qword [r12 + 8]
xor esi, esi
mov r12, rcx
add r12, qword [rax + 0x10]
test edx, edx
je 0x1400d821b
mov r13, qword [rbp + 0x5f]
nop
test r14, r14
jne 0x1400d8217
mov rax, qword [r13 + 8]
movsxd rbx, dword [r12 + rsi*4 + 4]
add rbx, qword [rax + 0x10]
cmp word [rbx + 4], di
jne 0x1400d820b
movzx eax, word [rbx + 6]
test ax, ax
je 0x1400d820b
test byte [rbx + 0x14], 1
mov edx, eax
je 0x1400d81c0
lea rcx, [rbx + 0x18]
call fcn.140012170
mov rdi, rax
test rax, rax
je 0x1400d8206
jmp 0x1400d81e8
add rdx, 2
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1400d8206
movzx r8d, word [rbx + 6]
lea rdx, [rbx + 0x18]
mov rcx, rax
call fcn.14011b4a0
mov rdx, rdi
lea rcx, str.comment
call fcn.14011ebc8
test eax, eax
mov rcx, rdi
cmove r14, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, 0x6b76
inc esi
cmp esi, dword [r15 + 0x28]
jb 0x1400d8180
mov r13, qword [rbp - 0x11]
mov r12, qword [rbp + 0x5f]
mov esi, 0x6b6e
xor ebx, ebx
test r14, r14
setne bl
test r14, r14
je 0x1400d826e
mov ecx, dword [r14 + 8]
xor ebx, ebx
mov edi, ecx
btr edi, 0x1f
cmp dword [rbp - 0x21], edi
setae bl
jb 0x1400d826b
lea rdx, [r14 + 0xc]
test ecx, ecx
js 0x1400d8260
movsxd rdx, dword [rdx]
mov rax, qword [r12 + 8]
add rdx, 4
mov rax, qword [rax + 0x10]
add rdx, rax
mov r8d, edi
mov rcx, r13
call fcn.14011b4a0
mov dword [rbp - 0x21], edi
mov r15, qword [rbp + 0x67]
test ebx, ebx
je 0x1400d82b2
mov eax, dword [rbp - 0x21]
jmp 0x1400d82cd
lea rax, [rbp - 0x21]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, str.comment
xor r8d, r8d
mov qword [rsp + 0x20], r13
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete bl
test eax, eax
je 0x1400d8272
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400d8272
lea rcx, str.ERROR_kull_m_registry_QueryWithAlloc___kull_m_registry_RegQueryValueEx_KO_n
call fcn.14000afb0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r13, rax
mov eax, dword [rbp + 0x5f]
mov dword [rbp - 0x11], eax
test ebx, ebx
je 0x1400d830a
mov r8, r13
lea rcx, str._____comment:__.S_n
mov edx, eax
call fcn.14000afb0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400d830a
mov edx, dword [rbp + 0x5f]
mov dword [rbp - 0x11], edx
jmp 0x1400d830a
lea rcx, str.ERROR_kull_m_registry_QueryWithAlloc___pre___kull_m_registry_RegQueryValueEx_KO_n
call fcn.14000afb0
mov eax, dword [rbp + 0x5f]
mov dword [rbp - 0x11], eax
mov ecx, dword [r12]
mov dword [rbp - 0x1d], 0
test ecx, ecx
je 0x1400d843c
cmp ecx, 1
jne 0x1400d86a8
xor r14d, r14d
test r15, r15
jne 0x1400d8337
mov rax, qword [r12 + 8]
mov r15, qword [rax + 0x18]
cmp word [r15 + 4], si
jne 0x1400d8417
mov edx, dword [r15 + 0x28]
test edx, edx
je 0x1400d8417
movsxd rcx, dword [r15 + 0x2c]
cmp ecx, 0xffffffff
je 0x1400d8417
mov rax, qword [r12 + 8]
xor esi, esi
mov r12, rcx
add r12, qword [rax + 0x10]
test edx, edx
je 0x1400d840e
mov r13d, 0x6b76
test r14, r14
jne 0x1400d840e
mov rax, qword [rbp + 0x5f]
movsxd rbx, dword [r12 + rsi*4 + 4]
mov rax, qword [rax + 8]
add rbx, qword [rax + 0x10]
cmp word [rbx + 4], r13w
jne 0x1400d8402
movzx eax, word [rbx + 6]
test ax, ax
je 0x1400d8402
test byte [rbx + 0x14], 1
mov edx, eax
je 0x1400d83bc
lea rcx, [rbx + 0x18]
call fcn.140012170
mov rdi, rax
test rax, rax
je 0x1400d8402
jmp 0x1400d83e4
add rdx, 2
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1400d8402
movzx r8d, word [rbx + 6]
lea rdx, [rbx + 0x18]
mov rcx, rax
call fcn.14011b4a0
mov rdx, rdi
lea rcx, str.type
call fcn.14011ebc8
test eax, eax
mov rcx, rdi
cmove r14, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
inc esi
cmp esi, dword [r15 + 0x28]
jb 0x1400d8377
mov r12, qword [rbp + 0x5f]
mov esi, 0x6b6e
mov r15, qword [rbp + 0x67]
xor ebx, ebx
test r14, r14
setne bl
test r14, r14
je 0x1400d8478
mov ecx, dword [r14 + 8]
mov eax, dword [r14 + 0x10]
btr ecx, 0x1f
mov dword [rbp - 0x1d], ecx
mov dword [rbp - 0x19], eax
jmp 0x1400d8478
lea rax, [rbp - 0x1d]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x19]
lea rdx, str.type
mov qword [rsp + 0x20], 0
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
je 0x1400d8478
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
je 0x1400d86a8
mov eax, dword [rbp - 0x1d]
test eax, eax
je 0x1400d86b4
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp - 1], rax
mov r13, rax
test rax, rax
je 0x1400d86b4
mov ecx, dword [r12]
xor ebx, ebx
test ecx, ecx
je 0x1400d8616
cmp ecx, 1
jne 0x1400d864e
xor r14d, r14d
test r15, r15
jne 0x1400d84d0
mov rax, qword [r12 + 8]
mov r15, qword [rax + 0x18]
cmp word [r15 + 4], si
jne 0x1400d85b4
mov edx, dword [r15 + 0x28]
test edx, edx
je 0x1400d85b4
movsxd rcx, dword [r15 + 0x2c]
cmp ecx, 0xffffffff
je 0x1400d85b4
mov rax, qword [r12 + 8]
xor esi, esi
mov r12, rcx
add r12, qword [rax + 0x10]
test edx, edx
je 0x1400d85ab
mov r13, qword [rbp + 0x5f]
nop
test r14, r14
jne 0x1400d85a7
mov rax, qword [r13 + 8]
movsxd rbx, dword [r12 + rsi*4 + 4]
add rbx, qword [rax + 0x10]
mov eax, 0x6b76
cmp word [rbx + 4], ax
jne 0x1400d859b
movzx eax, word [rbx + 6]
test ax, ax
je 0x1400d859b
test byte [rbx + 0x14], 1
mov edx, eax
je 0x1400d8555
lea rcx, [rbx + 0x18]
call fcn.140012170
mov rdi, rax
test rax, rax
je 0x1400d859b
jmp 0x1400d857d
add rdx, 2
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1400d859b
movzx r8d, word [rbx + 6]
lea rdx, [rbx + 0x18]
mov rcx, rax
call fcn.14011b4a0
mov rdx, rdi
lea rcx, str.type
call fcn.14011ebc8
test eax, eax
mov rcx, rdi
cmove r14, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
inc esi
cmp esi, dword [r15 + 0x28]
jb 0x1400d8510
mov r13, qword [rbp - 1]
mov r12, qword [rbp + 0x5f]
mov esi, 0x6b6e
xor ebx, ebx
test r14, r14
setne bl
test r14, r14
je 0x1400d8606
mov edi, dword [r14 + 8]
xor ebx, ebx
mov eax, dword [r14 + 0x10]
btr edi, 0x1f
cmp dword [rbp - 0x1d], edi
mov dword [rbp - 0x19], eax
setae bl
jb 0x1400d8603
cmp dword [r14 + 8], 0
lea rdx, [r14 + 0xc]
jl 0x1400d85f8
movsxd rdx, dword [rdx]
mov rax, qword [r12 + 8]
add rdx, 4
mov rax, qword [rax + 0x10]
add rdx, rax
mov r8d, edi
mov rcx, r13
call fcn.14011b4a0
mov dword [rbp - 0x1d], edi
mov r15, qword [rbp + 0x67]
test ebx, ebx
je 0x1400d864e
mov eax, dword [rbp - 0x1d]
mov dword [rbp - 0x11], eax
jmp 0x1400d8666
lea rax, [rbp - 0x1d]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x19]
lea rdx, str.type
mov qword [rsp + 0x20], r13
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete bl
test eax, eax
je 0x1400d860a
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400d860a
lea rcx, str.ERROR_kull_m_registry_QueryWithAlloc___kull_m_registry_RegQueryValueEx_KO_n
call fcn.14000afb0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r13, rax
test ebx, ebx
je 0x1400d86b4
cmp dword [rbp - 0x19], 4
jne 0x1400d868e
mov edx, dword [r13]
lea rcx, str._____type___:__u_n
mov dword [rbp - 0x19], edx
call fcn.14000afb0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400d86b4
mov edx, dword [rbp - 0x19]
lea rcx, str.ERROR_kuhl_m_dpapi_ssh_getKey___Incompatible_REG_type:__u_n
call fcn.14000afb0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400d86b4
lea rcx, str.ERROR_kull_m_registry_QueryWithAlloc___pre___kull_m_registry_RegQueryValueEx_KO_n
call fcn.14000afb0
cmp dword [rbp - 0x19], 0
mov r13, qword [rsp + 0x88]
jne 0x1400d898b
mov ecx, dword [r12]
xor r9d, r9d
mov dword [rbp + 0x5f], r9d
test ecx, ecx
je 0x1400d8769
cmp ecx, 1
jne 0x1400d8982
xor ecx, ecx
test r15, r15
je 0x1400d86ee
mov rax, r15
jmp 0x1400d86f7
mov rax, qword [r12 + 8]
mov rax, qword [rax + 0x18]
cmp word [rax + 4], si
jne 0x1400d874d
mov r10d, dword [rax + 0x28]
test r10d, r10d
je 0x1400d874d
movsxd rdx, dword [rax + 0x2c]
cmp edx, 0xffffffff
je 0x1400d874d
mov rax, qword [r12 + 8]
xor r8d, r8d
mov rbx, qword [rax + 0x10]
lea r11, [rbx + rdx]
test r10d, r10d
je 0x1400d874d
test rcx, rcx
jne 0x1400d874d
movsxd rdx, dword [r11 + r8*4 + 4]
mov eax, 0x6b76
add rdx, rbx
cmp word [rdx + 4], ax
jne 0x1400d8745
cmp word [rdx + 6], r9w
cmove rcx, rdx
inc r8d
cmp r8d, r10d
jb 0x1400d8724
xor ebx, ebx
test rcx, rcx
setne bl
test rcx, rcx
je 0x1400d879c
mov r9d, dword [rcx + 8]
btr r9d, 0x1f
mov dword [rbp + 0x5f], r9d
jmp 0x1400d879c
lea rax, [rbp + 0x5f]
xor r8d, r8d
mov qword [rsp + 0x28], rax
xor edx, edx
mov rcx, r15
mov qword [rsp + 0x20], r9
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
je 0x1400d8798
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r9d, dword [rbp + 0x5f]
test ebx, ebx
je 0x1400d8982
test r9d, r9d
je 0x1400d8997
mov edx, r9d
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x1400d8997
mov ecx, dword [r12]
xor ebx, ebx
test ecx, ecx
je 0x1400d8895
cmp ecx, 1
jne 0x1400d88ce
xor ecx, ecx
test r15, r15
jne 0x1400d87ee
mov rax, qword [r12 + 8]
mov r15, qword [rax + 0x18]
mov eax, 0x6b6e
cmp word [r15 + 4], ax
jne 0x1400d8849
mov r9d, dword [r15 + 0x28]
test r9d, r9d
je 0x1400d8849
movsxd rdx, dword [r15 + 0x2c]
cmp edx, 0xffffffff
je 0x1400d8849
mov rax, qword [r12 + 8]
xor r8d, r8d
mov r11, qword [rax + 0x10]
lea r10, [r11 + rdx]
test r9d, r9d
je 0x1400d8849
test rcx, rcx
jne 0x1400d884c
movsxd rdx, dword [r10 + r8*4 + 4]
mov eax, 0x6b76
add rdx, r11
cmp word [rdx + 4], ax
jne 0x1400d8841
cmp word [rdx + 6], bx
cmove rcx, rdx
inc r8d
cmp r8d, r9d
jb 0x1400d8821
test rcx, rcx
setne bl
test rcx, rcx
je 0x1400d88c5
mov r8d, dword [rcx + 8]
xor ebx, ebx
mov edi, r8d
btr edi, 0x1f
cmp dword [rbp + 0x5f], edi
setae bl
jb 0x1400d8890
lea rdx, [rcx + 0xc]
test r8d, r8d
js 0x1400d8885
movsxd rdx, dword [rdx]
mov rax, qword [r12 + 8]
add rdx, 4
mov rax, qword [rax + 0x10]
add rdx, rax
mov r8d, edi
mov rcx, rsi
call fcn.14011b4a0
mov dword [rbp + 0x5f], edi
jmp 0x1400d88c5
lea rax, [rbp + 0x5f]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rsi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete bl
test eax, eax
je 0x1400d88c5
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
je 0x1400d88ce
mov edi, dword [rbp + 0x5f]
jmp 0x1400d88e9
lea rcx, str.ERROR_kull_m_registry_QueryWithAlloc___kull_m_registry_RegQueryValueEx_KO_n
call fcn.14000afb0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [rbp - 0x11]
mov rsi, rax
test ebx, ebx
je 0x1400d8997
mov rdx, qword [rbp + 0x7f]
test rdx, rdx
je 0x1400d8907
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov r14d, eax
jmp 0x1400d890b
mov r14d, dword [rbp - 9]
mov r9d, dword [rbp + 0x6f]
lea rax, [rbp - 5]
mov qword [rsp + 0x48], 0
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov edx, edi
lea rax, [rbp - 1]
mov rcx, rsi
mov qword [rsp + 0x38], rax
mov rax, qword [rbp + 0x77]
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call fcn.1400cd150
test eax, eax
je 0x1400d8968
mov rcx, qword [rbp - 1]
call fcn.1400d89b0
mov rcx, qword [rbp - 1]
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r14d, r14d
je 0x1400d8977
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400d8997
lea rcx, str.ERROR_kull_m_registry_QueryWithAlloc___pre___kull_m_registry_RegQueryValueEx_KO_n
jmp 0x1400d8992
lea rcx, str.ERROR_kuhl_m_dpapi_ssh_getKey___Not_a_RSA_key__n
call fcn.14000afb0
add rsp, 0x90
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret