Function at 0x10009510
Capabilities:
Create new key via cryptacquirecontext
Delete file
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x6c
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
push esi
xor ebp, ebp
mov esi, ecx
mov ebx, edx
push edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], ebp
cmp esi, ebp
je 0x100095ba
cmp ebx, ebp
je 0x100095ba
cmp dword [0x101e05ec], ebp
je 0x100095ba
push 0xf0000000
push 0x18
push ebp
push ebp
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x100095ba
push 0x20
lea edx, [esp + 0x48]
xor ecx, ecx
push 0x101e05cc
push edx
mov byte [esp + 0x44], 8
mov byte [esp + 0x45], 2
mov word [esp + 0x46], cx
mov dword [esp + 0x48], 0x6610
mov dword [esp + 0x4c], 0x20
call fcn.100d0e10
mov edx, dword [esp + 0x24]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push ebp
push ebp
push 0x2c
lea ecx, [esp + 0x48]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
push ebp
test eax, eax
jne 0x100095cf
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.100d0738
add esp, 0x6c
ret
mov edx, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
lea ecx, [esp + 0x34]
push ecx
push 4
push edx
mov dword [esp + 0x40], 2
call edi
test eax, eax
mov eax, dword [esp + 0x14]
jne 0x10009602
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [esp + 0x18]
push ebp
push ecx
jmp 0x100095b4
push ebp
lea edx, [esp + 0x38]
push edx
push 3
push eax
mov dword [esp + 0x44], 1
call edi
test eax, eax
jne 0x1000962c
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov edx, dword [esp + 0x18]
push ebp
push edx
jmp 0x100095b4
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocString
push esi
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x10009731
lea eax, [esp + 0x20]
push eax
push esi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push ebp
push 0x80
push 2
push ebp
push 1
push 0x40000000
push ebx
call edi
mov edi, eax
cmp edi, 0xffffffff
je 0x1000972a
push ebp
lea ecx, [esp + 0x14]
push ecx
push 0x10
lea edx, [esp + 0x70]
push edx
push esi
mov dword [esp + 0x24], ebp
xor bl, bl
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10009718
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x10009718
cmp eax, 0x10
jne 0x1000976c
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
adc dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x20], eax
test bl, bl
jne 0x100096c7
mov bl, 1
or eax, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x68]
push ecx
push ebp
jne 0x100096e0
push 1
jmp 0x100096e1
push ebp
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov ecx, dword [esp + 0x10]
push ebp
lea eax, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x70]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
lea eax, [esp + 0x14]
push eax
push 0x10
lea ecx, [esp + 0x70]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100096a0
movzx edx, bl
push edi
mov dword [esp + 0x20], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [esp + 0x18]
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [esp + 0x1c], ebp
jne 0x10009755
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100d0738
add esp, 0x6c
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
mov ebx, dword [esp + 0x2c]
jmp 0x1000974e