Function at 0x1400411d0
Capabilities:
Encode data using base64

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x130
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
mov rax, qword [0x14016e040]
xor rax, rsp
mov qword [rbp], rax
mov byte [rsp + 0x40], r9b
mov rbx, r8
mov rdi, rcx
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x60], rcx
xor r14d, r14d
mov dword [rsp + 0x44], r14d
mov rcx, qword [rdx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 1
jb 0x1400415ea
lea r12d, [r14 + 0xf]
cmp qword [rdx + 0x18], r12
jbe 0x140041248
mov rdx, qword [rdx]
mov qword [rsp + 0x30], 1
lea rax, [0x140150428]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r9, rdx
lea rcx, [rbp - 0x68]
call fcn.140015074
mov esi, 2
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], r12
jbe 0x140041280
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rbp - 0x68]
call fcn.140013c24
movups xmm7, xmmword [rax]
movups xmmword [rbp - 0x20], xmm7
movups xmm6, xmmword [rax + 0x10]
movups xmmword [rbp - 0x10], xmm6
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r12
mov byte [rax], r14b
or esi, 4
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r14
mov r8, r12
mov qword [rbp - 0x70], r12
mov byte [rsp + 0x78], r14b
or esi, 8
mov dword [rsp + 0x44], esi
movq r15, xmm6
cmp r15, r12
jbe 0x1400412e7
mov rdx, r15
lea rcx, [rsp + 0x78]
call fcn.140014740
mov qword [rbp - 0x78], r14
mov r8, qword [rbp - 0x70]
mov ebx, r14d
mov esi, 0xfffffffa
lea r14, [rbp - 0x20]
movq r12, xmm7
mov qword [rsp + 0x60], r12
psrldq xmm6, 8
movq r13, xmm6
mov qword [rsp + 0x48], r13
cmp r13, 0xf
cmova r14, r12
lea rax, [rbp - 0x20]
cmova rax, r12
add rax, r15
mov qword [rsp + 0x50], rax
cmp r14, rax
je 0x140041432
mov r12, rax
shl ebx, 8
movzx eax, byte [r14]
add ebx, eax
add esi, 8
js 0x1400413b8
movsxd rdi, ebx
movsxd r15, esi
lea ecx, [rsi + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov r13d, edx
imul eax, edx, 0xfffffffa
add esi, eax
lea r12, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov rax, rdi
mov rcx, r15
sar rax, cl
and eax, 0x3f
mov r9b, byte [rax + r12]
mov rcx, qword [rbp - 0x78]
cmp rcx, r8
jae 0x14004139b
lea rax, [rcx + 1]
mov qword [rbp - 0x78], rax
lea rax, [rsp + 0x78]
cmp r8, 0xf
cmova rax, qword [rsp + 0x78]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400413a5
lea rcx, [rsp + 0x78]
call fcn.14001483c
sub r15, 6
sub r13, 1
mov r8, qword [rbp - 0x70]
jne 0x140041360
mov r12, qword [rsp + 0x50]
inc r14
cmp r14, r12
jne 0x140041330
cmp esi, 0xfffffffa
mov rdi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x60]
jle 0x14004142b
lea ecx, [rsi + 8]
shl ebx, 8
movsxd rax, ebx
sar rax, cl
and eax, 0x3f
lea r9, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov r9b, byte [rax + r9]
mov rcx, qword [rbp - 0x78]
cmp rcx, r8
jae 0x14004141d
lea rax, [rcx + 1]
mov qword [rbp - 0x78], rax
lea rax, [rsp + 0x78]
cmp r8, 0xf
cmova rax, qword [rsp + 0x78]
mov byte [rax + rcx], r9b
xor ebx, ebx
mov byte [rax + rcx + 1], bl
mov r8, qword [rbp - 0x70]
jmp 0x14004142d
lea rcx, [rsp + 0x78]
call fcn.14001483c
mov r8, qword [rbp - 0x70]
xor ebx, ebx
mov r13, qword [rsp + 0x48]
test byte [rbp - 0x78], 3
je 0x140041479
mov rcx, qword [rbp - 0x78]
cmp rcx, r8
jae 0x140041460
lea rax, [rcx + 1]
mov qword [rbp - 0x78], rax
lea rax, [rsp + 0x78]
cmp r8, 0xf
cmova rax, qword [rsp + 0x78]
mov word [rax + rcx], 0x3d
jmp 0x14004146d
mov r9b, 0x3d
lea rcx, [rsp + 0x78]
call fcn.14001483c
test byte [rbp - 0x78], 3
je 0x140041479
mov r8, qword [rbp - 0x70]
jmp 0x140041438
lea r8, [rsp + 0x78]
lea rdx, str.Basic
lea rcx, [rbp - 0x40]
call fcn.140020910
nop
mov esi, 0x1000
mov rdx, qword [rbp - 0x70]
cmp rdx, 0xf
jbe 0x1400414cf
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, rsi
jb 0x1400414ca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400414ca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140118f64
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x70], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x78], bl
cmp r13, 0xf
jbe 0x140041517
lea rdx, [r13 + 1]
mov rax, r12
cmp rdx, rsi
jb 0x14004150e
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004150e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r12
call fcn.140118f64
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 0xf
jbe 0x140041551
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, rsi
jb 0x14004154c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004154c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140118f64
lea rax, str.Proxy_Authorization
lea rdx, str.Authorization
cmp byte [rsp + 0x40], bl
cmovne rdx, rax
mov qword [rbp - 0x68], rdx
movups xmm6, xmmword [rbp - 0x40]
movups xmmword [rbp - 0x60], xmm6
movups xmm7, xmmword [rbp - 0x30]
movups xmmword [rbp - 0x50], xmm7
movdqa xmm0, xmmword [0x1401544b0]
movdqu xmmword [rbp - 0x30], xmm0
mov byte [rbp - 0x40], bl
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rbx
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], bl
jne 0x14004159d
mov rcx, rdi
call fcn.140002c2c
movups xmmword [rdi + 0x20], xmm6
movups xmmword [rdi + 0x30], xmm7
mov rax, rdi
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140118ad0
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x58]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140002210
int3