Function at 0x14007fe50
Capabilities:
Link many functions at runtime
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x40
xor r8d, r8d
mov qword [rsp + 0x30], rbp
mov rbp, rcx
lea edx, [r8 + 0x10]
lea ecx, [rdx - 0xf]
call fcn.140012100
mov r14, rax
mov rax, qword [0x140121070]
test rax, rax
jne 0x14007fe97
lea rcx, str.kernel32.dll
call fcn.140082e60
mov qword [0x140121070], rax
test rax, rax
je 0x14007fea7
lea rdx, str.AddDllDirectory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r8d, r8d
mov qword [rsp + 0x38], rbx
mov edx, 0xc8
mov qword [0x140121060], rax
lea ecx, [r8 + 3]
call fcn.140012100
lea r8, [rsp + 0x78]
mov qword [r14], rax
lea rdx, str.SOFTWAREMITKerberos
mov dword [r14 + 8], 0
mov rcx, 0xffffffff80000002
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x140080170
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.InstallDir
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140080033
cmp dword [rsp + 0x68], 1
jne 0x140080033
mov ecx, dword [rsp + 0x70]
lea edx, [rdi + 1]
add ecx, 0x14
xor r8d, r8d
call fcn.140012100
mov rcx, qword [rsp + 0x78]
lea r9, [rsp + 0x68]
mov rsi, rax
lea rdx, str.InstallDir
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14008002b
cmp dword [rsp + 0x68], 1
jne 0x14008002b
lea rcx, [rsi - 1]
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x14007ff83
cmp qword [0x140121060], rdi
mov eax, dword [str._bin]
mov dword [rcx], eax
movzx eax, byte [0x1400cb910]
mov byte [rcx + 4], al
je 0x14007ffc8
mov r8, rsi
xor edx, edx
xor ecx, ecx
call fcn.140014a60
mov rcx, rax
mov rbx, rax
call qword [0x140121060]
mov rcx, rbx
call fcn.140011ff0
lea rcx, [rsi - 1]
nop dword [rax]
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x14007ffd0
movsd xmm0, qword [str.gssapi64.dll]
xor edx, edx
movsd qword [rcx], xmm0
mov r8d, 0xd00
mov eax, dword [0x1400cb920]
mov dword [rcx + 8], eax
movzx eax, word [0x1400cb924]
mov word [rcx + 0xc], ax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rcx, rax
mov rdi, rax
call fcn.14007fc90
test al, al
je 0x140080023
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rdi
call fcn.14007fc30
mov rcx, rsi
call fcn.140011ff0
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rdi, rdi
je 0x140080170
movsxd rcx, dword [r14 + 8]
lea rdx, str.gss_delete_sec_context
imul rbx, rcx, 0xc8
lea eax, [rcx + 1]
mov rcx, rdi
add rbx, qword [r14]
mov dword [r14 + 8], eax
lea rax, str.Using_GSSAPI_from_GSSAPI64.DLL
mov dword [rbx], 0
mov qword [rbx + 8], rax
mov qword [rbx + 0xc0], rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.gss_display_status
mov rcx, rdi
mov qword [rbx + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.gss_get_mic
mov rcx, rdi
mov qword [rbx + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.gss_verify_mic
mov rcx, rdi
mov qword [rbx + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.gss_import_name
mov rcx, rdi
mov qword [rbx + 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.gss_init_sec_context
mov rcx, rdi
mov qword [rbx + 0x88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.gss_release_buffer
mov rcx, rdi
mov qword [rbx + 0x90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.gss_release_cred
mov rcx, rdi
mov qword [rbx + 0x98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.gss_release_name
mov rcx, rdi
mov qword [rbx + 0xa0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.gss_acquire_cred
mov rcx, rdi
mov qword [rbx + 0xa8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.gss_inquire_cred_by_mech
mov rcx, rdi
mov qword [rbx + 0xb0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [rbx + 0xb8], rax
call fcn.14004b6b0
lea rcx, str.secur32.dll
call fcn.140082e60
mov rdi, rax
test rax, rax
je 0x140080275
movsxd rdx, dword [r14 + 8]
lea rax, str.Using_SSPI_from_SECUR32.DLL
imul rbx, rdx, 0xc8
lea ecx, [rdx + 1]
add rbx, qword [r14]
lea rdx, str.AcquireCredentialsHandleA
mov dword [r14 + 8], ecx
mov rcx, rdi
mov dword [rbx], 1
mov qword [rbx + 8], rax
mov qword [rbx + 0xc0], rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.InitializeSecurityContextA
mov rcx, rdi
mov qword [0x140121020], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.FreeContextBuffer
mov rcx, rdi
mov qword [0x140121028], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.FreeCredentialsHandle
mov rcx, rdi
mov qword [0x140121030], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.DeleteSecurityContext
mov rcx, rdi
mov qword [0x140121038], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.QueryContextAttributesA
mov rcx, rdi
mov qword [0x140121040], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.MakeSignature
mov rcx, rdi
mov qword [0x140121048], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.VerifySignature
mov rcx, rdi
mov qword [0x140121050], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x140121058], rax
call fcn.140080560
mov edx, 0x2e
mov rcx, rbp
call fcn.140003490
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rax]
cmp byte [rsi], 0
je 0x14008047b
cmp qword [0x140121060], 0
je 0x14008032c
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rsi + rax], 0
jne 0x1400802b0
movsxd rcx, eax
test eax, eax
jle 0x14008032c
movzx edx, byte [rsi + rcx - 1]
cmp dl, 0x3a
je 0x1400802d9
cmp dl, 0x5c
je 0x1400802d9
dec eax
dec rcx
test rcx, rcx
jg 0x1400802c0
test eax, eax
jle 0x14008032c
movsxd rcx, eax
lea edx, [rax - 1]
cmp byte [rcx + rsi - 1], 0x5c
je 0x1400802f0
mov eax, edx
test edx, edx
jle 0x14008032c
mov r8, rsi
lea rcx, [0x1400b0dc4]
mov edx, eax
call fcn.14006c6b0
mov r8, rax
xor edx, edx
xor ecx, ecx
mov rdi, rax
call fcn.140014a60
mov rcx, rax
mov rbx, rax
call qword [0x140121060]
mov rcx, rbx
call fcn.140011ff0
mov rcx, rdi
call fcn.140011ff0
xor edx, edx
mov r8d, 0xd00
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rdi, rax
test rax, rax
je 0x14008047b
movsxd r8, dword [r14 + 8]
mov rdx, rsi
imul rbx, r8, 0xc8
lea ecx, [r8 + 1]
add rbx, qword [r14]
mov dword [r14 + 8], ecx
lea rcx, str.Using_GSSAPI_from_user_specified_library__s
mov dword [rbx], 2
call fcn.14006c6b0
lea rdx, str.gss_delete_sec_context
mov qword [rbx + 8], rax
mov rcx, rdi
mov qword [rbx + 0xc0], rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.gss_display_status
mov rcx, rdi
mov qword [rbx + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.gss_get_mic
mov rcx, rdi
mov qword [rbx + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.gss_verify_mic
mov rcx, rdi
mov qword [rbx + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.gss_import_name
mov rcx, rdi
mov qword [rbx + 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.gss_init_sec_context
mov rcx, rdi
mov qword [rbx + 0x88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.gss_release_buffer
mov rcx, rdi
mov qword [rbx + 0x90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.gss_release_cred
mov rcx, rdi
mov qword [rbx + 0x98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.gss_release_name
mov rcx, rdi
mov qword [rbx + 0xa0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.gss_acquire_cred
mov rcx, rdi
mov qword [rbx + 0xa8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.gss_inquire_cred_by_mech
mov rcx, rdi
mov qword [rbx + 0xb0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [rbx + 0xb8], rax
call fcn.14004b6b0
mov rbx, qword [rsp + 0x38]
mov rax, r14
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret