Yes, there&#x27;s no recompiling that can be done anyway if you only have the binary and no source code. Writing the new machine code would overwrite some code at the start of the function you&#x27;re modifying, but that doesn&#x27;t matter if you just want the function to return true or false.<p>You could edit the binary manually with a hex editor, but some disassemblers like Hopper have a feature where you can type new instructions in assembly and it will assemble and insert them for you. I&#x27;m sure IDA pro has something like that as well.