In the same way that Samsung apps generally rely on Samsung's modified Android framework, HTC apps rely on bits of the Sense framework.
A member over at XDA-developers
managed to port the HTC camera app so that it would run on some HTC One Google edition ROMs, but there are still some HTC software elements in the GE ROM. Even then it only runs on 4.2.2 HTC GE ROMs. It will not run on a HTC One running CyanogenMod, so I think that the chances of it working on an S3 are zero.