Function at 0x1400b0911
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 0x1400b0fb2
mov rcx, r14
shr rcx, 0x3e
add rdi, 4
setb al
cmp ecx, 2
ja 0x1400b0fc2
test al, al
jne 0x1400b0fc2
mov rcx, rdi
mov dl, 1
call fcn.14003cc6a
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 0x1400b0e02
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, [0x140107a30]
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov rdx, rsi
mov r8, qword [rsp + 0x38]
mov r9, r14
call fcn.14003ccb7
mov r14, rax
mov r13, rdx
add rbp, 0x20
lea rax, [0x140107a48]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
mov r8, rbx
mov r9, rbp
call fcn.140029104
mov rbx, rax
mov r15, rdx
mov rcx, r14
mov rdx, r13
xor r8d, r8d
lea r9, [0x140107a60]
call fcn.1400291d6
mov rcx, rax
call fcn.140029142
test r15, r15
je 0x1400b1134
mov rcx, rax
shr rcx, 0x3a
mov cl, byte [rcx + r12]
mov byte [rbx], cl
cmp r15, 1
je 0x1400b1144
mov rcx, rax
shr rcx, 0x34
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 1], cl
cmp r15, 2
jbe 0x1400b115a
mov rcx, rax
shr rcx, 0x2e
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 2], cl
cmp r15, 3
je 0x1400b1170
mov rcx, rax
shr rcx, 0x28
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 3], cl
cmp r15, 4
jbe 0x1400b1186
mov rcx, rax
shr rcx, 0x22
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 4], cl
cmp r15, 5
je 0x1400b119c
mov rcx, rax
shr rcx, 0x1c
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 5], cl
cmp r15, 6
jbe 0x1400b11b2
mov ecx, eax
shr ecx, 0x16
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 6], cl
cmp r15, 7
je 0x1400b11c8
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, [0x140107b38]
call fcn.1400291d6
mov rcx, rax
call fcn.140029142
cmp r15, 8
jbe 0x1400b11de
mov rcx, rax
shr rcx, 0x3a
mov cl, byte [rcx + r12]
mov byte [rbx + 8], cl
cmp r15, 9
je 0x1400b11f4
mov rcx, rax
shr rcx, 0x34
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 9], cl
cmp r15, 0xa
jbe 0x1400b120a
mov rcx, rax
shr rcx, 0x2e
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0xa], cl
cmp r15, 0xb
je 0x1400b1220
mov rcx, rax
shr rcx, 0x28
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0xb], cl
cmp r15, 0xc
jbe 0x1400b1236
mov rcx, rax
shr rcx, 0x22
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0xc], cl
cmp r15, 0xd
je 0x1400b124c
mov rcx, rax
shr rcx, 0x1c
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0xd], cl
cmp r15, 0xe
jbe 0x1400b1262
mov ecx, eax
shr ecx, 0x16
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0xe], cl
cmp r15, 0xf
je 0x1400b1278
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, [0x140107c10]
call fcn.1400291d6
mov rcx, rax
call fcn.140029142
cmp r15, 0x10
jbe 0x1400b128e
mov rcx, rax
shr rcx, 0x3a
mov cl, byte [rcx + r12]
mov byte [rbx + 0x10], cl
cmp r15, 0x11
je 0x1400b12a4
mov rcx, rax
shr rcx, 0x34
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x11], cl
cmp r15, 0x12
jbe 0x1400b12ba
mov rcx, rax
shr rcx, 0x2e
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x12], cl
cmp r15, 0x13
je 0x1400b12d0
mov rcx, rax
shr rcx, 0x28
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x13], cl
cmp r15, 0x14
jbe 0x1400b12e6
mov rcx, rax
shr rcx, 0x22
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x14], cl
cmp r15, 0x15
je 0x1400b12fc
mov rcx, rax
shr rcx, 0x1c
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x15], cl
cmp r15, 0x16
jbe 0x1400b1312
mov ecx, eax
shr ecx, 0x16
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x16], cl
cmp r15, 0x17
je 0x1400b1328
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, [0x140107ce8]
call fcn.1400291d6
mov rcx, rax
call fcn.140029142
cmp r15, 0x18
jbe 0x1400b133e
mov rcx, rax
shr rcx, 0x3a
mov cl, byte [rcx + r12]
mov byte [rbx + 0x18], cl
cmp r15, 0x19
je 0x1400b1354
mov rcx, rax
shr rcx, 0x34
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x19], cl
cmp r15, 0x1a
jbe 0x1400b1367
mov rcx, rax
shr rcx, 0x2e
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x1a], cl
cmp r15, 0x1b
je 0x1400b137a
mov rcx, rax
shr rcx, 0x28
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x1b], cl
cmp r15, 0x1c
jbe 0x1400b138d
mov rcx, rax
shr rcx, 0x22
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x1c], cl
cmp r15, 0x1d
je 0x1400b13a0
mov rcx, rax
shr rcx, 0x1c
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x1d], cl
cmp r15, 0x1e
jbe 0x1400b13b3
mov ecx, eax
shr ecx, 0x16
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x1e], cl
cmp r15, 0x1f
je 0x1400b13c6
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 0x1400b09d4
add rdi, 0x18
mov rbx, qword [rsp + 0x48]
mov rsi, r14
sub rsi, rbx
lea r13, [0x140107970]
lea r12, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_internal_error:_entered_unreachable_code:
cmp rdi, rsi
jae 0x1400b0f13
lea rbx, [rdi + 3]
lea rax, [0x140107958]
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov rdx, rbx
mov r8, qword [rsp + 0x38]
mov r9, r14
call fcn.14003ccb7
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.140029104
test r15, r15
je 0x1400b10d6
test rdx, rdx
je 0x1400b10df
movzx ecx, byte [r14]
shr ecx, 2
mov cl, byte [rcx + r12]
mov byte [rax], cl
cmp r15, 1
jbe 0x1400b10e8
cmp rdx, 1
jbe 0x1400b10f1
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 0x1400b1102
cmp rdx, 2
jbe 0x1400b110b
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 0x1400b111c
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 0x1400b0e16
mov r8, qword [rsp + 0x48]
cmp r8, 1
je 0x1400b0fdc
cmp r8, 2
mov rdx, qword [rsp + 0x40]
jne 0x1400b1030
cmp rbp, rdx
jae 0x1400b13de
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 0x1400b13f3
lea rcx, [rbp + 1]
cmp rcx, rdx
jae 0x1400b1402
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 0x1400b1414
shl al, 2
and al, 0x3c
mov r9d, 3
jmp 0x1400b101d
mov rax, r14
shr rax, 0x3e
cmp eax, 3
jb 0x1400b096f
lea rcx, str.integer_overflow_when_calculating_buffer_sizeZ:WorkspaceDevelopTools.cargo_registry_srcindex.crates.io_6f17d22bba15001f_base64_0.13.1_srcencode.rs
lea r8, [0x140159010]
mov edx, 0x2d
call fcn.14010033f
ud2
mov rdx, qword [rsp + 0x40]
cmp rbp, rdx
jae 0x1400b13e7
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 0x1400b140b
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 0x1400b141d
add qword [rsp + 0x30], rbp
mov rdx, r8
xor rdx, 3
xor eax, eax
mov r9, qword [rsp + 0x30]
test r8, r8
je 0x1400b106c
cmp rdx, rax
jbe 0x1400b106c
cmp rcx, rax
je 0x1400b1125
mov byte [r9 + rax], 0x3d
inc rax
jmp 0x1400b104f
add rbp, rax
jb 0x1400b142e
lea rsi, [rsp + 0x88]
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.140003fa2
cmp byte [rsi + 0x20], 2
jne 0x1400b1448
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.14004574b
lea r8, [0x140107988]
jmp 0x1400b113b
lea r8, [0x1401079a0]
jmp 0x1400b113b
lea r8, [0x1401079b8]
jmp 0x1400b114b
lea r8, [0x1401079d0]
mov ecx, 1
jmp 0x1400b13d7
lea r8, [0x1401079e8]
jmp 0x1400b1161
lea r8, [0x140107a00]
mov ecx, 2
jmp 0x1400b13d7
lea r8, [0x140107a18]
jmp 0x1400b1177
lea r8, [0x140107dc0]
mov rdx, rcx
jmp 0x1400b13d7
lea r8, [0x140107a78]
xor ecx, ecx
xor edx, edx
jmp 0x1400b13d7
lea r8, [0x140107a90]
mov ecx, 1
mov edx, 1
jmp 0x1400b13d7
lea r8, [0x140107aa8]
mov ecx, 2
mov edx, 2
jmp 0x1400b13d7
lea r8, [0x140107ac0]
mov ecx, 3
mov edx, 3
jmp 0x1400b13d7
lea r8, [0x140107ad8]
mov ecx, 4
mov edx, 4
jmp 0x1400b13d7
lea r8, [0x140107af0]
mov ecx, 5
mov edx, 5
jmp 0x1400b13d7
lea r8, [0x140107b08]
mov ecx, 6
mov edx, 6
jmp 0x1400b13d7
lea r8, [0x140107b20]
mov ecx, 7
mov edx, 7
jmp 0x1400b13d7
lea r8, [0x140107b50]
mov ecx, 8
mov edx, 8
jmp 0x1400b13d7
lea r8, [0x140107b68]
mov ecx, 9
mov edx, 9
jmp 0x1400b13d7
lea r8, [0x140107b80]
mov ecx, 0xa
mov edx, 0xa
jmp 0x1400b13d7
lea r8, [0x140107b98]
mov ecx, 0xb
mov edx, 0xb
jmp 0x1400b13d7
lea r8, [0x140107bb0]
mov ecx, 0xc
mov edx, 0xc
jmp 0x1400b13d7
lea r8, [0x140107bc8]
mov ecx, 0xd
mov edx, 0xd
jmp 0x1400b13d7
lea r8, [0x140107be0]
mov ecx, 0xe
mov edx, 0xe
jmp 0x1400b13d7
lea r8, [0x140107bf8]
mov ecx, 0xf
mov edx, 0xf
jmp 0x1400b13d7
lea r8, [0x140107c28]
mov ecx, 0x10
mov edx, 0x10
jmp 0x1400b13d7
lea r8, [0x140107c40]
mov ecx, 0x11
mov edx, 0x11
jmp 0x1400b13d7
lea r8, [0x140107c58]
mov ecx, 0x12
mov edx, 0x12
jmp 0x1400b13d7
lea r8, [0x140107c70]
mov ecx, 0x13
mov edx, 0x13
jmp 0x1400b13d7
lea r8, [0x140107c88]
mov ecx, 0x14
mov edx, 0x14
jmp 0x1400b13d7
lea r8, [0x140107ca0]
mov ecx, 0x15
mov edx, 0x15
jmp 0x1400b13d7
lea r8, [0x140107cb8]
mov ecx, 0x16
mov edx, 0x16
jmp 0x1400b13d7
lea r8, [0x140107cd0]
mov ecx, 0x17
mov edx, 0x17
jmp 0x1400b13d7
lea r8, [0x140107d00]
mov ecx, 0x18
mov edx, 0x18
jmp 0x1400b13d7
lea r8, [0x140107d18]
mov ecx, 0x19
mov edx, 0x19
jmp 0x1400b13d7
lea r8, [0x140107d30]
mov ecx, 0x1a
mov edx, 0x1a
jmp 0x1400b13d7
lea r8, [0x140107d48]
mov ecx, 0x1b
mov edx, 0x1b
jmp 0x1400b13d7
lea r8, [0x140107d60]
mov ecx, 0x1c
mov edx, 0x1c
jmp 0x1400b13d7
lea r8, [0x140107d78]
mov ecx, 0x1d
mov edx, 0x1d
jmp 0x1400b13d7
lea r8, [0x140107d90]
mov ecx, 0x1e
mov edx, 0x1e
jmp 0x1400b13d7
lea r8, [0x140107da8]
mov ecx, 0x1f
mov edx, 0x1f
call fcn.1400fe9c0
ud2
lea r8, [0x1401078c8]
jmp 0x1400b13ee
lea r8, [0x140107928]
mov rcx, rbp
jmp 0x1400b13d7
lea r8, [0x1401078e0]
mov rcx, rsi
mov rdx, r14
jmp 0x1400b13d7
lea r8, [0x1401078f8]
jmp 0x1400b13d7
lea r8, [0x140107940]
jmp 0x1400b13d7
lea r8, [0x140107910]
jmp 0x1400b13d7
lea r8, [0x140107838]
mov rcx, rbp
call fcn.1400fe940
ud2
lea rcx, str.usize_overflow_when_calculating_b64_length
lea r8, [0x140107880]
mov edx, 0x2a
call fcn.1400fee90
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, [0x140159038]
mov qword [rsp + 0x20], rax
lea rcx, str.Invalid_UTF8
lea r9, fcn.140002b67
mov edx, 0xc
call fcn.1400fedf0
ud2