Function at 0x180001400
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbp, r8
mov r15, rdx
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
lea rcx, [r8 + 2]
movabs rax, 0xaaaaaaaaaaaaaaab
mul rcx
shr rdx, 1
shl rdx, 2
mov r14, qword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov qword [rbx], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], dil
mov dword [rsp + 0x20], 1
mov rcx, rbx
call fcn.1800016b0
test rbp, rbp
je 0x18000168f
lea esi, [rdi + 2]
movzx eax, byte [rdi + r15]
shr rax, 2
movzx r9d, byte [rax + r14]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1800014ab
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x1800014a0
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1800014b3
mov rcx, rbx
call fcn.180001b70
lea ecx, [rsi - 1]
movzx eax, byte [rdi + r15]
mov rdx, qword [rbx + 0x18]
cmp rcx, rbp
jae 0x1800015dd
lea rdi, [rcx + r15]
mov ecx, eax
and ecx, 3
shl ecx, 4
movzx eax, byte [rdi]
shr eax, 4
add ecx, eax
movzx r9d, byte [rcx + r14]
mov rcx, qword [rbx + 0x10]
cmp rcx, rdx
jae 0x180001509
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x1800014fe
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x180001511
mov rcx, rbx
call fcn.180001b70
mov eax, esi
movzx ecx, byte [rdi]
mov rdx, qword [rbx + 0x18]
cmp rax, rbp
jae 0x1800015a6
lea rdi, [rax + r15]
and ecx, 0xf
movzx eax, byte [rdi]
shr eax, 6
lea eax, [rax + rcx*4]
movzx r9d, byte [rax + r14]
mov rcx, qword [rbx + 0x10]
cmp rcx, rdx
jae 0x180001560
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x180001555
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x180001568
mov rcx, rbx
call fcn.180001b70
movzx eax, byte [rdi]
and eax, 0x3f
movzx r9d, byte [rax + r14]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x180001678
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x180001598
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x180001680
mov rax, rcx
and eax, 0xf
movzx r9d, byte [r14 + rax*4]
mov rcx, qword [rbx + 0x10]
cmp rcx, rdx
jae 0x180001644
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x1800015d2
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x18000164c
and eax, 3
add rax, rax
movzx r9d, byte [r14 + rax*8]
mov rcx, qword [rbx + 0x10]
cmp rcx, rdx
jae 0x180001610
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x180001605
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x180001618
mov rcx, rbx
call fcn.180001b70
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x180001641
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x180001639
mov rax, qword [rbx]
mov word [rax + rcx], 0x3d
jmp 0x18000164c
mov r9b, 0x3d
mov rcx, rbx
call fcn.180001b70
mov rdx, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x10]
cmp rcx, rdx
jae 0x180001675
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
cmp rdx, 0x10
mov rax, rbx
jb 0x18000166d
mov rax, qword [rbx]
mov word [rax + rcx], 0x3d
jmp 0x180001680
mov r9b, 0x3d
mov rcx, rbx
call fcn.180001b70
add esi, 3
lea edi, [rsi - 2]
cmp rdi, rbp
jb 0x180001471
mov rax, rbx
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret