Function at 0x10004250
Capabilities:
Create new key via cryptacquirecontext
Delete file
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Get file size
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, eax
xor ebx, ebx
push edi
mov byte [esp + 0x17], 0
cmp esi, ebx
je 0x100042d2
mov ebp, dword [esp + 0x34]
cmp ebp, ebx
je 0x100042d2
push 0xf0000000
push 0x18
push ebx
push ebx
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x100042d2
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
push ecx
push ebx
push ebx
push 0x8003
push edx
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x100042c6
mov ecx, dword [esp + 0x1c]
push 1
push 0x1f
push str.VgjRPoOM0oa92_jId__wkMeW6_guuSe
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov edx, dword [esp + 0x1c]
test eax, eax
jne 0x100042de
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x20]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x24]
push ecx
push 1
push edx
push 0x6610
push eax
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x10004321
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [esp + 0x20]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x10004443
lea eax, [esp + 0x28]
push eax
push edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push ebp
call esi
mov ebp, eax
cmp ebp, 0xffffffff
je 0x1000443c
push 0x100000
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x100000
mov esi, eax
push esi
mov dword [esp + 0x28], ebx
push edi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10004428
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x10004428
test cl, 0xf
jne 0x10004485
mov eax, dword [esp + 0x28]
sub eax, ecx
sbb dword [esp + 0x2c], 0
mov dword [esp + 0x28], eax
test bl, bl
jne 0x100043ce
mov bl, 1
or eax, dword [esp + 0x2c]
jne 0x100043e5
lea edx, [esp + 0x18]
push edx
push esi
push eax
push 1
push eax
mov eax, dword [esp + 0x38]
push eax
jmp 0x100043f6
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push ecx
push esi
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov ecx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x1c]
push eax
push ecx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [esp + 0x1c]
push edx
push 0x100000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100043a8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
mov byte [esp + 0x1b], bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov edx, dword [esp + 0x20]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp byte [esp + 0x17], 0
jne 0x10004477
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, byte [esp + 0x17]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
jmp 0x1000446c