This code is based on work done by jindrapetrik/jpexs-decompiler and MegaHakkero/unmochify.
Unmochify handles 32Bit decryption, but is not suited to handle the 16Bit decryption that some swf files require. I created this solution to handle the 16Bit files.
javac MochiDecrypt16Bit.java
This program takes a .bin file as input, usually titled "7_mochicrypt.Payload.bin". It will output a file called "7_mochicrypt.Payload.swf". The payload bin file can be acquired using JPEXS.
java MochiDecrypt16Bit ./7_mochicrypt.Payload.bin