Function at 0x18000e7d8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rdi, qword [r8 + 8]
xor r13d, r13d
mov rbx, r8
mov qword [rbp - 0x10], r13
mov rsi, rdx
mov r12, rcx
lea r14d, [r13 + 1]
mov dword [rbp - 0x1c], r14d
mov dword [rbp - 0x18], r14d
call fcn.18000fc94
mov r8, rbx
mov rdx, rsi
mov rcx, r12
call fcn.18000f53c
lea rax, [rbp - 8]
mov dword [rbp + 0x50], r13d
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftClientForNFSCurrentVersionUsersDefaultAuth
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x18000e8af
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x20]
mov qword [rsp + 0x28], rax
lea rdx, str.AuthType
lea rax, [rbp + 0x50]
mov dword [rbp - 0x20], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov rcx, qword [rbp - 8]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
jne 0x18000e8af
mov eax, dword [rbp + 0x50]
cmp eax, 5
je 0x18000e8b7
mov eax, r13d
jmp 0x18000e8b2
mov eax, dword [rbp + 0x50]
cmp eax, 5
jne 0x18000e8c1
mov dword [rdi + 0x420], 5
mov dword [rbp - 0x20], r14d
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rsi + rbx*2], r13w
jne 0x18000e8c9
add ebx, 8
mov ecx, 0x40
mov r14d, ebx
lea r15, [rbx + rbx]
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x18000e9b5
mov r8, r15
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
lea rax, str.Auth
mov edx, r14d
mov qword [rsp + 0x28], rax
lea r8d, [rbx - 1]
lea r9, [0x1800150f8]
mov qword [rsp + 0x20], rsi
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__snwprintf_s]
nop dword [rax + rax]
lea rax, [rbp - 8]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x18000e9a6
mov rcx, qword [rbp - 8]
lea rax, [rbp + 0x50]
mov qword [rsp + 0x28], rax
lea rdx, str.AuthenticateAtLogon
lea rax, [rbp - 0x20]
mov dword [rbp + 0x50], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov rcx, qword [rbp - 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
nop dword [rax + rax]
lea rax, [rbp - 0x10]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x18000ea59
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x58]
mov qword [rsp + 0x28], rax
lea rdx, str.ConnectDisplay
lea rax, [rbp - 0x1c]
mov dword [rbp + 0x58], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x58]
mov qword [rsp + 0x28], rax
lea rdx, str.DisplayConfirmation
lea rax, [rbp - 0x18]
mov dword [rbp + 0x58], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret