Function at 0x140001980
Capabilities:
Get inbound credentials handle via credssp

Disassembly:
push rbx
push rbp
push r12
push r13
push r15
sub rsp, 0x890
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x870], rax
xor ebx, ebx
movsxd r15, r8d
mov dword [rsp + 0x50], 0x4d4c544e
mov rbp, rdx
mov word [rsp + 0x54], 0x5353
mov r13, rcx
mov byte [rsp + 0x56], 0x50
mov r8d, ebx
mov edx, ebx
test r15d, r15d
jle 0x140001a60
mov ecx, ebx
movzx eax, byte [rsp + rcx + 0x50]
cmp byte [rdx + rbp], al
jne 0x140001a4e
inc rcx
cmp rcx, 7
jne 0x140001a51
lea r12d, [r8 - 6]
cmp r12d, 0xffffffff
je 0x140001a60
movsxd rax, r8d
mov qword [rsp + 0x888], rdi
movsx ecx, byte [rax + rbp + 2]
sub ecx, 1
je 0x140001b66
sub ecx, 1
je 0x140001b05
cmp ecx, 1
je 0x140001a67
lea rcx, str.Error___Unknown_NTLM_message_type...
call fcn.140001590
mov eax, 0xffffffff
mov rdi, qword [rsp + 0x888]
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.1400032f0
add rsp, 0x890
pop r15
pop r13
pop r12
pop rbp
pop rbx
ret
mov rcx, rbx
inc r8d
inc rdx
cmp rdx, r15
jl 0x1400019d1
mov eax, 0xffffffff
jmp 0x140001a2e
mov rdi, qword [r13 + 0x10]
sub r15d, r12d
mov dword [rdi + 0x54], 2
mov dword [rdi + 0x50], ebx
mov qword [rdi + 0x58], rbx
mov rdx, qword [rdi]
lea r9, [rdi + 0x30]
lea rax, [rdi + 0x50]
mov qword [rdi + 0x48], rbx
mov qword [r9 + 8], rax
lea rcx, [rdi + 0x40]
lea r8, [rdi + 0x20]
mov dword [rcx + 4], 2
mov qword [r8 + 8], rcx
mov dword [r9], ebx
mov dword [r9 + 4], 1
mov dword [rcx], r15d
lea rcx, [rdi + 0x10]
movsxd rax, r12d
add rax, rbp
mov dword [r8], ebx
mov qword [rdi + 0x48], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r9
mov r9d, 0x900
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov dword [r8 + 4], 1
call qword [sym.imp.Secur32.dll_AcceptSecurityContext]
mov dword [rdi + 8], eax
xor eax, eax
jmp 0x140001a26
mov r9, qword [r13 + 0x10]
sub r15d, r12d
movsxd rax, r12d
add rax, rbp
mov r8, qword [r9 + 0x58]
cmp r15d, dword [r9 + 0x50]
jb 0x140001b53
movsxd rdx, r15d
test r15d, r15d
jle 0x140001ca8
sub r8, rax
nop dword [rax + rax]
cmp ebx, dword [r9 + 0x50]
jae 0x140001b3d
movzx ecx, byte [r8 + rax]
jmp 0x140001b3f
xor cl, cl
mov byte [rax], cl
inc ebx
inc rax
sub rdx, 1
jne 0x140001b30
xor eax, eax
jmp 0x140001a26
lea rcx, str.Buffer_sizes_incompatible___cant_replace
call fcn.140001590
xor eax, eax
jmp 0x140001a26
movups xmm0, xmmword [0x140025b48]
mov eax, dword [0x140025b58]
lea rcx, [rsp + 0x84]
mov r13, qword [r13 + 0x10]
xor edx, edx
mov r8d, 0x7ec
movaps xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x80], eax
call fcn.14001a350
lea rcx, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x40], rcx
lea rax, [r13 + 0x10]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x30], rbx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
lea r8d, [r9 + 1]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.Secur32.dll_AcquireCredentialsHandleW]
test eax, eax
je 0x140001be5
lea rcx, str.Error_in_AquireCredentialsHandle
call fcn.140001590
xor eax, eax
jmp 0x140001a26
lea rax, [r13 + 0x50]
mov qword [rsp + 0x8d0], rsi
lea rsi, [r13 + 0x40]
mov ecx, reloc.WS2_32.dll_recv
lea rdi, [r13 + 0x30]
mov dword [rsi + 4], 2
mov dword [rsi], ebx
mov qword [rsi + 8], rbx
mov qword [r13 + 0x28], rsi
mov qword [rsp + 0x880], r14
mov dword [r13 + 0x20], ebx
mov dword [r13 + 0x24], 1
mov dword [rax + 4], 2
mov dword [rax], ebx
mov qword [rax + 8], rbx
mov dword [rdi], ebx
mov dword [rdi + 4], 1
mov qword [rdi + 8], rax
call fcn.1400034b8
lea rcx, [rsp + 0x60]
movsxd rdx, r12d
mov qword [rsp + 0x40], rcx
lea r8, [r13 + 0x20]
add rdx, rbp
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rsp + 0x30], rdi
lea rcx, [r13 + 0x10]
sub r15d, r12d
mov qword [r13 + 0x48], rdx
mov qword [rsp + 0x28], rax
mov r9d, 0x900
xor edx, edx
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov qword [r13], rax
mov dword [rsi], r15d
call qword [sym.imp.Secur32.dll_AcceptSecurityContext]
mov r14, qword [rsp + 0x880]
mov rsi, qword [rsp + 0x8d0]
xor eax, eax
jmp 0x140001a26