Yes, Masha is the informal form of the name "Maria"(for example, in the US, Liz is an informal form of the name Elizabeth). About "Mashoi" the name changes for case.