An enzyme that transfers methyl groups from O (6)-methylguanine, and other methylated moities of DNA, to a cysteine residue in itself, thus repairing alkylated DNA in a single-step reaction. EC 2.1.1.63.