- Read one byte at the time
- If the byte is less than 0xC0, export it.
- If the byte is 0xC0, end the decompression.
- If the byte is 0xC1, export the next byte directly
- if the byte is more than 0xC1 (0xC2, 0xC3...), subtract 0xC0 and you have the number of bytes that will be exported (for example, if you have 0xC3, 3 bytes will be exported), and read the next byte, this byte contains the number from where you have to start exporting, for example, if you have "00 00 00 C3 03", you will have in the exported file "00 00 00 00 00 00", and if you have 08 08 00 00 00 C2 05, you will have in the exported file "08 08 00 00 00 08 08".

I have attached the 2 files.
If anyone can make a script for this or tell me how to do it, I will be very thankful!