Function at 0x1401317b4
Capabilities:
Prompt user for credentials

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x958]
sub rsp, 0xa58
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rbp + 0x940], rax
mov r15, qword [rbp + 0x9c0]
xor edi, edi
mov rsi, r8
mov dword [rsp + 0x50], edi
mov r13, rdx
mov dword [rsp + 0x58], edi
mov rbx, rcx
mov dword [rsp + 0x54], edi
xor edx, edx
lea rcx, [rbp + 0x530]
mov r8d, 0x404
mov r14, r9
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rbp + 0x320]
mov r8d, 0x202
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov dword [rsp + 0x5c], edi
lea r8d, [rdi + 0x20]
mov r12d, edi
lea rcx, [rsp + 0x68]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rbx + 0x110]
lea r9, [rsp + 0x54]
lea r8, [rsp + 0x58]
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x60], 0x28
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpQueryAuthSchemes]
test eax, eax
je 0x1401319d5
test byte [rsp + 0x50], 4
je 0x140131a04
mov eax, 0x4008a
cmp byte [rbp + 0x9c8], dil
je 0x140131898
mov eax, 0x4008b
mov r12d, 0x52e
cmp qword [r15 + 0x18], 8
jb 0x1401318a2
mov r15, qword [r15]
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x60]
lea rax, [rsp + 0x5c]
mov r9d, r12d
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov dword [rsp + 0x38], 0x101
lea rax, [rbp + 0x320]
mov qword [rsp + 0x30], rax
mov rdx, r15
lea rax, [rbp + 0x530]
mov dword [rsp + 0x28], 0x202
mov qword [rsp + 0x20], rax
call qword [sym.imp.credui.dll_CredUIPromptForCredentialsW]
test eax, eax
jne 0x140131a33
xor edx, edx
mov qword [rsp + 0x28], rdi
lea rax, [rbp + 0x320]
mov rcx, r13
lea r9, [rbp + 0x530]
mov qword [rsp + 0x20], rax
lea r8d, [rdx + 4]
call qword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
test eax, eax
je 0x140131a62
mov qword [rsi + 0x10], rdi
cmp qword [rsi + 0x18], 8
jb 0x140131933
mov rax, qword [rsi]
jmp 0x140131936
mov rax, rsi
or rbx, 0xffffffffffffffff
mov word [rax], di
cmp word [rbp + 0x530], di
jne 0x14013194b
mov r8, rdi
jmp 0x14013195f
lea rax, [rbp + 0x530]
mov r8, rbx
inc r8
cmp word [rax + r8*2], di
jne 0x140131955
lea rdx, [rbp + 0x530]
mov rcx, rsi
call fcn.140007ba8
mov qword [r14 + 0x10], rdi
cmp qword [r14 + 0x18], 8
jb 0x14013197e
mov rax, qword [r14]
jmp 0x140131981
mov rax, r14
mov word [rax], di
cmp word [rbp + 0x320], di
je 0x1401319a0
lea rax, [rbp + 0x320]
inc rbx
cmp word [rax + rbx*2], di
jne 0x140131994
mov rdi, rbx
mov r8, rdi
lea rdx, [rbp + 0x320]
mov rcx, r14
call fcn.140007ba8
mov rcx, qword [rbp + 0x940]
xor rcx, rsp
call fcn.140021f10
add rsp, 0xa58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.Failed_to_get_the_server_authentication_schemes
mov edx, 0x8c
mov r8d, eax
lea rcx, [rbp - 0x70]
call fcn.1400294c8
lea rdx, [0x1401df028]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.Passport_is_not_supported_by_the_server
mov edx, 0x8d
mov r8d, eax
lea rcx, [rbp - 0x70]
call fcn.140026bac
lea rdx, [0x1401df028]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.Failed_to_obtain_the_user_credentials
mov edx, 0x8e
mov r8d, eax
lea rcx, [rbp - 0x70]
call fcn.140008a50
lea rdx, [0x1401df028]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.Failed_to_Set_the_credentials
mov edx, 0x85
mov r8d, eax
lea rcx, [rbp - 0x70]
call fcn.140109cb4
lea rdx, [0x1401df028]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3