Function at 0x1400afaee
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 0x1400b018f
mov rcx, r14
shr rcx, 0x3e
add rdi, 4
setb al
cmp ecx, 2
ja 0x1400b019f
test al, al
jne 0x1400b019f
mov rcx, rdi
mov dl, 1
call fcn.14003c51a
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 0x1400affdf
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, [0x140106b48]
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov rdx, rsi
mov r8, qword [rsp + 0x38]
mov r9, r14
call fcn.14003c567
mov r14, rax
mov r13, rdx
add rbp, 0x20
lea rax, [0x140106b60]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
mov r8, rbx
mov r9, rbp
call fcn.1400287d4
mov rbx, rax
mov r15, rdx
mov rcx, r14
mov rdx, r13
xor r8d, r8d
lea r9, [0x140106b78]
call fcn.1400288a6
mov rcx, rax
call fcn.140028812
test r15, r15
je 0x1400b0311
mov rcx, rax
shr rcx, 0x3a
mov cl, byte [rcx + r12]
mov byte [rbx], cl
cmp r15, 1
je 0x1400b0321
mov rcx, rax
shr rcx, 0x34
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 1], cl
cmp r15, 2
jbe 0x1400b0337
mov rcx, rax
shr rcx, 0x2e
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 2], cl
cmp r15, 3
je 0x1400b034d
mov rcx, rax
shr rcx, 0x28
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 3], cl
cmp r15, 4
jbe 0x1400b0363
mov rcx, rax
shr rcx, 0x22
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 4], cl
cmp r15, 5
je 0x1400b0379
mov rcx, rax
shr rcx, 0x1c
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 5], cl
cmp r15, 6
jbe 0x1400b038f
mov ecx, eax
shr ecx, 0x16
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 6], cl
cmp r15, 7
je 0x1400b03a5
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, [0x140106c50]
call fcn.1400288a6
mov rcx, rax
call fcn.140028812
cmp r15, 8
jbe 0x1400b03bb
mov rcx, rax
shr rcx, 0x3a
mov cl, byte [rcx + r12]
mov byte [rbx + 8], cl
cmp r15, 9
je 0x1400b03d1
mov rcx, rax
shr rcx, 0x34
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 9], cl
cmp r15, 0xa
jbe 0x1400b03e7
mov rcx, rax
shr rcx, 0x2e
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0xa], cl
cmp r15, 0xb
je 0x1400b03fd
mov rcx, rax
shr rcx, 0x28
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0xb], cl
cmp r15, 0xc
jbe 0x1400b0413
mov rcx, rax
shr rcx, 0x22
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0xc], cl
cmp r15, 0xd
je 0x1400b0429
mov rcx, rax
shr rcx, 0x1c
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0xd], cl
cmp r15, 0xe
jbe 0x1400b043f
mov ecx, eax
shr ecx, 0x16
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0xe], cl
cmp r15, 0xf
je 0x1400b0455
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, [0x140106d28]
call fcn.1400288a6
mov rcx, rax
call fcn.140028812
cmp r15, 0x10
jbe 0x1400b046b
mov rcx, rax
shr rcx, 0x3a
mov cl, byte [rcx + r12]
mov byte [rbx + 0x10], cl
cmp r15, 0x11
je 0x1400b0481
mov rcx, rax
shr rcx, 0x34
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x11], cl
cmp r15, 0x12
jbe 0x1400b0497
mov rcx, rax
shr rcx, 0x2e
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x12], cl
cmp r15, 0x13
je 0x1400b04ad
mov rcx, rax
shr rcx, 0x28
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x13], cl
cmp r15, 0x14
jbe 0x1400b04c3
mov rcx, rax
shr rcx, 0x22
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x14], cl
cmp r15, 0x15
je 0x1400b04d9
mov rcx, rax
shr rcx, 0x1c
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x15], cl
cmp r15, 0x16
jbe 0x1400b04ef
mov ecx, eax
shr ecx, 0x16
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x16], cl
cmp r15, 0x17
je 0x1400b0505
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, [0x140106e00]
call fcn.1400288a6
mov rcx, rax
call fcn.140028812
cmp r15, 0x18
jbe 0x1400b051b
mov rcx, rax
shr rcx, 0x3a
mov cl, byte [rcx + r12]
mov byte [rbx + 0x18], cl
cmp r15, 0x19
je 0x1400b0531
mov rcx, rax
shr rcx, 0x34
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x19], cl
cmp r15, 0x1a
jbe 0x1400b0544
mov rcx, rax
shr rcx, 0x2e
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x1a], cl
cmp r15, 0x1b
je 0x1400b0557
mov rcx, rax
shr rcx, 0x28
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x1b], cl
cmp r15, 0x1c
jbe 0x1400b056a
mov rcx, rax
shr rcx, 0x22
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x1c], cl
cmp r15, 0x1d
je 0x1400b057d
mov rcx, rax
shr rcx, 0x1c
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x1d], cl
cmp r15, 0x1e
jbe 0x1400b0590
mov ecx, eax
shr ecx, 0x16
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x1e], cl
cmp r15, 0x1f
je 0x1400b05a3
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 0x1400afbb1
add rdi, 0x18
mov rbx, qword [rsp + 0x48]
mov rsi, r14
sub rsi, rbx
lea r13, [0x140106a88]
lea r12, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_internal_error:_entered_unreachable_code:
cmp rdi, rsi
jae 0x1400b00f0
lea rbx, [rdi + 3]
lea rax, [0x140106a70]
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov rdx, rbx
mov r8, qword [rsp + 0x38]
mov r9, r14
call fcn.14003c567
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.1400287d4
test r15, r15
je 0x1400b02b3
test rdx, rdx
je 0x1400b02bc
movzx ecx, byte [r14]
shr ecx, 2
mov cl, byte [rcx + r12]
mov byte [rax], cl
cmp r15, 1
jbe 0x1400b02c5
cmp rdx, 1
jbe 0x1400b02ce
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 0x1400b02df
cmp rdx, 2
jbe 0x1400b02e8
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 0x1400b02f9
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 0x1400afff3
mov r8, qword [rsp + 0x48]
cmp r8, 1
je 0x1400b01b9
cmp r8, 2
mov rdx, qword [rsp + 0x40]
jne 0x1400b020d
cmp rbp, rdx
jae 0x1400b05bb
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 0x1400b05d0
lea rcx, [rbp + 1]
cmp rcx, rdx
jae 0x1400b05df
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 0x1400b05f1
shl al, 2
and al, 0x3c
mov r9d, 3
jmp 0x1400b01fa
mov rax, r14
shr rax, 0x3e
cmp eax, 3
jb 0x1400afb4c
lea rcx, str.integer_overflow_when_calculating_buffer_sizeZ:WorkspaceDevelopTools.cargo_registry_srcindex.crates.io_6f17d22bba15001f_base64_0.13.1_srcencode.rs
lea r8, [0x140157a50]
mov edx, 0x2d
call fcn.1400ff4ff
ud2
mov rdx, qword [rsp + 0x40]
cmp rbp, rdx
jae 0x1400b05c4
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 0x1400b05e8
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 0x1400b05fa
add qword [rsp + 0x30], rbp
mov rdx, r8
xor rdx, 3
xor eax, eax
mov r9, qword [rsp + 0x30]
test r8, r8
je 0x1400b0249
cmp rdx, rax
jbe 0x1400b0249
cmp rcx, rax
je 0x1400b0302
mov byte [r9 + rax], 0x3d
inc rax
jmp 0x1400b022c
add rbp, rax
jb 0x1400b060b
lea rsi, [rsp + 0x88]
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.1400040ce
cmp byte [rsi + 0x20], 2
jne 0x1400b0625
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.1400448bb
lea r8, [0x140106aa0]
jmp 0x1400b0318
lea r8, [0x140106ab8]
jmp 0x1400b0318
lea r8, [0x140106ad0]
jmp 0x1400b0328
lea r8, [0x140106ae8]
mov ecx, 1
jmp 0x1400b05b4
lea r8, [0x140106b00]
jmp 0x1400b033e
lea r8, [0x140106b18]
mov ecx, 2
jmp 0x1400b05b4
lea r8, [0x140106b30]
jmp 0x1400b0354
lea r8, [0x140106ed8]
mov rdx, rcx
jmp 0x1400b05b4
lea r8, [0x140106b90]
xor ecx, ecx
xor edx, edx
jmp 0x1400b05b4
lea r8, [0x140106ba8]
mov ecx, 1
mov edx, 1
jmp 0x1400b05b4
lea r8, [0x140106bc0]
mov ecx, 2
mov edx, 2
jmp 0x1400b05b4
lea r8, [0x140106bd8]
mov ecx, 3
mov edx, 3
jmp 0x1400b05b4
lea r8, [0x140106bf0]
mov ecx, 4
mov edx, 4
jmp 0x1400b05b4
lea r8, [0x140106c08]
mov ecx, 5
mov edx, 5
jmp 0x1400b05b4
lea r8, [0x140106c20]
mov ecx, 6
mov edx, 6
jmp 0x1400b05b4
lea r8, [0x140106c38]
mov ecx, 7
mov edx, 7
jmp 0x1400b05b4
lea r8, [0x140106c68]
mov ecx, 8
mov edx, 8
jmp 0x1400b05b4
lea r8, [0x140106c80]
mov ecx, 9
mov edx, 9
jmp 0x1400b05b4
lea r8, [0x140106c98]
mov ecx, 0xa
mov edx, 0xa
jmp 0x1400b05b4
lea r8, [0x140106cb0]
mov ecx, 0xb
mov edx, 0xb
jmp 0x1400b05b4
lea r8, [0x140106cc8]
mov ecx, 0xc
mov edx, 0xc
jmp 0x1400b05b4
lea r8, [0x140106ce0]
mov ecx, 0xd
mov edx, 0xd
jmp 0x1400b05b4
lea r8, [0x140106cf8]
mov ecx, 0xe
mov edx, 0xe
jmp 0x1400b05b4
lea r8, [0x140106d10]
mov ecx, 0xf
mov edx, 0xf
jmp 0x1400b05b4
lea r8, [0x140106d40]
mov ecx, 0x10
mov edx, 0x10
jmp 0x1400b05b4
lea r8, [0x140106d58]
mov ecx, 0x11
mov edx, 0x11
jmp 0x1400b05b4
lea r8, [0x140106d70]
mov ecx, 0x12
mov edx, 0x12
jmp 0x1400b05b4
lea r8, [0x140106d88]
mov ecx, 0x13
mov edx, 0x13
jmp 0x1400b05b4
lea r8, [0x140106da0]
mov ecx, 0x14
mov edx, 0x14
jmp 0x1400b05b4
lea r8, [0x140106db8]
mov ecx, 0x15
mov edx, 0x15
jmp 0x1400b05b4
lea r8, [0x140106dd0]
mov ecx, 0x16
mov edx, 0x16
jmp 0x1400b05b4
lea r8, [0x140106de8]
mov ecx, 0x17
mov edx, 0x17
jmp 0x1400b05b4
lea r8, [0x140106e18]
mov ecx, 0x18
mov edx, 0x18
jmp 0x1400b05b4
lea r8, [0x140106e30]
mov ecx, 0x19
mov edx, 0x19
jmp 0x1400b05b4
lea r8, [0x140106e48]
mov ecx, 0x1a
mov edx, 0x1a
jmp 0x1400b05b4
lea r8, [0x140106e60]
mov ecx, 0x1b
mov edx, 0x1b
jmp 0x1400b05b4
lea r8, [0x140106e78]
mov ecx, 0x1c
mov edx, 0x1c
jmp 0x1400b05b4
lea r8, [0x140106e90]
mov ecx, 0x1d
mov edx, 0x1d
jmp 0x1400b05b4
lea r8, [0x140106ea8]
mov ecx, 0x1e
mov edx, 0x1e
jmp 0x1400b05b4
lea r8, [0x140106ec0]
mov ecx, 0x1f
mov edx, 0x1f
call fcn.1400fdb80
ud2
lea r8, [0x1401069e0]
jmp 0x1400b05cb
lea r8, [0x140106a40]
mov rcx, rbp
jmp 0x1400b05b4
lea r8, [0x1401069f8]
mov rcx, rsi
mov rdx, r14
jmp 0x1400b05b4
lea r8, [0x140106a10]
jmp 0x1400b05b4
lea r8, [0x140106a58]
jmp 0x1400b05b4
lea r8, [0x140106a28]
jmp 0x1400b05b4
lea r8, [0x140106950]
mov rcx, rbp
call fcn.1400fdb00
ud2
lea rcx, str.usize_overflow_when_calculating_b64_length
lea r8, [0x140106998]
mov edx, 0x2a
call fcn.1400fe050
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, [0x140157a78]
mov qword [rsp + 0x20], rax
lea rcx, str.Invalid_UTF8
lea r9, fcn.140002c17
mov edx, 0xc
call fcn.1400fdfb0
ud2