What makes you believe you have ransomeware?
Are you receiving demands for payment to release your files? If you are, please post the exact message.
Since this was originally in the Windows 10 forum I'm assuming that this is your operating system?
If this is Windows 10 you need to be aware that you need to be booted into the operating system in order to set it to boot into Safe Mode. Windows discontinued the F8 option to boot into Safe Mode because Windows 8/8.1 and Windows 10 boot too fast to be able to use the F8 key. In Window 10 you need to open the search box and type in msconfig. When Windows Configuration opens click/tap on Boot, then click/tap of Safe Boot, then click/tap on Apply, then OK.