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

Disassembly:
push rbx
push rbp
push r12
push r13
push r15
sub rsp, 0x890
mov rax, qword [0x140029008]
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 0x1400018e0
mov ecx, ebx
movzx eax, byte [rsp + rcx + 0x50]
cmp byte [rdx + rbp], al
jne 0x1400018ce
inc rcx
cmp rcx, 7
jne 0x1400018d1
lea r12d, [r8 - 6]
cmp r12d, 0xffffffff
je 0x1400018e0
movsxd rax, r8d
mov qword [rsp + 0x888], rdi
movsx ecx, byte [rax + rbp + 2]
sub ecx, 1
je 0x1400019e6
sub ecx, 1
je 0x140001985
cmp ecx, 1
je 0x1400018e7
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.1400036b0
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 0x140001851
mov eax, 0xffffffff
jmp 0x1400018ae
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 0x1400018a6
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 0x1400019d3
movsxd rdx, r15d
test r15d, r15d
jle 0x140001b28
sub r8, rax
nop dword [rax + rax]
cmp ebx, dword [r9 + 0x50]
jae 0x1400019bd
movzx ecx, byte [r8 + rax]
jmp 0x1400019bf
xor cl, cl
mov byte [rax], cl
inc ebx
inc rax
sub rdx, 1
jne 0x1400019b0
xor eax, eax
jmp 0x1400018a6
lea rcx, str.Buffer_sizes_incompatible___cant_replace
call fcn.140001590
xor eax, eax
jmp 0x1400018a6
movups xmm0, xmmword [0x140024e78]
mov eax, dword [0x140024e88]
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.140006970
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 0x140001a65
lea rcx, str.Error_in_AquireCredentialsHandle
call fcn.140001590
xor eax, eax
jmp 0x1400018a6
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.140003878
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 0x1400018a6