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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fb60d
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x478
mov eax, dword [0x10172eb8]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x47c], ecx
mov dword [ebp - 0x428], 0xffffffff
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x41c], 0
cmp dword [ebp + 8], 0
jne 0x1000cee4
push 0x33d
push 0x1010d1e8
push 0x1010d21c
call fcn.100cb557
add esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x1000cf01
push 0x33e
push 0x1010d250
push str.NULL___pRetPlaintext
call fcn.100cb557
add esp, 0xc
cmp dword [ebp + 0x10], 0
jne 0x1000cf1e
push 0x33f
push 0x1010d2b0
push str.NULL___pdwRetBytes
call fcn.100cb557
add esp, 0xc
mov eax, dword [ebp - 0x47c]
cmp dword [eax + 8], 0
jne 0x1000cf46
lea ecx, [ebp - 0x430]
call fcn.1000e1f0
push 0x101508c8
lea ecx, [ebp - 0x430]
push ecx
call fcn.100cb4c0
mov edx, dword [ebp - 0x47c]
cmp dword [edx + 4], 0
jne 0x1000cf6e
lea ecx, [ebp - 0x438]
call fcn.1000e170
push 0x101508b8
lea eax, [ebp - 0x438]
push eax
call fcn.100cb4c0
mov dword [ebp - 4], 0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 0xffffffff
jne 0x1000cfbc
lea ecx, [ebp - 0x440]
call fcn.1000e270
push 0x10150898
lea edx, [ebp - 0x440]
push edx
call fcn.100cb4c0
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
push 0
mov ecx, dword [ebp - 0x428]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0xffffffff
jne 0x1000cfff
lea ecx, [ebp - 0x448]
call fcn.1000e270
push 0x10150898
lea edx, [ebp - 0x448]
push edx
call fcn.100cb4c0
mov eax, dword [ebp - 0x414]
add eax, 0x7d0
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
cmp ecx, 0xffffffff
jne 0x1000d034
lea ecx, [ebp - 0x450]
call fcn.1000e270
push 0x10150898
lea edx, [ebp - 0x450]
push edx
call fcn.100cb4c0
mov eax, dword [ebp - 0x14]
add eax, 1
push eax
call fcn.100aaab5
add esp, 4
mov dword [ebp - 0x480], eax
mov ecx, dword [ebp - 0x480]
mov dword [ebp - 0x454], ecx
mov edx, dword [ebp - 0x454]
mov dword [ebp - 0x41c], edx
cmp dword [ebp - 0x41c], 0
jne 0x1000d086
lea ecx, [ebp - 0x45c]
call fcn.1000e0f0
push 0x10150888
lea eax, [ebp - 0x45c]
push eax
call fcn.100cb4c0
mov ecx, dword [ebp - 0x14]
add ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x41c]
push edx
call fcn.100cac20
add esp, 0xc
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x418]
push eax
push 0x3e8
lea ecx, [ebp - 0x410]
push ecx
mov edx, dword [ebp - 0x428]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
jne 0x1000d0fc
lea ecx, [ebp - 0x464]
call fcn.1000e560
push 0x10150a44
lea eax, [ebp - 0x464]
push eax
call fcn.100cb4c0
cmp dword [ebp - 0x418], 0x3e8
je 0x1000d112
mov dword [ebp - 0x420], 1
cmp dword [ebp - 0x418], 0
jbe 0x1000d1e6
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0x410]
push edx
push 0
mov eax, dword [ebp - 0x420]
push eax
push 0
mov ecx, dword [ebp - 0x47c]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
jne 0x1000d173
lea ecx, [ebp - 0x46c]
call fcn.1000e4b0
push 0x10150a0c
lea eax, [ebp - 0x46c]
push eax
call fcn.100cb4c0
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x418]
cmp ecx, dword [ebp - 0x14]
jb 0x1000d198
push 0x38f
push 0x1010d30c
push str._cnt__rdCnt____maxRetBufSize
call fcn.100cb557
add esp, 0xc
mov eax, dword [ebp - 0x41c]
add eax, dword [ebp - 0x18]
jne 0x1000d1ba
push 0x390
push 0x1010d37c
push str.pPlaintext__cnt
call fcn.100cb557
add esp, 0xc
mov edx, dword [ebp - 0x418]
push edx
lea eax, [ebp - 0x410]
push eax
mov ecx, dword [ebp - 0x41c]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.100cd3b0
add esp, 0xc
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x418]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x420], 0
je 0x1000d0af
mov eax, dword [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000d2a5
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x41c]
mov dword [eax], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x18]
mov dword [edx], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.100ca7f5
mov esp, ebp
pop ebp
ret 0xc