Hmm, besides substance you'd definitely need to give it the appearance of legality.
Messi could have SOLD his image rights to the offshore companies in Belize and Uruguay for a reasonable sum, and pay Spanish taxes on it. The contract may state, for example, that Messi gets XXX € in advance...