Function at 0x140215f90
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 [0x1403a7038]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword [rcx + 0x20]
cmp rax, 0x400
jb 0x14021600e
add rax, 0xfffffffffffffc00
mov qword [rsi + 0x20], rax
mov rbp, qword [rsi + 8]
mov r13, qword [rsi + 0x10]
mov r15, qword [rbp]
add rbp, 8
mov qword [rsi + 8], rbp
cmp r13, qword [rsi + 0x18]
je 0x140216130
mov qword [r13], r15
add qword [rsi + 0x10], 8
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401d1390
nop
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsi]
mov rdi, qword [rsi + 0x10]
mov rbx, rdi
sub rbx, qword [rsi + 8]
mov rdx, qword [rsi + 0x18]
mov rcx, rdx
sub rcx, rax
cmp rbx, rcx
jb 0x14021623a
sar rcx, 2
cmp rdx, rax
mov edi, 1
cmovne rdi, rcx
lea rax, [rsi + 0x20]
mov qword [rsp + 0x48], rax
mov rax, rdi
shr rax, 0x3d
jne 0x140216363
lea rcx, [rdi*8]
call fcn.1401cfd80
lea r14, [rsp + 0x28]
mov qword [r14], rax
add rbx, rax
mov qword [r14 + 0x10], rbx
mov qword [r14 + 8], rbx
lea rax, [rax + rdi*8]
mov qword [r14 + 0x18], rax
mov ecx, 0x1000
call fcn.1401cfd80
lea rdx, [rsp + 0x20]
mov qword [rdx], rax
mov rcx, r14
call fcn.140054860
mov rdi, qword [rsi + 0x10]
cmp rdi, qword [rsi + 8]
je 0x140216192
lea rbx, [rsp + 0x28]
add rdi, 0xfffffffffffffff8
mov rcx, rbx
mov rdx, rdi
call fcn.1400549a0
cmp rdi, qword [rsi + 8]
jne 0x1402160aa
mov rax, qword [rsi + 0x10]
mov rcx, qword [rsi]
mov rdx, qword [rsp + 0x28]
mov qword [rsi], rdx
mov qword [rsp + 0x28], rcx
mov rdx, qword [rsp + 0x30]
mov qword [rsi + 8], rdx
mov qword [rsp + 0x30], rdi
mov rdx, qword [rsp + 0x38]
mov qword [rsi + 0x10], rdx
mov qword [rsp + 0x38], rax
mov rdx, qword [rsi + 0x18]
mov rbp, qword [rsp + 0x40]
mov qword [rsi + 0x18], rbp
mov qword [rsp + 0x40], rdx
mov rdx, rax
sub rdx, rdi
je 0x14021611d
add rdx, 0xfffffffffffffff8
shr rdx, 3
not rdx
lea rax, [rax + rdx*8]
mov qword [rsp + 0x38], rax
test rcx, rcx
je 0x140215fef
call fcn.1401cfdbc
jmp 0x140215fef
mov r14, qword [rsi]
mov rax, rbp
sub rax, r14
jbe 0x14021619a
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r12, rax
neg r12
shl rax, 3
mov r14, rbp
sub r14, rax
sub r13, rbp
je 0x140216177
mov rcx, r14
mov rdx, rbp
mov r8, r13
call fcn.1401d2e10
mov rbp, qword [rsi + 8]
add r13, r14
mov qword [rsi + 0x10], r13
lea rax, [r12*8]
add rax, rbp
mov qword [rsi + 8], rax
jmp 0x140215fe6
mov rax, rdi
jmp 0x1402160c3
mov rax, r13
sub rax, r14
sar rax, 2
cmp r13, r14
mov ebx, 1
cmovne rbx, rax
mov rax, rbx
shr rax, 0x3d
jne 0x140216363
mov r12, rbx
shr r12, 2
lea rcx, [rbx*8]
call fcn.1401cfd80
lea r9, [rax + r12*8]
lea r8, [rax + rbx*8]
mov r10, r9
sub r13, rbp
je 0x14021620e
mov rbx, r13
sar rbx, 3
and r13, 0xfffffffffffffff8
mov r10, r13
add r10, r9
shl rbx, 3
lea rdx, [rax + r12*8]
xor ecx, ecx
mov rdi, qword [rbp + rcx]
mov qword [rdx + rcx], rdi
add rcx, 8
cmp rbx, rcx
jne 0x1402161fc
mov qword [rsi], rax
mov qword [rsi + 8], r9
mov qword [rsi + 0x10], r10
mov qword [rsi + 0x18], r8
mov r13, r10
test r14, r14
je 0x140215fe6
mov rcx, r14
call fcn.1401cfdbc
mov r13, qword [rsi + 0x10]
jmp 0x140215fe6
mov ecx, 0x1000
cmp rdx, rdi
jne 0x1402162d1
call fcn.1401cfd80
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
mov rcx, rsi
call fcn.140214ed0
mov rdi, qword [rsi + 8]
mov r13, qword [rsi + 0x10]
mov r15, qword [rdi]
add rdi, 8
mov qword [rsi + 8], rdi
cmp r13, qword [rsi + 0x18]
jne 0x140215fe6
mov r14, qword [rsi]
mov rax, rdi
sub rax, r14
jbe 0x1402162eb
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r12, rax
neg r12
shl rax, 3
mov r14, rdi
sub r14, rax
sub r13, rdi
je 0x1402162c1
mov rcx, r14
mov rdx, rdi
mov r8, r13
call fcn.1401d2e10
mov rdi, qword [rsi + 8]
add r13, r14
mov qword [rsi + 0x10], r13
lea rax, [rdi + r12*8]
jmp 0x140216189
call fcn.1401cfd80
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
mov rcx, rsi
call fcn.140214d80
jmp 0x140215fef
mov rax, r13
sub rax, r14
sar rax, 2
cmp r13, r14
mov ebx, 1
cmovne rbx, rax
mov rax, rbx
shr rax, 0x3d
jne 0x140216363
mov r12, rbx
shr r12, 2
lea rcx, [rbx*8]
call fcn.1401cfd80
lea r9, [rax + r12*8]
lea r8, [rax + rbx*8]
mov r10, r9
sub r13, rdi
je 0x14021620e
mov rbx, r13
sar rbx, 3
and r13, 0xfffffffffffffff8
mov r10, r13
add r10, r9
shl rbx, 3
lea rdx, [rax + r12*8]
xor ecx, ecx
mov rbp, qword [rdi + rcx]
mov qword [rdx + rcx], rbp
add rcx, 8
cmp rbx, rcx
jne 0x14021634d
jmp 0x14021620e
call fcn.1401e9f10
int3