Function at 0x100e7b60
Capabilities:
Encrypt or decrypt via wincrypt
Get file size
Read file on windows
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 0x1019c571
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x70
mov eax, dword [0x101f6e00]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebx + 8]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], 0
mov dword [ebp - 4], 1
xorps xmm0, xmm0
mov dword [edi], 0
movups xmmword [edi + 4], xmm0
push 8
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
call fcn.1013ca30
add esp, 4
mov dword [eax], edi
mov dword [eax + 4], 0
mov dword [edi], eax
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0xf
mov byte [edi + 4], 0
mov byte [ebp - 4], 1
cmp dword [ebx + 0x20], 0
mov dword [ebp - 0x48], 1
je 0x100e7e87
lea eax, [ebx + 0xc]
push eax
lea ecx, [ebp - 0x70]
call fcn.10046cb0
push 0
mov byte [ebp - 4], 3
call fcn.1015a060
add esp, 4
mov dword [ebp - 0x4c], edx
mov esi, eax
call fcn.10168ff0
imul eax, esi
push eax
call fcn.1015bcf0
add esp, 4
call fcn.1015bcb0
cdq
mov ecx, 0x2710
idiv ecx
mov esi, edx
call fcn.1015bcb0
cdq
mov ecx, 0x64
idiv ecx
cmp dword [ebp - 0x58], 0xf
lea eax, [ebp - 0x6c]
push edx
cmova eax, dword [ebp - 0x6c]
xorps xmm0, xmm0
push esi
push eax
sub esp, 0x1c
mov esi, esp
push 8
mov dword [esi], 0
movups xmmword [esi + 4], xmm0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
call fcn.1013ca30
add esp, 4
mov dword [eax], esi
mov dword [eax + 4], 0
mov dword [esi], eax
mov dword [esi + 0x14], 0xb
mov dword [esi + 0x18], 0xf
movq xmm0, qword [str._s__d_d.uif]
movq qword [esi + 4], xmm0
mov ax, word [0x101db810]
mov word [esi + 0xc], ax
mov al, byte [0x101db812]
mov byte [esi + 0xe], al
lea eax, [ebp - 0x30]
push eax
mov byte [esi + 0xf], 0
mov byte [ebp - 4], 3
call fcn.10052ec0
add esp, 0x2c
lea ecx, [ebp - 0x70]
call fcn.100477d0
mov eax, dword [ebp - 0x70]
push 8
push eax
mov dword [ebp - 0x70], 0
call fcn.1013c8d0
lea eax, [ebp - 0x30]
add esp, 8
cmp edi, eax
je 0x100e7d12
mov ecx, edi
call fcn.100477d0
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
call fcn.10047a50
lea ecx, [ebp - 0x30]
call fcn.100477d0
mov eax, dword [ebp - 0x30]
push 8
push eax
mov dword [ebp - 0x30], 0
call fcn.1013c8d0
add esp, 8
lea eax, [ebx + 0x10]
cmp dword [ebx + 0x24], 0xf
cmova eax, dword [ebx + 0x10]
push 0
push 0x80
push 3
push 0
push 1
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp dword [edi + 0x18], 0xf
mov esi, eax
mov dword [ebp - 0x38], esi
jbe 0x100e7d60
mov eax, dword [edi + 4]
jmp 0x100e7d63
lea eax, [edi + 4]
push 0
push 0x80
push 4
push 0
push 1
push 2
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x40], eax
cmp esi, 0xffffffff
je 0x100e7e72
cmp eax, 0xffffffff
je 0x100e7e6e
lea eax, [ebp - 0x50]
mov byte [ebp - 0x3c], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov esi, dword [ebp - 0x50]
and esi, 0x80000001
jns 0x100e7dad
dec esi
or esi, 0xfffffffe
inc esi
neg esi
sbb esi, esi
add esi, 0x20
push esi
call fcn.10158830
mov edi, eax
add esp, 4
test edi, edi
je 0x100e7e68
push 0
lea eax, [ebp - 0x34]
push eax
push 4
push edi
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100e7df0
push 0
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
push edi
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push 0
push edi
call fcn.1013f8f0
add esp, 0xc
mov dword [ebp - 0x34], 0
push 0
lea eax, [ebp - 0x34]
push eax
push esi
push edi
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100e7e59
mov eax, dword [ebp - 0x3c]
mov ecx, 1
cmp dword [ebp - 0x34], esi
movzx eax, al
cmovb eax, ecx
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x34]
push eax
push edi
push 0
push ecx
push 0
push dword [0x10297f54]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x100e7e59
push 0
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
push edi
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [ebp - 0x3c], 0
je 0x100e7e03
push edi
call fcn.10156e30
add esp, 4
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp - 0x44]
test esi, esi
je 0x100e7e79
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x100e7e87
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebx + 0xc]
call fcn.100477d0
mov ecx, dword [ebx + 0xc]
push 8
push ecx
mov dword [ebx + 0xc], 0
call fcn.1013c8d0
add esp, 8
mov eax, edi
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.1013c8c0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x20