Misfire at cruise, popping/afterfire at 3000RPM

Popping out of the exhaust. I've paid close attention to the sound when it happens, and it starts as a low, muffled random misfire, and develops into a random pop out of the exhaust. The car also seems to lose power or "hits a wall" while this is happening.