Function at 0x140046430
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 r9, qword [rsp + 0x88]
mov r14, qword [rsp + 0x80]
movsx rax, r8b
lea rdx, [0x1401a9fd8]
mov rdi, qword [rdx + rax*8]
xor r13d, r13d
mov r15, r10
mov r11d, 0
sub r15, 0x1a
cmovb r15, r13
jbe 0x14004671e
mov eax, 0x20
xor r13d, r13d
nop word cs:[rax + rax]
mov r11, rax
lea rax, [r13 + 0x1a]
cmp rax, r10
ja 0x1400469a7
test r11, r11
je 0x1400469b3
cmp r11, r9
ja 0x1400469ca
mov rax, qword [rcx + r13]
bswap rax
mov rsi, rax
shr rsi, 0x3a
movzx edx, byte [rdi + rsi]
mov byte [r14 + r11 - 0x20], dl
mov rdx, rax
shr rdx, 0x34
and edx, 0x3f
movzx edx, byte [rdi + rdx]
mov byte [r14 + r11 - 0x1f], dl
mov rdx, rax
shr rdx, 0x2e
and edx, 0x3f
movzx edx, byte [rdi + rdx]
mov byte [r14 + r11 - 0x1e], dl
mov rdx, rax
shr rdx, 0x28
and edx, 0x3f
movzx edx, byte [rdi + rdx]
mov byte [r14 + r11 - 0x1d], dl
mov rdx, rax
shr rdx, 0x22
and edx, 0x3f
movzx edx, byte [rdi + rdx]
mov byte [r14 + r11 - 0x1c], dl
mov rdx, rax
shr rdx, 0x1c
and edx, 0x3f
movzx edx, byte [rdi + rdx]
mov byte [r14 + r11 - 0x1b], dl
mov edx, eax
shr edx, 0x16
and edx, 0x3f
movzx edx, byte [rdi + rdx]
mov byte [r14 + r11 - 0x1a], dl
shr eax, 0x10
and eax, 0x3f
movzx edx, byte [rdi + rax]
mov rax, qword [rcx + r13 + 6]
bswap rax
mov byte [r14 + r11 - 0x19], dl
mov rdx, rax
shr rdx, 0x3a
movzx edx, byte [rdi + rdx]
mov byte [r14 + r11 - 0x18], dl
mov rdx, rax
shr rdx, 0x34
and edx, 0x3f
movzx edx, byte [rdi + rdx]
mov byte [r14 + r11 - 0x17], dl
mov rdx, rax
shr rdx, 0x2e
and edx, 0x3f
movzx edx, byte [rdi + rdx]
mov byte [r14 + r11 - 0x16], dl
mov rdx, rax
shr rdx, 0x28
and edx, 0x3f
movzx edx, byte [rdi + rdx]
mov byte [r14 + r11 - 0x15], dl
mov rdx, rax
shr rdx, 0x22
and edx, 0x3f
movzx edx, byte [rdi + rdx]
mov byte [r14 + r11 - 0x14], dl
mov rdx, rax
shr rdx, 0x1c
and edx, 0x3f
movzx edx, byte [rdi + rdx]
mov byte [r14 + r11 - 0x13], dl
mov edx, eax
shr edx, 0x16
and edx, 0x3f
movzx edx, byte [rdi + rdx]
mov byte [r14 + r11 - 0x12], dl
shr eax, 0x10
and eax, 0x3f
movzx eax, byte [rdi + rax]
mov byte [r14 + r11 - 0x11], al
mov rax, qword [rcx + r13 + 0xc]
bswap rax
mov rdx, rax
shr rdx, 0x3a
movzx edx, byte [rdi + rdx]
mov byte [r14 + r11 - 0x10], dl
mov rdx, rax
shr rdx, 0x34
and edx, 0x3f
movzx edx, byte [rdi + rdx]
mov byte [r14 + r11 - 0xf], dl
mov rdx, rax
shr rdx, 0x2e
and edx, 0x3f
movzx edx, byte [rdi + rdx]
mov byte [r14 + r11 - 0xe], dl
mov rdx, rax
shr rdx, 0x28
and edx, 0x3f
movzx edx, byte [rdi + rdx]
mov byte [r14 + r11 - 0xd], dl
mov rdx, rax
shr rdx, 0x22
and edx, 0x3f
movzx edx, byte [rdi + rdx]
mov byte [r14 + r11 - 0xc], dl
mov rdx, rax
shr rdx, 0x1c
and edx, 0x3f
movzx edx, byte [rdi + rdx]
mov byte [r14 + r11 - 0xb], dl
mov edx, eax
shr edx, 0x16
and edx, 0x3f
movzx edx, byte [rdi + rdx]
mov byte [r14 + r11 - 0xa], dl
shr eax, 0x10
and eax, 0x3f
movzx eax, byte [rdi + rax]
mov byte [r14 + r11 - 9], al
mov rax, qword [rcx + r13 + 0x12]
bswap rax
mov rdx, rax
shr rdx, 0x3a
movzx edx, byte [rdi + rdx]
mov byte [r14 + r11 - 8], dl
mov rdx, rax
shr rdx, 0x34
and edx, 0x3f
movzx edx, byte [rdi + rdx]
mov byte [r14 + r11 - 7], dl
mov rdx, rax
shr rdx, 0x2e
and edx, 0x3f
movzx edx, byte [rdi + rdx]
mov byte [r14 + r11 - 6], dl
mov rdx, rax
shr rdx, 0x28
and edx, 0x3f
movzx edx, byte [rdi + rdx]
mov byte [r14 + r11 - 5], dl
mov rdx, rax
shr rdx, 0x22
and edx, 0x3f
movzx edx, byte [rdi + rdx]
mov byte [r14 + r11 - 4], dl
mov rdx, rax
shr rdx, 0x1c
and edx, 0x3f
movzx edx, byte [rdi + rdx]
mov byte [r14 + r11 - 3], dl
mov edx, eax
shr edx, 0x16
and edx, 0x3f
movzx edx, byte [rdi + rdx]
mov byte [r14 + r11 - 2], dl
shr eax, 0x10
and eax, 0x3f
movzx eax, byte [rdi + rax]
mov byte [r14 + r11 - 1], al
add r13, 0x18
lea rax, [r11 + 0x20]
cmp r13, r15
jbe 0x140046490
movabs rdx, 0xaaaaaaaaaaaaaaab
mov rax, r10
mul rdx
shr rdx, 1
lea r15, [rdx + rdx*2]
cmp r13, r15
jae 0x14004686e
nop
cmp r13, 0xfffffffffffffffc
ja 0x1400469d3
lea rsi, [r13 + 3]
cmp rsi, r10
ja 0x1400469e8
cmp r11, 0xfffffffffffffffb
ja 0x140046a00
lea r12, [r11 + 4]
cmp r12, r9
ja 0x140046a15
movzx eax, byte [rcx + r13]
mov rdx, rax
shr rdx, 2
movzx edx, byte [rdi + rdx]
mov byte [r14 + r11], dl
movzx ebx, byte [rcx + r13 + 1]
shl al, 4
mov edx, ebx
shr dl, 4
or dl, al
movzx eax, dl
and eax, 0x3f
movzx eax, byte [rdi + rax]
mov byte [r14 + r11 + 1], al
movzx eax, byte [rcx + r13 + 2]
shl bl, 2
mov edx, eax
shr dl, 6
or dl, bl
movzx edx, dl
and edx, 0x3f
movzx edx, byte [rdi + rdx]
mov byte [r14 + r11 + 2], dl
and eax, 0x3f
movzx eax, byte [rdi + rax]
mov byte [r14 + r11 + 3], al
mov r11, r12
mov r13, rsi
cmp rsi, r15
jb 0x140046740
mov rsi, r10
sub rsi, r15
cmp rsi, 1
je 0x140046881
cmp rsi, 2
jne 0x1400468ce
cmp r15, r10
jae 0x140046946
cmp r12, r9
jae 0x140046958
movzx eax, byte [rcx + r15]
mov rdx, rax
shr rdx, 2
movzx edx, byte [rdi + rdx]
mov byte [r14 + r12], dl
inc r15
cmp r15, r10
jae 0x14004696d
lea r10, [r12 + 1]
cmp r10, r9
jae 0x14004698a
movzx edx, byte [rcx + r15]
mov ecx, edx
shr cl, 4
shl al, 4
or al, cl
movzx eax, al
and eax, 0x3f
movzx eax, byte [rdi + rax]
mov byte [r14 + r12 + 1], al
lea rcx, [r12 + 2]
cmp rcx, r9
jae 0x140046996
shl dl, 2
and dl, 0x3c
mov eax, 3
jmp 0x1400468c0
mov r12, r11
mov rsi, r10
sub rsi, r15
cmp rsi, 1
jne 0x1400467eb
cmp r15, r10
jae 0x14004694f
cmp r12, r9
jae 0x140046961
movzx edx, byte [rcx + r15]
mov rax, rdx
shr rax, 2
movzx eax, byte [rdi + rax]
mov byte [r14 + r12], al
lea rcx, [r12 + 1]
cmp rcx, r9
jae 0x140046981
shl dl, 4
and dl, 0x30
mov eax, 2
movzx edx, dl
movzx edx, byte [rdi + rdx]
mov byte [r14 + rcx], dl
add r12, rax
test r8d, 0x100
je 0x14004691f
cmp r12, r9
ja 0x140046a47
xor sil, 3
movzx ecx, sil
imul eax, ecx, 0xab
shr eax, 9
lea eax, [rax + rax*2]
sub cl, al
je 0x14004691f
sub r9, r12
je 0x14004693a
mov byte [r14 + r12], 0x3d
mov edx, 1
cmp cl, 2
jb 0x140046921
cmp r9, 1
je 0x14004693a
mov byte [r14 + r12 + 1], 0x3d
mov edx, 2
jmp 0x140046921
xor edx, edx
add r12, rdx
jb 0x140046a2d
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str.C:UsersWesley.cargo_registry_srcgithub.com_1ecc6299db9ec823_base64_0.13.1_srcencode.rs
mov rcx, r9
jmp 0x14004699d
lea r8, str.C:UsersWesley.cargo_registry_srcgithub.com_1ecc6299db9ec823_base64_0.13.1_srcencode.rs
jmp 0x140046974
lea r8, str.C:UsersWesley.cargo_registry_srcgithub.com_1ecc6299db9ec823_base64_0.13.1_srcencode.rs
jmp 0x140046974
lea r8, str.C:UsersWesley.cargo_registry_srcgithub.com_1ecc6299db9ec823_base64_0.13.1_srcencode.rs
jmp 0x140046968
lea r8, str.C:UsersWesley.cargo_registry_srcgithub.com_1ecc6299db9ec823_base64_0.13.1_srcencode.rs
mov rcx, r12
jmp 0x14004699d
lea r8, str.C:UsersWesley.cargo_registry_srcgithub.com_1ecc6299db9ec823_base64_0.13.1_srcencode.rs
mov rcx, r15
mov rdx, r10
call fcn.14018ff00
ud2
lea r8, str.C:UsersWesley.cargo_registry_srcgithub.com_1ecc6299db9ec823_base64_0.13.1_srcencode.rs
jmp 0x14004699d
lea r8, str.C:UsersWesley.cargo_registry_srcgithub.com_1ecc6299db9ec823_base64_0.13.1_srcencode.rs
mov rcx, r10
jmp 0x14004699d
lea r8, str.C:UsersWesley.cargo_registry_srcgithub.com_1ecc6299db9ec823_base64_0.13.1_srcencode.rs
mov rdx, r9
call fcn.14018ff00
ud2
lea r8, str.C:UsersWesley.cargo_registry_srcgithub.com_1ecc6299db9ec823_base64_0.13.1_srcencode.rs
mov rcx, rax
jmp 0x1400469f6
lea r8, str.C:UsersWesley.cargo_registry_srcgithub.com_1ecc6299db9ec823_base64_0.13.1_srcencode.rs
mov rcx, 0xffffffffffffffe0
xor edx, edx
call fcn.1401902c0
ud2
lea r8, str.C:UsersWesley.cargo_registry_srcgithub.com_1ecc6299db9ec823_base64_0.13.1_srcencode.rs
jmp 0x140046a20
lea rdx, [r13 + 3]
lea r8, str.C:UsersWesley.cargo_registry_srcgithub.com_1ecc6299db9ec823_base64_0.13.1_srcencode.rs
mov rcx, r13
call fcn.1401902c0
ud2
add r13, 3
lea r8, str.C:UsersWesley.cargo_registry_srcgithub.com_1ecc6299db9ec823_base64_0.13.1_srcencode.rs
mov rcx, r13
mov rdx, r10
call fcn.1401902b0
ud2
lea rdx, [r11 + 4]
lea r8, str.C:UsersWesley.cargo_registry_srcgithub.com_1ecc6299db9ec823_base64_0.13.1_srcencode.rs
mov rcx, r11
call fcn.1401902c0
ud2
add r11, 4
lea r8, str.C:UsersWesley.cargo_registry_srcgithub.com_1ecc6299db9ec823_base64_0.13.1_srcencode.rs
mov rcx, r11
mov rdx, r9
call fcn.1401902b0
ud2
lea rcx, str.usize_overflow_when_calculating_b64_length
lea r8, str.C:UsersWesley.cargo_registry_srcgithub.com_1ecc6299db9ec823_base64_0.13.1_srcencode.rs
mov edx, 0x2a
call fcn.14018fdc0
ud2
lea r8, str.C:UsersWesley.cargo_registry_srcgithub.com_1ecc6299db9ec823_base64_0.13.1_srcencode.rs
mov rcx, r12
mov rdx, r9
call fcn.1401902a0
ud2