Function at 0x1400357a0
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.1400a64d0
mov r14, rax
mov rax, qword [0x14013dbb0]
test rax, rax
jne 0x1400357e7
lea rcx, str.kernel32.dll
call fcn.1400a4240
mov qword [0x14013dbb0], rax
test rax, rax
je 0x1400357f7
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 [0x14013dba0], rax
lea ecx, [r8 + 3]
call fcn.1400a64d0
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 0x140035ae2
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 0x1400359a5
cmp dword [rsp + 0x68], 1
jne 0x1400359a5
mov ecx, dword [rsp + 0x70]
lea edx, [rdi + 1]
add ecx, 0x14
xor r8d, r8d
call fcn.1400a64d0
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 0x14003599d
cmp dword [rsp + 0x68], 1
jne 0x14003599d
lea rcx, [rsi - 1]
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x1400358d3
cmp qword [0x14013dba0], rdi
mov eax, dword [str._bin]
mov dword [rcx], eax
movzx eax, byte [0x1400c1f80]
mov byte [rcx + 4], al
je 0x140035918
mov r8, rsi
xor edx, edx
xor ecx, ecx
call fcn.1400a6e10
mov rcx, rax
mov rbx, rax
call qword [0x14013dba0]
mov rcx, rbx
call fcn.1400a62e0
lea rcx, [rsi - 1]
nop dword [rax]
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x140035920
movsd xmm0, qword [str.gssapi64.dll]
xor edx, edx
movsd qword [rcx], xmm0
mov r8d, 0xd00
mov eax, dword [0x1400c1f90]
mov dword [rcx + 8], eax
movzx eax, word [0x1400c1f94]
mov word [rcx + 0xc], ax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rcx, rax
mov rdi, rax
call fcn.140035690
test al, al
je 0x140035973
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [0x14013dba8]
test rax, rax
jne 0x140035992
lea rcx, [0x140031b50]
call fcn.1400a3fb0
mov qword [0x14013dba8], rax
mov rdx, rdi
mov rcx, rax
call fcn.1400a2c80
mov rcx, rsi
call fcn.1400a62e0
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rdi, rdi
je 0x140035ae2
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.140052aa0
lea rcx, str.secur32.dll
call fcn.1400a4240
mov rdi, rax
test rax, rax
je 0x140035c58
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 [0x14013db60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.FreeContextBuffer
mov rcx, rdi
mov qword [0x14013db68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.FreeCredentialsHandle
mov rcx, rdi
mov qword [0x14013db70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.DeleteSecurityContext
mov rcx, rdi
mov qword [0x14013db78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.QueryContextAttributesA
mov rcx, rdi
mov qword [0x14013db80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.MakeSignature
mov rcx, rdi
mov qword [0x14013db88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.VerifySignature
mov rcx, rdi
mov qword [0x14013db90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14013db98], rax
lea rax, [0x1400361c0]
mov qword [rbx + 0x10], rax
lea rax, [0x140036180]
mov qword [rbx + 0x18], rax
lea rax, [0x140036460]
mov qword [rbx + 0x20], rax
lea rax, [0x1400361d0]
mov qword [rbx + 0x28], rax
lea rax, [0x140036040]
mov qword [rbx + 0x30], rax
lea rax, [0x140035e70]
mov qword [rbx + 0x38], rax
lea rax, [0x140036400]
mov qword [rbx + 0x40], rax
lea rax, [0x140036070]
mov qword [rbx + 0x48], rax
lea rax, [0x140036490]
mov qword [rbx + 0x50], rax
lea rax, [0x140036020]
mov qword [rbx + 0x58], rax
lea rax, [0x140035f40]
mov qword [rbx + 0x60], rax
mov edx, 0x30
mov rcx, rbp
call fcn.1400a82e0
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rax]
cmp byte [rsi], 0
je 0x140035e5b
cmp qword [0x14013dba0], 0
je 0x140035d0c
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rsi + rax], 0
jne 0x140035c90
movsxd rcx, eax
test eax, eax
jle 0x140035d0c
movzx edx, byte [rsi + rcx - 1]
cmp dl, 0x3a
je 0x140035cb9
cmp dl, 0x5c
je 0x140035cb9
dec eax
dec rcx
test rcx, rcx
jg 0x140035ca0
test eax, eax
jle 0x140035d0c
movsxd rcx, eax
lea edx, [rax - 1]
cmp byte [rcx + rsi - 1], 0x5c
je 0x140035cd0
mov eax, edx
test edx, edx
jle 0x140035d0c
mov r8, rsi
lea rcx, [0x1400c21a0]
mov edx, eax
call fcn.1400a6690
mov r8, rax
xor edx, edx
xor ecx, ecx
mov rdi, rax
call fcn.1400a6e10
mov rcx, rax
mov rbx, rax
call qword [0x14013dba0]
mov rcx, rbx
call fcn.1400a62e0
mov rcx, rdi
call fcn.1400a62e0
xor edx, edx
mov r8d, 0xd00
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rdi, rax
test rax, rax
je 0x140035e5b
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.1400a6690
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.140052aa0
mov rbx, qword [rsp + 0x38]
mov rax, r14
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret