Function at 0x14012ed04
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 [0x1401d4618]
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 0x14012ef25
test byte [rsp + 0x50], 4
je 0x14012ef54
mov eax, 0x4008a
cmp byte [rbp + 0x9c8], dil
je 0x14012ede8
mov eax, 0x4008b
mov r12d, 0x52e
cmp qword [r15 + 0x18], 8
jb 0x14012edf2
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 0x14012ef83
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 0x14012efb2
mov qword [rsi + 0x10], rdi
cmp qword [rsi + 0x18], 8
jb 0x14012ee83
mov rax, qword [rsi]
jmp 0x14012ee86
mov rax, rsi
or rbx, 0xffffffffffffffff
mov word [rax], di
cmp word [rbp + 0x530], di
jne 0x14012ee9b
mov r8, rdi
jmp 0x14012eeaf
lea rax, [rbp + 0x530]
mov r8, rbx
inc r8
cmp word [rax + r8*2], di
jne 0x14012eea5
lea rdx, [rbp + 0x530]
mov rcx, rsi
call fcn.14000881c
mov qword [r14 + 0x10], rdi
cmp qword [r14 + 0x18], 8
jb 0x14012eece
mov rax, qword [r14]
jmp 0x14012eed1
mov rax, r14
mov word [rax], di
cmp word [rbp + 0x320], di
je 0x14012eef0
lea rax, [rbp + 0x320]
inc rbx
cmp word [rax + rbx*2], di
jne 0x14012eee4
mov rdi, rbx
mov r8, rdi
lea rdx, [rbp + 0x320]
mov rcx, r14
call fcn.14000881c
mov rcx, qword [rbp + 0x940]
xor rcx, rsp
call fcn.140121d80
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.1400264ac
lea rdx, [0x1401e3810]
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.140023c34
lea rdx, [0x1401e3810]
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.1400096c4
lea rdx, [0x1401e3810]
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.14010550c
lea rdx, [0x1401e3810]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3