Function at 0x1008ca3f
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
push 3
pop edi
mov eax, esi
xor edx, edx
div edi
mov dword [ebp - 0x30], ecx
mov ebx, eax
mov edi, edx
shl ebx, 2
test edx, edx
je 0x1008cfe7
add ebx, 4
setb al
cmp esi, 0xbfffffff
ja 0x1008cff3
test al, al
jne 0x1008cff3
lea esi, [ebp - 0x44]
mov edx, ebx
mov ecx, esi
push 1
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::try_allocate_in::h38f53bb401288e42
pop eax
mov ecx, esi
call sym.alloc::raw_vec::handle_reserve::h25b37d4abb8f209b
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x24], eax
xor esi, esi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], edi
mov eax, edx
sub eax, 0x1a
cmovb eax, esi
mov dword [ebp - 0x20], eax
mov eax, 0
jbe 0x1008ce7d
xor ecx, ecx
xor eax, eax
cmp eax, 0xffffffe5
ja 0x1008d36c
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
add eax, 0x1a
cmp eax, edx
ja 0x1008d35d
lea edx, [ecx + 0x20]
mov dword [ebp - 0x10], edx
push 0x10168a70
push ebx
push esi
call fcn.100596f7
add esp, 0xc
test edx, edx
je 0x1008d118
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x14]
mov ebx, dword [esi + edi]
mov esi, dword [esi + edi + 4]
bswap ebx
mov ecx, ebx
shr ecx, 0x1a
cmp edx, 1
mov cl, byte [ecx + 0x10168d34]
mov byte [eax], cl
je 0x1008d126
mov edi, ebx
shr edi, 0x14
and edi, 0x3f
cmp edx, 2
mov cl, byte [edi + 0x10168d34]
mov byte [eax + 1], cl
jbe 0x1008d135
mov ecx, ebx
shr ecx, 0xe
and ecx, 0x3f
cmp edx, 3
mov cl, byte [ecx + 0x10168d34]
mov byte [eax + 2], cl
je 0x1008d142
mov ecx, ebx
shr ecx, 8
and ecx, 0x3f
cmp edx, 4
mov cl, byte [ecx + 0x10168d34]
mov byte [eax + 3], cl
jbe 0x1008d151
mov ecx, ebx
shr ecx, 2
and ecx, 0x3f
cmp edx, 5
mov cl, byte [ecx + 0x10168d34]
mov byte [eax + 4], cl
je 0x1008d160
bswap esi
shld ebx, esi, 4
and ebx, 0x3f
cmp edx, 6
mov cl, byte [ebx + 0x10168d34]
mov byte [eax + 5], cl
jbe 0x1008d16f
mov ecx, esi
shr ecx, 0x16
and ecx, 0x3f
cmp edx, 7
mov cl, byte [ecx + 0x10168d34]
mov byte [eax + 6], cl
je 0x1008d17e
shr esi, 0x10
and esi, 0x3f
cmp edx, 8
mov cl, byte [esi + 0x10168d34]
mov byte [eax + 7], cl
jbe 0x1008d18d
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x14]
mov ebx, dword [esi + edi + 6]
mov edi, dword [esi + edi + 0xa]
bswap ebx
mov ecx, ebx
shr ecx, 0x1a
cmp edx, 9
mov cl, byte [ecx + 0x10168d34]
mov byte [eax + 8], cl
je 0x1008d19c
mov esi, ebx
shr esi, 0x14
and esi, 0x3f
cmp edx, 0xa
mov cl, byte [esi + 0x10168d34]
mov byte [eax + 9], cl
jbe 0x1008d1ab
mov ecx, ebx
shr ecx, 0xe
and ecx, 0x3f
cmp edx, 0xb
mov cl, byte [ecx + 0x10168d34]
mov byte [eax + 0xa], cl
je 0x1008d1ba
mov ecx, ebx
shr ecx, 8
and ecx, 0x3f
cmp edx, 0xc
mov cl, byte [ecx + 0x10168d34]
mov byte [eax + 0xb], cl
jbe 0x1008d1c9
mov ecx, ebx
shr ecx, 2
and ecx, 0x3f
cmp edx, 0xd
mov cl, byte [ecx + 0x10168d34]
mov byte [eax + 0xc], cl
je 0x1008d1d8
bswap edi
shld ebx, edi, 4
and ebx, 0x3f
cmp edx, 0xe
mov cl, byte [ebx + 0x10168d34]
mov byte [eax + 0xd], cl
jbe 0x1008d1e7
mov ecx, edi
shr ecx, 0x16
and ecx, 0x3f
cmp edx, 0xf
mov cl, byte [ecx + 0x10168d34]
mov byte [eax + 0xe], cl
je 0x1008d1f6
shr edi, 0x10
and edi, 0x3f
cmp edx, 0x10
mov cl, byte [edi + 0x10168d34]
mov byte [eax + 0xf], cl
jbe 0x1008d205
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x14]
mov ebx, dword [esi + edi + 0xc]
mov edi, dword [esi + edi + 0x10]
bswap ebx
mov ecx, ebx
shr ecx, 0x1a
cmp edx, 0x11
mov cl, byte [ecx + 0x10168d34]
mov byte [eax + 0x10], cl
je 0x1008d214
mov esi, ebx
shr esi, 0x14
and esi, 0x3f
cmp edx, 0x12
mov cl, byte [esi + 0x10168d34]
mov byte [eax + 0x11], cl
jbe 0x1008d223
mov ecx, ebx
shr ecx, 0xe
and ecx, 0x3f
cmp edx, 0x13
mov cl, byte [ecx + 0x10168d34]
mov byte [eax + 0x12], cl
je 0x1008d232
mov ecx, ebx
shr ecx, 8
and ecx, 0x3f
cmp edx, 0x14
mov cl, byte [ecx + 0x10168d34]
mov byte [eax + 0x13], cl
jbe 0x1008d241
mov ecx, ebx
shr ecx, 2
and ecx, 0x3f
cmp edx, 0x15
mov cl, byte [ecx + 0x10168d34]
mov byte [eax + 0x14], cl
je 0x1008d250
bswap edi
shld ebx, edi, 4
and ebx, 0x3f
cmp edx, 0x16
mov cl, byte [ebx + 0x10168d34]
mov byte [eax + 0x15], cl
jbe 0x1008d25f
mov ecx, edi
shr ecx, 0x16
and ecx, 0x3f
cmp edx, 0x17
mov cl, byte [ecx + 0x10168d34]
mov byte [eax + 0x16], cl
je 0x1008d26e
shr edi, 0x10
and edi, 0x3f
cmp edx, 0x18
mov cl, byte [edi + 0x10168d34]
mov byte [eax + 0x17], cl
jbe 0x1008d27d
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x14]
mov ebx, dword [esi + edi + 0x12]
mov edi, dword [esi + edi + 0x16]
bswap ebx
mov ecx, ebx
shr ecx, 0x1a
cmp edx, 0x19
mov cl, byte [ecx + 0x10168d34]
mov byte [eax + 0x18], cl
je 0x1008d28c
mov esi, ebx
shr esi, 0x14
and esi, 0x3f
cmp edx, 0x1a
mov cl, byte [esi + 0x10168d34]
mov byte [eax + 0x19], cl
jbe 0x1008d29b
mov ecx, ebx
shr ecx, 0xe
and ecx, 0x3f
cmp edx, 0x1b
mov cl, byte [ecx + 0x10168d34]
mov byte [eax + 0x1a], cl
je 0x1008d2aa
mov ecx, ebx
shr ecx, 8
and ecx, 0x3f
cmp edx, 0x1c
mov cl, byte [ecx + 0x10168d34]
mov byte [eax + 0x1b], cl
jbe 0x1008d2b9
mov ecx, ebx
shr ecx, 2
and ecx, 0x3f
cmp edx, 0x1d
mov cl, byte [ecx + 0x10168d34]
mov byte [eax + 0x1c], cl
je 0x1008d2c8
bswap edi
shld ebx, edi, 4
and ebx, 0x3f
cmp edx, 0x1e
mov cl, byte [ebx + 0x10168d34]
mov byte [eax + 0x1d], cl
jbe 0x1008d2d7
mov ecx, edi
shr ecx, 0x16
and ecx, 0x3f
cmp edx, 0x1f
mov cl, byte [ecx + 0x10168d34]
mov byte [eax + 0x1e], cl
je 0x1008d2e6
shr edi, 0x10
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x2c]
mov edx, dword [ebp + 8]
and edi, 0x3f
mov cl, byte [edi + 0x10168d34]
mov edi, dword [ebp - 0x28]
mov byte [eax + 0x1f], cl
mov eax, dword [ebp - 0x14]
mov ecx, esi
add eax, 0x18
cmp eax, dword [ebp - 0x20]
jbe 0x1008cac4
mov ecx, edx
sub ecx, edi
mov dword [ebp - 0x20], ecx
cmp eax, dword [ebp - 0x20]
jae 0x1008cf51
lea ecx, [eax + 3]
cmp eax, 0xfffffffc
ja 0x1008d33f
cmp ecx, edx
mov dword [ebp - 0x14], ecx
ja 0x1008d34d
lea edx, [esi + 4]
mov edi, eax
mov ecx, esi
mov dword [ebp - 0x10], edx
push 0x10168a10
push ebx
push dword [ebp - 0x18]
call fcn.100596f7
add esp, 0xc
test edx, edx
je 0x1008d0d3
mov esi, dword [ebp - 0x1c]
movzx ebx, byte [esi + edi]
mov ecx, ebx
shr ecx, 2
cmp edx, 1
mov cl, byte [ecx + 0x10168d34]
mov byte [eax], cl
je 0x1008d0e1
mov cl, byte [esi + edi + 1]
shl bl, 4
mov ch, cl
shr ch, 4
or bl, ch
movzx ebx, bl
and ebx, 0x3f
cmp edx, 3
mov ch, byte [ebx + 0x10168d34]
mov byte [eax + 1], ch
jb 0x1008d0f0
movzx ebx, byte [esi + edi + 2]
shl cl, 2
mov ch, bl
shr ch, 6
or ch, cl
movzx ecx, ch
and ecx, 0x3f
cmp edx, 3
mov cl, byte [ecx + 0x10168d34]
mov byte [eax + 2], cl
je 0x1008d0fd
and ebx, 0x3f
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x28]
mov edx, dword [ebp + 8]
mov cl, byte [ebx + 0x10168d34]
mov ebx, dword [ebp - 0x2c]
mov byte [eax + 3], cl
mov eax, dword [ebp - 0x14]
jmp 0x1008ce84
cmp edi, 1
mov dword [ebp - 0x10], esi
je 0x1008d005
mov eax, dword [ebp - 0x1c]
cmp edi, 2
jne 0x1008d051
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
jae 0x1008d2f5
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
movzx eax, byte [eax + esi]
inc esi
mov dword [ebp - 0x14], eax
shr eax, 2
mov al, byte [eax + 0x10168d34]
mov byte [ecx + edx], al
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov eax, esi
cmp esi, edx
jae 0x1008d30f
inc ecx
cmp ecx, ebx
jae 0x1008d327
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
mov al, byte [ecx + eax]
shl dl, 4
mov ecx, eax
shr cl, 4
or dl, cl
movzx ecx, dl
mov edx, dword [ebp - 0x18]
and ecx, 0x3f
mov cl, byte [ecx + 0x10168d34]
mov byte [edx + esi + 1], cl
lea ecx, [esi + 2]
cmp ecx, ebx
jae 0x1008d333
shl al, 2
and al, 0x3c
push 3
jmp 0x1008d03a
cmp esi, 0xc0000000
jb 0x1008ca83
push 0x2d
pop edx
mov ecx, 0x101b8916
push 0x101b89a4
call sym.std::panicking::begin_panic::h5d5acad512fe8ad1
mov eax, dword [ebp - 0x1c]
cmp esi, ebx
jae 0x1008d301
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
movzx eax, byte [eax + ecx]
mov ecx, eax
shr ecx, 2
mov cl, byte [ecx + 0x10168d34]
mov byte [edx + esi], cl
lea ecx, [esi + 1]
cmp ecx, ebx
jae 0x1008d31b
shl al, 4
and al, 0x30
push 2
pop esi
movzx eax, al
mov edx, dword [ebp - 0x18]
mov al, byte [eax + 0x10168d34]
mov byte [edx + ecx], al
mov edx, dword [ebp - 0x10]
add edx, esi
jmp 0x1008d054
mov edx, dword [ebp - 0x10]
mov ecx, ebx
sub ecx, edx
jb 0x1008d37c
mov eax, dword [ebp - 0x18]
mov esi, edi
mov dword [ebp - 0x10], edx
xor esi, 3
add eax, edx
xor edx, edx
test edi, edi
je 0x1008d084
cmp esi, edx
jbe 0x1008d084
cmp ecx, edx
je 0x1008d10c
mov byte [eax + edx], 0x3d
inc edx
jmp 0x1008d06d
add dword [ebp - 0x10], edx
jb 0x1008d38a
mov edi, dword [ebp - 0x18]
lea esi, [ebp - 0x44]
mov ecx, esi
mov edx, edi
push ebx
call dbg.from_utf8
pop eax
cmp dword [esi], 0
je 0x1008d0bb
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x40]
cmp edx, 0x80000000
jne 0x1008d39c
mov eax, ebx
mov ebx, ecx
jmp 0x1008d0c0
mov eax, edi
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x30]
mov dword [ecx], edi
mov dword [ecx + 4], eax
mov dword [ecx + 8], ebx
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
xor ecx, ecx
xor edx, edx
push 0x10168a20
call dbg.panic_bounds_check
xor ecx, ecx
inc ecx
mov edx, ecx
push 0x10168a30
call dbg.panic_bounds_check
push 2
pop ecx
push 0x10168a40
call dbg.panic_bounds_check
push 3
pop ecx
mov edx, ecx
push 0x10168a50
call dbg.panic_bounds_check
mov edx, ecx
push 0x10168c80
call dbg.panic_bounds_check
xor ecx, ecx
xor edx, edx
push 0x10168a80
call dbg.panic_bounds_check
xor ecx, ecx
inc ecx
mov edx, ecx
push 0x10168a90
call dbg.panic_bounds_check
push 2
pop ecx
push 0x10168aa0
call dbg.panic_bounds_check
push 3
pop ecx
mov edx, ecx
push 0x10168ab0
call dbg.panic_bounds_check
push 4
pop ecx
mov edx, ecx
push 0x10168ac0
call dbg.panic_bounds_check
push 5
pop ecx
mov edx, ecx
push 0x10168ad0
call dbg.panic_bounds_check
push 6
pop ecx
mov edx, ecx
push 0x10168ae0
call dbg.panic_bounds_check
push 7
pop ecx
mov edx, ecx
push 0x10168af0
call dbg.panic_bounds_check
push 8
pop ecx
mov edx, ecx
push 0x10168b00
call dbg.panic_bounds_check
push 9
pop ecx
mov edx, ecx
push 0x10168b10
call dbg.panic_bounds_check
push 0xa
pop ecx
mov edx, ecx
push 0x10168b20
call dbg.panic_bounds_check
push 0xb
pop ecx
mov edx, ecx
push 0x10168b30
call dbg.panic_bounds_check
push 0xc
pop ecx
mov edx, ecx
push 0x10168b40
call dbg.panic_bounds_check
push 0xd
pop ecx
mov edx, ecx
push 0x10168b50
call dbg.panic_bounds_check
push 0xe
pop ecx
mov edx, ecx
push 0x10168b60
call dbg.panic_bounds_check
push 0xf
pop ecx
mov edx, ecx
push 0x10168b70
call dbg.panic_bounds_check
push 0x10
pop ecx
mov edx, ecx
push 0x10168b80
call dbg.panic_bounds_check
push 0x11
pop ecx
mov edx, ecx
push 0x10168b90
call dbg.panic_bounds_check
push 0x12
pop ecx
mov edx, ecx
push 0x10168ba0
call dbg.panic_bounds_check
push 0x13
pop ecx
mov edx, ecx
push 0x10168bb0
call dbg.panic_bounds_check
push 0x14
pop ecx
mov edx, ecx
push 0x10168bc0
call dbg.panic_bounds_check
push 0x15
pop ecx
mov edx, ecx
push 0x10168bd0
call dbg.panic_bounds_check
push 0x16
pop ecx
mov edx, ecx
push 0x10168be0
call dbg.panic_bounds_check
push 0x17
pop ecx
mov edx, ecx
push 0x10168bf0
call dbg.panic_bounds_check
push 0x18
pop ecx
mov edx, ecx
push 0x10168c00
call dbg.panic_bounds_check
push 0x19
pop ecx
mov edx, ecx
push 0x10168c10
call dbg.panic_bounds_check
push 0x1a
pop ecx
mov edx, ecx
push 0x10168c20
call dbg.panic_bounds_check
push 0x1b
pop ecx
mov edx, ecx
push 0x10168c30
call dbg.panic_bounds_check
push 0x1c
pop ecx
mov edx, ecx
push 0x10168c40
call dbg.panic_bounds_check
push 0x1d
pop ecx
mov edx, ecx
push 0x10168c50
call dbg.panic_bounds_check
push 0x1e
pop ecx
mov edx, ecx
push 0x10168c60
call dbg.panic_bounds_check
push 0x1f
pop ecx
mov edx, ecx
push 0x10168c70
call dbg.panic_bounds_check
mov edx, ebx
push 0x101689a0
call dbg.panic_bounds_check
mov ecx, esi
mov edx, ebx
push 0x101689e0
call dbg.panic_bounds_check
mov ecx, eax
push 0x101689b0
call dbg.panic_bounds_check
mov edx, ebx
push 0x101689f0
call dbg.panic_bounds_check
mov edx, ebx
push 0x101689c0
call dbg.panic_bounds_check
mov edx, ebx
push 0x101689d0
call dbg.panic_bounds_check
mov edx, ecx
mov ecx, eax
push 0x10168a00
call dbg.slice_index_order_fail
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
push 0x10168a00
call dbg.slice_end_index_len_fail
mov edx, dword [ebp + 8]
mov ecx, eax
push 0x10168a60
call dbg.slice_end_index_len_fail
push 0xfffffffffffffff0
pop ecx
push 0xa
pop edx
push 0x10168a60
call dbg.slice_index_order_fail
mov ecx, edx
mov edx, ebx
push 0x10168954
call dbg.slice_start_index_len_fail
push 0x2a
pop edx
mov ecx, str.usize_overflow_when_calculating_b64_length
push 0x10168990
call dbg.expect_failed
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], eax
push 0xc
pop edx
mov ecx, str.Invalid_UTF8C
push 0x101b89c0
push 0x101b684c
push esi
call sym.core::result::unwrap_failed::hb9c5ac622931d85d