What kind of 3.3V microcontroller are we talking about here and what other peripherals are attached to it, if any?
Obviously, the 0.9-1A current draw from the motor doesn't overheat the 1117 since they're not connected to each other. This also means that putting the 7805 in-between the 12V input and the 1117 isn't going to help, and will in fact be counterproductive. But I already pointed that out earlier. Your schematic only gives more reasons not to think about that option.
Anyway, if the 1117 currently overheats, this is because the microcontroller draws more current than the 1117's power rating allows. From the 1117's viewpoint, it would help to connect it to the 7805 instead of directly to +12, BUT as I pointed out above you're already stressing that poor little 78L05 way beyond what is reasonable.
Long story short, you're expecting too much from the voltage regulators you're using here. Get some DC-DC step down converters. They're cheap.