Function at 0x10007490
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
Initialize hashing via wincrypt
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
xor ebx, ebx
push esi
push edi
mov byte [esp + 0x13], 0
cmp ebp, ebx
je 0x10007515
push 0xf0000000
push 0x18
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x10007515
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push ebx
push ebx
push 0x800c
push edx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push ebx
test eax, eax
je 0x1000750a
push str.Z3QHOMXXUWPCZF9VRCEJKUGS3SCTSD
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x18]
push eax
push str.Z3QHOMXXUWPCZF9VRCEJKUGS3SCTSD
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov edx, dword [esp + 0x14]
test eax, eax
jne 0x10007521
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push ebx
push edx
push 0x660e
push eax
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x10007563
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [esp + 0x18]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
mov eax, dword [esp + 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x10007695
lea ecx, [esp + 0x20]
push ecx
push edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 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 0x1000768e
push 0x10000
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0
lea edx, [esp + 0x34]
push edx
push 0x10000
mov esi, eax
push esi
mov dword [esp + 0x40], ebx
push edi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000767a
mov edi, edi
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x1000767a
test cl, 0xf
jne 0x100076d7
mov eax, dword [esp + 0x20]
sub eax, ecx
sbb dword [esp + 0x24], 0
mov dword [esp + 0x20], eax
test bl, bl
jne 0x1000761a
mov bl, 1
or eax, dword [esp + 0x24]
jne 0x10007633
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push eax
push esi
push 0
push 1
push 0
push ecx
jmp 0x10007644
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x30]
push edx
push esi
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov edx, dword [esp + 0x30]
push 0
lea ecx, [esp + 0x34]
push ecx
push edx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [esp + 0x34]
push eax
push 0x10000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100075f0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
mov byte [esp + 0x17], bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [esp + 0x18]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp byte [esp + 0x13], 0
jne 0x100076c9
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
jmp 0x100076be