A DFT study on the mechanism of the annulation reaction of trichloronitroethylene with aniline in the synthesis of quinoxalinone-N-oxides.