Function at 0x1400bfffc
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
mov rsi, rdx
mov qword [rsp + 0x60], rcx
mov r14, qword [rdx + 0x10]
mov ecx, 3
mov rax, r14
xor edx, edx
div rcx
mov rbx, rdx
mov rdi, rax
shl rdi, 2
test rdx, rdx
je 0x1400c069d
mov rcx, r14
shr rcx, 0x3e
add rdi, 4
setb al
cmp ecx, 2
ja 0x1400c06ad
test al, al
jne 0x1400c06ad
mov rcx, rdi
mov dl, 1
call fcn.14004a8ea
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x58], rsi
mov rax, qword [rsi]
mov qword [rsp + 0x38], rax
xor ebp, ebp
mov rax, r14
mov edi, 0
sub rax, 0x1a
cmovb rax, rbp
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], rbx
jbe 0x1400c04ed
xor ebp, ebp
lea r12, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_internal_error:_entered_unreachable_code:
xor esi, esi
mov rdi, rsi
mov rbx, rbp
add rsi, 0x1a
lea rax, [0x1401187e0]
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov rdx, rsi
mov r8, qword [rsp + 0x38]
mov r9, r14
call fcn.14004a937
mov r14, rax
mov r13, rdx
add rbp, 0x20
lea rax, [0x1401187f8]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
mov r8, rbx
mov r9, rbp
call fcn.140033ebd
mov rbx, rax
mov r15, rdx
mov rcx, r14
mov rdx, r13
xor r8d, r8d
lea r9, [0x140118810]
call fcn.140033f8f
mov rcx, rax
call fcn.140033efb
test r15, r15
je 0x1400c081f
mov rcx, rax
shr rcx, 0x3a
mov cl, byte [rcx + r12]
mov byte [rbx], cl
cmp r15, 1
je 0x1400c082f
mov rcx, rax
shr rcx, 0x34
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 1], cl
cmp r15, 2
jbe 0x1400c0845
mov rcx, rax
shr rcx, 0x2e
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 2], cl
cmp r15, 3
je 0x1400c085b
mov rcx, rax
shr rcx, 0x28
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 3], cl
cmp r15, 4
jbe 0x1400c0871
mov rcx, rax
shr rcx, 0x22
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 4], cl
cmp r15, 5
je 0x1400c0887
mov rcx, rax
shr rcx, 0x1c
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 5], cl
cmp r15, 6
jbe 0x1400c089d
mov ecx, eax
shr ecx, 0x16
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 6], cl
cmp r15, 7
je 0x1400c08b3
shr eax, 0x10
and eax, 0x3f
mov al, byte [rax + r12]
mov byte [rbx + 7], al
mov r8d, 6
mov rcx, r14
mov rdx, r13
lea r9, [0x1401188e8]
call fcn.140033f8f
mov rcx, rax
call fcn.140033efb
cmp r15, 8
jbe 0x1400c08c9
mov rcx, rax
shr rcx, 0x3a
mov cl, byte [rcx + r12]
mov byte [rbx + 8], cl
cmp r15, 9
je 0x1400c08df
mov rcx, rax
shr rcx, 0x34
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 9], cl
cmp r15, 0xa
jbe 0x1400c08f5
mov rcx, rax
shr rcx, 0x2e
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0xa], cl
cmp r15, 0xb
je 0x1400c090b
mov rcx, rax
shr rcx, 0x28
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0xb], cl
cmp r15, 0xc
jbe 0x1400c0921
mov rcx, rax
shr rcx, 0x22
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0xc], cl
cmp r15, 0xd
je 0x1400c0937
mov rcx, rax
shr rcx, 0x1c
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0xd], cl
cmp r15, 0xe
jbe 0x1400c094d
mov ecx, eax
shr ecx, 0x16
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0xe], cl
cmp r15, 0xf
je 0x1400c0963
shr eax, 0x10
and eax, 0x3f
mov al, byte [rax + r12]
mov byte [rbx + 0xf], al
mov r8d, 0xc
mov rcx, r14
mov rdx, r13
lea r9, [0x1401189c0]
call fcn.140033f8f
mov rcx, rax
call fcn.140033efb
cmp r15, 0x10
jbe 0x1400c0979
mov rcx, rax
shr rcx, 0x3a
mov cl, byte [rcx + r12]
mov byte [rbx + 0x10], cl
cmp r15, 0x11
je 0x1400c098f
mov rcx, rax
shr rcx, 0x34
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x11], cl
cmp r15, 0x12
jbe 0x1400c09a5
mov rcx, rax
shr rcx, 0x2e
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x12], cl
cmp r15, 0x13
je 0x1400c09bb
mov rcx, rax
shr rcx, 0x28
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x13], cl
cmp r15, 0x14
jbe 0x1400c09d1
mov rcx, rax
shr rcx, 0x22
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x14], cl
cmp r15, 0x15
je 0x1400c09e7
mov rcx, rax
shr rcx, 0x1c
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x15], cl
cmp r15, 0x16
jbe 0x1400c09fd
mov ecx, eax
shr ecx, 0x16
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x16], cl
cmp r15, 0x17
je 0x1400c0a13
shr eax, 0x10
and eax, 0x3f
mov al, byte [rax + r12]
mov byte [rbx + 0x17], al
mov r8d, 0x12
mov rcx, r14
mov rdx, r13
lea r9, [0x140118a98]
call fcn.140033f8f
mov rcx, rax
call fcn.140033efb
cmp r15, 0x18
jbe 0x1400c0a29
mov rcx, rax
shr rcx, 0x3a
mov cl, byte [rcx + r12]
mov byte [rbx + 0x18], cl
cmp r15, 0x19
je 0x1400c0a3f
mov rcx, rax
shr rcx, 0x34
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x19], cl
cmp r15, 0x1a
jbe 0x1400c0a52
mov rcx, rax
shr rcx, 0x2e
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x1a], cl
cmp r15, 0x1b
je 0x1400c0a65
mov rcx, rax
shr rcx, 0x28
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x1b], cl
cmp r15, 0x1c
jbe 0x1400c0a78
mov rcx, rax
shr rcx, 0x22
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x1c], cl
cmp r15, 0x1d
je 0x1400c0a8b
mov rcx, rax
shr rcx, 0x1c
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x1d], cl
cmp r15, 0x1e
jbe 0x1400c0a9e
mov ecx, eax
shr ecx, 0x16
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x1e], cl
cmp r15, 0x1f
je 0x1400c0ab1
shr eax, 0x10
and eax, 0x3f
mov al, byte [rax + r12]
mov byte [rbx + 0x1f], al
add rsi, 0xfffffffffffffffe
cmp rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x50]
jbe 0x1400c00bf
add rdi, 0x18
mov rbx, qword [rsp + 0x48]
mov rsi, r14
sub rsi, rbx
lea r13, [0x140118720]
lea r12, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_internal_error:_entered_unreachable_code:
cmp rdi, rsi
jae 0x1400c05fe
lea rbx, [rdi + 3]
lea rax, [0x140118708]
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov rdx, rbx
mov r8, qword [rsp + 0x38]
mov r9, r14
call fcn.14004a937
mov r14, rax
mov r15, rdx
lea rdi, [rbp + 4]
mov qword [rsp + 0x20], r13
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
mov r8, rbp
mov r9, rdi
call fcn.140033ebd
test r15, r15
je 0x1400c07c1
test rdx, rdx
je 0x1400c07ca
movzx ecx, byte [r14]
shr ecx, 2
mov cl, byte [rcx + r12]
mov byte [rax], cl
cmp r15, 1
jbe 0x1400c07d3
cmp rdx, 1
jbe 0x1400c07dc
mov cl, byte [r14]
mov r8b, byte [r14 + 1]
shr r8b, 4
shl cl, 4
or cl, r8b
movzx ecx, cl
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rax + 1], cl
cmp r15, 2
jbe 0x1400c07ed
cmp rdx, 2
jbe 0x1400c07f6
mov cl, byte [r14 + 1]
mov r8b, byte [r14 + 2]
shr r8b, 6
shl cl, 2
or cl, r8b
movzx ecx, cl
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rax + 2], cl
cmp rdx, 3
je 0x1400c0807
movzx ecx, byte [r14 + 2]
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rax + 3], cl
mov rbp, rdi
mov rdi, rbx
mov r14, qword [rsp + 0x50]
jmp 0x1400c0501
mov r8, qword [rsp + 0x48]
cmp r8, 1
je 0x1400c06c7
cmp r8, 2
mov rdx, qword [rsp + 0x40]
jne 0x1400c071b
cmp rbp, rdx
jae 0x1400c0ac9
mov rax, qword [rsp + 0x38]
movzx r9d, byte [rax + rsi]
mov eax, r9d
shr eax, 2
mov al, byte [rax + r12]
mov rcx, qword [rsp + 0x30]
mov byte [rcx + rbp], al
inc rsi
cmp rsi, r14
jae 0x1400c0ade
lea rcx, [rbp + 1]
cmp rcx, rdx
jae 0x1400c0aed
mov rax, qword [rsp + 0x38]
mov al, byte [rax + rsi]
mov ecx, eax
shr cl, 4
shl r9b, 4
or r9b, cl
movzx ecx, r9b
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov r9, qword [rsp + 0x30]
mov byte [r9 + rbp + 1], cl
lea rcx, [rbp + 2]
cmp rcx, rdx
jae 0x1400c0aff
shl al, 2
and al, 0x3c
mov r9d, 3
jmp 0x1400c0708
mov rax, r14
shr rax, 0x3e
cmp eax, 3
jb 0x1400c005a
lea rcx, str.integer_overflow_when_calculating_buffer_sizeZ:WorkspaceDevelopTools.cargo_registry_srcindex.crates.io_6f17d22bba15001f_base64_0.13.1_srcencode.rsU
lea r8, [0x14016a6c0]
mov edx, 0x2d
call fcn.14010f29f
ud2
mov rdx, qword [rsp + 0x40]
cmp rbp, rdx
jae 0x1400c0ad2
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + rsi]
mov ecx, eax
shr ecx, 2
mov cl, byte [rcx + r12]
mov r9, qword [rsp + 0x30]
mov byte [r9 + rbp], cl
lea rcx, [rbp + 1]
cmp rcx, rdx
jae 0x1400c0af6
shl al, 4
and al, 0x30
mov r9d, 2
movzx eax, al
mov al, byte [rax + r12]
mov r10, qword [rsp + 0x30]
mov byte [r10 + rcx], al
add rbp, r9
mov rcx, rdx
sub rcx, rbp
jb 0x1400c0b08
add qword [rsp + 0x30], rbp
mov rdx, r8
xor rdx, 3
xor eax, eax
mov r9, qword [rsp + 0x30]
test r8, r8
je 0x1400c0757
cmp rdx, rax
jbe 0x1400c0757
cmp rcx, rax
je 0x1400c0810
mov byte [r9 + rax], 0x3d
inc rax
jmp 0x1400c073a
add rbp, rax
jb 0x1400c0b19
lea rsi, [rsp + 0x88]
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.140007bbe
cmp byte [rsi + 0x20], 2
jne 0x1400c0b33
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x60]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rsp + 0x88]
movups xmmword [rcx], xmm0
mov rax, qword [rsp + 0x58]
mov rdx, qword [rax + 8]
mov rcx, qword [rsp + 0x38]
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.140053c1b
lea r8, [0x140118738]
jmp 0x1400c0826
lea r8, [0x140118750]
jmp 0x1400c0826
lea r8, [0x140118768]
jmp 0x1400c0836
lea r8, [0x140118780]
mov ecx, 1
jmp 0x1400c0ac2
lea r8, [0x140118798]
jmp 0x1400c084c
lea r8, [0x1401187b0]
mov ecx, 2
jmp 0x1400c0ac2
lea r8, [0x1401187c8]
jmp 0x1400c0862
lea r8, [0x140118b70]
mov rdx, rcx
jmp 0x1400c0ac2
lea r8, [0x140118828]
xor ecx, ecx
xor edx, edx
jmp 0x1400c0ac2
lea r8, [0x140118840]
mov ecx, 1
mov edx, 1
jmp 0x1400c0ac2
lea r8, [0x140118858]
mov ecx, 2
mov edx, 2
jmp 0x1400c0ac2
lea r8, [0x140118870]
mov ecx, 3
mov edx, 3
jmp 0x1400c0ac2
lea r8, [0x140118888]
mov ecx, 4
mov edx, 4
jmp 0x1400c0ac2
lea r8, [0x1401188a0]
mov ecx, 5
mov edx, 5
jmp 0x1400c0ac2
lea r8, [0x1401188b8]
mov ecx, 6
mov edx, 6
jmp 0x1400c0ac2
lea r8, [0x1401188d0]
mov ecx, 7
mov edx, 7
jmp 0x1400c0ac2
lea r8, [0x140118900]
mov ecx, 8
mov edx, 8
jmp 0x1400c0ac2
lea r8, [0x140118918]
mov ecx, 9
mov edx, 9
jmp 0x1400c0ac2
lea r8, [0x140118930]
mov ecx, 0xa
mov edx, 0xa
jmp 0x1400c0ac2
lea r8, [0x140118948]
mov ecx, 0xb
mov edx, 0xb
jmp 0x1400c0ac2
lea r8, [0x140118960]
mov ecx, 0xc
mov edx, 0xc
jmp 0x1400c0ac2
lea r8, [0x140118978]
mov ecx, 0xd
mov edx, 0xd
jmp 0x1400c0ac2
lea r8, [0x140118990]
mov ecx, 0xe
mov edx, 0xe
jmp 0x1400c0ac2
lea r8, [0x1401189a8]
mov ecx, 0xf
mov edx, 0xf
jmp 0x1400c0ac2
lea r8, [0x1401189d8]
mov ecx, 0x10
mov edx, 0x10
jmp 0x1400c0ac2
lea r8, [0x1401189f0]
mov ecx, 0x11
mov edx, 0x11
jmp 0x1400c0ac2
lea r8, [0x140118a08]
mov ecx, 0x12
mov edx, 0x12
jmp 0x1400c0ac2
lea r8, [0x140118a20]
mov ecx, 0x13
mov edx, 0x13
jmp 0x1400c0ac2
lea r8, [0x140118a38]
mov ecx, 0x14
mov edx, 0x14
jmp 0x1400c0ac2
lea r8, [0x140118a50]
mov ecx, 0x15
mov edx, 0x15
jmp 0x1400c0ac2
lea r8, [0x140118a68]
mov ecx, 0x16
mov edx, 0x16
jmp 0x1400c0ac2
lea r8, [0x140118a80]
mov ecx, 0x17
mov edx, 0x17
jmp 0x1400c0ac2
lea r8, [0x140118ab0]
mov ecx, 0x18
mov edx, 0x18
jmp 0x1400c0ac2
lea r8, [0x140118ac8]
mov ecx, 0x19
mov edx, 0x19
jmp 0x1400c0ac2
lea r8, [0x140118ae0]
mov ecx, 0x1a
mov edx, 0x1a
jmp 0x1400c0ac2
lea r8, [0x140118af8]
mov ecx, 0x1b
mov edx, 0x1b
jmp 0x1400c0ac2
lea r8, [0x140118b10]
mov ecx, 0x1c
mov edx, 0x1c
jmp 0x1400c0ac2
lea r8, [0x140118b28]
mov ecx, 0x1d
mov edx, 0x1d
jmp 0x1400c0ac2
lea r8, [0x140118b40]
mov ecx, 0x1e
mov edx, 0x1e
jmp 0x1400c0ac2
lea r8, [0x140118b58]
mov ecx, 0x1f
mov edx, 0x1f
call fcn.14010dbc0
ud2
lea r8, [0x140118678]
jmp 0x1400c0ad9
lea r8, [0x1401186d8]
mov rcx, rbp
jmp 0x1400c0ac2
lea r8, [0x140118690]
mov rcx, rsi
mov rdx, r14
jmp 0x1400c0ac2
lea r8, [0x1401186a8]
jmp 0x1400c0ac2
lea r8, [0x1401186f0]
jmp 0x1400c0ac2
lea r8, [0x1401186c0]
jmp 0x1400c0ac2
lea r8, [0x1401185e8]
mov rcx, rbp
call fcn.14010db40
ud2
lea rcx, str.usize_overflow_when_calculating_b64_length
lea r8, [0x140118630]
mov edx, 0x2a
call fcn.14010e090
ud2
mov rax, qword [rsp + 0xa8]
lea r8, [rsp + 0xb0]
mov qword [r8 + 0x20], rax
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [r8 + 0x10], xmm1
movaps xmmword [r8], xmm0
lea rax, [0x14016a6e8]
mov qword [rsp + 0x20], rax
lea rcx, str.Invalid_UTF8
lea r9, fcn.1400063af
mov edx, 0xc
call fcn.14010dff0
ud2