Function at 0x1000d890
Capabilities:
Encrypt or decrypt via wincrypt
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fb673
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x45c
mov eax, dword [0x10172eb8]
xor eax, ebp
mov dword [ebp - 0x18], 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 - 0x464], ecx
mov dword [ebp - 0x420], 0xffffffff
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x40c], 0
mov dword [ebp - 0x414], 0
cmp dword [ebp + 8], 0
jne 0x1000d90a
push 0x4f2
push 0x1010d660
push str.NULL___lpCiphertextFile
call fcn.100cb557
add esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x1000d927
push 0x4f3
push 0x1010d6c8
push str.NULL___lpPlaintextFile
call fcn.100cb557
add esp, 0xc
mov edx, dword [ebp - 0x464]
cmp dword [edx + 8], 0
jne 0x1000d94f
lea ecx, [ebp - 0x428]
call fcn.1000e1f0
push 0x101508c8
lea eax, [ebp - 0x428]
push eax
call fcn.100cb4c0
mov ecx, dword [ebp - 0x464]
cmp dword [ecx + 4], 0
jne 0x1000d977
lea ecx, [ebp - 0x430]
call fcn.1000e170
push 0x101508b8
lea edx, [ebp - 0x430]
push edx
call fcn.100cb4c0
mov dword [ebp - 4], 0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0xffffffff
jne 0x1000d9c5
lea ecx, [ebp - 0x438]
call fcn.1000e270
push 0x10150898
lea ecx, [ebp - 0x438]
push ecx
call fcn.100cb4c0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x1000da06
lea ecx, [ebp - 0x440]
call fcn.1000e070
push 0x101508a8
lea eax, [ebp - 0x440]
push eax
call fcn.100cb4c0
mov dword [ebp - 0x418], 0
push 0
lea ecx, [ebp - 0x40c]
push ecx
push 0x3e8
lea edx, [ebp - 0x408]
push edx
mov eax, dword [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jne 0x1000da5d
lea ecx, [ebp - 0x448]
call fcn.1000e560
push 0x10150a44
lea ecx, [ebp - 0x448]
push ecx
call fcn.100cb4c0
cmp dword [ebp - 0x40c], 0x3e8
je 0x1000da73
mov dword [ebp - 0x418], 1
mov edx, dword [ebp - 0x40c]
mov dword [ebp - 0x410], edx
cmp dword [ebp - 0x410], 0
jbe 0x1000db4c
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x408]
push ecx
push 0
mov edx, dword [ebp - 0x418]
push edx
push 0
mov eax, dword [ebp - 0x464]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jne 0x1000dae0
lea ecx, [ebp - 0x450]
call fcn.1000e4b0
push 0x10150a0c
lea edx, [ebp - 0x450]
push edx
call fcn.100cb4c0
cmp dword [ebp - 0x410], 0xffffffff
jb 0x1000db00
push 0x535
push 0x1010d72c
push str.UINT_MAX___dataLen
call fcn.100cb557
add esp, 0xc
push 0
lea ecx, [ebp - 0x414]
push ecx
mov edx, dword [ebp - 0x410]
push edx
lea eax, [ebp - 0x408]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jne 0x1000db4c
lea ecx, [ebp - 0x458]
call fcn.1000e8d0
push 0x10150b5c
lea edx, [ebp - 0x458]
push edx
call fcn.100cb4c0
cmp dword [ebp - 0x418], 0
je 0x1000da10
cmp dword [ebp - 0x420], 0xffffffff
je 0x1000db6f
mov eax, dword [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0xffffffff
je 0x1000db7f
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000dc10
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.100ca7f5
mov esp, ebp
pop ebp
ret 8