Function at 0x100e5990
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 0x101bdc36
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x1024bdac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 4], 1
push 0x101f5176
mov ecx, dword [ebp + 8]
call fcn.10045f80
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x48]
or eax, 1
mov dword [ebp - 0x48], eax
lea ecx, [ebp + 0xc]
call fcn.10045be0
movzx ecx, al
test ecx, ecx
jne 0x100e5bdd
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x70], esp
lea edx, [ebp + 0xc]
push edx
call fcn.10046070
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x54]
call fcn.100e58b0
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x5c]
push edx
mov ecx, dword [ebp + 8]
call fcn.100508b0
lea ecx, [ebp - 0x2c]
call fcn.10045ea0
mov dword [ebp - 0x34], 0
push 0
push 0x80
push 3
push 0
push 1
push 1
lea ecx, [ebp + 0xc]
call fcn.10045c30
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x3c], eax
push 0
push 0x80
push 4
push 0
push 1
push 2
mov ecx, dword [ebp + 8]
call fcn.10045c30
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x3c], 0xffffffff
je 0x100e5bab
cmp dword [ebp - 0x40], 0xffffffff
je 0x100e5bab
mov byte [ebp - 0x2d], 0
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edx, dword [ebp - 0x64]
shl edx, 0x20
or edx, dword [ebp - 0x68]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x60]
and eax, 0x80000001
jns 0x100e5ac0
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x100e5acd
mov dword [ebp - 0x4c], 0x20
jmp 0x100e5ad4
mov dword [ebp - 0x4c], 0x1f
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
push eax
call fcn.10177010
add esp, 4
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x100e5bab
push 0
lea ecx, [ebp - 0x38]
push ecx
push 4
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100e5b2b
push 0
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x50]
push edx
push 0
mov eax, dword [ebp - 0x34]
push eax
call fcn.10157e80
add esp, 0xc
mov dword [ebp - 0x38], 0
push 0
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100e5ba3
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 0x44]
jae 0x100e5b6c
mov byte [ebp - 0x2d], 1
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
push 0
push 1
push 0
mov edx, dword [0x10251b84]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x100e5ba3
push 0
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
movzx ecx, byte [ebp - 0x2d]
test ecx, ecx
je 0x100e5b44
cmp dword [ebp - 0x34], 0
je 0x100e5bbd
mov edx, dword [ebp - 0x34]
push edx
call fcn.10175100
add esp, 4
cmp dword [ebp - 0x3c], 0
je 0x100e5bcd
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x40], 0
je 0x100e5bdd
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.10045ea0
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.10154eb0
mov esp, ebp
pop ebp
ret 0x20