Yes. A foreigner can register an IT company in Malaysia, and it can be 100% foreign owned. The only need is that the minimum capital is RM 500,000 for some business. It might go high for some business depends on the requirement of the relevant authorities.