Malware with obfuscated code on all my site

How do I completely remove these malware from my WordPress sites that shows up frequently even though they get deleted? Here’s two pastebins with the obfuscated code.

system_m.php: pastebin.com/WFyP77Ce engine_functions.php: pastebin.com/TyM6j3HB