Function at 0x14003d0f0
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 0x14003d41a
test r8, r8
je 0x14003d41a
mov r14, qword [rsp + 0xa0]
test r14, r14
je 0x14003d41a
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 0x14003d186
or eax, 0xffffffff
jmp 0x14003d421
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
mov qword [rsp + 0x38], rbx
lea r9, [0x1400f00b0]
nop
nop
mov rax, r15
mul rdi
shr rdx, 1
cmp rbx, rdx
jae 0x14003d2bd
movzx edx, byte [r12 + r13]
add r12, 1
mov qword [rsp + 0x30], r12
movzx r9d, byte [r12 + r13]
add r12, 1
mov qword [rsp + 0x30], r12
movzx r8d, byte [r12 + r13]
add r12, 1
mov qword [rsp + 0x30], r12
mov eax, edx
sar al, 2
and eax, 0x3f
lea rcx, [0x1400f00b0]
movzx eax, byte [rax + rcx]
mov byte [r10 + r11], al
add r10, 1
mov qword [rsp + 0x28], r10
mov ecx, r9d
sar cl, 4
and ecx, 0xf
and edx, 3
shl edx, 4
movsxd rax, edx
or rcx, rax
lea rax, [0x1400f00b0]
movzx eax, byte [rcx + rax]
mov byte [r10 + r11], al
add r10, 1
mov qword [rsp + 0x28], r10
and r9d, 0xf
shl r9d, 2
movsxd rcx, r9d
mov al, r8b
sar al, 6
and eax, 3
or rcx, rax
lea r9, [0x1400f00b0]
movzx eax, byte [rcx + r9]
mov byte [r10 + r11], al
add r10, 1
mov qword [rsp + 0x28], r10
mov al, r8b
and eax, 0x3f
movzx eax, byte [rax + r9]
mov byte [r10 + r11], al
add r10, 1
mov qword [rsp + 0x28], r10
add esi, 4
mov dword [rsp + 0x20], esi
cmp esi, 0x49
jl 0x14003d2af
mov byte [r10 + r11], 0xd
add r10, 1
mov qword [rsp + 0x28], r10
mov byte [r10 + r11], 0xa
add r10, 1
mov qword [rsp + 0x28], r10
xor esi, esi
mov dword [rsp + 0x20], esi
add rbx, 1
mov qword [rsp + 0x38], rbx
jmp 0x14003d1b0
mov rax, r15
mul rdi
shr rdx, 1
lea rax, [rdx + rdx*2]
sub rdi, rax
je 0x14003d3f4
sub rdi, 1
je 0x14003d380
cmp rdi, 1
jne 0x14003d410
movzx edx, byte [r12 + r13]
add r12, rdi
mov qword [rsp + 0x30], r12
movzx r8d, byte [r12 + r13]
mov eax, edx
sar al, 2
and eax, 0x3f
movzx eax, byte [rax + r9]
mov byte [r10 + r11], al
add r10, rdi
mov qword [rsp + 0x28], r10
mov ecx, r8d
sar cl, 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
add r10, rdi
mov qword [rsp + 0x28], r10
and r8d, 0xf
shl r8d, 2
movsxd rax, r8d
movzx eax, byte [rax + r9]
mov byte [r10 + r11], al
add r10, rdi
mov qword [rsp + 0x28], r10
mov byte [r10 + r11], 0x3d
add r10, rdi
mov qword [rsp + 0x28], r10
mov byte [r10 + r11], 0xd
add r10, rdi
mov qword [rsp + 0x28], r10
mov byte [r10 + r11], 0xa
add r10, rdi
mov qword [rsp + 0x28], r10
jmp 0x14003d410
movzx ecx, byte [r12 + r13]
mov eax, ecx
sar al, 2
and eax, 0x3f
movzx eax, byte [rax + r9]
mov byte [r10 + r11], al
add r10, 1
mov qword [rsp + 0x28], r10
and ecx, 3
shl ecx, 4
movsxd rax, ecx
movzx eax, byte [rax + r9]
mov byte [r10 + r11], al
add r10, 1
mov qword [rsp + 0x28], r10
mov byte [r10 + r11], 0x3d
add r10, 1
mov qword [rsp + 0x28], r10
mov byte [r10 + r11], 0x3d
add r10, 1
mov qword [rsp + 0x28], r10
mov byte [r10 + r11], 0xd
add r10, 1
mov qword [rsp + 0x28], r10
mov byte [r10 + r11], 0xa
add r10, 1
mov qword [rsp + 0x28], r10
jmp 0x14003d410
mov byte [r10 + r11], 0xd
add r10, 1
mov qword [rsp + 0x28], r10
mov byte [r10 + r11], 0xa
add r10, 1
mov qword [rsp + 0x28], r10
mov byte [r10 + r11], 0
mov qword [r14], r10
jmp 0x14003d41f
or eax, 0xffffffff
jmp 0x14003d421
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