It’s also doubling down on layoffs and malware