Function at 0x140004584
Capabilities:
Get inbound credentials handle via credssp
Get outbound credentials handle via credssp

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x18]
sub rsp, 0x118
xor esi, esi
mov rdi, rcx
mov qword [rcx], rsi
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x60], rsi
lea r14d, [rsi + 0x10]
mov qword [rsp + 0x68], rsi
mov edx, r14d
mov qword [rbp - 0x58], rsi
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], rsi
call fcn.140001ae8
lea rcx, [rbp - 0x78]
call fcn.140001ae8
lea rcx, [rbp - 0x68]
call fcn.140001ae8
lea rdx, [rbp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x40], rdx
lea rax, [rbp - 8]
mov qword [rsp + 0x38], rax
lea r8d, [rsi + 2]
mov qword [rsp + 0x30], rsi
lea rdx, str.NTLM
mov qword [rsp + 0x28], rsi
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.Secur32.dll_AcquireCredentialsHandleW]
mov ebx, eax
test eax, eax
js 0x14000482c
lea rax, [rbp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea r8d, [rsi + 1]
lea rax, [rbp - 0x18]
xor ecx, ecx
mov qword [rsp + 0x38], rax
lea rdx, str.NTLM
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.Secur32.dll_AcquireCredentialsHandleW]
mov ebx, eax
test eax, eax
js 0x14000482c
mov r12d, 0x2ee0
mov dword [rbp - 0x48], esi
lea rax, [rsp + 0x78]
mov dword [rbp - 0x44], 1
mov ecx, r12d
mov qword [rbp - 0x40], rax
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0x7c], 2
call fcn.14000c8ac
mov qword [rbp - 0x80], rax
lea rcx, [rbp - 8]
lea rax, [rbp + 0x60]
mov r9d, 0x400
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rax, [rbp + 0x50]
xor edx, edx
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x48]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], esi
call qword [sym.imp.Secur32.dll_InitializeSecurityContextW]
mov ebx, eax
test eax, eax
js 0x14000482c
lea rax, [rbp - 0x78]
mov dword [rbp - 0x38], esi
mov ecx, r12d
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x34], 1
mov dword [rbp - 0x78], r12d
mov dword [rbp - 0x74], 2
call fcn.14000c8ac
mov qword [rbp - 0x70], rax
lea r8, [rbp - 0x48]
lea rax, [rbp + 0x68]
mov r9d, 0x400
mov qword [rsp + 0x40], rax
lea rcx, [rbp - 0x18]
lea rax, [rbp + 0x58]
xor edx, edx
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x38]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
call qword [sym.imp.Secur32.dll_AcceptSecurityContext]
mov ebx, eax
test eax, eax
js 0x14000482c
lea rax, [rbp - 0x68]
mov dword [rbp - 0x28], esi
mov ecx, r12d
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x24], 1
mov dword [rbp - 0x68], r12d
mov dword [rbp - 0x64], 2
call fcn.14000c8ac
mov qword [rbp - 0x60], rax
lea rdx, [rbp - 0x58]
lea rax, [rbp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rax, [rbp + 0x50]
xor ecx, ecx
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x28]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x38]
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], esi
call qword [sym.imp.Secur32.dll_InitializeSecurityContextW]
mov ebx, eax
test eax, eax
js 0x14000482c
lea rax, [rbp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea r8, [rbp - 0x28]
lea rax, [rbp + 0x58]
xor ecx, ecx
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x60]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
call qword [sym.imp.Secur32.dll_AcceptSecurityContext]
mov ebx, eax
test eax, eax
js 0x14000482c
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x60]
call qword [sym.imp.Secur32.dll_QuerySecurityContextToken]
mov ebx, eax
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14000483a
call fcn.14000c8c8
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x140004848
call fcn.14000c8c8
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x140004856
call fcn.14000c8c8
lea rcx, [rbp - 8]
call qword [sym.imp.Secur32.dll_FreeCredentialsHandle]
lea rcx, [rbp - 0x18]
call qword [sym.imp.Secur32.dll_FreeCredentialsHandle]
lea rcx, [rbp - 0x58]
call qword [sym.imp.Secur32.dll_DeleteSecurityContext]
lea rcx, [rsp + 0x60]
call qword [sym.imp.Secur32.dll_DeleteSecurityContext]
mov rax, qword [rsp + 0x70]
mov qword [rdi], rax
mov eax, ebx
add rsp, 0x118
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret