How to salvage database after website attack

So my website got a virus, and it modified a lot of htaccess files throughout the whole site. Now my SuiteCRM is inaccessible through the front-end. Is there a way I can save the database and import in when i do a fresh installation? I have access to CPanel for the PHP and mysql stuff

You can use mysqldump from the command-line.

Or if you have phpMyAdmin installed, you can try a full export from there. But I suppose that is also hacked…