The word "whoop" derives from "whip". It is sometimes spelled "whup". And, you're right, it's quite slang.
I'd say the idiomatic meaning is "to defeat/beat somebody decisively" or it can mean "to beat someone up". I don't think I have ever used the expression myself, and you should not use this if you want to be polite.