Function at 0x1401483b0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rsi, rcx
mov rax, qword [0x140362028]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword [rcx + 0x20]
cmp rax, 0x200
jb 0x140148468
add rax, 0xfffffffffffffe00
mov qword [rsi + 0x20], rax
mov rdi, qword [rsi + 8]
mov rbp, qword [rsi + 0x10]
mov r15, qword [rdi]
add rdi, 8
mov qword [rsi + 8], rdi
cmp rbp, qword [rsi + 0x18]
jne 0x140148623
mov r14, qword [rsi]
mov rax, rdi
sub rax, r14
jbe 0x140148558
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov rbx, rax
neg rbx
shl rax, 3
mov r14, rdi
sub r14, rax
sub rbp, rdi
je 0x140148454
mov rcx, r14
mov rdx, rdi
mov r8, rbp
call fcn.1401a6090
mov rdi, qword [rsi + 8]
add rbp, r14
mov qword [rsi + 0x10], rbp
lea rax, [rdi + rbx*8]
mov qword [rsi + 8], rax
jmp 0x140148623
mov rdi, qword [rsi + 0x10]
mov rax, qword [rsi]
mov r12, qword [rsi + 8]
mov rbx, rdi
sub rbx, r12
mov rdx, qword [rsi + 0x18]
mov rcx, rdx
sub rcx, rax
cmp rbx, rcx
jae 0x1401484b0
mov ecx, 0x1000
cmp rdx, rdi
je 0x1401485f1
call fcn.1401a2e6c
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
mov rcx, rsi
call fcn.1400ee260
jmp 0x14014873d
lea r8, [rsi + 0x20]
sar rcx, 2
cmp rdx, rax
mov ebp, 1
cmovne rbp, rcx
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], r8
mov rax, rbp
shr rax, 0x3d
jne 0x1401487e4
mov r15, rbx
sar r15, 3
lea rcx, [rbp*8]
call fcn.1401a2e6c
mov r13, rax
mov qword [rsp + 0x28], rax
add rbx, rax
mov qword [rsp + 0x30], rbx
lea r14, [rax + rbp*8]
mov qword [rsp + 0x40], r14
mov ecx, 0x1000
call fcn.1401a2e6c
cmp r15, rbp
jne 0x1401486a4
mov rdx, rbx
sub rdx, r13
jbe 0x140148631
sar rdx, 3
lea rcx, [rdx + 1]
shr rcx, 0x3f
add rcx, rdx
inc rcx
shl rcx, 2
and rcx, 0xfffffffffffffff8
sub rbx, rcx
mov qword [rsp + 0x30], rbx
jmp 0x1401486a4
mov rax, rbp
sub rax, r14
sar rax, 2
cmp rbp, r14
mov ebx, 1
cmovne rbx, rax
mov rax, rbx
shr rax, 0x3d
jne 0x1401487e4
mov r12, rbx
shr r12, 2
lea rcx, [rbx*8]
call fcn.1401a2e6c
lea r9, [rax + r12*8]
lea r8, [rax + rbx*8]
mov r10, r9
sub rbp, rdi
je 0x1401485cc
mov rbx, rbp
sar rbx, 3
and rbp, 0xfffffffffffffff8
mov r10, rbp
add r10, r9
shl rbx, 3
lea rbp, [rax + r12*8]
xor edx, edx
mov rcx, qword [rdi + rdx]
mov qword [rbp + rdx], rcx
add rdx, 8
cmp rbx, rdx
jne 0x1401485ba
mov qword [rsi], rax
mov qword [rsi + 8], r9
mov qword [rsi + 0x10], r10
mov qword [rsi + 0x18], r8
mov rbp, r10
test r14, r14
je 0x140148623
mov rcx, r14
call fcn.1401a2ea8
mov rbp, qword [rsi + 0x10]
jmp 0x140148623
call fcn.1401a2e6c
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
mov rcx, rsi
call fcn.14011e640
mov rdi, qword [rsi + 8]
mov rbp, qword [rsi + 0x10]
mov r15, qword [rdi]
add rdi, 8
mov qword [rsi + 8], rdi
cmp rbp, qword [rsi + 0x18]
je 0x14014875c
mov qword [rbp], r15
add qword [rsi + 0x10], 8
jmp 0x14014873d
mov qword [rsp + 0x20], rax
movabs rcx, 0x1fffffffffffffff
sar rdx, 2
cmp rbx, r13
mov ebp, 1
cmovne rbp, rdx
cmp rbp, rcx
ja 0x1401487e4
mov rbx, rbp
and rbx, 0xfffffffffffffffc
lea rcx, [rbp*8]
call fcn.1401a2e6c
mov r15, rax
lea rbx, [rax + rbx*2]
lea r14, [rax + rbp*8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], r14
test r13, r13
je 0x14014869c
mov rcx, r13
call fcn.1401a2ea8
mov r12, qword [rsi + 8]
mov rdi, qword [rsi + 0x10]
mov r13, r15
mov rax, qword [rsp + 0x20]
mov qword [rbx], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x38], rax
mov rdx, r12
cmp rdi, r12
je 0x1401486ed
lea rbx, [rsp + 0x28]
add rdi, 0xfffffffffffffff8
mov rcx, rbx
mov rdx, rdi
call fcn.14011e640
cmp rdi, qword [rsi + 8]
jne 0x1401486bd
mov r13, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x30]
mov r12, qword [rsi + 0x10]
mov rax, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
mov rdx, rdi
mov rcx, qword [rsi]
mov qword [rsi], r13
mov qword [rsp + 0x28], rcx
mov qword [rsi + 8], rbx
mov qword [rsp + 0x30], rdx
mov qword [rsi + 0x10], rax
mov qword [rsp + 0x38], r12
mov rax, qword [rsi + 0x18]
mov qword [rsi + 0x18], r14
mov qword [rsp + 0x40], rax
mov rax, r12
sub rax, rdx
je 0x140148733
add rax, 0xfffffffffffffff8
shr rax, 3
not rax
lea rax, [r12 + rax*8]
mov qword [rsp + 0x38], rax
test rcx, rcx
je 0x14014873d
call fcn.1401a2ea8
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401a4270
nop
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14, qword [rsi]
mov rax, rdi
sub rax, r14
ja 0x140148418
mov rax, rbp
sub rax, r14
sar rax, 2
cmp rbp, r14
mov ebx, 1
cmovne rbx, rax
mov rax, rbx
shr rax, 0x3d
jne 0x1401487e4
mov r12, rbx
shr r12, 2
lea rcx, [rbx*8]
call fcn.1401a2e6c
lea r9, [rax + r12*8]
lea r8, [rax + rbx*8]
mov r10, r9
sub rbp, rdi
je 0x1401485cc
mov rbx, rbp
sar rbx, 3
and rbp, 0xfffffffffffffff8
mov r10, rbp
add r10, r9
shl rbx, 3
lea rbp, [rax + r12*8]
xor edx, edx
mov rcx, qword [rdi + rdx]
mov qword [rbp + rdx], rcx
add rdx, 8
cmp rbx, rdx
jne 0x1401487cd
jmp 0x1401485cc
call fcn.1401bfdb0
int3