Function at 0x1400121c0
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 0x140012228
mov rdi, qword [r14]
lea rax, [r14 + 0x18]
cmp rdi, rax
je 0x14001225c
mov rax, qword [r14 + 8]
test rax, rax
je 0x1400122de
mov rcx, rax
shr rcx, 0x3b
jne 0x1400122fd
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, 7
seta cl
lea r15, [rcx + rax*2]
jmp 0x140012276
xor eax, eax
add rdx, qword [r14 + 8]
jb 0x14001244c
mov rcx, rdx
shr rcx, 0x3c
jne 0x14001244c
test rdx, rdx
je 0x140012264
lea rax, [rdx*8 - 1]
bsr rcx, rax
xor rcx, 0xffffffffffffffc0
add rcx, 0x41
jmp 0x140012266
mov r15d, 4
jmp 0x140012296
xor ecx, ecx
mov r15d, 1
shl r15, cl
shr r15, 3
mov rdi, qword [r14]
lea rax, [r14 + 0x18]
cmp rdi, rax
je 0x14001228a
mov rax, r15
shr rax, 0x3d
je 0x1400122e4
jmp 0x1400122fd
mov rcx, r15
shr rcx, 0x3d
mov rdi, rax
jne 0x1400122fd
lea rcx, [r15*8]
call sub.mozglue.dll_malloc
test rax, rax
je 0x1400122fd
mov rcx, qword [r14 + 8]
test rcx, rcx
jle 0x140012443
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 0x140012304
mov rdx, rax
jmp 0x140012430
mov r15d, 1
lea rdx, [r15*8]
mov rcx, rdi
call sub.mozglue.dll_realloc
test rax, rax
jne 0x140012443
xor eax, eax
jmp 0x14001244c
cmp rcx, rdx
cmova rdx, rcx
lea rbx, [rdx + rsi]
and rbx, 0xfffffffffffffff8
add rbx, rdi
add rbx, 8
cmp rax, rbx
jae 0x14001233a
add rdx, rsi
add rdx, 8
and rdx, 0xfffffffffffffff8
add rdx, rax
cmp rdx, rdi
jbe 0x14001233a
mov rdx, rax
jmp 0x140012430
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 0x140012369
xor esi, esi
jmp 0x1400123d8
and rdx, 0xfffffffffffffffc
neg rdx
xor esi, esi
nop word cs:[rax + rax]
nop dword [rax]
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, 4
jne 0x140012380
test r10, r10
je 0x14001241b
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 0x140012400
cmp r9, r8
je 0x140012443
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 0x140012430
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