Function at 0x140035090
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov r10, rdx
mov r9, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x80]
movsx rax, r8b
lea rdx, [0x14011e5a0]
mov rbx, qword [rdx + rax*8]
xor esi, esi
mov rdx, r10
mov r11d, 0
sub rdx, 0x1a
cmovb rdx, rsi
jbe 0x1400353aa
mov eax, 0x20
xor esi, esi
mov r11, rax
lea rax, [rsi + 0x1a]
cmp rax, r10
ja 0x14003561a
test r11, r11
je 0x140035626
cmp r11, r9
ja 0x14003563d
mov rax, qword [rcx + rsi]
bswap rax
mov r14, rax
shr r14, 0x3a
movzx ebp, byte [rbx + r14]
mov byte [rdi + r11 - 0x20], bpl
mov r14, rax
shr r14, 0x34
and r14d, 0x3f
movzx ebp, byte [rbx + r14]
mov byte [rdi + r11 - 0x1f], bpl
mov r14, rax
shr r14, 0x2e
and r14d, 0x3f
movzx ebp, byte [rbx + r14]
mov byte [rdi + r11 - 0x1e], bpl
mov r14, rax
shr r14, 0x28
and r14d, 0x3f
movzx ebp, byte [rbx + r14]
mov byte [rdi + r11 - 0x1d], bpl
mov r14, rax
shr r14, 0x22
and r14d, 0x3f
movzx ebp, byte [rbx + r14]
mov byte [rdi + r11 - 0x1c], bpl
mov r14, rax
shr r14, 0x1c
and r14d, 0x3f
movzx ebp, byte [rbx + r14]
mov byte [rdi + r11 - 0x1b], bpl
mov r14d, eax
shr r14d, 0x16
and r14d, 0x3f
movzx ebp, byte [rbx + r14]
mov byte [rdi + r11 - 0x1a], bpl
shr eax, 0x10
and eax, 0x3f
movzx ebp, byte [rbx + rax]
mov rax, qword [rcx + rsi + 6]
bswap rax
mov byte [rdi + r11 - 0x19], bpl
mov r14, rax
shr r14, 0x3a
movzx ebp, byte [rbx + r14]
mov byte [rdi + r11 - 0x18], bpl
mov r14, rax
shr r14, 0x34
and r14d, 0x3f
movzx ebp, byte [rbx + r14]
mov byte [rdi + r11 - 0x17], bpl
mov r14, rax
shr r14, 0x2e
and r14d, 0x3f
movzx ebp, byte [rbx + r14]
mov byte [rdi + r11 - 0x16], bpl
mov r14, rax
shr r14, 0x28
and r14d, 0x3f
movzx ebp, byte [rbx + r14]
mov byte [rdi + r11 - 0x15], bpl
mov r14, rax
shr r14, 0x22
and r14d, 0x3f
movzx ebp, byte [rbx + r14]
mov byte [rdi + r11 - 0x14], bpl
mov r14, rax
shr r14, 0x1c
and r14d, 0x3f
movzx ebp, byte [rbx + r14]
mov byte [rdi + r11 - 0x13], bpl
mov r14d, eax
shr r14d, 0x16
and r14d, 0x3f
movzx ebp, byte [rbx + r14]
mov byte [rdi + r11 - 0x12], bpl
shr eax, 0x10
and eax, 0x3f
movzx eax, byte [rbx + rax]
mov byte [rdi + r11 - 0x11], al
mov rax, qword [rcx + rsi + 0xc]
bswap rax
mov r14, rax
shr r14, 0x3a
movzx ebp, byte [rbx + r14]
mov byte [rdi + r11 - 0x10], bpl
mov r14, rax
shr r14, 0x34
and r14d, 0x3f
movzx ebp, byte [rbx + r14]
mov byte [rdi + r11 - 0xf], bpl
mov r14, rax
shr r14, 0x2e
and r14d, 0x3f
movzx ebp, byte [rbx + r14]
mov byte [rdi + r11 - 0xe], bpl
mov r14, rax
shr r14, 0x28
and r14d, 0x3f
movzx ebp, byte [rbx + r14]
mov byte [rdi + r11 - 0xd], bpl
mov r14, rax
shr r14, 0x22
and r14d, 0x3f
movzx ebp, byte [rbx + r14]
mov byte [rdi + r11 - 0xc], bpl
mov r14, rax
shr r14, 0x1c
and r14d, 0x3f
movzx ebp, byte [rbx + r14]
mov byte [rdi + r11 - 0xb], bpl
mov r14d, eax
shr r14d, 0x16
and r14d, 0x3f
movzx ebp, byte [rbx + r14]
mov byte [rdi + r11 - 0xa], bpl
shr eax, 0x10
and eax, 0x3f
movzx eax, byte [rbx + rax]
mov byte [rdi + r11 - 9], al
mov rax, qword [rcx + rsi + 0x12]
bswap rax
mov r14, rax
shr r14, 0x3a
movzx ebp, byte [rbx + r14]
mov byte [rdi + r11 - 8], bpl
mov r14, rax
shr r14, 0x34
and r14d, 0x3f
movzx ebp, byte [rbx + r14]
mov byte [rdi + r11 - 7], bpl
mov r14, rax
shr r14, 0x2e
and r14d, 0x3f
movzx ebp, byte [rbx + r14]
mov byte [rdi + r11 - 6], bpl
mov r14, rax
shr r14, 0x28
and r14d, 0x3f
movzx ebp, byte [rbx + r14]
mov byte [rdi + r11 - 5], bpl
mov r14, rax
shr r14, 0x22
and r14d, 0x3f
movzx ebp, byte [rbx + r14]
mov byte [rdi + r11 - 4], bpl
mov r14, rax
shr r14, 0x1c
and r14d, 0x3f
movzx ebp, byte [rbx + r14]
mov byte [rdi + r11 - 3], bpl
mov r14d, eax
shr r14d, 0x16
and r14d, 0x3f
movzx ebp, byte [rbx + r14]
mov byte [rdi + r11 - 2], bpl
shr eax, 0x10
and eax, 0x3f
movzx eax, byte [rbx + rax]
mov byte [rdi + r11 - 1], al
add rsi, 0x18
lea rax, [r11 + 0x20]
cmp rsi, rdx
jbe 0x1400350e0
movabs rdx, 0xaaaaaaaaaaaaaaab
mov rax, r10
mul rdx
shr rdx, 1
lea rdx, [rdx + rdx*2]
cmp rsi, rdx
jae 0x140035502
nop word [rax + rax]
cmp rsi, 0xfffffffffffffffc
ja 0x140035646
lea r14, [rsi + 3]
cmp r14, r10
ja 0x14003565b
cmp r11, 0xfffffffffffffffb
ja 0x140035673
lea rax, [r11 + 4]
cmp rax, r9
ja 0x140035688
movzx r15d, byte [rcx + rsi]
mov r12, r15
shr r12, 2
movzx ebp, byte [rbx + r12]
mov byte [rdi + r11], bpl
movzx ebp, byte [rcx + rsi + 1]
shl r15b, 4
mov r12d, ebp
shr r12b, 4
or r12b, r15b
movzx r15d, r12b
and r15d, 0x3f
movzx r15d, byte [rbx + r15]
mov byte [rdi + r11 + 1], r15b
movzx esi, byte [rcx + rsi + 2]
shl bpl, 2
mov r15d, esi
shr r15b, 6
or r15b, bpl
movzx r15d, r15b
and r15d, 0x3f
movzx ebp, byte [rbx + r15]
mov byte [rdi + r11 + 2], bpl
and esi, 0x3f
movzx esi, byte [rbx + rsi]
mov byte [rdi + r11 + 3], sil
mov r11, rax
mov rsi, r14
cmp r14, rdx
jb 0x1400353d0
mov r11, r10
sub r11, rdx
cmp r11, 1
je 0x140035515
cmp r11, 2
jne 0x140035556
cmp rax, r9
jae 0x1400355cb
movzx esi, byte [rcx + rdx]
mov r14, rsi
shr r14, 2
movzx ebp, byte [rbx + r14]
mov byte [rdi + rax], bpl
inc rdx
cmp rdx, r10
jae 0x1400355e0
lea r10, [rax + 1]
cmp r10, r9
jae 0x1400355fd
movzx edx, byte [rcx + rdx]
mov ecx, edx
shr cl, 4
shl sil, 4
or sil, cl
movzx ecx, sil
and ecx, 0x3f
movzx ecx, byte [rbx + rcx]
mov byte [rdi + rax + 1], cl
lea rcx, [rax + 2]
cmp rcx, r9
jae 0x140035609
shl dl, 2
and dl, 0x3c
mov r10d, 3
jmp 0x140035549
mov rax, r11
mov r11, r10
sub r11, rdx
cmp r11, 1
jne 0x140035488
cmp rax, r9
jae 0x1400355d4
movzx edx, byte [rcx + rdx]
mov rcx, rdx
shr rcx, 2
movzx ecx, byte [rbx + rcx]
mov byte [rdi + rax], cl
lea rcx, [rax + 1]
cmp rcx, r9
jae 0x1400355f4
shl dl, 4
and dl, 0x30
mov r10d, 2
movzx edx, dl
movzx edx, byte [rbx + rdx]
mov byte [rdi + rcx], dl
add rax, r10
test r8d, 0x100
jne 0x140035563
xor ecx, ecx
jmp 0x1400355a7
cmp rax, r9
ja 0x1400356ba
xor ecx, ecx
test r11, r11
je 0x1400355a7
xor r11, 3
je 0x1400355a7
sub r9, rax
je 0x1400355bf
mov byte [rdi + rax], 0x3d
cmp r11, 1
je 0x1400355a4
cmp r9, 1
je 0x1400355bf
mov byte [rdi + rax + 1], 0x3d
cmp r11, 2
je 0x1400355a4
cmp r9, 2
je 0x1400355bf
mov byte [rdi + rax + 2], 0x3d
mov rcx, r11
add rax, rcx
jb 0x1400356a0
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.C:Users_scrip.cargo_registry_srcindex.crates.io_6f17d22bba15001f_base64_0.13.1_srcencode.rs
mov rcx, r9
jmp 0x140035610
lea r8, str.C:Users_scrip.cargo_registry_srcindex.crates.io_6f17d22bba15001f_base64_0.13.1_srcencode.rs
jmp 0x1400355db
lea r8, str.C:Users_scrip.cargo_registry_srcindex.crates.io_6f17d22bba15001f_base64_0.13.1_srcencode.rs
mov rcx, rax
jmp 0x140035610
lea r8, str.C:Users_scrip.cargo_registry_srcindex.crates.io_6f17d22bba15001f_base64_0.13.1_srcencode.rs
mov rcx, rdx
mov rdx, r10
call fcn.1401058c0
ud2
lea r8, str.C:Users_scrip.cargo_registry_srcindex.crates.io_6f17d22bba15001f_base64_0.13.1_srcencode.rs
jmp 0x140035610
lea r8, str.C:Users_scrip.cargo_registry_srcindex.crates.io_6f17d22bba15001f_base64_0.13.1_srcencode.rs
mov rcx, r10
jmp 0x140035610
lea r8, str.C:Users_scrip.cargo_registry_srcindex.crates.io_6f17d22bba15001f_base64_0.13.1_srcencode.rs
mov rdx, r9
call fcn.1401058c0
ud2
lea r8, str.C:Users_scrip.cargo_registry_srcindex.crates.io_6f17d22bba15001f_base64_0.13.1_srcencode.rs
mov rcx, rax
jmp 0x140035669
lea r8, str.C:Users_scrip.cargo_registry_srcindex.crates.io_6f17d22bba15001f_base64_0.13.1_srcencode.rs
mov rcx, 0xffffffffffffffe0
xor edx, edx
call fcn.140105c80
ud2
lea r8, str.C:Users_scrip.cargo_registry_srcindex.crates.io_6f17d22bba15001f_base64_0.13.1_srcencode.rs
jmp 0x140035693
lea rdx, [rsi + 3]
lea r8, str.C:Users_scrip.cargo_registry_srcindex.crates.io_6f17d22bba15001f_base64_0.13.1_srcencode.rs
mov rcx, rsi
call fcn.140105c80
ud2
add rsi, 3
lea r8, str.C:Users_scrip.cargo_registry_srcindex.crates.io_6f17d22bba15001f_base64_0.13.1_srcencode.rs
mov rcx, rsi
mov rdx, r10
call fcn.140105c70
ud2
lea rdx, [r11 + 4]
lea r8, str.C:Users_scrip.cargo_registry_srcindex.crates.io_6f17d22bba15001f_base64_0.13.1_srcencode.rs
mov rcx, r11
call fcn.140105c80
ud2
add r11, 4
lea r8, str.C:Users_scrip.cargo_registry_srcindex.crates.io_6f17d22bba15001f_base64_0.13.1_srcencode.rs
mov rcx, r11
mov rdx, r9
call fcn.140105c70
ud2
lea rcx, str.usize_overflow_when_calculating_b64_length
lea r8, str.C:Users_scrip.cargo_registry_srcindex.crates.io_6f17d22bba15001f_base64_0.13.1_srcencode.rs
mov edx, 0x2a
call fcn.140105700
ud2
lea r8, str.C:Users_scrip.cargo_registry_srcindex.crates.io_6f17d22bba15001f_base64_0.13.1_srcencode.rs
mov rcx, rax
mov rdx, r9
call fcn.140105c60
ud2