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 rsi, rcx
movabs rax, 0x7fffffffffffffff
mov rcx, qword [rdx + 0x10]
mov rbx, r8
sub rax, rcx
cmp rax, 1
jb 0x1400044ca
mov edi, reloc.WS2_32.dll_ntohs
cmp qword [rdx + 0x18], rdi
jbe 0x1400040a4
mov rdx, qword [rdx]
lea rax, [0x1400a8098]
mov qword [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
mov r9, rdx
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 9]
call fcn.140018274
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], rdi
jbe 0x1400040d7
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rbp - 9]
call fcn.1400125e0
xor ebx, ebx
mov r8, rdi
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x49], xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x39], xmm1
movups xmmword [rbp - 0x19], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
xorps xmm0, xmm0
mov byte [rax], bl
movq r14, xmm1
mov qword [rbp - 0x69], rbx
mov qword [rbp - 0x61], rdi
movups xmmword [rbp - 0x79], xmm0
mov byte [rbp - 0x79], bl
cmp r14, rdi
jbe 0x14000413d
mov rdx, r14
lea rcx, [rbp - 0x79]
call fcn.1400166f8
mov r8, qword [rbp - 0x61]
movups xmm1, xmmword [rbp - 0x39]
mov qword [rbp - 0x69], rbx
mov r12, qword [rbp - 0x49]
lea rax, [rbp - 0x29]
psrldq xmm1, 8
lea r15, [rbp - 0x29]
movq r13, xmm1
mov qword [rbp - 0x59], r12
cmp r13, 0xf
mov qword [rbp - 0x51], r13
mov edi, 0xfffffffa
cmova rax, r12
cmova r15, r12
add rax, r14
mov qword [rbp - 0x49], rax
lea r14d, [rdi + 0xc]
cmp r15, rax
je 0x14000429e
mov rsi, rax
movzx eax, byte [r15]
shl ebx, 8
add ebx, eax
add edi, 8
mov dword [rbp + 0x6f], ebx
js 0x140004219
lea ecx, [rdi + 6]
movsxd rsi, ebx
mov eax, 0xaaaaaaab
movsxd r13, edi
mul ecx
lea rbx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
shr edx, 2
imul eax, edx, 0xfffffffa
mov r12d, edx
add edi, eax
mov rcx, r13
mov rax, rsi
sar rax, cl
mov rcx, qword [rbp - 0x69]
and eax, 0x3f
mov r9b, byte [rax + rbx]
cmp rcx, r8
jae 0x1400041f3
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 0x140004205
mov r8b, byte [rbp + 0x6f]
lea rcx, [rbp - 0x79]
mov edx, 1
call fcn.140016814
mov r8, qword [rbp - 0x61]
sub r13, r14
sub r12, 1
jne 0x1400041ba
mov ebx, dword [rbp + 0x6f]
mov rsi, qword [rbp - 0x49]
inc r15
cmp r15, rsi
jne 0x140004183
mov rsi, qword [rbp + 0x67]
cmp edi, 0xfffffffa
jle 0x140004296
shl ebx, 8
lea ecx, [rdi + 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 0x140004280
mov r12, qword [rbp - 0x59]
lea rax, [rcx + 1]
mov r13, qword [rbp - 0x51]
cmp r8, 0xf
mov qword [rbp - 0x69], rax
lea rax, [rbp - 0x79]
cmova rax, qword [rbp - 0x79]
xor r15d, r15d
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], r15b
mov r8, qword [rbp - 0x61]
jmp 0x1400042a1
mov r8b, byte [rbp + 0x6f]
lea rcx, [rbp - 0x79]
mov edx, 1
call fcn.140016814
mov r8, qword [rbp - 0x61]
mov r13, qword [rbp - 0x51]
mov r12, qword [rbp - 0x59]
xor r15d, r15d
mov rcx, qword [rbp - 0x69]
test cl, 3
je 0x1400042e7
cmp rcx, r8
jae 0x1400042cc
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 0x1400042e1
mov r8b, byte [rbp + 0x6f]
lea rcx, [rbp - 0x79]
mov r9b, 0x3d
mov edx, 1
call fcn.140016814
mov r8, qword [rbp - 0x61]
jmp 0x1400042a1
mov rax, r8
sub rax, rcx
cmp rax, r14
jb 0x140004381
lea rax, [rcx + 6]
cmp r8, 0xf
lea rbx, [rbp - 0x79]
mov qword [rbp - 0x69], rax
cmova rbx, qword [rbp - 0x79]
lea rax, [0x1400a80a2]
lea rdx, str.Basic
cmp rax, rbx
jbe 0x140004339
lea rax, [rbx + rcx]
cmp rdx, rax
ja 0x140004339
cmp rbx, rdx
ja 0x140004331
mov rdi, r15
jmp 0x14000433c
mov rdi, rbx
sub rdi, rdx
jmp 0x14000433c
mov rdi, r14
lea r8, [rcx + 1]
mov rdx, rbx
lea rcx, [rbx + 6]
call fcn.140098410
mov r8, rdi
lea rdx, str.Basic
mov rcx, rbx
call fcn.140098410
sub r14, rdi
lea rdx, str.Basic
add rdx, 6
lea rcx, [rbx + rdi]
add rdx, rdi
mov r8, r14
call fcn.140098410
lea rax, [rbp - 0x79]
jmp 0x140004392
mov rdx, r14
mov qword [rsp + 0x28], r14
lea rcx, [rbp - 0x79]
call fcn.140019128
movups xmm0, xmmword [rax]
mov ebx, reloc.WS2_32.dll_ntohs
mov edi, 0x1000
movups xmmword [rbp - 0x39], xmm0
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rbp - 0x49], xmm0
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], rbx
mov byte [rax], r15b
mov rdx, qword [rbp - 0x61]
cmp rdx, rbx
jbe 0x1400043ec
mov rcx, qword [rbp - 0x79]
inc rdx
mov rax, rcx
cmp rdx, rdi
jb 0x1400043e7
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400044c4
call fcn.14006f96c
mov qword [rbp - 0x69], r15
mov qword [rbp - 0x61], rbx
mov byte [rbp - 0x79], r15b
cmp r13, rbx
jbe 0x14000442b
lea rdx, [r13 + 1]
mov rax, r12
cmp rdx, rdi
jb 0x140004423
mov r12, qword [r12 - 8]
add rdx, 0x27
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400044c4
mov rcx, r12
call fcn.14006f96c
mov rdx, qword [rbp + 0xf]
cmp rdx, rbx
jbe 0x14000445d
mov rcx, qword [rbp - 9]
inc rdx
mov rax, rcx
cmp rdx, rdi
jb 0x140004458
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400044c4
call fcn.14006f96c
cmp byte [rbp + 0x7f], r15b
lea rax, str.Proxy_Authorization
lea rdx, str.Authorization
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
cmovne rdx, rax
mov qword [rsi + 0x10], r15
or r8, 0xffffffffffffffff
mov qword [rsi + 0x18], r15
inc r8
cmp byte [rdx + r8], r15b
jne 0x140004485
mov rcx, rsi
call fcn.140002a90
movups xmm0, xmmword [rbp - 0x39]
mov rbx, qword [rsp + 0x130]
mov rax, rsi
movups xmm1, xmmword [rbp - 0x49]
movups xmmword [rsi + 0x20], xmm0
movups xmmword [rsi + 0x30], xmm1
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140075b5c
int3
call fcn.1400014b4
int3