The purpose of this shim is to duplicate the newly created HKCU keys to other users HKCU, namely HKUS\{SID}, at the end of ...

The purpose of this shim is to duplicate the newly created HKCU keys to other users HKCU, namely HKUS\{SID}, at the end of the process. Command line parameters are used to restrict the subtrees to detect the new key creation. This is a generic mitigation to the UAC Over-The-Shoulder installation that creates HKCU keys which are required by the app at runtime.