Function at 0x140003770
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 - 0x78]
sub rsp, 0x140
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
mov rax, qword [0x140026040]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov byte [rsp + 0x40], r9b
mov rbx, r8
mov rsi, rcx
mov qword [rbp - 0x60], rcx
mov qword [rbp - 0x80], rcx
xor r15d, r15d
mov dword [rsp + 0x68], r15d
mov rcx, qword [rdx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 1
jb 0x140003b93
lea r12d, [r15 + 0xf]
cmp qword [rdx + 0x18], r12
jbe 0x1400037e6
mov rdx, qword [rdx]
mov qword [rsp + 0x30], 1
lea rax, [0x14001dc0c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r9, rdx
lea rcx, [rbp - 0x58]
call fcn.140012bb0
mov edi, 2
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], r12
jbe 0x14000381e
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rbp - 0x58]
call fcn.14000ddb0
movups xmm7, xmmword [rax]
movups xmmword [rbp - 0x30], xmm7
movups xmm6, xmmword [rax + 0x10]
movups xmmword [rbp - 0x20], xmm6
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], r12
mov byte [rax], r15b
or edi, 4
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], r12
mov byte [rsp + 0x48], r15b
or edi, 8
mov dword [rsp + 0x68], edi
movq r14, xmm6
cmp r14, r12
jbe 0x140003881
mov rdx, r14
lea rcx, [rsp + 0x48]
call fcn.140011770
mov qword [rsp + 0x58], r15
mov ebx, r15d
mov edi, 0xfffffffa
lea r15, [rbp - 0x30]
movq r12, xmm7
mov qword [rbp - 0x80], r12
psrldq xmm6, 8
movq r13, xmm6
mov qword [rsp + 0x70], r13
cmp r13, 0xf
cmova r15, r12
lea rax, [rbp - 0x30]
cmova rax, r12
add rax, r14
mov qword [rbp - 0x68], rax
lea r14d, [rdi + 0xc]
cmp r15, rax
je 0x140003976
shl ebx, 8
movzx eax, byte [r15]
add ebx, eax
mov dword [rsp + 0x6c], ebx
add edi, 8
js 0x14000392a
movsxd r12, ebx
movsxd r13, edi
lea ecx, [rdi + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov eax, edx
mov qword [rbp - 0x70], rax
imul eax, edx, 0xfffffffa
add edi, eax
mov rsi, qword [rbp - 0x70]
lea rbx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov rdx, r12
mov rcx, r13
sar rdx, cl
and edx, 0x3f
mov dl, byte [rdx + rbx]
lea rcx, [rsp + 0x48]
call fcn.14000dadc
sub r13, r14
sub rsi, 1
jne 0x140003904
mov ebx, dword [rsp + 0x6c]
inc r15
cmp r15, qword [rbp - 0x68]
jne 0x1400038c9
cmp edi, 0xfffffffa
mov rsi, qword [rbp - 0x60]
mov r12, qword [rbp - 0x80]
jle 0x140003963
lea ecx, [rdi + 8]
shl ebx, 8
movsxd rdx, ebx
sar rdx, cl
and edx, 0x3f
lea rax, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov dl, byte [rdx + rax]
lea rcx, [rsp + 0x48]
call fcn.14000dadc
mov r13, qword [rsp + 0x70]
jmp 0x140003976
mov dl, 0x3d
lea rcx, [rsp + 0x48]
call fcn.14000dadc
test byte [rsp + 0x58], 3
jne 0x14000396a
mov r8, qword [rsp + 0x58]
mov rax, qword [rsp + 0x60]
sub rax, r8
cmp rax, r14
jb 0x140003a17
lea rax, [r8 + 6]
mov qword [rsp + 0x58], rax
lea rbx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0xf
cmova rbx, qword [rsp + 0x48]
lea rax, [0x14001dc16]
lea r15, str.Basic
cmp rax, rbx
jbe 0x1400039da
lea rax, [rbx + r8]
cmp r15, rax
ja 0x1400039da
cmp rbx, r15
ja 0x1400039d2
xor edi, edi
jmp 0x1400039dd
mov rdi, rbx
sub rdi, r15
jmp 0x1400039dd
mov rdi, r14
inc r8
lea rcx, [rbx + 6]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
mov r8, rdi
mov rdx, r15
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
sub r14, rdi
lea rdx, [r15 + 6]
add rdx, rdi
lea rcx, [rbx + rdi]
mov r8, r14
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x48]
jmp 0x140003a29
mov qword [rsp + 0x28], r14
mov rdx, r14
lea rcx, [rsp + 0x48]
call fcn.140013568
movups xmm6, xmmword [rax]
movups xmmword [rbp - 0x10], xmm6
movups xmm7, xmmword [rax + 0x10]
xor ebx, ebx
mov qword [rax + 0x10], rbx
lea edi, [rbx + 0xf]
mov qword [rax + 0x18], rdi
mov byte [rax], bl
mov r14d, 0x1000
mov rdx, qword [rsp + 0x60]
cmp rdx, rdi
jbe 0x140003a84
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, r14
jb 0x140003a7f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003a7f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140019e20
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rdi
mov byte [rsp + 0x48], bl
cmp r13, rdi
jbe 0x140003ac9
lea rdx, [r13 + 1]
mov rax, r12
cmp rdx, r14
jb 0x140003ac0
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003ac0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r12
call fcn.140019e20
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, rdi
jbe 0x140003b02
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, r14
jb 0x140003afd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003afd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140019e20
lea rax, str.Proxy_Authorization
lea rdx, str.Authorization
cmp byte [rsp + 0x40], bl
cmovne rdx, rax
mov qword [rbp - 0x58], rdx
movups xmmword [rbp - 0x50], xmm6
movups xmmword [rbp - 0x40], xmm7
movdqa xmm0, xmmword [0x14001ec40]
movdqu xmmword [rbp], xmm0
mov byte [rbp - 0x10], bl
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], rbx
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], bl
jne 0x140003b46
mov rcx, rsi
call fcn.14000357c
movups xmmword [rsi + 0x20], xmm6
movups xmmword [rsi + 0x30], xmm7
mov rax, rsi
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.140019e00
lea r11, [rsp + 0x140]
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.140001234
int3