Function at 0x14001ebec
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r10, rdx
mov r11, rcx
xor esi, esi
mov ecx, 3
mov rax, rdx
xor edx, edx
div rcx
mov r14, r10
sub r14, rdx
lea r15, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
xor ecx, ecx
cmp rsi, r14
jae 0x14001ecb6
lea r12, [rsi + 3]
cmp r12, r10
ja 0x14001ee42
cmp rcx, 0xfffffffffffffffc
je 0x14001ee55
lea r13, [rcx + 4]
cmp r13, r9
ja 0x14001ee6c
movzx ebx, byte [r11 + rsi]
mov rdi, rbx
shr rdi, 2
mov al, byte [rdi + r15]
mov byte [r8 + rcx], al
mov dil, byte [r11 + rsi + 1]
shl bl, 4
mov eax, edi
shr al, 4
or al, bl
movzx eax, al
and eax, 0x3f
mov al, byte [rax + r15]
mov byte [r8 + rcx + 1], al
movzx eax, byte [r11 + rsi + 2]
shl dil, 2
mov ebx, eax
shr bl, 6
or bl, dil
movzx esi, bl
and esi, 0x3f
mov bl, byte [rsi + r15]
mov byte [r8 + rcx + 2], bl
and eax, 0x3f
mov al, byte [rax + r15]
mov byte [r8 + rcx + 3], al
mov rsi, r12
mov rcx, r13
jmp 0x14001ec1f
cmp rdx, 1
je 0x14001ed43
cmp rdx, 2
jne 0x14001ed8f
cmp r14, r10
jae 0x14001edee
cmp rcx, r9
jae 0x14001edf7
movzx eax, byte [r11 + r14]
mov rsi, rax
shr rsi, 2
mov bl, byte [rsi + r15]
mov byte [r8 + rcx], bl
inc r14
cmp r14, r10
jae 0x14001ee12
lea rsi, [rcx + 1]
cmp rsi, r9
jae 0x14001ee2a
mov bl, byte [r11 + r14]
mov r10d, ebx
shr r10b, 4
shl al, 4
or al, r10b
movzx eax, al
and eax, 0x3f
mov al, byte [rax + r15]
mov byte [r8 + rcx + 1], al
lea rax, [rcx + 2]
cmp rax, r9
jae 0x14001ee36
shl bl, 2
and bl, 0x3c
mov esi, 3
jmp 0x14001ed81
cmp r14, r10
jae 0x14001ee00
cmp rcx, r9
jae 0x14001ee09
movzx ebx, byte [r11 + r14]
mov rax, rbx
shr rax, 2
mov al, byte [rax + r15]
mov byte [r8 + rcx], al
lea rax, [rcx + 1]
cmp rax, r9
jae 0x14001ee21
shl bl, 4
and bl, 0x30
mov esi, 2
movzx ebx, bl
mov bl, byte [rbx + r15]
mov byte [r8 + rax], bl
or rcx, rsi
cmp rcx, r9
ja 0x14001ee81
add r8, rcx
sub r9, rcx
xor dl, 3
movzx eax, dl
mov dl, 3
div dl
movzx eax, ah
xor edx, edx
cmp rax, rdx
je 0x14001edc1
cmp r9, rdx
je 0x14001edda
mov byte [r8 + rdx], 0x3d
inc rdx
jmp 0x14001edad
add rcx, rax
jb 0x14001ee92
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str.C:Users_tuxis.cargo_registry_srcgithub.com_1ecc6299db9ec823_base64_0.13.1_srcencode.rsInvalid_UTF8
mov rcx, r9
mov rdx, r9
call fcn.1400e3440
ud2
lea r8, str.C:Users_tuxis.cargo_registry_srcgithub.com_1ecc6299db9ec823_base64_0.13.1_srcencode.rsInvalid_UTF8
jmp 0x14001ee19
lea r8, str.C:Users_tuxis.cargo_registry_srcgithub.com_1ecc6299db9ec823_base64_0.13.1_srcencode.rsInvalid_UTF8
jmp 0x14001ede4
lea r8, str.C:Users_tuxis.cargo_registry_srcgithub.com_1ecc6299db9ec823_base64_0.13.1_srcencode.rsInvalid_UTF8
jmp 0x14001ee19
lea r8, str.C:Users_tuxis.cargo_registry_srcgithub.com_1ecc6299db9ec823_base64_0.13.1_srcencode.rsInvalid_UTF8
jmp 0x14001ede4
lea r8, str.C:Users_tuxis.cargo_registry_srcgithub.com_1ecc6299db9ec823_base64_0.13.1_srcencode.rsInvalid_UTF8
mov rcx, r14
mov rdx, r10
jmp 0x14001ede7
lea r8, str.C:Users_tuxis.cargo_registry_srcgithub.com_1ecc6299db9ec823_base64_0.13.1_srcencode.rsInvalid_UTF8
jmp 0x14001ee3d
lea r8, str.C:Users_tuxis.cargo_registry_srcgithub.com_1ecc6299db9ec823_base64_0.13.1_srcencode.rsInvalid_UTF8
mov rcx, rsi
jmp 0x14001ede4
lea r8, str.C:Users_tuxis.cargo_registry_srcgithub.com_1ecc6299db9ec823_base64_0.13.1_srcencode.rsInvalid_UTF8
mov rcx, rax
jmp 0x14001ede4
add rsi, 3
lea r8, str.C:Users_tuxis.cargo_registry_srcgithub.com_1ecc6299db9ec823_base64_0.13.1_srcencode.rsInvalid_UTF8
mov rcx, rsi
mov rdx, r10
jmp 0x14001ee7a
lea r8, str.C:Users_tuxis.cargo_registry_srcgithub.com_1ecc6299db9ec823_base64_0.13.1_srcencode.rsInvalid_UTF8
mov rcx, 0xfffffffffffffffc
xor edx, edx
call fcn.1400e35a0
ud2
add rcx, 4
lea r8, str.C:Users_tuxis.cargo_registry_srcgithub.com_1ecc6299db9ec823_base64_0.13.1_srcencode.rsInvalid_UTF8
mov rdx, r9
call fcn.1400e34d0
ud2
lea r8, str.C:Users_tuxis.cargo_registry_srcgithub.com_1ecc6299db9ec823_base64_0.13.1_srcencode.rsInvalid_UTF8
mov rdx, r9
call fcn.1400e34c0
ud2
lea rcx, str.usize_overflow_when_calculating_b64_length
lea r8, str.C:Users_tuxis.cargo_registry_srcgithub.com_1ecc6299db9ec823_base64_0.13.1_srcencode.rsInvalid_UTF8
mov edx, 0x2a
call fcn.1400e35b0
ud2