Help with find a bit of code to move from functions.php

Everything before this is malware:

<?php
/**
 * Listify child theme.
 */

Delete everything before that, including the ?> in front of it.

Keep in mind that if someone got access to add this code, then they could’ve done a lot more. Follow all the steps in the codex: https://codex.wordpress.org/FAQ_My_site_was_hacked

tech