Function at 0x140103590
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__._0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzC:Users_admin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_base64_0.9.3_srcencode.rs
mov r9, qword [rdx + rax*8]
xor esi, esi
mov rdx, r10
mov edi, 0
sub rdx, 0x1a
cmovb rdx, rsi
jbe 0x1401038bb
mov eax, 0x20
xor edi, edi
nop word cs:[rax + rax]
mov rsi, rax
lea rax, [rdi + 0x1a]
cmp rax, r10
ja 0x140103b7c
test rsi, rsi
je 0x140103b8e
cmp rsi, rbx
ja 0x140103ba3
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 0x1401035f0
movabs rdx, 0xaaaaaaaaaaaaaaab
mov rax, r10
mul rdx
shr rdx, 1
lea rdx, [rdx + rdx*2]
cmp rdi, rdx
jae 0x140103a1b
nop dword [rax + rax]
cmp rdi, 0xfffffffffffffffc
ja 0x140103bd9
lea r14, [rdi + 3]
cmp r14, r10
ja 0x140103bec
lea rax, [rsi + 4]
cmp rsi, 0xfffffffffffffffb
ja 0x140103bb5
cmp rax, rbx
ja 0x140103bc7
movzx ebp, byte [r11 + rdi]
mov r15d, ebp
shr r15d, 2
movzx r15d, byte [r9 + r15]
mov byte [rcx + rsi], r15b
movzx r15d, byte [r11 + rdi + 1]
shl bpl, 4
mov r12d, r15d
shr r12b, 4
or r12b, bpl
movzx r12d, r12b
and r12d, 0x3f
movzx ebp, byte [r9 + r12]
mov byte [rcx + rsi + 1], bpl
movzx edi, byte [r11 + rdi + 2]
shl r15b, 2
mov ebp, edi
shr bpl, 6
or bpl, r15b
movzx r15d, bpl
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 0x1401038e0
mov rsi, r10
sub rsi, rdx
cmp rsi, 1
je 0x140103a2e
cmp rsi, 2
jne 0x140103a76
cmp rax, rbx
jae 0x140103b10
movzx edi, byte [r11 + rdx]
movzx r14d, dil
shr r14d, 2
movzx ebp, byte [r9 + r14]
mov byte [rcx + rax], bpl
inc rdx
cmp rdx, r10
jae 0x140103b34
lea r10, [rax + 1]
cmp r10, rbx
jae 0x140103b58
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 0x140103b6a
shl r10b, 2
and r10b, 0x3c
mov r11d, 3
jmp 0x140103a66
mov rax, rsi
mov rsi, r10
sub rsi, rdx
cmp rsi, 1
jne 0x14010399a
cmp rax, rbx
jae 0x140103b22
movzx r10d, byte [r11 + rdx]
movzx edx, r10b
shr edx, 2
movzx edx, byte [r9 + rdx]
mov byte [rcx + rax], dl
lea rdx, [rax + 1]
cmp rdx, rbx
jae 0x140103b46
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 0x140103ac7
mov rdx, rbx
sub rdx, rax
jb 0x140103c1a
xor r9d, r9d
test rsi, rsi
je 0x140103aca
xor rsi, 3
je 0x140103aca
cmp rbx, rax
je 0x140103b01
mov byte [rcx + rax], 0x3d
cmp rsi, 1
je 0x140103ac2
cmp rdx, 1
je 0x140103b01
mov byte [rcx + rax + 1], 0x3d
cmp rsi, 2
je 0x140103ac2
cmp rdx, 2
je 0x140103b01
mov byte [rcx + rax + 2], 0x3d
mov r9, rsi
jmp 0x140103aca
xor r9d, r9d
add rax, r9
jb 0x140103c02
cmp byte [r8], 0
je 0x140103af1
mov r9, qword [r8 + 8]
movzx edx, byte [r8 + 1]
mov byte [rsp + 0x20], dl
mov rdx, rbx
mov r8, rax
call fcn.140103340
nop
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, [0x1401ab4a0]
mov rcx, rdx
call fcn.140155ad0
lea r8, [0x1401ab3b0]
mov rcx, rax
mov rdx, rbx
call fcn.140155ad0
lea r8, [0x1401ab410]
mov rcx, rax
mov rdx, rbx
call fcn.140155ad0
lea r8, [0x1401ab3c8]
mov rcx, rdx
mov rdx, r10
call fcn.140155ad0
lea r8, [0x1401ab428]
mov rcx, rdx
mov rdx, rbx
call fcn.140155ad0
lea r8, [0x1401ab3e0]
mov rcx, r10
mov rdx, rbx
call fcn.140155ad0
lea r8, [0x1401ab3f8]
mov rcx, rdx
mov rdx, rbx
call fcn.140155ad0
lea r8, [0x1401ab470]
mov rcx, rax
mov rdx, r10
call fcn.140155e90
lea r8, [0x1401ab488]
mov rcx, 0xffffffffffffffe0
xor edx, edx
call fcn.140155ea0
lea r8, [0x1401ab488]
mov rcx, rsi
mov rdx, rbx
call fcn.140155e90
lea r8, [0x1401ab458]
mov rcx, rsi
mov rdx, rax
call fcn.140155ea0
lea r8, [0x1401ab458]
mov rcx, rax
mov rdx, rbx
call fcn.140155e90
lea rdx, [rdi + 3]
lea r8, [0x1401ab440]
mov rcx, rdi
call fcn.140155ea0
add rdi, 3
lea r8, [0x1401ab440]
mov rcx, rdi
mov rdx, r10
call fcn.140155e90
lea rcx, str.usize_overflow_when_calculating_b64_length
lea r8, [0x1401ab398]
mov edx, 0x2a
call fcn.140155920
lea r8, [0x1401ab350]
mov rcx, rax
mov rdx, rbx
call fcn.140155e80
int3