Function at 0x14011a9a0
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 [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword [rcx + 0x20]
cmp rax, 0x155
jb 0x14011aa42
add rax, 0xfffffffffffffeab
mov qword [rsi + 0x20], rax
mov rdi, qword [rsi + 8]
mov rbx, qword [rsi + 0x10]
mov r14, qword [rdi]
add rdi, 8
mov qword [rsi + 8], rdi
cmp rbx, qword [rsi + 0x18]
jne 0x14011ac87
mov r15, qword [rsi]
mov rax, rdi
sub rax, r15
jbe 0x14011abc1
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
lea rbp, [rax + rcx]
inc rbp
shr rbp, 1
shl rbp, 3
mov rcx, rdi
sub rcx, rbp
mov r8, rbx
sub r8, rdi
mov rdx, rdi
call fcn.1401bcb50
sub rbx, rbp
mov qword [rsi + 0x10], rbx
sub qword [rsi + 8], rbp
jmp 0x14011ac87
mov rdi, qword [rsi + 0x10]
mov rax, qword [rsi]
mov r14, qword [rsi + 8]
mov rbx, rdi
sub rbx, r14
mov rdx, qword [rsi + 0x18]
mov rcx, rdx
sub rcx, rax
cmp rbx, rcx
jae 0x14011aa8a
mov ecx, 0xffc
cmp rdx, rdi
je 0x14011ac55
call fcn.1401b9cac
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
mov rcx, rsi
call fcn.14011adb0
jmp 0x14011ac8f
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 0x14011ada6
mov r13, rbx
sar r13, 3
lea rcx, [rbp*8]
call fcn.1401b9cac
mov r12, rax
mov qword [rsp + 0x28], rax
lea r15, [rax + rbx]
mov qword [rsp + 0x30], r15
lea rax, [rax + rbp*8]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], rax
mov ecx, 0xffc
call fcn.1401b9cac
cmp r13, rbp
jne 0x14011ab1e
test rbx, rbx
jle 0x14011acae
lea rcx, [rbp*4 + 4]
and rcx, 0xfffffffffffffff8
sub r15, rcx
mov qword [rsp + 0x30], r15
mov rbx, qword [rsp + 0x20]
mov qword [r15], rax
lea rdx, [r15 + 8]
mov qword [rsp + 0x38], rdx
mov rax, r14
cmp rdi, r14
je 0x14011ab6c
lea rbx, [rsp + 0x28]
add rdi, 0xfffffffffffffff8
mov rcx, rbx
mov rdx, rdi
call fcn.14011aee0
cmp rdi, qword [rsi + 8]
jne 0x14011ab3c
mov r12, qword [rsp + 0x28]
mov r15, qword [rsp + 0x30]
mov r14, qword [rsi + 0x10]
mov rdx, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rax, rdi
mov rcx, qword [rsi]
mov qword [rsi], r12
mov qword [rsp + 0x28], rcx
mov qword [rsi + 8], r15
mov qword [rsp + 0x30], rax
mov qword [rsi + 0x10], rdx
mov qword [rsp + 0x38], r14
mov rdx, qword [rsi + 0x18]
mov qword [rsi + 0x18], rbx
mov qword [rsp + 0x40], rdx
cmp r14, rax
je 0x14011abae
sub rax, r14
add rax, 7
and rax, 0xfffffffffffffff8
add rax, r14
mov qword [rsp + 0x38], rax
test rcx, rcx
je 0x14011ac8f
call fcn.1401b9ce8
jmp 0x14011ac8f
mov rax, rbx
sub rax, r15
sar rax, 2
cmp rbx, r15
mov ebp, 1
cmovne rbp, rax
mov rax, rbp
shr rax, 0x3d
jne 0x14011ada6
lea rcx, [rbp*8]
call fcn.1401b9cac
mov rcx, rbp
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
lea r8, [rax + rbp*8]
mov r9, rcx
sub rbx, rdi
je 0x14011ac30
mov rbp, rbx
sar rbp, 3
and rbx, 0xfffffffffffffff8
mov r9, rbx
add r9, rcx
shl rbp, 3
xor ebx, ebx
mov rdx, qword [rdi + rbx]
mov qword [rcx + rbx], rdx
add rbx, 8
cmp rbp, rbx
jne 0x14011ac1f
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], r9
mov qword [rsi + 0x18], r8
mov rbx, r9
test r15, r15
je 0x14011ac87
mov rcx, r15
call fcn.1401b9ce8
mov rbx, qword [rsi + 0x10]
jmp 0x14011ac87
call fcn.1401b9cac
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
mov rcx, rsi
call fcn.14011aee0
mov rdi, qword [rsi + 8]
mov rbx, qword [rsi + 0x10]
mov r14, qword [rdi]
add rdi, 8
mov qword [rsi + 8], rdi
cmp rbx, qword [rsi + 0x18]
je 0x14011ad23
mov qword [rbx], r14
add qword [rsi + 0x10], 8
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401bb0d0
nop
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x20], rax
movabs rax, 0x1fffffffffffffff
sar rbx, 2
cmp rdi, r14
mov ebp, 1
cmovne rbp, rbx
cmp rbp, rax
ja 0x14011ada6
lea rcx, [rbp*8]
call fcn.1401b9cac
mov r13, rax
lea rbx, [rax + rbp*8]
and rbp, 0xfffffffffffffffc
lea r15, [rax + rbp*2]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x40], rbx
test r12, r12
je 0x14011ad16
mov rcx, r12
call fcn.1401b9ce8
mov r14, qword [rsi + 8]
mov rdi, qword [rsi + 0x10]
mov r12, r13
mov rax, qword [rsp + 0x20]
jmp 0x14011ab23
mov r15, qword [rsi]
mov rax, rdi
sub rax, r15
ja 0x14011aa04
mov rax, rbx
sub rax, r15
sar rax, 2
cmp rbx, r15
mov ebp, 1
cmovne rbp, rax
mov rax, rbp
shr rax, 0x3d
jne 0x14011ada6
lea rcx, [rbp*8]
call fcn.1401b9cac
mov rcx, rbp
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
lea r8, [rax + rbp*8]
mov r9, rcx
sub rbx, rdi
je 0x14011ac30
mov rbp, rbx
sar rbp, 3
and rbx, 0xfffffffffffffff8
mov r9, rbx
add r9, rcx
shl rbp, 3
xor ebx, ebx
mov rdx, qword [rdi + rbx]
mov qword [rcx + rbx], rdx
add rbx, 8
cmp rbp, rbx
jne 0x14011ad90
jmp 0x14011ac30
call fcn.1401f9cb0
int3