Function at 0x140004358
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
lea rdi, [rsp + 0x78]
mov rbx, rcx
mov qword [rcx], rsi
xor eax, eax
mov qword [rsp + 0x70], rsi
xor r9d, r9d
mov qword [rsp + 0x60], rsi
lea r14d, [rsi + 0x10]
mov qword [rsp + 0x68], rsi
mov ecx, r14d
mov qword [rbp - 0x58], rsi
rep stosb byte [rdi], al
lea rdi, [rbp - 0x78]
mov qword [rbp - 0x50], rsi
mov ecx, r14d
mov qword [rbp - 0x18], rsi
rep stosb byte [rdi], al
lea rdi, [rbp - 0x68]
mov qword [rbp - 0x10], rsi
mov ecx, r14d
lea r8d, [rsi + 2]
rep stosb byte [rdi], al
lea rax, [rbp + 0x60]
xor ecx, ecx
mov qword [rsp + 0x40], rax
lea rdx, str.NTLM
lea rax, [rbp - 8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.Secur32.dll_AcquireCredentialsHandleW]
mov edi, eax
test eax, eax
js 0x14000462c
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 edi, eax
test eax, eax
js 0x14000462c
mov rcx, qword [0x1400262a0]
lea rax, [rsp + 0x78]
mov r12d, 0x2ee0
mov dword [rbp - 0x48], esi
mov dword [rbp - 0x44], 1
lea edx, [rsi + 8]
mov qword [rbp - 0x40], rax
mov r8d, r12d
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0x7c], 2
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rbp - 0x80], rax
mov r9d, 0x400
xor r8d, r8d
lea rcx, [rbp - 8]
lea rax, [rbp + 0x60]
xor edx, edx
mov qword [rsp + 0x58], rax
lea rax, [rbp + 0x50]
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 edi, eax
test eax, eax
js 0x14000462c
mov rcx, qword [0x1400262a0]
lea rax, [rbp - 0x78]
mov dword [rbp - 0x38], esi
lea edx, [rsi + 8]
mov dword [rbp - 0x34], 1
mov r8d, r12d
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x78], r12d
mov dword [rbp - 0x74], 2
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rbp - 0x70], rax
mov r9d, 0x400
lea r8, [rbp - 0x48]
xor edx, edx
lea rax, [rbp + 0x68]
mov qword [rsp + 0x40], rax
lea rcx, [rbp - 0x18]
lea rax, [rbp + 0x58]
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 edi, eax
test eax, eax
js 0x14000462c
mov rcx, qword [0x1400262a0]
lea rax, [rbp - 0x68]
mov dword [rbp - 0x28], esi
lea edx, [rsi + 8]
mov dword [rbp - 0x24], 1
mov r8d, r12d
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x68], r12d
mov dword [rbp - 0x64], 2
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rbp - 0x60], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x58]
lea rax, [rbp + 0x60]
xor ecx, ecx
mov qword [rsp + 0x58], rax
lea rax, [rbp + 0x50]
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 edi, eax
test eax, eax
js 0x14000462c
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 edi, eax
test eax, eax
js 0x14000462c
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x60]
call qword [sym.imp.Secur32.dll_QuerySecurityContextToken]
mov edi, eax
mov r8, qword [rbp - 0x80]
test r8, r8
je 0x140004648
mov rcx, qword [0x1400262a0]
xor edx, edx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8, qword [rbp - 0x70]
test r8, r8
je 0x140004664
mov rcx, qword [0x1400262a0]
xor edx, edx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8, qword [rbp - 0x60]
test r8, r8
je 0x140004680
mov rcx, qword [0x1400262a0]
xor edx, edx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
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 [rbx], rax
mov eax, edi
add rsp, 0x118
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret