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