Is there a way to transfer an app from a device to another one (App no longer on the app store)?
First you want to do a back up of the 4s. Then you want to follow these steps:

Once you've finished that, you want to load the iPhone 5s with the backup.

And then you should be good to go. These are from apples website: here
Hope it helps!