Function at 0x100df3a0
Capabilities:
Encrypt or decrypt via wincrypt
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b28d5
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x10245db0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x6c], 0
mov dword [ebp - 4], 0
push 0x101e9cda
lea ecx, [ebp - 0x2c]
call fcn.100450b0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.10044d30
movzx eax, al
test eax, eax
jne 0x100df5e7
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x88], esp
lea edx, [ebp + 0xc]
push edx
call fcn.10045280
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x70]
call fcn.100df2a0
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 0x78]
push edx
lea ecx, [ebp - 0x2c]
call fcn.1004dd80
lea ecx, [ebp - 0x48]
call fcn.10044fc0
mov dword [ebp - 0x50], 0
push 0
push 0x80
push 3
push 0
push 1
push 1
lea ecx, [ebp + 0xc]
call fcn.10044d80
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x58], eax
push 0
push 0x80
push 4
push 0
push 1
push 2
lea ecx, [ebp - 0x2c]
call fcn.10044d80
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x58], 0xffffffff
je 0x100df5b5
cmp dword [ebp - 0x5c], 0xffffffff
je 0x100df5b5
mov byte [ebp - 0x49], 0
lea eax, [ebp - 0x84]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edx, dword [ebp - 0x80]
shl edx, 0x20
or edx, dword [ebp - 0x84]
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp - 0x7c]
and eax, 0x80000001
jns 0x100df4ca
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x100df4d7
mov dword [ebp - 0x64], 0x20
jmp 0x100df4de
mov dword [ebp - 0x64], 0x1f
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
push eax
call fcn.1016ea00
add esp, 4
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x100df5b5
push 0
lea ecx, [ebp - 0x54]
push ecx
push 4
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100df535
push 0
lea ecx, [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x68]
push edx
push 0
mov eax, dword [ebp - 0x50]
push eax
call fcn.101571d0
add esp, 0xc
mov dword [ebp - 0x54], 0
push 0
lea ecx, [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100df5ad
mov edx, dword [ebp - 0x54]
cmp edx, dword [ebp - 0x60]
jae 0x100df576
mov byte [ebp - 0x49], 1
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
push 0
push 1
push 0
mov edx, dword [0x1024ca28]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x100df5ad
push 0
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
movzx ecx, byte [ebp - 0x49]
test ecx, ecx
je 0x100df54e
cmp dword [ebp - 0x50], 0
je 0x100df5c7
mov edx, dword [ebp - 0x50]
push edx
call fcn.1016d000
add esp, 4
cmp dword [ebp - 0x58], 0
je 0x100df5d7
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x5c], 0
je 0x100df5e7
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.10045020
mov eax, dword [ebp - 0x6c]
or eax, 1
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.10044fc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10044fc0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10154220
mov esp, ebp
pop ebp
ret 0x20