Roxterminator
1st, you probably don't have malware.
2) Be careful of what you download or install
If you think all devices available to you have malware, I don't see an option for what you can do.
If you trust your phone & it boots, try unlocking the bootloader and switch to the other boot slot.
fastboot getvar current-slot
If current = a, set-active=b. If current=b, set-active=a
fastboot --set-active=
Put the letter at the end.
Lock the bootloader again.