Function at 0x1400043c7
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x108
mov rsi, rcx
lea rdi, [rsp + 0xc0]
mov rcx, rdi
mov r9d, 0x3a
call fcn.140004eec
mov qword [rdi - 8], 2
lea r14, [rsp + 0xb8]
mov rcx, r14
call fcn.140010a42
mov rdi, rax
mov rbx, rdx
mov rcx, r14
call fcn.140010a42
test rdi, rdi
je 0x14000449c
mov r14, rax
test rax, rax
je 0x14000449c
mov r15, rdx
lea rcx, [rsp + 0x88]
mov rdx, rdi
mov r8, rbx
call fcn.1400173fc
lea rcx, [rsp + 0xa0]
mov rdx, r14
mov r8, r15
call fcn.1400173fc
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rbx
lea rax, [0x1400a9cd0]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], 1
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x80], r15
mov eax, 8
xor r13d, r13d
lea rcx, [rax + 0x10]
cmp rcx, 0x48
je 0x1400044bb
add r13, qword [rsp + rax + 0x58]
mov rax, rcx
jae 0x140004483
jmp 0x140004af2
lea rcx, [rsi + 8]
lea rdx, str.password_is_requiredproxy_port_is_invalid:__httpinvalid_proxy_protocol:
mov r8d, 0x14
call fcn.14001cbc4
and qword [rsi], 0
jmp 0x140004ade
mov rcx, r13
xor edx, edx
call fcn.14001c922
lea r14, [rsp + 0x20]
mov qword [r14], rax
mov qword [r14 + 8], rdx
and qword [r14 + 0x10], 0
mov r8, rdi
add r8, rbx
mov rcx, r14
mov rdx, rdi
call fcn.14001c660
mov rdi, qword [r14]
mov rax, qword [r14 + 0x10]
lea rcx, [rdi + rax]
mov rbx, r13
sub rbx, rax
mov r14d, 0x18
cmp r14, 0x38
je 0x140004529
mov r8, qword [rsp + r14 + 0x58]
sub rbx, r8
jb 0x140004af2
mov rdx, qword [rsp + r14 + 0x50]
lea r15, [rcx + r8]
call fcn.1400904c0
add r14, 0x10
mov rcx, r15
jmp 0x1400044fe
sub r13, rbx
mov ecx, 3
mov rax, r13
xor edx, edx
div rcx
mov rbx, rax
mov rax, r13
shr rax, 0x3e
cmp eax, 2
ja 0x140004af2
mov rbp, rdx
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x50], rax
shl rbx, 2
test rdx, rdx
je 0x14000456c
add rbx, 4
jb 0x140004af2
mov rcx, rbx
mov dl, 1
call fcn.14001c922
mov r15, rax
mov r12, rdx
xor eax, eax
mov rdx, r13
mov ecx, 0
sub rdx, 0x1a
cmovb rdx, rax
jbe 0x140004879
mov eax, 0x20
xor ecx, ecx
lea r8, [0x14009efdf]
lea r9, [rcx + 0x1a]
cmp r9, r13
ja 0x140004af2
test rax, rax
je 0x140004af2
cmp rax, rbx
ja 0x140004af2
mov r9, qword [rdi + rcx]
bswap r9
mov r10, r9
shr r10, 0x3a
mov r10b, byte [r10 + r8 + 3]
mov byte [r15 + rax - 0x20], r10b
mov r10, r9
shr r10, 0x34
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r15 + rax - 0x1f], r10b
mov r10, r9
shr r10, 0x2e
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r15 + rax - 0x1e], r10b
mov r10, r9
shr r10, 0x28
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r15 + rax - 0x1d], r10b
mov r10, r9
shr r10, 0x22
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r15 + rax - 0x1c], r10b
mov r10, r9
shr r10, 0x1c
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r15 + rax - 0x1b], r10b
mov r10d, r9d
shr r10d, 0x16
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r15 + rax - 0x1a], r10b
shr r9d, 0x10
and r9d, 0x3f
mov r9b, byte [r9 + r8 + 3]
mov byte [r15 + rax - 0x19], r9b
mov r9, qword [rdi + rcx + 6]
bswap r9
mov r10, r9
shr r10, 0x3a
mov r10b, byte [r10 + r8 + 3]
mov byte [r15 + rax - 0x18], r10b
mov r10, r9
shr r10, 0x34
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r15 + rax - 0x17], r10b
mov r10, r9
shr r10, 0x2e
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r15 + rax - 0x16], r10b
mov r10, r9
shr r10, 0x28
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r15 + rax - 0x15], r10b
mov r10, r9
shr r10, 0x22
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r15 + rax - 0x14], r10b
mov r10, r9
shr r10, 0x1c
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r15 + rax - 0x13], r10b
mov r10d, r9d
shr r10d, 0x16
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r15 + rax - 0x12], r10b
shr r9d, 0x10
and r9d, 0x3f
mov r9b, byte [r9 + r8 + 3]
mov byte [r15 + rax - 0x11], r9b
mov r9, qword [rdi + rcx + 0xc]
bswap r9
mov r10, r9
shr r10, 0x3a
mov r10b, byte [r10 + r8 + 3]
mov byte [r15 + rax - 0x10], r10b
mov r10, r9
shr r10, 0x34
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r15 + rax - 0xf], r10b
mov r10, r9
shr r10, 0x2e
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r15 + rax - 0xe], r10b
mov r10, r9
shr r10, 0x28
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r15 + rax - 0xd], r10b
mov r10, r9
shr r10, 0x22
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r15 + rax - 0xc], r10b
mov r10, r9
shr r10, 0x1c
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r15 + rax - 0xb], r10b
mov r10d, r9d
shr r10d, 0x16
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r15 + rax - 0xa], r10b
shr r9d, 0x10
and r9d, 0x3f
mov r9b, byte [r9 + r8 + 3]
mov byte [r15 + rax - 9], r9b
mov r9, qword [rdi + rcx + 0x12]
bswap r9
mov r10, r9
shr r10, 0x3a
mov r10b, byte [r10 + r8 + 3]
mov byte [r15 + rax - 8], r10b
mov r10, r9
shr r10, 0x34
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r15 + rax - 7], r10b
mov r10, r9
shr r10, 0x2e
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r15 + rax - 6], r10b
mov r10, r9
shr r10, 0x28
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r15 + rax - 5], r10b
mov r10, r9
shr r10, 0x22
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r15 + rax - 4], r10b
mov r10, r9
shr r10, 0x1c
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r15 + rax - 3], r10b
mov r10d, r9d
shr r10d, 0x16
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r15 + rax - 2], r10b
shr r9d, 0x10
and r9d, 0x3f
mov r9b, byte [r9 + r8 + 3]
mov byte [r15 + rax - 1], r9b
add rcx, 0x18
add rax, 0x20
cmp rcx, rdx
jbe 0x1400045a2
add rax, 0xffffffffffffffe0
mov r8, r13
sub r8, rbp
add rcx, 3
lea rdx, [0x14009efdf]
lea r9, [rcx - 3]
cmp r9, r8
jae 0x14000493c
cmp r9, 0xfffffffffffffffc
ja 0x140004af2
cmp rcx, r13
ja 0x140004af2
cmp rax, 0xfffffffffffffffb
ja 0x140004af2
lea r9, [rax + 4]
cmp r9, rbx
ja 0x140004af2
movzx r10d, byte [rdi + rcx - 3]
mov r11d, r10d
shr r11d, 2
mov r11b, byte [r11 + rdx + 3]
mov byte [r15 + rax], r11b
mov r14b, byte [rdi + rcx - 2]
shl r10b, 4
mov r11d, r14d
shr r11b, 4
or r11b, r10b
movzx r10d, r11b
and r10d, 0x3f
mov r10b, byte [r10 + rdx + 3]
mov byte [r15 + rax + 1], r10b
movzx r10d, byte [rdi + rcx - 1]
shl r14b, 2
mov r11d, r10d
shr r11b, 6
or r11b, r14b
movzx r11d, r11b
and r11d, 0x3f
mov r11b, byte [r11 + rdx + 3]
mov byte [r15 + rax + 2], r11b
and r10d, 0x3f
mov r10b, byte [r10 + rdx + 3]
mov byte [r15 + rax + 3], r10b
add rcx, 3
mov rax, r9
jmp 0x14000488a
cmp rbp, 1
je 0x1400049c0
cmp rbp, 2
jne 0x140004a05
cmp rax, rbx
jae 0x140004af2
movzx r9d, byte [rdi + r8]
mov ecx, r9d
shr ecx, 2
mov cl, byte [rcx + rdx + 3]
mov byte [r15 + rax], cl
inc r8
cmp r8, r13
jae 0x140004af2
lea rcx, [rax + 1]
cmp rcx, rbx
jae 0x140004af2
mov cl, byte [rdi + r8]
mov r8d, ecx
shr r8b, 4
shl r9b, 4
or r9b, r8b
movzx r8d, r9b
and r8d, 0x3f
mov r8b, byte [r8 + rdx + 3]
mov byte [r15 + rax + 1], r8b
lea r8, [rax + 2]
cmp r8, rbx
jae 0x140004af2
shl cl, 2
and cl, 0x3c
mov r9d, 3
jmp 0x1400049f7
cmp rax, rbx
jae 0x140004af2
movzx ecx, byte [rdi + r8]
mov r8d, ecx
shr r8d, 2
mov r8b, byte [r8 + rdx + 3]
mov byte [r15 + rax], r8b
lea r8, [rax + 1]
cmp r8, rbx
jae 0x140004af2
shl cl, 4
and cl, 0x30
mov r9d, 2
movzx ecx, cl
mov cl, byte [rcx + rdx + 3]
mov byte [r15 + r8], cl
add rax, r9
mov rcx, rbx
sub rcx, rax
jb 0x140004af2
mov rdx, r15
add rdx, rax
mov r8d, eax
neg r8d
and r8d, 3
xor r9d, r9d
cmp r8, r9
je 0x140004a3c
cmp rcx, r9
je 0x140004af2
mov byte [rdx + r9], 0x3d
inc r9
jmp 0x140004a24
add rax, r8
jb 0x140004af2
lea r13, [rsp + 0x20]
mov rcx, r13
mov rdx, r15
mov r8, rbx
call fcn.14001defa
cmp qword [r13], 0
je 0x140004a6a
cmp byte [rsp + 0x30], 2
jne 0x140004af2
mov rcx, rdi
mov rdx, qword [rsp + 0x50]
call fcn.14001c850
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x30], rax
movups xmm0, xmmword [rsp + 0x88]
movaps xmmword [rsp + 0x20], xmm0
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x48], rax
movups xmm1, xmmword [rsp + 0xa0]
movups xmmword [rsp + 0x38], xmm1
mov rax, qword [rsp + 0x40]
mov qword [rsi + 0x20], rax
mov rax, qword [rsp + 0x48]
mov qword [rsi + 0x28], rax
mov rax, qword [rsp + 0x30]
mov qword [rsi + 0x10], rax
mov rax, qword [rsp + 0x38]
mov qword [rsi + 0x18], rax
movups xmmword [rsi], xmm0
mov qword [rsi + 0x30], r15
mov qword [rsi + 0x38], r12
mov qword [rsi + 0x40], rbx
add rsp, 0x108
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2