So if you dump the game with rom dumper I can get the unique header of the cart and rewrite the save file?
Yes, that's possible using two ROMs. One of your original cart (named .3dz), and the one the save is made for. If the save was made for GW then it probably doesn't need a header and any dump of the same region will work if named .3ds.
Use this workaround to be able to decrypt and encrypt the save with SaveDataFiler:
http://gbatemp.net/threads/tutorial...v-to-eshop-3ds-3dz-with-savedatafiler.380246/
You don't have to touch the header. Just get the unlocked save working with a MK7 ROM first, use SDF to decrypt that, then encrypt it for your personal ROM dump (basically once you get the unlocked save working with a ROM, rename it or make a copy with the filename described in that topic, select the MK7 ROM from the ROM menu, then export the CTR Card save with SDF. Select your own ROM dump from the menu, go to SD in SDF, highlight the save and press L+A to import it with the correct encryption.
Then once you have encrypted the save for your personal ROM dump, you can import it to the cartridge from the GW menu.