Smashma Halloween

Mario and some Toads have been transported to Purgatory. Can you help them escape? Made for SimpleFlips' ROM Hacking Competition #10: Halloween 2.
Versions: