Function at 0x140013d30
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, rcx
cmp rdx, 1
jne 0x140013d98
mov rdi, qword [r14]
lea rax, [r14 + 0x18]
cmp rdi, rax
je 0x140013dcc
mov rax, qword [r14 + 8]
test rax, rax
je 0x140013e4e
mov rcx, rax
shr rcx, 0x3b
jne 0x140013e6d
mov rdx, rax
shl rdx, 4
lea rcx, [rdx - 1]
bsr rcx, rcx
xor ecx, 0x3f
neg cl
mov ebx, 1
shl rbx, cl
sub rbx, rdx
xor ecx, ecx
cmp rbx, 8
setae cl
lea r15, [rcx + rax*2]
jmp 0x140013de6
xor eax, eax
add rdx, qword [r14 + 8]
jb 0x140013fac
mov rcx, rdx
shr rcx, 0x3c
jne 0x140013fac
test rdx, rdx
je 0x140013dd4
lea rax, [rdx*8 - 1]
bsr rcx, rax
xor rcx, 0xffffffffffffffc0
add rcx, 0x41
jmp 0x140013dd6
mov r15d, 4
jmp 0x140013e06
xor ecx, ecx
mov r15d, 1
shl r15, cl
shr r15, 3
mov rdi, qword [r14]
lea rax, [r14 + 0x18]
cmp rdi, rax
je 0x140013dfa
mov rax, r15
shr rax, 0x3d
je 0x140013e54
jmp 0x140013e6d
mov rcx, r15
shr rcx, 0x3d
mov rdi, rax
jne 0x140013e6d
lea rcx, [r15*8]
call sub.mozglue.dll_malloc
test rax, rax
je 0x140013e6d
mov rcx, qword [r14 + 8]
test rcx, rcx
jle 0x140013fa3
lea rcx, [rdi + rcx*8]
lea rdx, [rdi + 8]
cmp rcx, rdx
mov r9, rdx
cmova r9, rcx
mov rsi, rdi
not rsi
add r9, rsi
cmp r9, 0x18
jae 0x140013e74
mov rdx, rax
jmp 0x140013f90
mov r15d, 1
lea rdx, [r15*8]
mov rcx, rdi
call sub.mozglue.dll_realloc
test rax, rax
jne 0x140013fa3
xor eax, eax
jmp 0x140013fac
cmp rcx, rdx
cmova rdx, rcx
lea rbx, [rdx + rsi]
and rbx, 0xfffffffffffffff8
add rbx, rdi
add rbx, 8
cmp rax, rbx
jae 0x140013eaa
add rdx, rsi
add rdx, 8
and rdx, 0xfffffffffffffff8
add rdx, rax
cmp rdx, rdi
jbe 0x140013eaa
mov rdx, rax
jmp 0x140013f90
shr r9, 3
add r9, 1
mov r8, r9
and r8, 0xfffffffffffffffc
lea rbx, [r8 - 4]
mov rdx, rbx
shr rdx, 2
add rdx, 1
mov r10d, edx
and r10d, 3
cmp rbx, 0xc
jae 0x140013ed9
xor esi, esi
jmp 0x140013f38
and rdx, 0xfffffffffffffffc
xor esi, esi
nop
movups xmm0, xmmword [rdi + rsi*8]
movups xmm1, xmmword [rdi + rsi*8 + 0x10]
movups xmmword [rax + rsi*8], xmm0
movups xmmword [rax + rsi*8 + 0x10], xmm1
movups xmm0, xmmword [rdi + rsi*8 + 0x20]
movups xmm1, xmmword [rdi + rsi*8 + 0x30]
movups xmmword [rax + rsi*8 + 0x20], xmm0
movups xmmword [rax + rsi*8 + 0x30], xmm1
movups xmm0, xmmword [rdi + rsi*8 + 0x40]
movups xmm1, xmmword [rdi + rsi*8 + 0x50]
movups xmmword [rax + rsi*8 + 0x40], xmm0
movups xmmword [rax + rsi*8 + 0x50], xmm1
movups xmm0, xmmword [rdi + rsi*8 + 0x60]
movups xmm1, xmmword [rdi + rsi*8 + 0x70]
movups xmmword [rax + rsi*8 + 0x60], xmm0
movups xmmword [rax + rsi*8 + 0x70], xmm1
add rsi, 0x10
add rdx, 0xfffffffffffffffc
jne 0x140013ee0
test r10, r10
je 0x140013f7b
lea rdx, [rax + rsi*8]
add rdx, 0x10
lea rsi, [rdi + rsi*8]
add rsi, 0x10
shl r10, 5
xor ebx, ebx
nop word cs:[rax + rax]
nop dword [rax]
movups xmm0, xmmword [rsi + rbx - 0x10]
movups xmm1, xmmword [rsi + rbx]
movups xmmword [rdx + rbx - 0x10], xmm0
movups xmmword [rdx + rbx], xmm1
add rbx, 0x20
cmp r10, rbx
jne 0x140013f60
cmp r9, r8
je 0x140013fa3
lea rdi, [rdi + r8*8]
lea rdx, [rax + r8*8]
nop dword [rax + rax]
mov rbx, qword [rdi]
mov qword [rdx], rbx
add rdi, 8
add rdx, 8
cmp rdi, rcx
jb 0x140013f90
mov qword [r14], rax
mov qword [r14 + 0x10], r15
mov al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret