Function at 0x100049c0
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, 0x78
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x7c]
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x2c], eax
mov byte [esp + 0x13], bl
cmp eax, ebx
je 0x10004b5b
push 0xf0000000
push 0x18
push ebx
push ebx
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x10004b5b
push 0x10
mov al, 6
lea edx, [esp + 0x48]
xor ecx, ecx
push 0x1012857c
push edx
mov byte [esp + 0x44], 8
mov byte [esp + 0x45], 2
mov word [esp + 0x46], cx
mov dword [esp + 0x48], 0x660e
mov dword [esp + 0x4c], 0x10
mov byte [esp + 0x70], bl
mov byte [esp + 0x71], 1
mov byte [esp + 0x72], bl
mov byte [esp + 0x73], 3
mov byte [esp + 0x74], 5
mov byte [esp + 0x75], 3
mov byte [esp + 0x76], bl
mov byte [esp + 0x77], 1
mov byte [esp + 0x78], bl
mov byte [esp + 0x79], bl
mov byte [esp + 0x7a], 2
mov byte [esp + 0x7b], bl
mov byte [esp + 0x7c], al
mov byte [esp + 0x7d], 7
mov byte [esp + 0x7e], al
mov byte [esp + 0x7f], bl
call fcn.100d0e10
mov edx, dword [esp + 0x28]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push ebx
push ebx
push 0x2c
lea ecx, [esp + 0x48]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
push ebx
test eax, eax
je 0x10004b50
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
lea ecx, [esp + 0x34]
push ecx
push 4
mov ebp, 1
push edx
mov dword [esp + 0x40], ebp
call esi
test eax, eax
mov eax, dword [esp + 0x14]
jne 0x10004af5
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [esp + 0x1c]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.100d0738
add esp, 0x78
ret 4
push ebx
lea edx, [esp + 0x38]
push edx
push 3
push eax
mov dword [esp + 0x44], ebp
call esi
mov ecx, dword [esp + 0x14]
test eax, eax
jne 0x10004b36
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov edx, dword [esp + 0x1c]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.100d0738
add esp, 0x78
ret 4
push ebx
lea eax, [esp + 0x68]
push eax
push ebp
push ecx
call esi
test eax, eax
jne 0x10004b72
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push ebx
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.100d0738
add esp, 0x78
ret 4
push ebx
push 0x80
push 3
push ebx
push ebp
push SysReAllocString
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x10004c88
lea ecx, [esp + 0x20]
push ecx
push esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edx, dword [esp + 0x2c]
push ebx
push 0x80
push 2
push ebx
push ebp
push 0x40000000
push edx
call edi
mov edi, eax
cmp edi, 0xffffffff
je 0x10004c81
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [esp + 0x1c]
push eax
push 0x10
lea ecx, [esp + 0x80]
push ecx
push esi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x26], bl
call ebp
test eax, eax
je 0x10004c72
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x10004c72
cmp eax, 0x10
jne 0x10004ccc
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
adc dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x20], eax
cmp byte [esp + 0x12], bl
jne 0x10004c1f
mov byte [esp + 0x12], 1
or eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x78]
push eax
push ebx
jne 0x10004c38
push 1
jmp 0x10004c39
push ebx
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov eax, dword [esp + 0x18]
push ebx
lea edx, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x80]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea edx, [esp + 0x1c]
push edx
push 0x10
lea eax, [esp + 0x80]
push eax
push esi
call ebp
test eax, eax
jne 0x10004bf3
mov cl, byte [esp + 0x12]
push edi
mov byte [esp + 0x17], cl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [esp + 0x1c]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp byte [esp + 0x13], bl
jne 0x10004cb0
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x84]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100d0738
add esp, 0x78
ret 4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
jmp 0x10004ca5