What can first author do if co-author who submitted paper put himself down as corresponding author without first author's permission?
Legality doesn't really come into this, but academic ethics most certainly does.

The real problem here is that the paper was submitted without a clear agreement amongst the authors that it was ready for submission and about who would submit. 

From your story and comments, I assume that you are "N", but you don't say which of co-authors B, C, or D submitted. I am guessing that one of those co-authors is your advisor, and I believe that's who you need to have a conversation with.


If your advisor was the one who submitted (or told the other co-author to submit), they may have had good reason for doing so, or may have thought that you had already consented to submission.
If your advisor didn't think the paper was ready to submit, they need to know that it has happened so that they can help defend both of your interests.


Depending on what happens in your conversation with your advisor, there are three basic paths from here:


It was a misunderstanding of some sort or a basically harmless error, and nothing needs to be done, 
The journal editor can be contacted to change paper meta-data, or
The article needs to be withdrawn and resubmitted at a later date.


From what you have written so far, however, it is impossible to tell which is the appropriate course.