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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r15
sub rsp, 0x30
mov edx, reloc.WS2_32.dll_recv
mov rbp, rcx
lea r15d, [rdx - 0xf]
mov ecx, r15d
call fcn.140039714
mov edx, 0xa8
lea ecx, [r15 + 2]
mov rsi, rax
call fcn.140039714
and dword [rsi + 8], 0
lea r8, [rsp + 0x78]
lea rdx, str.SOFTWAREMITKerberos
mov qword [rsi], rax
mov rcx, 0xffffffff80000002
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x140035ebf
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
and qword [rsp + 0x20], rdi
lea rdx, str.InstallDir
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140035dcf
cmp dword [rsp + 0x68], r15d
jne 0x140035dcf
mov ecx, dword [rsp + 0x70]
mov edx, r15d
add ecx, 0x14
call fcn.140039714
mov rcx, qword [rsp + 0x78]
lea r9, [rsp + 0x68]
mov rbx, rax
lea rdx, str.InstallDir
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140035dc7
cmp dword [rsp + 0x68], r15d
jne 0x140035dc7
lea rdx, str._bingssapi32.dll
mov rcx, rbx
call fcn.14004d2b0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
mov rcx, rbx
call fcn.140039700
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rdi, rdi
je 0x140035ebf
movsxd rax, dword [rsi + 8]
lea rdx, str.gss_delete_sec_context
imul rbx, rax, 0xa8
mov rcx, rdi
add rbx, qword [rsi]
inc eax
mov dword [rsi + 8], eax
lea rax, str.Using_GSSAPI_from_GSSAPI32.DLL
and dword [rbx], 0
mov qword [rbx + 8], rax
mov qword [rbx + 0xa0], rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.gss_display_status
mov rcx, rdi
mov qword [rbx + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.gss_get_mic
mov rcx, rdi
mov qword [rbx + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.gss_import_name
mov rcx, rdi
mov qword [rbx + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.gss_init_sec_context
mov rcx, rdi
mov qword [rbx + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.gss_release_buffer
mov rcx, rdi
mov qword [rbx + 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.gss_release_cred
mov rcx, rdi
mov qword [rbx + 0x88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.gss_release_name
mov rcx, rdi
mov qword [rbx + 0x90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [rbx + 0x98], rax
call fcn.14002dfdc
lea rcx, str.secur32.dll
call fcn.140044618
mov rdi, rax
test rax, rax
je 0x140035fa9
movsxd rdx, dword [rsi + 8]
lea rax, str.Using_SSPI_from_SECUR32.DLL
imul rbx, rdx, 0xa8
lea ecx, [rdx + 1]
add rbx, qword [rsi]
lea rdx, str.AcquireCredentialsHandleA
mov dword [rsi + 8], ecx
mov rcx, rdi
mov dword [rbx], r15d
mov qword [rbx + 8], rax
mov qword [rbx + 0xa0], rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.InitializeSecurityContextA
mov rcx, rdi
mov qword [0x140085f48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.FreeContextBuffer
mov rcx, rdi
mov qword [0x140085f50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.FreeCredentialsHandle
mov rcx, rdi
mov qword [0x140085f58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.DeleteSecurityContext
mov rcx, rdi
mov qword [0x140085f60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.QueryContextAttributesA
mov rcx, rdi
mov qword [0x140085f68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.MakeSignature
mov rcx, rdi
mov qword [0x140085f70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x140085f78], rax
call fcn.140036160
mov edx, 0x28
mov rcx, rbp
call fcn.14003e760
mov rdi, qword [rax]
cmp byte [rdi], 0
je 0x1400360c0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
test rax, rax
je 0x1400360c0
movsxd r8, dword [rsi + 8]
mov rdx, rdi
imul rbx, r8, 0xa8
lea ecx, [r8 + 1]
add rbx, qword [rsi]
mov dword [rsi + 8], ecx
lea rcx, str.Using_GSSAPI_from_user_specified_library__s
mov dword [rbx], 2
call fcn.140039150
lea rdx, str.gss_delete_sec_context
mov qword [rbx + 8], rax
mov rcx, rbp
mov qword [rbx + 0xa0], rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.gss_display_status
mov rcx, rbp
mov qword [rbx + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.gss_get_mic
mov rcx, rbp
mov qword [rbx + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.gss_import_name
mov rcx, rbp
mov qword [rbx + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.gss_init_sec_context
mov rcx, rbp
mov qword [rbx + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.gss_release_buffer
mov rcx, rbp
mov qword [rbx + 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.gss_release_cred
mov rcx, rbp
mov qword [rbx + 0x88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.gss_release_name
mov rcx, rbp
mov qword [rbx + 0x90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [rbx + 0x98], rax
call fcn.14002dfdc
mov rax, rsi
add rsp, 0x30
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret