Can we dump exHeaders under usermode or userland (I don't recall the exact term) ? You can ask smealum or the creator of braindumper, and also Kaphotics... I'm sure they can help you about that.
And what will you exactly do once you know the exact location of .code portions ?
Also, what if your homebrew exefs is bigger than the eshop exefs ? It would'nt work because the size must be equal, right ? So what if your homebrew exefs is smaller than the eshop exefs ? would it work?
Another thing: Let's say you have two applications, one called "dummytest" and the other "randomname", both with a .code and exHeader with the exact same locations but different content, if you swap the files (exefs of dummytest used by randomname and vice versa), launching "dummytest" would actually lauch "randomname" ?
I'm just curious, ask questions even if I can't help you at all, it's interesting