Function at 0x10005cc0
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:
mov eax, 0x106c
call fcn.100d4920
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x1064], eax
push ebx
push ebp
mov ebx, edx
push esi
xor ebp, ebp
push edi
mov edi, ecx
mov dword [esp + 0x28], ebx
mov byte [esp + 0x13], 0
cmp ebx, ebp
je 0x10005e2b
push 0xf0000000
push 0x18
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x10005e2b
xor eax, eax
push 0x20
xor ecx, ecx
lea edx, [esp + 0x44]
push 0x10128788
push edx
mov byte [esp + 0x40], 8
mov byte [esp + 0x41], 2
mov word [esp + 0x42], cx
mov dword [esp + 0x44], 0x6610
mov dword [esp + 0x48], 0x20
mov byte [esp + 0x6c], cl
mov dword [esp + 0x6d], eax
mov dword [esp + 0x71], eax
mov dword [esp + 0x75], eax
mov word [esp + 0x79], ax
mov byte [esp + 0x7b], al
call fcn.100d0e10
push 0x10
lea eax, [esp + 0x70]
push 0x101287ac
push eax
call fcn.100d0e10
mov eax, dword [esp + 0x34]
add esp, 0x18
lea ecx, [esp + 0x14]
push ecx
push ebp
push ebp
push 0x2c
lea edx, [esp + 0x44]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
push ebp
test eax, eax
je 0x10005e20
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
lea edx, [esp + 0x30]
push edx
push 4
push eax
mov dword [esp + 0x3c], 1
call esi
mov ecx, dword [esp + 0x14]
test eax, eax
jne 0x10005dd0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov edx, dword [esp + 0x1c]
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
jmp 0x10005f69
push ebp
lea eax, [esp + 0x34]
push eax
push 3
push ecx
mov dword [esp + 0x40], 1
call esi
mov edx, dword [esp + 0x14]
test eax, eax
jne 0x10005e05
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [esp + 0x1c]
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
jmp 0x10005f69
push ebp
lea ecx, [esp + 0x64]
push ecx
push 1
push edx
call esi
test eax, eax
jne 0x10005e32
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push ebp
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
jmp 0x10005f69
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocString
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x10005f3f
lea edx, [esp + 0x20]
push edx
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 0x10005f38
push ebp
lea eax, [esp + 0x1c]
push eax
push 0x1000
lea ecx, [esp + 0x7c]
push ecx
push esi
mov dword [esp + 0x2c], ebp
xor bl, bl
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10005f29
lea ecx, [ecx]
mov ecx, dword [esp + 0x18]
cmp ecx, ebp
je 0x10005f29
test cl, 0xf
jne 0x10005f82
mov eax, dword [esp + 0x20]
sub eax, ecx
sbb dword [esp + 0x24], ebp
mov dword [esp + 0x20], eax
test bl, bl
jne 0x10005ed5
mov bl, 1
or eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x74]
push eax
push ebp
jne 0x10005eee
push 1
jmp 0x10005eef
push ebp
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov eax, dword [esp + 0x18]
push ebp
lea edx, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x7c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
lea edx, [esp + 0x1c]
push edx
push 0x1000
lea eax, [esp + 0x7c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10005eb0
push edi
mov byte [esp + 0x17], bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov edx, dword [esp + 0x1c]
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp byte [esp + 0x13], 0
jne 0x10005f64
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
movzx eax, byte [esp + 0x13]
mov ecx, dword [esp + 0x1074]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100d0738
add esp, 0x106c
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
mov ebx, dword [esp + 0x28]
jmp 0x10005f5d