Catalyzes the oxidative metabolism of numerous xenobiotics, including mainly therapeutic drugs and insecticides that contain a soft nucleophile, most commonly nitrogen and sulfur and participates to their bioactivation (PubMed:3785145, PubMed:10950853, PubMed:16620765, PubMed:11302936, PubMed:15144220, PubMed:15294458). Most drug substrates are tertiary amines such as prochlorperazine and trifluoperazine which are N-oxygenated to form the N-oxide, or sulfides such as thiourea and ethionamide, which are S-oxygenated to the sulfoxide (PubMed:3785145, PubMed:15144220, PubMed:16620765). Others include primary alkylamines such as N-dodecylamine and octan-1-amine that are sequentially monooxygenated to oximes through intermediate hydroxylamines and both steps are NADPH- and oxygen-dependent (PubMed:3785145). Also metabolized N-Deacetyl ketoconazole (DAK) to N-hydroxy-DAK and appears to further metabolizes N-hydroxy-DAK to two others metabolites (PubMed:10950853). Also catalyzes S-oxygenation of the thioether-containing organophosphate insecticides, phorate and disulfoton (PubMed:15294458). H(+) + N,N-dimethylaniline + NADPH + O2 = H2O + N,N-dimethylaniline N-oxide + NADP(+) Lung. There are two allelic forms. Belongs to the FMO family.