You'll need a decrypted 3ds rom or a decrypted cia rom. 3ds to cia by katsu is needed if you have a decrypted 3ds rom. Then get hackingtoolkit by asia81 make sure to get v9. HackingTool has a .3ds extractor but i didn't use it but you theoretically could probably maybe. I used cia extractor...