Function at 0x1400ae470
Capabilities:
Encode data using base64

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov r11, r8
mov rdi, rdx
mov r13, rcx
test rcx, rcx
je 0x1400ae72f
test r8, r8
je 0x1400ae72f
mov r14, qword [rsp + 0xa0]
test r14, r14
je 0x1400ae72f
lea rcx, [rdx + 2]
movabs r15, 0xaaaaaaaaaaaaaaab
mov rax, r15
mul rcx
mov r8, rdx
shr r8, 1
shl r8, 2
lea rcx, [r8 + r8]
movabs rax, 0xd79435e50d79435f
mul rcx
shr rdx, 6
lea rax, [r8 + rdx + 2]
cmp r9, rax
jae 0x1400ae506
or eax, 0xffffffff
jmp 0x1400ae736
xor r12d, r12d
mov qword [rsp + 0x30], r12
xor r10d, r10d
mov qword [rsp + 0x28], r10
xor esi, esi
mov dword [rsp + 0x20], esi
xor ebx, ebx
lea r9, [0x140228ed0]
mov qword [rsp + 0x38], rbx
mov rax, r15
mul rdi
shr rdx, 1
cmp rbx, rdx
jae 0x1400ae62b
movzx edx, byte [r12 + r13]
inc r12
mov qword [rsp + 0x30], r12
movzx r9d, byte [r12 + r13]
inc r12
mov qword [rsp + 0x30], r12
movzx r8d, byte [r12 + r13]
inc r12
mov qword [rsp + 0x30], r12
mov eax, edx
sar rax, 2
and eax, 0x3f
lea rcx, [0x140228ed0]
movzx eax, byte [rax + rcx]
mov byte [r10 + r11], al
inc r10
mov qword [rsp + 0x28], r10
mov ecx, r9d
sar rcx, 4
and ecx, 0xf
and edx, 3
shl edx, 4
movsxd rax, edx
or rcx, rax
lea rax, [0x140228ed0]
movzx eax, byte [rcx + rax]
mov byte [r10 + r11], al
inc r10
mov qword [rsp + 0x28], r10
mov edx, r8d
and r9d, 0xf
shl r9d, 2
movsxd rcx, r9d
mov eax, r8d
sar rax, 6
and eax, 3
or rcx, rax
lea r9, [0x140228ed0]
movzx eax, byte [rcx + r9]
mov byte [r10 + r11], al
inc r10
mov qword [rsp + 0x28], r10
and edx, 0x3f
movzx eax, byte [rdx + r9]
mov byte [r10 + r11], al
inc r10
mov qword [rsp + 0x28], r10
add esi, 4
mov dword [rsp + 0x20], esi
cmp esi, 0x49
jl 0x1400ae623
mov byte [r10 + r11], 0xd
inc r10
mov qword [rsp + 0x28], r10
mov byte [r10 + r11], 0xa
inc r10
mov qword [rsp + 0x28], r10
xor esi, esi
mov dword [rsp + 0x20], esi
inc rbx
jmp 0x1400ae525
mov rax, r15
mul rdi
shr rdx, 1
lea rax, [rdx + rdx*2]
sub rdi, rax
je 0x1400ae70b
dec rdi
je 0x1400ae6b8
dec rdi
jne 0x1400ae725
movzx edx, byte [r12 + r13]
inc r12
mov qword [rsp + 0x30], r12
movzx r8d, byte [r12 + r13]
mov eax, edx
sar rax, 2
and eax, 0x3f
movzx eax, byte [rax + r9]
mov byte [r10 + r11], al
inc r10
mov qword [rsp + 0x28], r10
mov ecx, r8d
sar rcx, 4
and ecx, 0xf
and edx, 3
shl edx, 4
movsxd rax, edx
or rcx, rax
movzx eax, byte [rcx + r9]
mov byte [r10 + r11], al
inc r10
mov qword [rsp + 0x28], r10
and r8d, 0xf
shl r8d, 2
movsxd rax, r8d
movzx eax, byte [rax + r9]
mov byte [r10 + r11], al
jmp 0x1400ae6f6
movzx ecx, byte [r12 + r13]
mov eax, ecx
sar rax, 2
and eax, 0x3f
movzx eax, byte [rax + r9]
mov byte [r10 + r11], al
inc r10
mov qword [rsp + 0x28], r10
and ecx, 3
shl ecx, 4
movsxd rax, ecx
movzx eax, byte [rax + r9]
mov byte [r10 + r11], al
inc r10
mov qword [rsp + 0x28], r10
mov byte [r10 + r11], 0x3d
inc r10
mov qword [rsp + 0x28], r10
mov byte [r10 + r11], 0x3d
inc r10
mov qword [rsp + 0x28], r10
mov byte [r10 + r11], 0xd
inc r10
mov qword [rsp + 0x28], r10
mov byte [r10 + r11], 0xa
inc r10
mov qword [rsp + 0x28], r10
mov byte [r10 + r11], 0
mov qword [r14], r10
jmp 0x1400ae734
or eax, 0xffffffff
jmp 0x1400ae736
xor eax, eax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret