Re: "a tool Microsoft uses to hide its source code from being copied"
It doesnt run code from the registry. The registry entries are passed to Javascript as a process start up command.
And that's functionally different from "running code from the registry" precisely how ??