Not much to add given that you are consulting with counsel, but be aware that one extremely valuable attribute of legal counsel is that is where you deposit any documents that you think might be relevant -- you will surely be required to surrender all employer IP if fired, if you think there are legal issues that require you to retain documents, it's almost necessary to have them in a lawyer's care (and the lawyer will tell you what to say). I think and (IANAL) it would be something like "I was concerned about the circumstances of my termination, and I felt I needed to consult a professional to be sure I took the right steps." Which is true, yet vague, yet also not overtly threatening.
I would be wary of whistleblowing, but I would also be very wary of saying anything more to your employer than what is legally required (or than your lawyer advises). I don't see that we have socially made whistleblowing worth the risk to you, therefore, you should not take that risk, but if it helps your case, your severance, whatever, for your soon-to-be-former employer think that you might make trouble for them if they piss you off even more, that might be okay (if they're certain that you might make trouble for them, that's another matter and maybe a problem).
For the non-legal and probably more useful advice, this does not sound like a job that is worth keeping. You can't fix a bad boss, you're not paid enough to fix a bad boss (it ought to be the case that you would get a massive bonus for fixing a bad boss, but sadly the world does not work that way) better to look out for your own sanity and well-being. Don't burn bridges, don't slack off, I also don't recommend knocking yourself out in an attempt to save your job because (you wrote here for advice, here it is) it's not worth saving, DO prepare a resume and send it out, and follow the usual recipe of applying to as many places as you can stand managing all at once. It ought to take a few weeks for the sent resumes to turn into interviews, so it's not that likely to take too much of your (not-slacking-off) time. Ask your lawyer exactly what to say if a potential employer asks why you're leaving, because it's a delicate dance and there's things you probably cannot safely say (for example, what you've said here...).
I would be wary of whistleblowing, but I would also be very wary of saying anything more to your employer than what is legally required (or than your lawyer advises). I don't see that we have socially made whistleblowing worth the risk to you, therefore, you should not take that risk, but if it helps your case, your severance, whatever, for your soon-to-be-former employer think that you might make trouble for them if they piss you off even more, that might be okay (if they're certain that you might make trouble for them, that's another matter and maybe a problem).
For the non-legal and probably more useful advice, this does not sound like a job that is worth keeping. You can't fix a bad boss, you're not paid enough to fix a bad boss (it ought to be the case that you would get a massive bonus for fixing a bad boss, but sadly the world does not work that way) better to look out for your own sanity and well-being. Don't burn bridges, don't slack off, I also don't recommend knocking yourself out in an attempt to save your job because (you wrote here for advice, here it is) it's not worth saving, DO prepare a resume and send it out, and follow the usual recipe of applying to as many places as you can stand managing all at once. It ought to take a few weeks for the sent resumes to turn into interviews, so it's not that likely to take too much of your (not-slacking-off) time. Ask your lawyer exactly what to say if a potential employer asks why you're leaving, because it's a delicate dance and there's things you probably cannot safely say (for example, what you've said here...).