Function at 0x140087b00
Capabilities:
Encode data using base64

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov r12, rcx
mov r13, qword [rcx + 8]
mov rax, qword [rcx + 0x10]
mov rcx, rax
sub rcx, r13
sar rcx, 3
imul rdx, rcx, 0x2a
dec rdx
xor r8d, r8d
cmp rax, r13
cmovne r8, rdx
mov rdx, qword [r12 + 0x20]
mov r9, qword [r12 + 0x28]
add r9, rdx
sub r8, r9
cmp r8, 0x2a
jb 0x140087b84
add rdx, 0x2a
mov qword [r12 + 0x20], rdx
mov rcx, qword [rax - 8]
add rax, 0xfffffffffffffff8
mov qword [rbp - 8], rcx
mov qword [r12 + 0x10], rax
lea rdx, [rbp - 8]
mov rcx, r12
call fcn.140087940
jmp 0x140087e99
mov rax, qword [r12]
mov r8, qword [r12 + 0x18]
mov rdx, r8
sub rdx, rax
mov r9, rdx
sar r9, 3
cmp rcx, r9
jae 0x140087bc3
mov ecx, 0xfc0
cmp r13, rax
je 0x140087c16
call fcn.14010e7c0
mov qword [rbp - 8], rax
lea rdx, [rbp - 8]
mov rcx, r12
call fcn.140087940
jmp 0x140087c4d
sar rdx, 2
cmp r8, rax
mov esi, 1
cmovne rsi, rdx
mov rax, rsi
shr rax, 0x3d
jne 0x140087ebc
lea rcx, [rsi*8]
call fcn.14010e7c0
mov r15, rax
mov qword [rbp - 0x28], rax
mov ecx, 0xfc0
call fcn.14010e7c0
mov rbx, rax
test rsi, rsi
mov qword [rbp - 0x10], r12
je 0x140087c77
mov rdx, r15
lea rdi, [r15 + rsi*8]
jmp 0x140087ca7
call fcn.14010e7c0
mov qword [rbp - 8], rax
lea rdx, [rbp - 8]
mov rcx, r12
call fcn.140087780
mov rax, qword [r12 + 0x10]
mov rcx, qword [rax - 8]
add rax, 0xfffffffffffffff8
mov qword [rbp - 8], rcx
mov qword [r12 + 0x10], rax
lea rdx, [rbp - 8]
mov rcx, r12
call fcn.140087940
mov rax, qword [r12 + 0x10]
mov rcx, qword [r12 + 0x20]
sub rax, qword [r12 + 8]
add rcx, 0x2a
cmp rax, 8
mov eax, 0x15
cmovne rax, rcx
mov qword [r12 + 0x20], rax
jmp 0x140087e99
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x20], rbx
mov ecx, 8
call fcn.14010e7c0
mov r14, rax
mov rdi, rax
add rdi, 8
mov rcx, r15
call fcn.14010e7fc
mov r12, qword [rbp - 0x10]
mov r13, qword [r12 + 8]
mov rdx, r14
mov qword [rdx], rbx
mov r15, rdx
mov rbx, rdx
jmp 0x140087cd1
mov r14, r15
mov rax, qword [r13]
mov qword [rbx], rax
add r13, 8
mov r15, r14
add rbx, 8
cmp r13, qword [r12 + 0x10]
je 0x140087e4a
cmp rbx, rdi
jne 0x140087cc0
mov rax, r15
sub rax, rdx
jbe 0x140087d2e
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
shl rax, 2
and rax, 0xfffffffffffffff8
mov r14, r15
sub r14, rax
mov rbx, rdi
sub rbx, r15
je 0x140087d29
mov rcx, r14
mov rsi, rdx
mov rdx, r15
mov r8, rbx
call fcn.140111410
mov rdx, rsi
add rbx, r14
jmp 0x140087cc3
mov rsi, rdi
sub rsi, rdx
sar rsi, 2
cmp rdi, rdx
mov eax, 1
cmove rsi, rax
mov rax, rsi
shr rax, 0x3d
jne 0x140087eab
lea rcx, [rsi*8]
mov qword [rbp - 0x30], rdx
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x20], 0
call fcn.14010e7c0
mov r12, rax
mov rdx, rsi
shr rdx, 2
lea r14, [rax + rdx*8]
mov rax, rdi
sub rax, r15
mov rbx, r14
sub rdi, r15
je 0x140087dd3
and rax, 0xfffffffffffffff8
mov rbx, rax
add rbx, r14
add rdi, 0xfffffffffffffff8
cmp rdi, 0x68
jb 0x140087dab
lea rax, [r12 + rdx*8]
sub rax, r15
cmp rax, 0x20
jae 0x140087df1
mov rax, r14
mov rcx, r15
nop word cs:[rax + rax]
mov rdx, qword [rcx]
mov qword [rax], rdx
add rax, 8
add rcx, 8
cmp rax, rbx
jne 0x140087dc0
lea rdi, [r12 + rsi*8]
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140087de5
call fcn.14010e7fc
mov rdx, r12
mov r12, qword [rbp - 0x10]
jmp 0x140087cc3
shr rdi, 3
inc rdi
shl rdx, 3
mov r8, rdi
and r8, 0xfffffffffffffffc
lea rax, [r14 + r8*8]
lea rcx, [r15 + r8*8]
add rdx, r12
add rdx, 0x10
xor r9d, r9d
nop word cs:[rax + rax]
movups xmm0, xmmword [r15 + r9*8]
movups xmm1, xmmword [r15 + r9*8 + 0x10]
movups xmmword [rdx + r9*8 - 0x10], xmm0
movups xmmword [rdx + r9*8], xmm1
add r9, 4
cmp r8, r9
jne 0x140087e20
cmp rdi, r8
jne 0x140087dc0
jmp 0x140087dd3
mov rcx, qword [r12]
mov rax, qword [r12 + 0x20]
mov qword [r12], rdx
mov qword [r12 + 8], r15
mov qword [r12 + 0x10], rbx
mov qword [r12 + 0x18], rdi
sub rbx, r15
add rax, 0x2a
cmp rbx, 8
mov edx, 0x15
cmovne rdx, rax
mov qword [r12 + 0x20], rdx
test rcx, rcx
je 0x140087e99
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp fcn.14010e7fc
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x20], 0
call fcn.140012fe0
call fcn.140012fe0
int3