This VA-to-file-offset patching technique is exactly what crackme solvers use with a hex editor, and what Ghidra's and IDA's built-in patch features automate under the hood when you edit an instruction in the decompiler view. It is also why code-signing and Secure Boot exist: without them, this five-minute exercise would let anyone silently alter a shipped binary's behavior.