I've never seen this but I suspect that first is an addition/elimination mechanism to form the guanidine derivative after MeS- leaves. I suspect that the next step is like formation of an imine from a carbonyl. The entropic favorability likely pushes the reaction to completion.