Using haraam earnings for hajj, getting married or building a masjid

If a person had amassed immense wealth made up of trading in haraam, and then repented to Allaah [from that], is it then permissible for him to perform hajj using this wealth, or donate to charity from it, or [even] get married or build a masjid using it?

Don’t know exactly who I stole from

[Sometime ago] I stole about five car covers, and after I had repented [from doing so], I felt remorse about what I had done. I felt this remorse was of no benefit to me, so I began to wish for my hands to be cut-off! [So] before I do this, guide me [to that which is correct regarding my situation], and may Allaah reward you?