Borrowed from Latin maleficus, from male (“badly, evilly”) + facio (“do”).
Practice speaking and memorizing "maléfico" and many other words and sentences in Portuguese.