First, you have to dump the romfs of your game, which is done on GodMode9 (I'm assuming you already have a CFW on your 3DS):
When you boot up GodMode9, go on "SYSNAND SD" and press R+A, then select "Search for titles" and wait for it to load them all. Choose the game you want to dump and press...