Function at 0x14000d5d0
Capabilities:
Encode data using base64

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor esi, esi
mov qword [rcx + 0x18], 0xf
mov qword [rcx], rsi
mov ebp, r8d
mov qword [rcx + 0x10], rsi
mov r14, rdx
mov rbx, rcx
mov edi, esi
test r8d, r8d
je 0x14000d857
mov qword [rsp + 0x68], r12
mov ecx, esi
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r15
movzx eax, byte [r14]
lea r14, [r14 + 1]
mov byte [rsp + rcx + 0x70], al
dec ebp
movzx r13d, byte [rsp + 0x72]
inc rcx
movzx r15d, byte [rsp + 0x71]
inc edi
movzx r12d, byte [rsp + 0x70]
cmp rcx, 3
jne 0x14000d6f3
movzx eax, r12b
movzx ecx, r12b
shr al, 2
and cl, 3
mov byte [rsp + 0x60], al
mov rdi, rsi
shl cl, 4
movzx eax, r15b
shr al, 4
add cl, al
movzx eax, r13b
mov byte [rsp + 0x61], cl
movzx ecx, r15b
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
movzx eax, r13b
and al, 0x3f
mov byte [rsp + 0x62], cl
mov byte [rsp + 0x63], al
nop word [rax + rax]
cmp qword [0x140271478], 0x10
lea rcx, [0x140271460]
movzx eax, byte [rsp + rdi + 0x60]
cmovae rcx, qword [0x140271460]
mov rdx, qword [rbx + 0x18]
movzx r9d, byte [rax + rcx]
mov rcx, qword [rbx + 0x10]
cmp rcx, rdx
jae 0x14000d6dd
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x14000d6d2
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], sil
jmp 0x14000d6e5
mov rcx, rbx
call fcn.140018460
inc rdi
cmp rdi, 4
jl 0x14000d690
mov edi, esi
mov rcx, rsi
test ebp, ebp
jne 0x14000d611
test edi, edi
je 0x14000d83a
mov r14d, 3
cmp edi, r14d
jge 0x14000d73a
mov eax, r14d
lea rcx, [rsp + 0x70]
sub eax, edi
xor edx, edx
movsxd r8, eax
movsxd rax, edi
add rcx, rax
call fcn.14001e430
movzx r13d, byte [rsp + 0x72]
movzx r15d, byte [rsp + 0x71]
movzx r12d, byte [rsp + 0x70]
movzx eax, r12b
and r12b, r14b
shr al, 2
mov byte [rsp + 0x60], al
movzx eax, r15b
shr al, 4
and r15b, 0xf
shl r12b, 4
add r12b, al
shl r15b, 2
movzx eax, r13b
mov byte [rsp + 0x61], r12b
shr al, 6
and r13b, 0x3f
add r15b, al
mov byte [rsp + 0x63], r13b
lea eax, [rdi + 1]
mov byte [rsp + 0x62], r15b
movsxd rbp, eax
test eax, eax
jle 0x14000d7e9
lea r15, [0x140271460]
nop dword [rax]
cmp qword [0x140271478], 0x10
mov rcx, r15
movzx eax, byte [rsp + rsi + 0x60]
cmovae rcx, qword [0x140271460]
mov rdx, qword [rbx + 0x18]
movzx r9d, byte [rax + rcx]
mov rcx, qword [rbx + 0x10]
cmp rcx, rdx
jae 0x14000d7d9
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x14000d7ce
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14000d7e1
mov rcx, rbx
call fcn.140018460
inc rsi
cmp rsi, rbp
jl 0x14000d790
cmp edi, r14d
jge 0x14000d83a
sub r14d, edi
movsxd rdi, r14d
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x14000d829
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x14000d821
mov rax, qword [rbx]
mov word [rax + rcx], 0x3d
jmp 0x14000d834
mov r9b, 0x3d
mov rcx, rbx
call fcn.140018460
sub rdi, 1
jne 0x14000d800
mov r13, qword [rsp + 0x28]
mov rax, rbx
mov r12, qword [rsp + 0x68]
mov r15, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rax, rbx
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret