Function at 0x140134734
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 [0x140198858]
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 + 0x5c], edi
xor edx, edx
mov word [rbp + 0x530], di
mov r8d, 0x402
lea rcx, [rbp + 0x532]
mov r14, r9
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov word [rbp + 0x320], di
mov r8d, 0x200
lea rcx, [rbp + 0x322]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov dword [rsp + 0x54], 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 + 0x5c]
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 0x140134963
test byte [rsp + 0x50], 4
je 0x140134992
mov eax, 0x4008a
cmp byte [rbp + 0x9c8], dil
je 0x140134826
mov eax, 0x4008b
mov r12d, 0x52e
cmp qword [r15 + 0x18], 8
jb 0x140134830
mov r15, qword [r15]
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x60]
lea rax, [rsp + 0x54]
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 0x1401349c1
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 0x1401349f0
mov qword [rsi + 0x10], rdi
cmp qword [rsi + 0x18], 8
jb 0x1401348c1
mov rax, qword [rsi]
jmp 0x1401348c4
mov rax, rsi
or rbx, 0xffffffffffffffff
mov word [rax], di
cmp word [rbp + 0x530], di
jne 0x1401348d9
mov r8, rdi
jmp 0x1401348ed
lea rax, [rbp + 0x530]
mov r8, rbx
inc r8
cmp word [rax + r8*2], di
jne 0x1401348e3
lea rdx, [rbp + 0x530]
mov rcx, rsi
call fcn.140008058
mov qword [r14 + 0x10], rdi
cmp qword [r14 + 0x18], 8
jb 0x14013490c
mov rax, qword [r14]
jmp 0x14013490f
mov rax, r14
mov word [rax], di
cmp word [rbp + 0x320], di
je 0x14013492e
lea rax, [rbp + 0x320]
inc rbx
cmp word [rax + rbx*2], di
jne 0x140134922
mov rdi, rbx
mov r8, rdi
lea rdx, [rbp + 0x320]
mov rcx, r14
call fcn.140008058
mov rcx, qword [rbp + 0x940]
xor rcx, rsp
call fcn.140022430
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.14011e040
lea rdx, [0x1401e5908]
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.140023d2c
lea rdx, [0x1401e5908]
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.1400089a0
lea rdx, [0x1401e5908]
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.140108c60
lea rdx, [0x1401e5908]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3