As long as you have illegal stay in US, even only one day, you can't get a visa at a third country. You have to apply for the visa in your own country or resident country.
Good luck!
Good luck!