Yes, you can apply for your visas while overseas. It is best to have a representative residing in Malaysia to assist as the authorities might specifically request to view hard copy documents or have interviews or site inspections.