Function at 0x1400a5710
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 [0x14019d018]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword [rcx + 0x20]
cmp rax, 0x12
jb 0x1400a57c5
add rax, 0xffffffffffffffee
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 0x1400a59a0
mov r14, qword [rsi]
mov rax, rdi
sub rax, r14
jbe 0x1400a58bd
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
add rax, 1
sar rax, 1
mov rbx, rax
neg rbx
shl rax, 3
mov r14, rdi
sub r14, rax
sub rbp, rdi
je 0x1400a57b1
mov rcx, r14
mov rdx, rdi
mov r8, rbp
call fcn.140139530
mov rdi, qword [rsi + 8]
add rbp, r14
mov qword [rsi + 0x10], rbp
lea rax, [rdi + rbx*8]
mov qword [rsi + 8], rax
jmp 0x1400a59a0
mov r13, qword [rsi + 8]
mov rdi, qword [rsi + 0x10]
mov rbp, rdi
sub rbp, r13
sar rbp, 3
mov rcx, qword [rsi + 0x18]
mov rax, rcx
sub rax, qword [rsi]
mov rdx, rax
sar rdx, 3
cmp rbp, rdx
jae 0x1400a5817
cmp rcx, rdi
je 0x1400a5967
mov ecx, 0xf30
call fcn.1401364e8
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.1400a5b80
jmp 0x1400a5ac7
lea rcx, [rsi + 0x20]
mov rdx, rax
sar rdx, 2
test rax, rax
mov ebx, 1
cmovne rbx, rdx
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rcx
mov rax, rbx
shr rax, 0x3d
jne 0x1400a5b77
lea rcx, [rbx*8]
call fcn.1401364e8
mov r12, rax
mov qword [rsp + 0x28], rax
lea r15, [rax + rbp*8]
mov qword [rsp + 0x30], r15
lea r14, [rax + rbx*8]
mov qword [rsp + 0x40], r14
mov ecx, 0xf30
call fcn.1401364e8
cmp rbp, rbx
jne 0x1400a5a24
mov rdx, r15
sub rdx, r12
jbe 0x1400a59ae
sar rdx, 3
lea rcx, [rdx + 1]
shr rcx, 0x3f
add rcx, rdx
add rcx, 1
shl rcx, 2
and rcx, 0xfffffffffffffff8
sub r15, rcx
mov qword [rsp + 0x30], r15
jmp 0x1400a5a24
mov rax, rbp
sub rax, r14
mov rcx, rax
sar rcx, 2
test rax, rax
mov ebx, 1
cmovne rbx, rcx
mov rax, rbx
shr rax, 0x3d
jne 0x1400a5b77
mov r12, rbx
shr r12, 2
lea rcx, [rbx*8]
call fcn.1401364e8
lea r9, [rax + r12*8]
lea r8, [rax + rbx*8]
mov r10, r9
sub rbp, rdi
je 0x1400a5942
mov rbx, rbp
sar rbx, 3
and rbp, 0xfffffffffffffff8
mov r10, rbp
add r10, r9
shl rbx, 3
lea rbp, [rax + r12*8]
xor ecx, ecx
nop word cs:[rax + rax]
nop dword [rax]
mov rdx, qword [rdi + rcx]
mov qword [rbp + rcx], rdx
add rcx, 8
cmp rbx, rcx
jne 0x1400a5930
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 0x1400a59a0
mov rcx, r14
call fcn.140136524
mov rbp, qword [rsi + 0x10]
jmp 0x1400a59a0
mov ecx, 0xf30
call fcn.1401364e8
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.1400a5cd0
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 0x1400a5ae6
mov qword [rbp], r15
add qword [rsi + 0x10], 8
jmp 0x1400a5ac7
mov qword [rsp + 0x20], rax
movabs rcx, 0x1fffffffffffffff
mov rax, rdx
sar rax, 2
test rdx, rdx
mov ebp, 1
cmovne rbp, rax
cmp rbp, rcx
ja 0x1400a5b77
mov rbx, rbp
and rbx, 0xfffffffffffffffc
lea rcx, [rbp*8]
call fcn.1401364e8
lea r15, [rax + rbx*2]
mov rbx, rax
lea r14, [rax + rbp*8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x40], r14
test r12, r12
je 0x1400a5a1c
mov rcx, r12
call fcn.140136524
mov r13, qword [rsi + 8]
mov rdi, qword [rsi + 0x10]
mov r12, rbx
mov rax, qword [rsp + 0x20]
mov qword [r15], rax
lea rax, [r15 + 8]
mov qword [rsp + 0x38], rax
mov rdx, r13
cmp rdi, r13
je 0x1400a5a70
lea rbx, [rsp + 0x28]
nop dword [rax]
add rdi, 0xfffffffffffffff8
mov rcx, rbx
mov rdx, rdi
call fcn.1400a5cd0
cmp rdi, qword [rsi + 8]
jne 0x1400a5a40
mov r12, qword [rsp + 0x28]
mov r15, qword [rsp + 0x30]
mov r13, qword [rsi + 0x10]
mov rax, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
mov rdx, rdi
mov rcx, qword [rsi]
mov qword [rsi], r12
mov qword [rsp + 0x28], rcx
mov qword [rsi + 8], r15
mov qword [rsp + 0x30], rdx
mov qword [rsi + 0x10], rax
mov qword [rsp + 0x38], r13
mov rax, qword [rsi + 0x18]
mov qword [rsi + 0x18], r14
mov qword [rsp + 0x40], rax
mov rax, r13
sub rax, rdx
je 0x1400a5abd
add rax, 0xfffffffffffffff8
shr rax, 3
not rax
lea rax, [rax*8]
add rax, r13
mov qword [rsp + 0x38], rax
test rcx, rcx
je 0x1400a5ac7
call fcn.140136524
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140136dd0
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 0x1400a5774
mov rax, rbp
sub rax, r14
mov rcx, rax
sar rcx, 2
test rax, rax
mov ebx, 1
cmovne rbx, rcx
mov rax, rbx
shr rax, 0x3d
jne 0x1400a5b77
mov r12, rbx
shr r12, 2
lea rcx, [rbx*8]
call fcn.1401364e8
lea r9, [rax + r12*8]
lea r8, [rax + rbx*8]
mov r10, r9
sub rbp, rdi
je 0x1400a5942
mov rbx, rbp
sar rbx, 3
and rbp, 0xfffffffffffffff8
mov r10, rbp
add r10, r9
shl rbx, 3
lea rbp, [rax + r12*8]
xor ecx, ecx
nop word [rax + rax]
mov rdx, qword [rdi + rcx]
mov qword [rbp + rcx], rdx
add rcx, 8
cmp rbx, rcx
jne 0x1400a5b60
jmp 0x1400a5942
call fcn.14014b3e0
int3