Function at 0x140104f50
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
mov r13, rcx
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rax, qword [rcx + 0x20]
cmp rax, 0x14
jae 0x140105066
mov rax, qword [r13 + 0x10]
mov rbx, rax
sub rbx, qword [r13 + 8]
mov rdx, qword [r13 + 0x18]
mov rcx, rdx
sub rcx, qword [r13]
cmp rbx, rcx
jb 0x140105095
lea rax, [r13 + 0x20]
mov rdx, rcx
sar rdx, 2
test rcx, rcx
mov esi, 1
cmovne rsi, rdx
mov qword [rsp + 0x50], rax
mov rax, rsi
shr rax, 0x3d
jne 0x14010528d
lea rcx, [rsi*8]
call fcn.1400c9cbc
lea rdi, [rsp + 0x30]
mov qword [rdi], rax
add rbx, rax
mov qword [rdi + 0x10], rbx
mov qword [rdi + 8], rbx
lea rax, [rax + rsi*8]
mov qword [rdi + 0x18], rax
mov ecx, 0xfa0
call fcn.1400c9cbc
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
mov rcx, rdi
call fcn.1401052a0
mov rdi, qword [r13 + 0x10]
cmp rdi, qword [r13 + 8]
jne 0x140105157
mov rcx, qword [r13]
mov rax, qword [rsp + 0x30]
mov qword [r13], rax
mov rax, qword [rsp + 0x38]
mov qword [r13 + 8], rax
mov rax, qword [rsp + 0x40]
mov qword [r13 + 0x10], rax
mov rax, qword [rsp + 0x48]
mov qword [r13 + 0x18], rax
test rcx, rcx
jne 0x140105177
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400ccfe0
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
add rax, 0xffffffffffffffec
mov qword [r13 + 0x20], rax
mov rbx, qword [r13 + 8]
mov rdi, qword [r13 + 0x10]
mov r15, qword [rbx]
add rbx, 8
mov qword [r13 + 8], rbx
cmp rdi, qword [r13 + 0x18]
je 0x14010519b
mov qword [rdi], r15
add qword [r13 + 0x10], 8
jmp 0x140105048
mov ecx, 0xfa0
cmp rdx, rax
jne 0x140105181
call fcn.1400c9cbc
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov rcx, r13
call fcn.14018d2e0
mov rbx, qword [r13 + 8]
mov rdi, qword [r13 + 0x10]
mov r15, qword [rbx]
add rbx, 8
mov qword [r13 + 8], rbx
cmp rdi, qword [r13 + 0x18]
jne 0x14010508b
mov r14, qword [r13]
mov rax, rbx
sub rax, r14
ja 0x1401051a7
mov rax, rdi
sub rax, r14
mov rcx, rax
sar rcx, 2
test rax, rax
mov esi, 1
cmovne rsi, rcx
mov rax, rsi
shr rax, 0x3d
jne 0x14010528d
mov r12, rsi
shr r12, 2
lea rcx, [rsi*8]
call fcn.1400c9cbc
lea r9, [rax + r12*8]
lea r8, [rax + rsi*8]
mov r10, r9
sub rdi, rbx
je 0x140105260
lea r10, [r9 + rdi]
sar rdi, 3
shl rdi, 3
lea rsi, [rax + r12*8]
xor ecx, ecx
mov rdx, qword [rbx + rcx]
mov qword [rsi + rcx], rdx
add rcx, 8
cmp rdi, rcx
jne 0x140105141
jmp 0x140105260
lea rbx, [rsp + 0x30]
add rdi, 0xfffffffffffffff8
mov rcx, rbx
mov rdx, rdi
call fcn.14018d2e0
cmp rdi, qword [r13 + 8]
je 0x140105017
jmp 0x14010515c
call fcn.1400c9cac
jmp 0x140105048
call fcn.1400c9cbc
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov rcx, r13
call fcn.14018d1a0
jmp 0x140105048
mov r14, qword [r13]
mov rax, rbx
sub rax, r14
jbe 0x1401051f7
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, rbx
sub r14, rax
sub rdi, rbx
je 0x1401051e3
mov rcx, r14
mov rdx, rbx
mov r8, rdi
call fcn.1400cf0a0
mov rbx, qword [r13 + 8]
add rdi, r14
mov qword [r13 + 0x10], rdi
lea rax, [rbx + r12*8]
mov qword [r13 + 8], rax
jmp 0x14010508b
mov rax, rdi
sub rax, r14
mov rcx, rax
sar rcx, 2
test rax, rax
mov esi, 1
cmovne rsi, rcx
mov rax, rsi
shr rax, 0x3d
jne 0x14010528d
mov r12, rsi
shr r12, 2
lea rcx, [rsi*8]
call fcn.1400c9cbc
lea r9, [rax + r12*8]
lea r8, [rax + rsi*8]
mov r10, r9
sub rdi, rbx
je 0x140105260
lea r10, [r9 + rdi]
sar rdi, 3
shl rdi, 3
lea rsi, [rax + r12*8]
xor ecx, ecx
mov rdx, qword [rbx + rcx]
mov qword [rsi + rcx], rdx
add rcx, 8
cmp rdi, rcx
jne 0x14010524f
mov qword [r13], rax
mov qword [r13 + 8], r9
mov qword [r13 + 0x10], r10
mov qword [r13 + 0x18], r8
mov rdi, r10
test r14, r14
je 0x14010508b
mov rcx, r14
call fcn.1400c9cac
mov rdi, qword [r13 + 0x10]
jmp 0x14010508b
call fcn.1400c9fe0
int3