A former executive at a digital marketing company has admitted to embezzling over $22 million from his firm and then using part of these funds to gamble with cryptocurrencies.