Question: how to edit qvm file?
Answer: You can't edit QVM files. (You could technically modify them using a hex editor, in the same way that you can modify other compiled programs, but this is not useful for your purposes.) There are basically 2 ways to "mod a mod". Either you get hands on the original source code or you have to delve into the blackbox.