Function at 0x100c89f0
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 0x101b0926
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x10226180]
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 0x101d190b
mov ecx, dword [ebp + 8]
call fcn.10008f80
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x48]
or eax, 1
mov dword [ebp - 0x48], eax
lea ecx, [ebp + 0xc]
call fcn.10008c10
movzx ecx, al
test ecx, ecx
jne 0x100c8c42
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x70], esp
lea edx, [ebp + 0xc]
push edx
call fcn.10009070
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x54]
call fcn.100c8910
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.10012020
lea ecx, [ebp - 0x2c]
call fcn.10008ea0
nop
mov dword [ebp - 0x34], 0
push 0
push 0x80
push 3
push 0
push 1
push 1
lea ecx, [ebp + 0xc]
call fcn.10008c60
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.10008c60
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x3c], 0xffffffff
je 0x100c8c0e
cmp dword [ebp - 0x40], 0xffffffff
je 0x100c8c0e
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 0x100c8b21
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x100c8b2e
mov dword [ebp - 0x4c], 0x20
jmp 0x100c8b35
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.10172960
add esp, 4
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x100c8c0e
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 0x100c8b8d
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]
nop
mov edx, dword [ebp - 0x50]
push edx
push 0
mov eax, dword [ebp - 0x34]
push eax
call fcn.10153ba0
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 0x100c8c06
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 0x44]
jae 0x100c8bce
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 [0x10229c44]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x100c8c06
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]
nop
movzx ecx, byte [ebp - 0x2d]
test ecx, ecx
je 0x100c8ba6
cmp dword [ebp - 0x34], 0
je 0x100c8c20
mov edx, dword [ebp - 0x34]
push edx
call fcn.10170a70
add esp, 4
cmp dword [ebp - 0x3c], 0
je 0x100c8c31
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp dword [ebp - 0x40], 0
je 0x100c8c42
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.10008ea0
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.10150c60
mov esp, ebp
pop ebp
ret 0x20