The semiconductor company says hackers deployed file-encrypting ransomware on the network of a subsidiary in Singapore.