I think it's much more likely that they would strike back at a regional ally if anything. Keeping some of their cards hidden and not risking a unifying shock to the US populace
After this Israel-Gaza war, Iran's proxies who fought Israel on their behalf (Hamas, Hezbollah) are mostly destroyed. Their allies in the Gulf States (Qatar) have buckled to US pressure over the war. When they've tried to strike Israel directly, combined US-Israeli antimissile defenses stopped it dead in its tracks. Now hundreds of thousands of protestors are thronging the streets and the regime realizes it cannot kill or jail all of them.
In short, Iran has realized that its conventional military will not be able to prop up the regime if anyone decides to attack or arm a rebellion.
That's the motivation for this. The hateful theocratic rulers of Iran see the US as a bigger threat, and are chasing a nuclear weapon as the one they might actually get some protection with.