Function at 0x100e5e20
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 0x101b97f5
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x10247db0]
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 0x101f1973
lea ecx, [ebp - 0x2c]
call fcn.100451a0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.10044e20
movzx eax, al
test eax, eax
jne 0x100e6067
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x88], esp
lea edx, [ebp + 0xc]
push edx
call fcn.10045370
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x70]
call fcn.100e5d10
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.1004eac0
lea ecx, [ebp - 0x48]
call fcn.100450b0
mov dword [ebp - 0x50], 0
push 0
push 0x80
push 3
push 0
push 1
push 1
lea ecx, [ebp + 0xc]
call fcn.10044e70
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.10044e70
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x58], 0xffffffff
je 0x100e6035
cmp dword [ebp - 0x5c], 0xffffffff
je 0x100e6035
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 0x100e5f4a
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x100e5f57
mov dword [ebp - 0x64], 0x20
jmp 0x100e5f5e
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.10175980
add esp, 4
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x100e6035
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 0x100e5fb5
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.1015cb20
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 0x100e602d
mov edx, dword [ebp - 0x54]
cmp edx, dword [ebp - 0x60]
jae 0x100e5ff6
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 [0x10266ccc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x100e602d
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 0x100e5fce
cmp dword [ebp - 0x50], 0
je 0x100e6047
mov edx, dword [ebp - 0x50]
push edx
call fcn.10173f80
add esp, 4
cmp dword [ebp - 0x58], 0
je 0x100e6057
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x5c], 0
je 0x100e6067
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.10045110
mov eax, dword [ebp - 0x6c]
or eax, 1
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.100450b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.100450b0
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.10159b70
mov esp, ebp
pop ebp
ret 0x20