Function at 0x1a7f1be1878
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 0x1a7f1be1f19
mov rcx, r14
shr rcx, 0x3e
add rdi, 4
setb al
cmp ecx, 2
ja 0x1a7f1be1f29
test al, al
jne 0x1a7f1be1f29
mov rcx, rdi
mov dl, 1
call fcn.1a7f1b7b13a
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 0x1a7f1be1d69
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, [0x1a7f1c38728]
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov rdx, rsi
mov r8, qword [rsp + 0x38]
mov r9, r14
call fcn.1a7f1b7b187
mov r14, rax
mov r13, rdx
add rbp, 0x20
lea rax, [0x1a7f1c38740]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
mov r8, rbx
mov r9, rbp
call fcn.1a7f1b66de5
mov rbx, rax
mov r15, rdx
mov rcx, r14
mov rdx, r13
xor r8d, r8d
lea r9, [0x1a7f1c38758]
call fcn.1a7f1b66eb7
mov rcx, rax
call fcn.1a7f1b66e23
test r15, r15
je 0x1a7f1be209b
mov rcx, rax
shr rcx, 0x3a
mov cl, byte [rcx + r12]
mov byte [rbx], cl
cmp r15, 1
je 0x1a7f1be20ab
mov rcx, rax
shr rcx, 0x34
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 1], cl
cmp r15, 2
jbe 0x1a7f1be20c1
mov rcx, rax
shr rcx, 0x2e
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 2], cl
cmp r15, 3
je 0x1a7f1be20d7
mov rcx, rax
shr rcx, 0x28
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 3], cl
cmp r15, 4
jbe 0x1a7f1be20ed
mov rcx, rax
shr rcx, 0x22
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 4], cl
cmp r15, 5
je 0x1a7f1be2103
mov rcx, rax
shr rcx, 0x1c
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 5], cl
cmp r15, 6
jbe 0x1a7f1be2119
mov ecx, eax
shr ecx, 0x16
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 6], cl
cmp r15, 7
je 0x1a7f1be212f
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, [0x1a7f1c38830]
call fcn.1a7f1b66eb7
mov rcx, rax
call fcn.1a7f1b66e23
cmp r15, 8
jbe 0x1a7f1be2145
mov rcx, rax
shr rcx, 0x3a
mov cl, byte [rcx + r12]
mov byte [rbx + 8], cl
cmp r15, 9
je 0x1a7f1be215b
mov rcx, rax
shr rcx, 0x34
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 9], cl
cmp r15, 0xa
jbe 0x1a7f1be2171
mov rcx, rax
shr rcx, 0x2e
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0xa], cl
cmp r15, 0xb
je 0x1a7f1be2187
mov rcx, rax
shr rcx, 0x28
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0xb], cl
cmp r15, 0xc
jbe 0x1a7f1be219d
mov rcx, rax
shr rcx, 0x22
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0xc], cl
cmp r15, 0xd
je 0x1a7f1be21b3
mov rcx, rax
shr rcx, 0x1c
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0xd], cl
cmp r15, 0xe
jbe 0x1a7f1be21c9
mov ecx, eax
shr ecx, 0x16
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0xe], cl
cmp r15, 0xf
je 0x1a7f1be21df
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, [0x1a7f1c38908]
call fcn.1a7f1b66eb7
mov rcx, rax
call fcn.1a7f1b66e23
cmp r15, 0x10
jbe 0x1a7f1be21f5
mov rcx, rax
shr rcx, 0x3a
mov cl, byte [rcx + r12]
mov byte [rbx + 0x10], cl
cmp r15, 0x11
je 0x1a7f1be220b
mov rcx, rax
shr rcx, 0x34
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x11], cl
cmp r15, 0x12
jbe 0x1a7f1be2221
mov rcx, rax
shr rcx, 0x2e
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x12], cl
cmp r15, 0x13
je 0x1a7f1be2237
mov rcx, rax
shr rcx, 0x28
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x13], cl
cmp r15, 0x14
jbe 0x1a7f1be224d
mov rcx, rax
shr rcx, 0x22
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x14], cl
cmp r15, 0x15
je 0x1a7f1be2263
mov rcx, rax
shr rcx, 0x1c
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x15], cl
cmp r15, 0x16
jbe 0x1a7f1be2279
mov ecx, eax
shr ecx, 0x16
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x16], cl
cmp r15, 0x17
je 0x1a7f1be228f
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, [0x1a7f1c389e0]
call fcn.1a7f1b66eb7
mov rcx, rax
call fcn.1a7f1b66e23
cmp r15, 0x18
jbe 0x1a7f1be22a5
mov rcx, rax
shr rcx, 0x3a
mov cl, byte [rcx + r12]
mov byte [rbx + 0x18], cl
cmp r15, 0x19
je 0x1a7f1be22bb
mov rcx, rax
shr rcx, 0x34
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x19], cl
cmp r15, 0x1a
jbe 0x1a7f1be22ce
mov rcx, rax
shr rcx, 0x2e
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x1a], cl
cmp r15, 0x1b
je 0x1a7f1be22e1
mov rcx, rax
shr rcx, 0x28
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x1b], cl
cmp r15, 0x1c
jbe 0x1a7f1be22f4
mov rcx, rax
shr rcx, 0x22
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x1c], cl
cmp r15, 0x1d
je 0x1a7f1be2307
mov rcx, rax
shr rcx, 0x1c
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x1d], cl
cmp r15, 0x1e
jbe 0x1a7f1be231a
mov ecx, eax
shr ecx, 0x16
and ecx, 0x3f
mov cl, byte [rcx + r12]
mov byte [rbx + 0x1e], cl
cmp r15, 0x1f
je 0x1a7f1be232d
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 0x1a7f1be193b
add rdi, 0x18
mov rbx, qword [rsp + 0x48]
mov rsi, r14
sub rsi, rbx
lea r13, [0x1a7f1c38668]
lea r12, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_internal_error:_entered_unreachable_code:
cmp rdi, rsi
jae 0x1a7f1be1e7a
lea rbx, [rdi + 3]
lea rax, [0x1a7f1c38650]
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov rdx, rbx
mov r8, qword [rsp + 0x38]
mov r9, r14
call fcn.1a7f1b7b187
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.1a7f1b66de5
test r15, r15
je 0x1a7f1be203d
test rdx, rdx
je 0x1a7f1be2046
movzx ecx, byte [r14]
shr ecx, 2
mov cl, byte [rcx + r12]
mov byte [rax], cl
cmp r15, 1
jbe 0x1a7f1be204f
cmp rdx, 1
jbe 0x1a7f1be2058
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 0x1a7f1be2069
cmp rdx, 2
jbe 0x1a7f1be2072
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 0x1a7f1be2083
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 0x1a7f1be1d7d
mov r8, qword [rsp + 0x48]
cmp r8, 1
je 0x1a7f1be1f43
cmp r8, 2
mov rdx, qword [rsp + 0x40]
jne 0x1a7f1be1f97
cmp rbp, rdx
jae 0x1a7f1be2345
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 0x1a7f1be235a
lea rcx, [rbp + 1]
cmp rcx, rdx
jae 0x1a7f1be2369
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 0x1a7f1be237b
shl al, 2
and al, 0x3c
mov r9d, 3
jmp 0x1a7f1be1f84
mov rax, r14
shr rax, 0x3e
cmp eax, 3
jb 0x1a7f1be18d6
lea rcx, str.integer_overflow_when_calculating_buffer_sizeE:.cargo_registry_srcindex.crates.io_6f17d22bba15001f_base64_0.13.1_srcencode.rs
lea r8, [0x1a7f1c88520]
mov edx, 0x2d
call fcn.1a7f1c3068e
ud2
mov rdx, qword [rsp + 0x40]
cmp rbp, rdx
jae 0x1a7f1be234e
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 0x1a7f1be2372
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 0x1a7f1be2384
add qword [rsp + 0x30], rbp
mov rdx, r8
xor rdx, 3
xor eax, eax
mov r9, qword [rsp + 0x30]
test r8, r8
je 0x1a7f1be1fd3
cmp rdx, rax
jbe 0x1a7f1be1fd3
cmp rcx, rax
je 0x1a7f1be208c
mov byte [r9 + rax], 0x3d
inc rax
jmp 0x1a7f1be1fb6
add rbp, rax
jb 0x1a7f1be2395
lea rsi, [rsp + 0x88]
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.1a7f1b43cf8
cmp byte [rsi + 0x20], 2
jne 0x1a7f1be23af
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.1a7f1b8357b
lea r8, [0x1a7f1c38680]
jmp 0x1a7f1be20a2
lea r8, [0x1a7f1c38698]
jmp 0x1a7f1be20a2
lea r8, [0x1a7f1c386b0]
jmp 0x1a7f1be20b2
lea r8, [0x1a7f1c386c8]
mov ecx, 1
jmp 0x1a7f1be233e
lea r8, [0x1a7f1c386e0]
jmp 0x1a7f1be20c8
lea r8, [0x1a7f1c386f8]
mov ecx, 2
jmp 0x1a7f1be233e
lea r8, [0x1a7f1c38710]
jmp 0x1a7f1be20de
lea r8, [0x1a7f1c38ab8]
mov rdx, rcx
jmp 0x1a7f1be233e
lea r8, [0x1a7f1c38770]
xor ecx, ecx
xor edx, edx
jmp 0x1a7f1be233e
lea r8, [0x1a7f1c38788]
mov ecx, 1
mov edx, 1
jmp 0x1a7f1be233e
lea r8, [0x1a7f1c387a0]
mov ecx, 2
mov edx, 2
jmp 0x1a7f1be233e
lea r8, [0x1a7f1c387b8]
mov ecx, 3
mov edx, 3
jmp 0x1a7f1be233e
lea r8, [0x1a7f1c387d0]
mov ecx, 4
mov edx, 4
jmp 0x1a7f1be233e
lea r8, [0x1a7f1c387e8]
mov ecx, 5
mov edx, 5
jmp 0x1a7f1be233e
lea r8, [0x1a7f1c38800]
mov ecx, 6
mov edx, 6
jmp 0x1a7f1be233e
lea r8, [0x1a7f1c38818]
mov ecx, 7
mov edx, 7
jmp 0x1a7f1be233e
lea r8, [0x1a7f1c38848]
mov ecx, 8
mov edx, 8
jmp 0x1a7f1be233e
lea r8, [0x1a7f1c38860]
mov ecx, 9
mov edx, 9
jmp 0x1a7f1be233e
lea r8, [0x1a7f1c38878]
mov ecx, 0xa
mov edx, 0xa
jmp 0x1a7f1be233e
lea r8, [0x1a7f1c38890]
mov ecx, 0xb
mov edx, 0xb
jmp 0x1a7f1be233e
lea r8, [0x1a7f1c388a8]
mov ecx, 0xc
mov edx, 0xc
jmp 0x1a7f1be233e
lea r8, [0x1a7f1c388c0]
mov ecx, 0xd
mov edx, 0xd
jmp 0x1a7f1be233e
lea r8, [0x1a7f1c388d8]
mov ecx, 0xe
mov edx, 0xe
jmp 0x1a7f1be233e
lea r8, [0x1a7f1c388f0]
mov ecx, 0xf
mov edx, 0xf
jmp 0x1a7f1be233e
lea r8, [0x1a7f1c38920]
mov ecx, 0x10
mov edx, 0x10
jmp 0x1a7f1be233e
lea r8, [0x1a7f1c38938]
mov ecx, 0x11
mov edx, 0x11
jmp 0x1a7f1be233e
lea r8, [0x1a7f1c38950]
mov ecx, 0x12
mov edx, 0x12
jmp 0x1a7f1be233e
lea r8, [0x1a7f1c38968]
mov ecx, 0x13
mov edx, 0x13
jmp 0x1a7f1be233e
lea r8, [0x1a7f1c38980]
mov ecx, 0x14
mov edx, 0x14
jmp 0x1a7f1be233e
lea r8, [0x1a7f1c38998]
mov ecx, 0x15
mov edx, 0x15
jmp 0x1a7f1be233e
lea r8, [0x1a7f1c389b0]
mov ecx, 0x16
mov edx, 0x16
jmp 0x1a7f1be233e
lea r8, [0x1a7f1c389c8]
mov ecx, 0x17
mov edx, 0x17
jmp 0x1a7f1be233e
lea r8, [0x1a7f1c389f8]
mov ecx, 0x18
mov edx, 0x18
jmp 0x1a7f1be233e
lea r8, [0x1a7f1c38a10]
mov ecx, 0x19
mov edx, 0x19
jmp 0x1a7f1be233e
lea r8, [0x1a7f1c38a28]
mov ecx, 0x1a
mov edx, 0x1a
jmp 0x1a7f1be233e
lea r8, [0x1a7f1c38a40]
mov ecx, 0x1b
mov edx, 0x1b
jmp 0x1a7f1be233e
lea r8, [0x1a7f1c38a58]
mov ecx, 0x1c
mov edx, 0x1c
jmp 0x1a7f1be233e
lea r8, [0x1a7f1c38a70]
mov ecx, 0x1d
mov edx, 0x1d
jmp 0x1a7f1be233e
lea r8, [0x1a7f1c38a88]
mov ecx, 0x1e
mov edx, 0x1e
jmp 0x1a7f1be233e
lea r8, [0x1a7f1c38aa0]
mov ecx, 0x1f
mov edx, 0x1f
call fcn.1a7f1c2fb60
ud2
lea r8, [0x1a7f1c385c0]
jmp 0x1a7f1be2355
lea r8, [0x1a7f1c38620]
mov rcx, rbp
jmp 0x1a7f1be233e
lea r8, [0x1a7f1c385d8]
mov rcx, rsi
mov rdx, r14
jmp 0x1a7f1be233e
lea r8, [0x1a7f1c385f0]
jmp 0x1a7f1be233e
lea r8, [0x1a7f1c38638]
jmp 0x1a7f1be233e
lea r8, [0x1a7f1c38608]
jmp 0x1a7f1be233e
lea r8, [0x1a7f1c38530]
mov rcx, rbp
call fcn.1a7f1c2fae0
ud2
lea rcx, str.usize_overflow_when_calculating_b64_length
lea r8, [0x1a7f1c38578]
mov edx, 0x2a
call fcn.1a7f1c30030
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, [0x1a7f1c88548]
mov qword [rsp + 0x20], rax
lea rcx, str.Invalid_UTF8
lea r9, fcn.1a7f1b42960
mov edx, 0xc
call fcn.1a7f1c2ff90
ud2