Function at 0x1400ee230
Capabilities:
Query or enumerate registry value

Disassembly:
push r14
sub rsp, 0x80
lea r8, [rsp + 0x38]
mov r14, rcx
call fcn.1400e3f20
test eax, eax
je 0x1400ee6de
mov rdx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r8, str.ControlLsaKerberosParameters
mov rcx, r14
mov dword [rsp + 0x20], 0x20019
mov qword [rsp + 0x50], r15
call fcn.14000d810
test eax, eax
je 0x1400ee6af
mov ecx, dword [r14]
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x68], rdi
mov edi, 0x6b6e
mov qword [rsp + 0x60], r12
xor r12d, r12d
mov qword [rsp + 0x58], r13
mov r13, qword [rsp + 0x30]
mov dword [rsp + 0xa0], r12d
lea r8d, [rdi + 8]
test ecx, ecx
je 0x1400ee3e9
cmp ecx, 1
jne 0x1400ee634
mov ebp, r12d
test r13, r13
je 0x1400ee2dc
mov r15, r13
jmp 0x1400ee2e4
mov rax, qword [r14 + 8]
mov r15, qword [rax + 0x18]
cmp word [r15 + 4], di
jne 0x1400ee3cb
mov ecx, dword [r15 + 0x28]
test ecx, ecx
je 0x1400ee3cb
movsxd rdx, dword [r15 + 0x2c]
cmp edx, 0xffffffff
je 0x1400ee3cb
mov rax, qword [r14 + 8]
mov esi, r12d
add rdx, qword [rax + 0x10]
mov qword [rsp + 0xa8], rdx
test ecx, ecx
je 0x1400ee3cb
test rbp, rbp
jne 0x1400ee3c6
mov eax, esi
movsxd rbx, dword [rdx + rax*4 + 4]
mov rax, qword [r14 + 8]
add rbx, qword [rax + 0x10]
cmp word [rbx + 4], r8w
jne 0x1400ee3ba
movzx eax, word [rbx + 6]
test ax, ax
je 0x1400ee3ba
test byte [rbx + 0x14], 1
mov edx, eax
je 0x1400ee366
lea rcx, [rbx + 0x18]
call fcn.140012170
mov rdi, rax
test rax, rax
je 0x1400ee3ac
jmp 0x1400ee38e
add rdx, 2
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1400ee3ac
movzx r8d, word [rbx + 6]
lea rdx, [rbx + 0x18]
mov rcx, rax
call fcn.14011b4a0
mov rdx, rdi
lea rcx, str.MachineBoundCertificate
call fcn.14011ebc8
test eax, eax
mov rcx, rdi
cmove rbp, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdx, qword [rsp + 0xa8]
mov r8d, 0x6b76
inc esi
cmp esi, dword [r15 + 0x28]
jb 0x1400ee323
mov edi, 0x6b6e
test rbp, rbp
mov ebx, r12d
setne bl
test rbp, rbp
je 0x1400ee427
mov eax, dword [rbp + 8]
btr eax, 0x1f
mov dword [rsp + 0xa0], eax
jmp 0x1400ee427
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
lea rdx, str.MachineBoundCertificate
xor r9d, r9d
mov qword [rsp + 0x20], r12
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov ebx, r12d
sete bl
test eax, eax
je 0x1400ee427
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
je 0x1400ee634
mov eax, dword [rsp + 0xa0]
test eax, eax
je 0x1400ee640
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x40], rax
mov r15, rax
test rax, rax
je 0x1400ee648
mov eax, dword [r14]
mov ebx, r12d
test eax, eax
je 0x1400ee5ca
cmp eax, 1
jne 0x1400ee603
mov rbp, r12
test r13, r13
jne 0x1400ee483
mov rax, qword [r14 + 8]
mov r13, qword [rax + 0x18]
cmp word [r13 + 4], di
jne 0x1400ee572
mov ecx, dword [r13 + 0x28]
test ecx, ecx
je 0x1400ee572
movsxd rdx, dword [r13 + 0x2c]
cmp edx, 0xffffffff
je 0x1400ee572
mov rax, qword [r14 + 8]
mov esi, r12d
add rdx, qword [rax + 0x10]
mov qword [rsp + 0xa8], rdx
test ecx, ecx
je 0x1400ee572
mov r15d, 0x6b76
nop dword [rax + rax]
test rbp, rbp
jne 0x1400ee56d
mov eax, esi
movsxd rbx, dword [rdx + rax*4 + 4]
mov rax, qword [r14 + 8]
add rbx, qword [rax + 0x10]
cmp word [rbx + 4], r15w
jne 0x1400ee561
movzx eax, word [rbx + 6]
test ax, ax
je 0x1400ee561
test byte [rbx + 0x14], 1
mov edx, eax
je 0x1400ee513
lea rcx, [rbx + 0x18]
call fcn.140012170
mov rdi, rax
test rax, rax
je 0x1400ee559
jmp 0x1400ee53b
add rdx, 2
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1400ee559
movzx r8d, word [rbx + 6]
lea rdx, [rbx + 0x18]
mov rcx, rax
call fcn.14011b4a0
mov rdx, rdi
lea rcx, str.MachineBoundCertificate
call fcn.14011ebc8
test eax, eax
mov rcx, rdi
cmove rbp, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdx, qword [rsp + 0xa8]
inc esi
cmp esi, dword [r13 + 0x28]
jb 0x1400ee4d0
mov r15, qword [rsp + 0x40]
test rbp, rbp
mov ebx, r12d
setne bl
test rbp, rbp
je 0x1400ee603
mov ecx, dword [rbp + 8]
mov ebx, r12d
mov edi, ecx
btr edi, 0x1f
cmp dword [rsp + 0xa0], edi
setae bl
jb 0x1400ee5c1
lea rdx, [rbp + 0xc]
test ecx, ecx
js 0x1400ee5b6
mov rax, qword [r14 + 8]
movsxd rdx, dword [rdx]
mov rax, qword [rax + 0x10]
add rax, 4
add rdx, rax
mov r8d, edi
mov rcx, r15
call fcn.14011b4a0
mov dword [rsp + 0xa0], edi
jmp 0x1400ee603
lea rax, [rsp + 0xa0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, str.MachineBoundCertificate
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete bl
test eax, eax
je 0x1400ee603
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r12d, ebx
test ebx, ebx
je 0x1400ee61a
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0xa8], eax
jmp 0x1400ee648
lea rcx, str.ERROR_kull_m_registry_QueryWithAlloc___kull_m_registry_RegQueryValueEx_KO_n
call fcn.14000afb0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r15, rax
jmp 0x1400ee648
lea rcx, str.ERROR_kull_m_registry_QueryWithAlloc___pre___kull_m_registry_RegQueryValueEx_KO_n
call fcn.14000afb0
mov r15, qword [rsp + 0xa0]
cmp dword [r14], 0
mov r13, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x90]
jne 0x1400ee681
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x1400ee681
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r12d, r12d
mov r12, qword [rsp + 0x60]
je 0x1400ee6bb
mov edx, dword [rsp + 0xa8]
lea r8, str.MachineBoundCertificate
xor r9d, r9d
mov rcx, r15
call fcn.1400de000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400ee6bb
lea rcx, str.ERROR_kull_m_registry_OpenAndQueryWithAlloc___kull_m_registry_RegOpenKeyEx_KO_n
call fcn.14000afb0
mov ecx, dword [r14]
mov r15, qword [rsp + 0x50]
test ecx, ecx
jne 0x1400ee6de
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x1400ee6de
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x80
pop r14
ret