Function at 0x1400f9660
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov dword [rsp + 0x20], 0
mov r8, qword [rdx + 0x10]
add r8, 2
movabs rax, 0xaaaaaaaaaaaaaaab
mul r8
mov rsi, rdx
shr rsi, 1
shl rsi, 2
mov qword [rsp + 0x78], rsi
mov qword [rcx], 0
mov qword [rcx + 0x10], 0
mov qword [rcx + 0x18], shutdown
mov byte [rcx], 0
mov dword [rsp + 0x20], 1
cmp rsi, 0xf
jbe 0x1400f96e6
xor r8d, r8d
mov rdx, rsi
call fcn.140015060
mov qword [rbx + 0x10], 0
xor ebp, ebp
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x1400f98c4
nop word [rax + rax]
mov rcx, rdi
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1400f9710
mov rcx, qword [rdi]
movsx r15, byte [rcx + rbp]
lea r13, [rbp + 2]
lea r12, [r13 - 1]
cmp r12, rax
jae 0x1400f9736
mov rcx, rdi
cmp rdx, 0x10
jb 0x1400f972e
mov rcx, qword [rdi]
movsx rsi, byte [rcx + rbp + 1]
jmp 0x1400f9738
xor esi, esi
cmp r13, rax
jae 0x1400f9751
mov rax, rdi
cmp rdx, 0x10
jb 0x1400f9749
mov rax, qword [rdi]
movsx r14, byte [rax + rbp + 2]
jmp 0x1400f9754
xor r14d, r14d
mov rcx, r15
shr rcx, 2
mov rax, qword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx r9d, byte [rcx + rax]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400f9793
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x1400f9788
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400f97a2
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.140014ef0
and r15d, 3
shl r15, 4
mov rax, rsi
shr rax, 4
or r15, rax
mov rax, qword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx r9d, byte [r15 + rax]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400f97ec
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x1400f97e1
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400f97fb
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.140014ef0
cmp r12, qword [rdi + 0x10]
jae 0x1400f98ae
and esi, 0xf
shl rsi, 2
mov rax, r14
shr rax, 6
or rsi, rax
mov rax, qword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx r9d, byte [rsi + rax]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400f984e
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x1400f9843
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400f985d
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.140014ef0
cmp r13, qword [rdi + 0x10]
jae 0x1400f98ae
and r14d, 0x3f
mov rax, qword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx r9d, byte [r14 + rax]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400f989f
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x1400f9894
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400f98ae
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.140014ef0
add rbp, 3
mov rax, qword [rdi + 0x10]
cmp rbp, rax
jb 0x1400f9700
mov rsi, qword [rsp + 0x78]
mov rcx, qword [rbx + 0x10]
cmp rcx, rsi
je 0x1400f9910
nop dword [rax]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400f98f5
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x1400f98ed
mov rax, qword [rbx]
mov word [rax + rcx], 0x3d
jmp 0x1400f9907
mov r9b, 0x3d
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.140014ef0
mov rcx, qword [rbx + 0x10]
cmp rcx, rsi
jne 0x1400f98d0
mov rax, rbx
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret