Function at 0x14013d210
Capabilities:
Encode data using base64

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, 0x28
call fcn.14028b850
sub rsp, rax
mov dword [rsp + 0x10], 0
cmp qword [rsp + 0x30], 0
je 0x14013d25e
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x5c]
and eax, 2
test eax, eax
je 0x14013d25e
lea rax, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._
mov qword [rsp + 8], rax
jmp 0x14013d26a
lea rax, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov qword [rsp + 8], rax
mov eax, dword [rsp + 0x48]
mov dword [rsp], eax
jmp 0x14013d27c
mov eax, dword [rsp]
sub eax, 3
mov dword [rsp], eax
cmp dword [rsp], 0
jle 0x14013d45a
cmp dword [rsp], 3
jl 0x14013d364
mov rax, qword [rsp + 0x40]
movzx edx, byte [rax]
shl edx, 0x10
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 1]
shl eax, 8
or edx, eax
mov rax, qword [rsp + 0x40]
movzx ecx, byte [rax + 2]
mov eax, edx
or eax, ecx
mov dword [rsp + 0x14], eax
mov eax, dword [rsp + 0x14]
shr eax, 0x12
and eax, 0x3f
mov edx, eax
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 8]
movzx eax, byte [rax + rdx]
mov byte [rcx], al
mov rax, qword [rsp + 0x38]
add rax, 1
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x14]
shr eax, 0xc
and eax, 0x3f
mov edx, eax
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 8]
movzx eax, byte [rax + rdx]
mov byte [rcx], al
mov rax, qword [rsp + 0x38]
add rax, 1
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x14]
shr eax, 6
and eax, 0x3f
mov edx, eax
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 8]
movzx eax, byte [rax + rdx]
mov byte [rcx], al
mov rax, qword [rsp + 0x38]
add rax, 1
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x14]
and eax, 0x3f
mov edx, eax
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 8]
movzx eax, byte [rax + rdx]
mov byte [rcx], al
mov rax, qword [rsp + 0x38]
add rax, 1
mov qword [rsp + 0x38], rax
jmp 0x14013d43c
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax]
shl eax, 0x10
mov dword [rsp + 0x14], eax
cmp dword [rsp], 2
jne 0x14013d38f
mov rax, qword [rsp + 0x40]
movzx ecx, byte [rax + 1]
shl ecx, 8
mov eax, dword [rsp + 0x14]
or eax, ecx
mov dword [rsp + 0x14], eax
mov eax, dword [rsp + 0x14]
shr eax, 0x12
and eax, 0x3f
mov edx, eax
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 8]
movzx eax, byte [rax + rdx]
mov byte [rcx], al
mov rax, qword [rsp + 0x38]
add rax, 1
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x14]
shr eax, 0xc
and eax, 0x3f
mov edx, eax
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 8]
movzx eax, byte [rax + rdx]
mov byte [rcx], al
mov rax, qword [rsp + 0x38]
add rax, 1
mov qword [rsp + 0x38], rax
cmp dword [rsp], 1
jne 0x14013d3f3
mov dword [rsp + 0x18], 0x3d
jmp 0x14013d40c
mov eax, dword [rsp + 0x14]
shr eax, 6
and eax, 0x3f
mov ecx, eax
mov rax, qword [rsp + 8]
movzx eax, byte [rax + rcx]
mov dword [rsp + 0x18], eax
mov rcx, qword [rsp + 0x38]
movzx eax, byte [rsp + 0x18]
mov byte [rcx], al
mov rax, qword [rsp + 0x38]
add rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0x3d
mov rax, qword [rsp + 0x38]
add rax, 1
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x10]
add eax, 4
mov dword [rsp + 0x10], eax
mov rax, qword [rsp + 0x40]
add rax, 3
mov qword [rsp + 0x40], rax
jmp 0x14013d273
mov rax, qword [rsp + 0x38]
mov byte [rax], 0
mov eax, dword [rsp + 0x10]
add rsp, 0x28
ret