Function at 0x1008c1c7
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 0x1008c76f
add ebx, 4
setb al
cmp esi, 0xbfffffff
ja 0x1008c77b
test al, al
jne 0x1008c77b
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::hb3281b7b0d5d1a94
pop eax
mov ecx, esi
call sym.alloc::raw_vec::handle_reserve::h0810750adb436351
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 0x1008c605
xor ecx, ecx
xor eax, eax
cmp eax, 0xffffffe5
ja 0x1008caf4
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
add eax, 0x1a
cmp eax, edx
ja 0x1008cae5
lea edx, [ecx + 0x20]
mov dword [ebp - 0x10], edx
push 0x10174bf0
push ebx
push esi
call fcn.1007416d
add esp, 0xc
test edx, edx
je 0x1008c8a0
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 + 0x10174eb4]
mov byte [eax], cl
je 0x1008c8ae
mov edi, ebx
shr edi, 0x14
and edi, 0x3f
cmp edx, 2
mov cl, byte [edi + 0x10174eb4]
mov byte [eax + 1], cl
jbe 0x1008c8bd
mov ecx, ebx
shr ecx, 0xe
and ecx, 0x3f
cmp edx, 3
mov cl, byte [ecx + 0x10174eb4]
mov byte [eax + 2], cl
je 0x1008c8ca
mov ecx, ebx
shr ecx, 8
and ecx, 0x3f
cmp edx, 4
mov cl, byte [ecx + 0x10174eb4]
mov byte [eax + 3], cl
jbe 0x1008c8d9
mov ecx, ebx
shr ecx, 2
and ecx, 0x3f
cmp edx, 5
mov cl, byte [ecx + 0x10174eb4]
mov byte [eax + 4], cl
je 0x1008c8e8
bswap esi
shld ebx, esi, 4
and ebx, 0x3f
cmp edx, 6
mov cl, byte [ebx + 0x10174eb4]
mov byte [eax + 5], cl
jbe 0x1008c8f7
mov ecx, esi
shr ecx, 0x16
and ecx, 0x3f
cmp edx, 7
mov cl, byte [ecx + 0x10174eb4]
mov byte [eax + 6], cl
je 0x1008c906
shr esi, 0x10
and esi, 0x3f
cmp edx, 8
mov cl, byte [esi + 0x10174eb4]
mov byte [eax + 7], cl
jbe 0x1008c915
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 + 0x10174eb4]
mov byte [eax + 8], cl
je 0x1008c924
mov esi, ebx
shr esi, 0x14
and esi, 0x3f
cmp edx, 0xa
mov cl, byte [esi + 0x10174eb4]
mov byte [eax + 9], cl
jbe 0x1008c933
mov ecx, ebx
shr ecx, 0xe
and ecx, 0x3f
cmp edx, 0xb
mov cl, byte [ecx + 0x10174eb4]
mov byte [eax + 0xa], cl
je 0x1008c942
mov ecx, ebx
shr ecx, 8
and ecx, 0x3f
cmp edx, 0xc
mov cl, byte [ecx + 0x10174eb4]
mov byte [eax + 0xb], cl
jbe 0x1008c951
mov ecx, ebx
shr ecx, 2
and ecx, 0x3f
cmp edx, 0xd
mov cl, byte [ecx + 0x10174eb4]
mov byte [eax + 0xc], cl
je 0x1008c960
bswap edi
shld ebx, edi, 4
and ebx, 0x3f
cmp edx, 0xe
mov cl, byte [ebx + 0x10174eb4]
mov byte [eax + 0xd], cl
jbe 0x1008c96f
mov ecx, edi
shr ecx, 0x16
and ecx, 0x3f
cmp edx, 0xf
mov cl, byte [ecx + 0x10174eb4]
mov byte [eax + 0xe], cl
je 0x1008c97e
shr edi, 0x10
and edi, 0x3f
cmp edx, 0x10
mov cl, byte [edi + 0x10174eb4]
mov byte [eax + 0xf], cl
jbe 0x1008c98d
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 + 0x10174eb4]
mov byte [eax + 0x10], cl
je 0x1008c99c
mov esi, ebx
shr esi, 0x14
and esi, 0x3f
cmp edx, 0x12
mov cl, byte [esi + 0x10174eb4]
mov byte [eax + 0x11], cl
jbe 0x1008c9ab
mov ecx, ebx
shr ecx, 0xe
and ecx, 0x3f
cmp edx, 0x13
mov cl, byte [ecx + 0x10174eb4]
mov byte [eax + 0x12], cl
je 0x1008c9ba
mov ecx, ebx
shr ecx, 8
and ecx, 0x3f
cmp edx, 0x14
mov cl, byte [ecx + 0x10174eb4]
mov byte [eax + 0x13], cl
jbe 0x1008c9c9
mov ecx, ebx
shr ecx, 2
and ecx, 0x3f
cmp edx, 0x15
mov cl, byte [ecx + 0x10174eb4]
mov byte [eax + 0x14], cl
je 0x1008c9d8
bswap edi
shld ebx, edi, 4
and ebx, 0x3f
cmp edx, 0x16
mov cl, byte [ebx + 0x10174eb4]
mov byte [eax + 0x15], cl
jbe 0x1008c9e7
mov ecx, edi
shr ecx, 0x16
and ecx, 0x3f
cmp edx, 0x17
mov cl, byte [ecx + 0x10174eb4]
mov byte [eax + 0x16], cl
je 0x1008c9f6
shr edi, 0x10
and edi, 0x3f
cmp edx, 0x18
mov cl, byte [edi + 0x10174eb4]
mov byte [eax + 0x17], cl
jbe 0x1008ca05
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 + 0x10174eb4]
mov byte [eax + 0x18], cl
je 0x1008ca14
mov esi, ebx
shr esi, 0x14
and esi, 0x3f
cmp edx, 0x1a
mov cl, byte [esi + 0x10174eb4]
mov byte [eax + 0x19], cl
jbe 0x1008ca23
mov ecx, ebx
shr ecx, 0xe
and ecx, 0x3f
cmp edx, 0x1b
mov cl, byte [ecx + 0x10174eb4]
mov byte [eax + 0x1a], cl
je 0x1008ca32
mov ecx, ebx
shr ecx, 8
and ecx, 0x3f
cmp edx, 0x1c
mov cl, byte [ecx + 0x10174eb4]
mov byte [eax + 0x1b], cl
jbe 0x1008ca41
mov ecx, ebx
shr ecx, 2
and ecx, 0x3f
cmp edx, 0x1d
mov cl, byte [ecx + 0x10174eb4]
mov byte [eax + 0x1c], cl
je 0x1008ca50
bswap edi
shld ebx, edi, 4
and ebx, 0x3f
cmp edx, 0x1e
mov cl, byte [ebx + 0x10174eb4]
mov byte [eax + 0x1d], cl
jbe 0x1008ca5f
mov ecx, edi
shr ecx, 0x16
and ecx, 0x3f
cmp edx, 0x1f
mov cl, byte [ecx + 0x10174eb4]
mov byte [eax + 0x1e], cl
je 0x1008ca6e
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 + 0x10174eb4]
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 0x1008c24c
mov ecx, edx
sub ecx, edi
mov dword [ebp - 0x20], ecx
cmp eax, dword [ebp - 0x20]
jae 0x1008c6d9
lea ecx, [eax + 3]
cmp eax, 0xfffffffc
ja 0x1008cac7
cmp ecx, edx
mov dword [ebp - 0x14], ecx
ja 0x1008cad5
lea edx, [esi + 4]
mov edi, eax
mov ecx, esi
mov dword [ebp - 0x10], edx
push 0x10174b90
push ebx
push dword [ebp - 0x18]
call fcn.1007416d
add esp, 0xc
test edx, edx
je 0x1008c85b
mov esi, dword [ebp - 0x1c]
movzx ebx, byte [esi + edi]
mov ecx, ebx
shr ecx, 2
cmp edx, 1
mov cl, byte [ecx + 0x10174eb4]
mov byte [eax], cl
je 0x1008c869
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 + 0x10174eb4]
mov byte [eax + 1], ch
jb 0x1008c878
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 + 0x10174eb4]
mov byte [eax + 2], cl
je 0x1008c885
and ebx, 0x3f
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x28]
mov edx, dword [ebp + 8]
mov cl, byte [ebx + 0x10174eb4]
mov ebx, dword [ebp - 0x2c]
mov byte [eax + 3], cl
mov eax, dword [ebp - 0x14]
jmp 0x1008c60c
cmp edi, 1
mov dword [ebp - 0x10], esi
je 0x1008c78d
mov eax, dword [ebp - 0x1c]
cmp edi, 2
jne 0x1008c7d9
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
jae 0x1008ca7d
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 + 0x10174eb4]
mov byte [ecx + edx], al
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov eax, esi
cmp esi, edx
jae 0x1008ca97
inc ecx
cmp ecx, ebx
jae 0x1008caaf
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 + 0x10174eb4]
mov byte [edx + esi + 1], cl
lea ecx, [esi + 2]
cmp ecx, ebx
jae 0x1008cabb
shl al, 2
and al, 0x3c
push 3
jmp 0x1008c7c2
cmp esi, 0xc0000000
jb 0x1008c20b
push 0x2d
pop edx
mov ecx, 0x101c7b46
push 0x101c7bd4
call sym.std::panicking::begin_panic::h083982a92a72583d
mov eax, dword [ebp - 0x1c]
cmp esi, ebx
jae 0x1008ca89
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 + 0x10174eb4]
mov byte [edx + esi], cl
lea ecx, [esi + 1]
cmp ecx, ebx
jae 0x1008caa3
shl al, 4
and al, 0x30
push 2
pop esi
movzx eax, al
mov edx, dword [ebp - 0x18]
mov al, byte [eax + 0x10174eb4]
mov byte [edx + ecx], al
mov edx, dword [ebp - 0x10]
add edx, esi
jmp 0x1008c7dc
mov edx, dword [ebp - 0x10]
mov ecx, ebx
sub ecx, edx
jb 0x1008cb04
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 0x1008c80c
cmp esi, edx
jbe 0x1008c80c
cmp ecx, edx
je 0x1008c894
mov byte [eax + edx], 0x3d
inc edx
jmp 0x1008c7f5
add dword [ebp - 0x10], edx
jb 0x1008cb12
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 0x1008c843
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x40]
cmp edx, 0x80000000
jne 0x1008cb24
mov eax, ebx
mov ebx, ecx
jmp 0x1008c848
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 0x10174ba0
call dbg.panic_bounds_check
xor ecx, ecx
inc ecx
mov edx, ecx
push 0x10174bb0
call dbg.panic_bounds_check
push 2
pop ecx
push 0x10174bc0
call dbg.panic_bounds_check
push 3
pop ecx
mov edx, ecx
push 0x10174bd0
call dbg.panic_bounds_check
mov edx, ecx
push 0x10174e00
call dbg.panic_bounds_check
xor ecx, ecx
xor edx, edx
push 0x10174c00
call dbg.panic_bounds_check
xor ecx, ecx
inc ecx
mov edx, ecx
push 0x10174c10
call dbg.panic_bounds_check
push 2
pop ecx
push 0x10174c20
call dbg.panic_bounds_check
push 3
pop ecx
mov edx, ecx
push 0x10174c30
call dbg.panic_bounds_check
push 4
pop ecx
mov edx, ecx
push 0x10174c40
call dbg.panic_bounds_check
push 5
pop ecx
mov edx, ecx
push 0x10174c50
call dbg.panic_bounds_check
push 6
pop ecx
mov edx, ecx
push 0x10174c60
call dbg.panic_bounds_check
push 7
pop ecx
mov edx, ecx
push 0x10174c70
call dbg.panic_bounds_check
push 8
pop ecx
mov edx, ecx
push 0x10174c80
call dbg.panic_bounds_check
push 9
pop ecx
mov edx, ecx
push 0x10174c90
call dbg.panic_bounds_check
push 0xa
pop ecx
mov edx, ecx
push 0x10174ca0
call dbg.panic_bounds_check
push 0xb
pop ecx
mov edx, ecx
push 0x10174cb0
call dbg.panic_bounds_check
push 0xc
pop ecx
mov edx, ecx
push 0x10174cc0
call dbg.panic_bounds_check
push 0xd
pop ecx
mov edx, ecx
push 0x10174cd0
call dbg.panic_bounds_check
push 0xe
pop ecx
mov edx, ecx
push 0x10174ce0
call dbg.panic_bounds_check
push 0xf
pop ecx
mov edx, ecx
push 0x10174cf0
call dbg.panic_bounds_check
push 0x10
pop ecx
mov edx, ecx
push 0x10174d00
call dbg.panic_bounds_check
push 0x11
pop ecx
mov edx, ecx
push 0x10174d10
call dbg.panic_bounds_check
push 0x12
pop ecx
mov edx, ecx
push 0x10174d20
call dbg.panic_bounds_check
push 0x13
pop ecx
mov edx, ecx
push 0x10174d30
call dbg.panic_bounds_check
push 0x14
pop ecx
mov edx, ecx
push 0x10174d40
call dbg.panic_bounds_check
push 0x15
pop ecx
mov edx, ecx
push 0x10174d50
call dbg.panic_bounds_check
push 0x16
pop ecx
mov edx, ecx
push 0x10174d60
call dbg.panic_bounds_check
push 0x17
pop ecx
mov edx, ecx
push 0x10174d70
call dbg.panic_bounds_check
push 0x18
pop ecx
mov edx, ecx
push 0x10174d80
call dbg.panic_bounds_check
push 0x19
pop ecx
mov edx, ecx
push 0x10174d90
call dbg.panic_bounds_check
push 0x1a
pop ecx
mov edx, ecx
push 0x10174da0
call dbg.panic_bounds_check
push 0x1b
pop ecx
mov edx, ecx
push 0x10174db0
call dbg.panic_bounds_check
push 0x1c
pop ecx
mov edx, ecx
push 0x10174dc0
call dbg.panic_bounds_check
push 0x1d
pop ecx
mov edx, ecx
push 0x10174dd0
call dbg.panic_bounds_check
push 0x1e
pop ecx
mov edx, ecx
push 0x10174de0
call dbg.panic_bounds_check
push 0x1f
pop ecx
mov edx, ecx
push 0x10174df0
call dbg.panic_bounds_check
mov edx, ebx
push 0x10174b20
call dbg.panic_bounds_check
mov ecx, esi
mov edx, ebx
push 0x10174b60
call dbg.panic_bounds_check
mov ecx, eax
push 0x10174b30
call dbg.panic_bounds_check
mov edx, ebx
push 0x10174b70
call dbg.panic_bounds_check
mov edx, ebx
push 0x10174b40
call dbg.panic_bounds_check
mov edx, ebx
push 0x10174b50
call dbg.panic_bounds_check
mov edx, ecx
mov ecx, eax
push 0x10174b80
call dbg.slice_index_order_fail
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
push 0x10174b80
call dbg.slice_end_index_len_fail
mov edx, dword [ebp + 8]
mov ecx, eax
push 0x10174be0
call dbg.slice_end_index_len_fail
push 0xfffffffffffffff0
pop ecx
push 0xa
pop edx
push 0x10174be0
call dbg.slice_index_order_fail
mov ecx, edx
mov edx, ebx
push 0x10174ad4
call dbg.slice_start_index_len_fail
push 0x2a
pop edx
mov ecx, str.usize_overflow_when_calculating_b64_length
push 0x10174b10
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_UTF8s
push 0x101c7bf0
push 0x101c5a6c
push esi
call sym.core::result::unwrap_failed::hb9c5ac622931d85d