Function at 0x1401c5610
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
mov r10, rdx
mov r11, rcx
mov rbx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
movzx eax, byte [r8 + 0x12]
lea rdx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__._0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
mov r9, qword [rdx + rax*8]
xor esi, esi
mov rdx, r10
mov edi, 0
sub rdx, 0x1a
cmovb rdx, rsi
jbe 0x1401c593b
mov eax, 0x20
xor edi, edi
nop word cs:[rax + rax]
mov rsi, rax
lea rax, [rdi + 0x1a]
cmp rax, r10
ja 0x1401c5be2
test rsi, rsi
je 0x1401c5bee
cmp rsi, rbx
ja 0x1401c5c05
mov rax, qword [r11 + rdi]
bswap rax
mov r14, rax
shr r14, 0x3a
movzx ebp, byte [r9 + r14]
mov byte [rcx + rsi - 0x20], bpl
mov r14, rax
shr r14, 0x34
and r14d, 0x3f
movzx ebp, byte [r9 + r14]
mov byte [rcx + rsi - 0x1f], bpl
mov r14, rax
shr r14, 0x2e
and r14d, 0x3f
movzx ebp, byte [r9 + r14]
mov byte [rcx + rsi - 0x1e], bpl
mov r14, rax
shr r14, 0x28
and r14d, 0x3f
movzx ebp, byte [r9 + r14]
mov byte [rcx + rsi - 0x1d], bpl
mov r14, rax
shr r14, 0x22
and r14d, 0x3f
movzx ebp, byte [r9 + r14]
mov byte [rcx + rsi - 0x1c], bpl
mov r14, rax
shr r14, 0x1c
and r14d, 0x3f
movzx ebp, byte [r9 + r14]
mov byte [rcx + rsi - 0x1b], bpl
mov r14d, eax
shr r14d, 0x16
and r14d, 0x3f
movzx ebp, byte [r9 + r14]
mov byte [rcx + rsi - 0x1a], bpl
shr eax, 0x10
and eax, 0x3f
movzx ebp, byte [r9 + rax]
mov rax, qword [r11 + rdi + 6]
bswap rax
mov byte [rcx + rsi - 0x19], bpl
mov r14, rax
shr r14, 0x3a
movzx ebp, byte [r9 + r14]
mov byte [rcx + rsi - 0x18], bpl
mov r14, rax
shr r14, 0x34
and r14d, 0x3f
movzx ebp, byte [r9 + r14]
mov byte [rcx + rsi - 0x17], bpl
mov r14, rax
shr r14, 0x2e
and r14d, 0x3f
movzx ebp, byte [r9 + r14]
mov byte [rcx + rsi - 0x16], bpl
mov r14, rax
shr r14, 0x28
and r14d, 0x3f
movzx ebp, byte [r9 + r14]
mov byte [rcx + rsi - 0x15], bpl
mov r14, rax
shr r14, 0x22
and r14d, 0x3f
movzx ebp, byte [r9 + r14]
mov byte [rcx + rsi - 0x14], bpl
mov r14, rax
shr r14, 0x1c
and r14d, 0x3f
movzx ebp, byte [r9 + r14]
mov byte [rcx + rsi - 0x13], bpl
mov r14d, eax
shr r14d, 0x16
and r14d, 0x3f
movzx ebp, byte [r9 + r14]
mov byte [rcx + rsi - 0x12], bpl
shr eax, 0x10
and eax, 0x3f
movzx eax, byte [r9 + rax]
mov byte [rcx + rsi - 0x11], al
mov rax, qword [r11 + rdi + 0xc]
bswap rax
mov r14, rax
shr r14, 0x3a
movzx ebp, byte [r9 + r14]
mov byte [rcx + rsi - 0x10], bpl
mov r14, rax
shr r14, 0x34
and r14d, 0x3f
movzx ebp, byte [r9 + r14]
mov byte [rcx + rsi - 0xf], bpl
mov r14, rax
shr r14, 0x2e
and r14d, 0x3f
movzx ebp, byte [r9 + r14]
mov byte [rcx + rsi - 0xe], bpl
mov r14, rax
shr r14, 0x28
and r14d, 0x3f
movzx ebp, byte [r9 + r14]
mov byte [rcx + rsi - 0xd], bpl
mov r14, rax
shr r14, 0x22
and r14d, 0x3f
movzx ebp, byte [r9 + r14]
mov byte [rcx + rsi - 0xc], bpl
mov r14, rax
shr r14, 0x1c
and r14d, 0x3f
movzx ebp, byte [r9 + r14]
mov byte [rcx + rsi - 0xb], bpl
mov r14d, eax
shr r14d, 0x16
and r14d, 0x3f
movzx ebp, byte [r9 + r14]
mov byte [rcx + rsi - 0xa], bpl
shr eax, 0x10
and eax, 0x3f
movzx eax, byte [r9 + rax]
mov byte [rcx + rsi - 9], al
mov rax, qword [r11 + rdi + 0x12]
bswap rax
mov r14, rax
shr r14, 0x3a
movzx ebp, byte [r9 + r14]
mov byte [rcx + rsi - 8], bpl
mov r14, rax
shr r14, 0x34
and r14d, 0x3f
movzx ebp, byte [r9 + r14]
mov byte [rcx + rsi - 7], bpl
mov r14, rax
shr r14, 0x2e
and r14d, 0x3f
movzx ebp, byte [r9 + r14]
mov byte [rcx + rsi - 6], bpl
mov r14, rax
shr r14, 0x28
and r14d, 0x3f
movzx ebp, byte [r9 + r14]
mov byte [rcx + rsi - 5], bpl
mov r14, rax
shr r14, 0x22
and r14d, 0x3f
movzx ebp, byte [r9 + r14]
mov byte [rcx + rsi - 4], bpl
mov r14, rax
shr r14, 0x1c
and r14d, 0x3f
movzx ebp, byte [r9 + r14]
mov byte [rcx + rsi - 3], bpl
mov r14d, eax
shr r14d, 0x16
and r14d, 0x3f
movzx ebp, byte [r9 + r14]
mov byte [rcx + rsi - 2], bpl
shr eax, 0x10
and eax, 0x3f
movzx eax, byte [r9 + rax]
mov byte [rcx + rsi - 1], al
add rdi, 0x18
lea rax, [rsi + 0x20]
cmp rdi, rdx
jbe 0x1401c5670
movabs rdx, 0xaaaaaaaaaaaaaaab
mov rax, r10
mul rdx
shr rdx, 1
lea rdx, [rdx + rdx*2]
cmp rdi, rdx
jae 0x1401c5a9b
nop dword [rax + rax]
cmp rdi, 0xfffffffffffffffc
ja 0x1401c5c0e
lea r14, [rdi + 3]
cmp r14, r10
ja 0x1401c5c23
cmp rsi, 0xfffffffffffffffb
ja 0x1401c5c3b
lea rax, [rsi + 4]
cmp rax, rbx
ja 0x1401c5c50
movzx r15d, byte [r11 + rdi]
mov r12, r15
shr r12, 2
movzx ebp, byte [r9 + r12]
mov byte [rcx + rsi], bpl
movzx ebp, byte [r11 + rdi + 1]
shl r15b, 4
mov r12d, ebp
shr r12b, 4
or r12b, r15b
movzx r15d, r12b
and r15d, 0x3f
movzx r15d, byte [r9 + r15]
mov byte [rcx + rsi + 1], r15b
movzx edi, byte [r11 + rdi + 2]
shl bpl, 2
mov r15d, edi
shr r15b, 6
or r15b, bpl
movzx r15d, r15b
and r15d, 0x3f
movzx ebp, byte [r9 + r15]
mov byte [rcx + rsi + 2], bpl
and edi, 0x3f
movzx edi, byte [r9 + rdi]
mov byte [rcx + rsi + 3], dil
mov rdi, r14
mov rsi, rax
cmp r14, rdx
jb 0x1401c5960
mov rsi, r10
sub rsi, rdx
cmp rsi, 1
je 0x1401c5aae
cmp rsi, 2
jne 0x1401c5af6
cmp rax, rbx
jae 0x1401c5b90
movzx edi, byte [r11 + rdx]
mov r14, rdi
shr r14, 2
movzx ebp, byte [r9 + r14]
mov byte [rcx + rax], bpl
inc rdx
cmp rdx, r10
jae 0x1401c5ba5
lea r10, [rax + 1]
cmp r10, rbx
jae 0x1401c5bc2
movzx r10d, byte [r11 + rdx]
mov edx, r10d
shr dl, 4
shl dil, 4
or dil, dl
movzx edx, dil
and edx, 0x3f
movzx edx, byte [r9 + rdx]
mov byte [rcx + rax + 1], dl
lea rdx, [rax + 2]
cmp rdx, rbx
jae 0x1401c5bce
shl r10b, 2
and r10b, 0x3c
mov r11d, 3
jmp 0x1401c5ae6
mov rax, rsi
mov rsi, r10
sub rsi, rdx
cmp rsi, 1
jne 0x1401c5a1b
cmp rax, rbx
jae 0x1401c5b99
movzx r10d, byte [r11 + rdx]
mov rdx, r10
shr rdx, 2
movzx edx, byte [r9 + rdx]
mov byte [rcx + rax], dl
lea rdx, [rax + 1]
cmp rdx, rbx
jae 0x1401c5bb9
shl r10b, 4
and r10b, 0x30
mov r11d, 2
movzx r10d, r10b
movzx r9d, byte [r9 + r10]
mov byte [rcx + rdx], r9b
add rax, r11
cmp byte [r8 + 0x10], 0
je 0x1401c5b46
cmp rax, rbx
ja 0x1401c5c82
xor edx, edx
test rsi, rsi
je 0x1401c5b48
xor rsi, 3
je 0x1401c5b48
mov rdx, rbx
sub rdx, rax
je 0x1401c5b7f
mov byte [rcx + rax], 0x3d
cmp rsi, 1
je 0x1401c5b41
cmp rdx, 1
je 0x1401c5b7f
mov byte [rcx + rax + 1], 0x3d
cmp rsi, 2
je 0x1401c5b41
cmp rdx, 2
je 0x1401c5b7f
mov byte [rcx + rax + 2], 0x3d
mov rdx, rsi
jmp 0x1401c5b48
xor edx, edx
add rax, rdx
jb 0x1401c5c68
cmp byte [r8], 0
je 0x1401c5b6f
mov r9, qword [r8 + 8]
movzx edx, byte [r8 + 1]
mov byte [rsp + 0x20], dl
mov rdx, rbx
mov r8, rax
call fcn.1401c5390
nop
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.C:Usershp.cargo_registry_srcindex.crates.io_6f17d22bba15001f_base64_0.9.3_srcencode.rs
mov rcx, rdx
call fcn.1401fc170
ud2
lea r8, str.C:Usershp.cargo_registry_srcindex.crates.io_6f17d22bba15001f_base64_0.9.3_srcencode.rs
jmp 0x1401c5ba0
lea r8, str.C:Usershp.cargo_registry_srcindex.crates.io_6f17d22bba15001f_base64_0.9.3_srcencode.rs
mov rcx, rax
jmp 0x1401c5bd8
lea r8, str.C:Usershp.cargo_registry_srcindex.crates.io_6f17d22bba15001f_base64_0.9.3_srcencode.rs
mov rcx, rdx
mov rdx, r10
call fcn.1401fc170
ud2
lea r8, str.C:Usershp.cargo_registry_srcindex.crates.io_6f17d22bba15001f_base64_0.9.3_srcencode.rs
jmp 0x1401c5bd5
lea r8, str.C:Usershp.cargo_registry_srcindex.crates.io_6f17d22bba15001f_base64_0.9.3_srcencode.rs
mov rcx, r10
jmp 0x1401c5bd8
lea r8, str.C:Usershp.cargo_registry_srcindex.crates.io_6f17d22bba15001f_base64_0.9.3_srcencode.rs
mov rcx, rdx
mov rdx, rbx
call fcn.1401fc170
ud2
lea r8, str.C:Usershp.cargo_registry_srcindex.crates.io_6f17d22bba15001f_base64_0.9.3_srcencode.rs
mov rcx, rax
jmp 0x1401c5c31
lea r8, str.C:Usershp.cargo_registry_srcindex.crates.io_6f17d22bba15001f_base64_0.9.3_srcencode.rs
mov rcx, 0xffffffffffffffe0
xor edx, edx
call fcn.1401fc680
ud2
lea r8, str.C:Usershp.cargo_registry_srcindex.crates.io_6f17d22bba15001f_base64_0.9.3_srcencode.rs
jmp 0x1401c5c5b
lea rdx, [rdi + 3]
lea r8, str.C:Usershp.cargo_registry_srcindex.crates.io_6f17d22bba15001f_base64_0.9.3_srcencode.rs
mov rcx, rdi
call fcn.1401fc680
ud2
add rdi, 3
lea r8, str.C:Usershp.cargo_registry_srcindex.crates.io_6f17d22bba15001f_base64_0.9.3_srcencode.rs
mov rcx, rdi
mov rdx, r10
call fcn.1401fc600
ud2
lea rdx, [rsi + 4]
lea r8, str.C:Usershp.cargo_registry_srcindex.crates.io_6f17d22bba15001f_base64_0.9.3_srcencode.rs
mov rcx, rsi
call fcn.1401fc680
ud2
add rsi, 4
lea r8, str.C:Usershp.cargo_registry_srcindex.crates.io_6f17d22bba15001f_base64_0.9.3_srcencode.rs
mov rcx, rsi
mov rdx, rbx
call fcn.1401fc600
ud2
lea rcx, str.usize_overflow_when_calculating_b64_length
lea r8, str.C:Usershp.cargo_registry_srcindex.crates.io_6f17d22bba15001f_base64_0.9.3_srcencode.rs
mov edx, 0x2a
call fcn.1401fbfc0
ud2
lea r8, str.C:Usershp.cargo_registry_srcindex.crates.io_6f17d22bba15001f_base64_0.9.3_srcencode.rs
mov rcx, rax
mov rdx, rbx
call fcn.1401fc580
ud2