How *exactly* is the MacOS Installer "modified"?

My nascent understanding of the MacOS installation, on a technical level, is that the installer itself checks for a specific chip on the computer's motherboard to determine if it's a "genuine" Apple computer. Thus, said installer must be "hacked" somehow to disable that operations check.

Resources from this /r/ link to a comparison of hackintosh installers; here's a quote for context:

Like it or not, tonymacx86's Unibeast is now the quintessential app for installing Mac OS X Lion and Mountain Lion on a PC. It writes the official Mac OS X installer onto a USB drive, and then modifies it so that it can boot on a normal PC.

How, exactly, is that installation modified? In what way? Is something editing hex bytecode and changing values at known offsets? Is there a simple configuration file? What's going on here behind the scenes?

Basically I want to do the hackintosh thing, but I can't blindly trust some installer linked to at some dude's google drive account (seen this approach "recommended" rather often, sadly...). Nor can I trust "some program" that does "some modification" (way too generalized) to the official MacOS installer. I don't even know the specifics of said modifications, let alone how to verify that they're done correctly by said program and nothing malicious got slipped in during the process.

Ideally, I'd like to take my MacOS 10.12 installation USB stick that I already have and make the changes necessary to make it boot/install/run myself so I know FOR CERTAIN what's going on under the covers.

Anyone care to hook me up with some linkity-linkage?

Much obliged, ya'll. :)

submitted by /u/mr_wiffles
[link] [comments]