Function at 0x140004050
Capabilities:
Encode data using base64

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov byte [rax + 0x20], r9b
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov rdi, rcx
movabs rax, 0x7fffffffffffffff
mov rcx, qword [rdx + 0x10]
mov rbx, r8
sub rax, rcx
cmp rax, 1
jb 0x140004408
mov esi, reloc.WS2_32.dll_ntohs
cmp qword [rdx + 0x18], rsi
jbe 0x1400040a4
mov rdx, qword [rdx]
lea rax, [0x1400a80d8]
mov qword [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
mov r9, rdx
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 1]
call fcn.140018320
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], rsi
jbe 0x1400040d7
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rbp - 1]
call fcn.140012684
xor ebx, ebx
mov r8, rsi
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x51], xmm0
movups xmmword [rbp - 0x21], xmm0
movups xmmword [rbp - 0x41], xmm1
movups xmmword [rbp - 0x11], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
xorps xmm0, xmm0
mov byte [rax], bl
movq r15, xmm1
mov qword [rbp - 0x69], rbx
mov qword [rbp - 0x61], rsi
movups xmmword [rbp - 0x79], xmm0
mov byte [rbp - 0x79], bl
cmp r15, rsi
jbe 0x14000413d
mov rdx, r15
lea rcx, [rbp - 0x79]
call fcn.1400167a4
mov r8, qword [rbp - 0x61]
movups xmm1, xmmword [rbp - 0x41]
mov qword [rbp - 0x69], rbx
mov r12, qword [rbp - 0x51]
lea rax, [rbp - 0x21]
psrldq xmm1, 8
lea r14, [rbp - 0x21]
movq r13, xmm1
mov qword [rbp - 0x51], r12
cmp r13, 0xf
mov qword [rbp + 0x6f], r13
mov esi, 0xfffffffa
cmova rax, r12
cmova r14, r12
add rax, r15
mov qword [rbp - 0x59], rax
cmp r14, rax
je 0x140004289
lea r12, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov rdi, rax
movzx eax, byte [r14]
shl ebx, 8
add ebx, eax
add esi, 8
js 0x14000420c
lea ecx, [rsi + 6]
movsxd r13, esi
mov eax, 0xaaaaaaab
movsxd rdi, ebx
mul ecx
shr edx, 2
imul eax, edx, 0xfffffffa
mov r15d, edx
add esi, eax
mov rcx, r13
mov rax, rdi
sar rax, cl
mov rcx, qword [rbp - 0x69]
and eax, 0x3f
mov r9b, byte [rax + r12]
cmp rcx, r8
jae 0x1400041e8
lea rax, [rcx + 1]
cmp r8, 0xf
mov qword [rbp - 0x69], rax
lea rax, [rbp - 0x79]
cmova rax, qword [rbp - 0x79]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400041fa
mov r8b, byte [rbp + 0x6f]
lea rcx, [rbp - 0x79]
mov edx, 1
call fcn.1400168c0
mov r8, qword [rbp - 0x61]
sub r13, 6
sub r15, 1
jne 0x1400041af
mov rdi, qword [rbp - 0x59]
inc r14
cmp r14, rdi
jne 0x140004186
mov rdi, qword [rbp + 0x67]
mov r12, qword [rbp - 0x51]
cmp esi, 0xfffffffa
jle 0x140004283
shl ebx, 8
lea ecx, [rsi + 8]
movsxd rax, ebx
lea r9, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
sar rax, cl
mov rcx, qword [rbp - 0x69]
and eax, 0x3f
mov r9b, byte [rax + r9]
cmp rcx, r8
jae 0x14000426d
cmp r8, 0xf
lea rax, [rcx + 1]
mov qword [rbp - 0x69], rax
lea rax, [rbp - 0x79]
cmova rax, qword [rbp - 0x79]
xor ebx, ebx
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], bl
mov r8, qword [rbp - 0x61]
jmp 0x140004285
mov r8b, byte [rbp + 0x6f]
lea rcx, [rbp - 0x79]
mov edx, 1
call fcn.1400168c0
mov r8, qword [rbp - 0x61]
xor ebx, ebx
mov r13, qword [rbp + 0x6f]
test byte [rbp - 0x69], 3
je 0x1400042d6
mov rcx, qword [rbp - 0x69]
cmp rcx, r8
jae 0x1400042b5
lea rax, [rcx + 1]
cmp r8, 0xf
mov qword [rbp - 0x69], rax
lea rax, [rbp - 0x79]
cmova rax, qword [rbp - 0x79]
mov word [rax + rcx], 0x3d
jmp 0x1400042ca
mov r8b, byte [rbp + 0x6f]
lea rcx, [rbp - 0x79]
mov r9b, 0x3d
mov edx, 1
call fcn.1400168c0
test byte [rbp - 0x69], 3
je 0x1400042d6
mov r8, qword [rbp - 0x61]
jmp 0x14000428f
lea r8, [rbp - 0x79]
lea rdx, str.Basic
lea rcx, [rbp - 0x41]
call fcn.14001448c
mov rdx, qword [rbp - 0x61]
mov esi, 0x1000
cmp rdx, 0xf
jbe 0x140004326
mov rcx, qword [rbp - 0x79]
inc rdx
mov rax, rcx
cmp rdx, rsi
jb 0x140004321
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004402
call fcn.14006fa8c
mov qword [rbp - 0x69], rbx
mov qword [rbp - 0x61], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x79], bl
cmp r13, 0xf
jbe 0x140004369
lea rdx, [r13 + 1]
mov rax, r12
cmp rdx, rsi
jb 0x140004361
mov r12, qword [r12 - 8]
add rdx, 0x27
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004402
mov rcx, r12
call fcn.14006fa8c
mov rdx, qword [rbp + 0x17]
cmp rdx, 0xf
jbe 0x14000439c
mov rcx, qword [rbp - 1]
inc rdx
mov rax, rcx
cmp rdx, rsi
jb 0x140004397
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004402
call fcn.14006fa8c
cmp byte [rbp + 0x7f], bl
lea rax, str.Proxy_Authorization
lea rdx, str.Authorization
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
cmovne rdx, rax
mov qword [rdi + 0x10], rbx
or r8, 0xffffffffffffffff
mov qword [rdi + 0x18], rbx
inc r8
cmp byte [rdx + r8], bl
jne 0x1400043c3
mov rcx, rdi
call fcn.140002a90
movups xmm0, xmmword [rbp - 0x41]
mov rbx, qword [rsp + 0x130]
mov rax, rdi
movups xmmword [rdi + 0x20], xmm0
movups xmm0, xmmword [rbp - 0x31]
movups xmmword [rdi + 0x30], xmm0
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140075c7c
int3
call fcn.1400014b4
int3