Run ctrtool --contents=contents app{.cia, .ncch}.
Then run python exefs2elf.py [path-to-file] on the desired contents file.
Run ctrtool --contents=contents app{.cia, .ncch}.
Then run python exefs2elf.py [path-to-file] on the desired contents file.