Modifying binaries in snap files

Just to clarify, very simply what I want is:

  1. obtain a snap from the snap store, like vscode
  2. unpack the snap
  3. modify the vscode binary
  4. repack the snap
  5. install locally