I am a large holder of a certain token. We recently notice that one wallet where liquidity was being sent regarding 8% of transactions was unwrapping and selling those tokens. We confronted the developer. Right around the same time, we noticed a strange change to the contract. It was not verified, so I decompiled it with ByteCode. Here is the decompiled version. If you would be willing to help us dig further on telegram and potentially catch a scammer in the act, let me know. I'm not sure if this is enough info without the original contract which I can also post if that is helpful. Looking for any information you can provide. Thank you.
Assuming that the intent of the question is to explain the part of the decompiled code in the image (and not the rest of the contract):
The function you've posted is not malicious. A
fallback function is called whenever ETH is sent to the contract (but not in the context of a function call) - you can read more about them here. By making a
fallback function such as this one with
revert inside, it means that if someone tries sending ETH to the contract, the tx will fail.
This is sometimes used to prevent ETH from getting "stuck" in a contract. If someone sends ETH to a contract that doesn't have a function for sending ETH, there's no way to get the funds out. In order to prevent loss of ETH, this fallback will cause any direct ETH transfer to fail.