Function at 0x140003b8c
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 - 0x48]
sub rsp, 0x110
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
mov rax, qword [0x14005f088]
xor rax, rsp
mov qword [rbp - 0x20], rax
mov byte [rsp + 0x40], r9b
mov rbx, r8
mov rdi, rcx
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x80], rcx
xor esi, esi
mov dword [rsp + 0x68], esi
mov rcx, qword [rdx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 1
jb 0x140004064
cmp qword [rdx + 0x18], 0x10
jb 0x140003bfd
mov rdx, qword [rdx]
mov qword [rsp + 0x30], 1
lea rax, [0x140055b58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r9, rdx
lea rcx, [rbp - 0x68]
call fcn.140015914
nop
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140003c31
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rbp - 0x68]
call fcn.14000fb2c
movups xmm6, xmmword [rax]
movups xmmword [rbp - 0x40], xmm6
movups xmm7, xmmword [rax + 0x10]
movups xmmword [rbp - 0x30], xmm7
mov qword [rax + 0x10], rsi
mov ecx, reloc.WS2_32.dll_ntohs
mov qword [rax + 0x18], rcx
mov byte [rax], sil
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rcx
mov byte [rsp + 0x48], sil
mov dword [rsp + 0x68], ntohs
movq rbx, xmm7
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.14000f968
mov r15d, 0xfffffffa
lea r12, [rbp - 0x40]
movq r13, xmm6
mov qword [rsp + 0x70], r13
psrldq xmm7, 8
movq rcx, xmm7
mov qword [rbp - 0x80], rcx
cmp rcx, 0x10
cmovae r12, r13
lea rax, [rbp - 0x40]
cmovae rax, r13
add rax, rbx
mov qword [rsp + 0x78], rax
lea r14d, [r15 + 0xc]
cmp r12, rax
je 0x140003df8
mov rdi, rax
shl esi, 8
movzx eax, byte [r12]
add esi, eax
add r15d, 8
js 0x140003d73
movsxd r8, esi
movsxd rbx, r15d
lea ecx, [r15 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov r13d, edx
imul eax, edx, 0xfffffffa
add r15d, eax
lea rdi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov rax, r8
mov rcx, rbx
sar rax, cl
and eax, 0x3f
mov r9b, byte [rax + rdi]
mov rcx, qword [rsp + 0x58]
cmp rcx, qword [rsp + 0x60]
jae 0x140003d51
lea rax, [rcx + 1]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rax, qword [rsp + 0x48]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140003d65
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rsp + 0x48]
call fcn.140013f2c
movsxd r8, esi
sub rbx, r14
sub r13, 1
jne 0x140003d10
mov rdi, qword [rsp + 0x78]
inc r12
cmp r12, rdi
jne 0x140003cd8
cmp r15d, 0xfffffffa
mov rdi, qword [rbp - 0x70]
jle 0x140003df3
lea ecx, [r15 + 8]
shl esi, 8
movsxd rdx, esi
sar rdx, cl
and edx, 0x3f
lea rax, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov r9b, byte [rdx + rax]
mov rcx, qword [rsp + 0x58]
cmp rcx, qword [rsp + 0x60]
jae 0x140003ddd
lea rax, [rcx + 1]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rax, qword [rsp + 0x48]
mov byte [rax + rcx], r9b
xor r15d, r15d
mov byte [rax + rcx + 1], r15b
mov r13, qword [rsp + 0x70]
jmp 0x140003e40
xor r15d, r15d
mov r8b, r15b
lea edx, [r15 + 1]
lea rcx, [rsp + 0x48]
call fcn.140013f2c
jmp 0x140003dd6
mov r13, qword [rsp + 0x70]
xor r15d, r15d
jmp 0x140003e40
mov rcx, qword [rsp + 0x58]
cmp rcx, qword [rsp + 0x60]
jae 0x140003e2b
lea rax, [rcx + 1]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rax, qword [rsp + 0x48]
mov word [rax + rcx], 0x3d
jmp 0x140003e40
mov r9b, 0x3d
mov r8b, r15b
mov edx, 1
lea rcx, [rsp + 0x48]
call fcn.140013f2c
test byte [rsp + 0x58], 3
jne 0x140003dfd
mov r8, qword [rsp + 0x58]
mov rax, qword [rsp + 0x60]
sub rax, r8
cmp rax, r14
jb 0x140003ee3
lea rax, [r8 + 6]
mov qword [rsp + 0x58], rax
lea rbx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rbx, qword [rsp + 0x48]
lea rax, [0x140055b62]
lea r12, str.Basic
cmp rax, rbx
jbe 0x140003ea5
lea rax, [rbx + r8]
cmp r12, rax
ja 0x140003ea5
cmp rbx, r12
ja 0x140003e9d
mov rsi, r15
jmp 0x140003ea8
mov rsi, rbx
sub rsi, r12
jmp 0x140003ea8
mov rsi, r14
lea rcx, [rbx + 6]
inc r8
mov rdx, rbx
call fcn.140021010
mov r8, rsi
mov rdx, r12
mov rcx, rbx
call fcn.140021010
lea rcx, [rbx + rsi]
sub r14, rsi
lea rdx, [r12 + 6]
add rdx, rsi
mov r8, r14
call fcn.140021010
lea rax, [rsp + 0x48]
jmp 0x140003ef5
mov qword [rsp + 0x28], r14
mov rdx, r14
lea rcx, [rsp + 0x48]
call fcn.140016928
movups xmm6, xmmword [rax]
movups xmmword [rbp - 0x40], xmm6
movups xmm7, xmmword [rax + 0x10]
mov qword [rax + 0x10], r15
mov esi, reloc.WS2_32.dll_ntohs
mov qword [rax + 0x18], rsi
mov byte [rax], r15b
mov ebx, 0x1000
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140003f4e
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, rbx
jb 0x140003f49
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000406a
call fcn.14001ee60
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], rsi
mov byte [rsp + 0x48], r15b
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x140003f94
inc rdx
mov rax, r13
cmp rdx, rbx
jb 0x140003f8b
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004070
mov rcx, r13
call fcn.14001ee60
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 0x10
jb 0x140003fcb
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, rbx
jb 0x140003fc6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000405e
call fcn.14001ee60
lea rax, str.Proxy_Authorization
lea rdx, str.Authorization
cmp byte [rsp + 0x40], r15b
cmovne rdx, rax
mov qword [rbp - 0x68], rdx
movups xmmword [rbp - 0x60], xmm6
movups xmmword [rbp - 0x50], xmm7
movdqa xmm0, xmmword [0x140056c40]
movdqu xmmword [rbp - 0x30], xmm0
mov byte [rbp - 0x40], r15b
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r15
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], r15b
jne 0x140004011
mov rcx, rdi
call fcn.1400141a8
movups xmmword [rdi + 0x20], xmm6
movups xmmword [rdi + 0x30], xmm7
mov rax, rdi
mov rcx, qword [rbp - 0x20]
xor rcx, rsp
call fcn.14001ee40
lea r11, [rsp + 0x110]
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.14002b68c
nop
call fcn.140001358
nop
call fcn.14002b68c
nop
call fcn.14002b68c
int3