Function at 0x140144810
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 [0x14021b038]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword [rcx + 0x20]
cmp rax, 0x400
jb 0x14014488d
add rax, 0xfffffffffffffc00
mov qword [rsi + 0x20], rax
mov rbx, qword [rsi + 8]
mov rbp, qword [rsi + 0x10]
mov r15, qword [rbx]
add rbx, 8
mov qword [rsi + 8], rbx
cmp rbp, qword [rsi + 0x18]
je 0x1401449af
mov qword [rbp], r15
add qword [rsi + 0x10], 8
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140111870
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 + 0x10]
mov rbx, rax
sub rbx, qword [rsi + 8]
mov rdx, qword [rsi + 0x18]
mov rcx, rdx
sub rcx, qword [rsi]
cmp rbx, rcx
jb 0x140144aac
lea rax, [rsi + 0x20]
mov rdx, rcx
sar rdx, 2
test rcx, rcx
mov edi, 1
cmovne rdi, rdx
mov qword [rsp + 0x48], rax
mov rax, rdi
shr rax, 0x3d
jne 0x140144bf4
lea rcx, [rdi*8]
call fcn.1401109bc
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.1401109bc
lea rdx, [rsp + 0x20]
mov qword [rdx], rax
mov rcx, r14
call fcn.140027fe0
mov rdi, qword [rsi + 0x10]
cmp rdi, qword [rsi + 8]
je 0x140144a0a
lea rbx, [rsp + 0x28]
add rdi, 0xfffffffffffffff8
mov rcx, rbx
mov rdx, rdi
call fcn.140028120
cmp rdi, qword [rsi + 8]
jne 0x140144929
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 0x14014499c
add rdx, 0xfffffffffffffff8
shr rdx, 3
not rdx
lea rax, [rax + rdx*8]
mov qword [rsp + 0x38], rax
test rcx, rcx
je 0x14014486e
call fcn.1401109f8
jmp 0x14014486e
mov r14, qword [rsi]
mov rax, rbx
sub rax, r14
jbe 0x140144a12
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 rbp, rbx
je 0x1401449f6
mov rcx, r14
mov rdx, rbx
mov r8, rbp
call fcn.140113df0
mov rbx, qword [rsi + 8]
add rbp, r14
mov qword [rsi + 0x10], rbp
lea rax, [rbx + r12*8]
mov qword [rsi + 8], rax
jmp 0x140144865
mov rax, rdi
jmp 0x140144942
mov rax, rbp
sub rax, r14
mov rcx, rax
sar rcx, 2
test rax, rax
mov r13d, 1
cmovne r13, rcx
mov rax, r13
shr rax, 0x3d
jne 0x140144bf4
mov r12, r13
shr r12, 2
lea rcx, [r13*8]
call fcn.1401109bc
lea r9, [rax + r12*8]
lea r8, [rax + r13*8]
mov r10, r9
sub rbp, rbx
je 0x140144a80
lea r10, [r9 + rbp]
sar rbp, 3
shl rbp, 3
lea rcx, [rax + r12*8]
xor edx, edx
mov rdi, qword [rbx + rdx]
mov qword [rcx + rdx], rdi
add rdx, 8
cmp rbp, rdx
jne 0x140144a6f
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 0x140144865
mov rcx, r14
call fcn.1401109f8
mov rbp, qword [rsi + 0x10]
jmp 0x140144865
mov ecx, 0x1000
cmp rdx, rax
jne 0x140144aec
call fcn.1401109bc
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
mov rcx, rsi
call fcn.140144d40
mov rbx, qword [rsi + 8]
mov rdi, qword [rsi + 0x10]
mov r15, qword [rbx]
add rbx, 8
mov qword [rsi + 8], rbx
cmp rdi, qword [rsi + 0x18]
je 0x140144b06
mov qword [rdi], r15
jmp 0x140144869
call fcn.1401109bc
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
mov rcx, rsi
call fcn.140144c00
jmp 0x14014486e
mov r14, qword [rsi]
mov rax, rbx
sub rax, r14
jbe 0x140144b5e
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 0x140144b4d
mov rcx, r14
mov rdx, rbx
mov r8, rdi
call fcn.140113df0
mov rbx, qword [rsi + 8]
add rdi, r14
mov qword [rsi + 0x10], rdi
lea rax, [rbx + r12*8]
mov qword [rsi + 8], rax
jmp 0x140144ae4
mov rax, rdi
sub rax, r14
mov rcx, rax
sar rcx, 2
test rax, rax
mov r13d, 1
cmovne r13, rcx
mov rax, r13
shr rax, 0x3d
jne 0x140144bf4
mov r12, r13
shr r12, 2
lea rcx, [r13*8]
call fcn.1401109bc
lea r9, [rax + r12*8]
lea r8, [rax + r13*8]
mov r10, r9
sub rdi, rbx
je 0x140144bc8
lea r10, [r9 + rdi]
sar rdi, 3
shl rdi, 3
lea rcx, [rax + r12*8]
xor edx, edx
mov rbp, qword [rbx + rdx]
mov qword [rcx + rdx], rbp
add rdx, 8
cmp rdi, rdx
jne 0x140144bb7
mov qword [rsi], rax
mov qword [rsi + 8], r9
mov qword [rsi + 0x10], r10
mov qword [rsi + 0x18], r8
mov rdi, r10
test r14, r14
je 0x140144ae4
mov rcx, r14
call fcn.1401109f8
mov rdi, qword [rsi + 0x10]
jmp 0x140144ae4
call fcn.140124830
int3