Function at 0x4ea679
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt

Disassembly:
push 0x3c
mov eax, 0x5e9939
call fcn.0059cac3
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x1c]
xor edx, edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], edx
cmp eax, edx
je 0x4ea860
cmp esi, edx
je 0x4ea860
cmp edi, edx
je 0x4ea860
cmp ebx, edx
je 0x4ea860
cmp dword [ebp + 0xc], 0x44
ja 0x4ea6dd
mov dword [ecx + 4], 0xc
jmp 0x4ea867
push 0xf0000000
push 0x18
push edx
push edx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4ea703
mov eax, dword [ebp - 0x2c]
mov dword [eax + 4], 8
jmp 0x4ea867
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x2c]
lea esi, [esi + eax - 0x44]
and dword [edi], 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x14]
lea eax, [esi + 0x20]
push dword [ebp - 0x48]
push eax
lea eax, [esi + 0x10]
push eax
push esi
push dword [ebp - 0x3c]
call fcn.004ea47a
test eax, eax
je 0x4ea7cb
mov eax, dword [ebp + 0xc]
add eax, 0xffffffbc
push eax
mov dword [ebx], eax
call fcn.00564e4a
pop ecx
mov dword [edi], eax
test eax, eax
jne 0x4ea75c
mov eax, dword [ebp - 0x2c]
mov dword [eax + 4], 0x8007000e
jmp 0x4ea7cb
push dword [ebx]
push dword [ebp - 0x44]
push eax
call fcn.0059d730
add esp, 0xc
push ebx
push dword [edi]
push 0
push 1
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x4ea78d
mov eax, dword [ebp - 0x2c]
mov dword [eax + 4], 6
jmp 0x4ea7cb
push 0x14
pop ebx
push 0
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
push 2
push dword [ebp - 0x30]
mov dword [ebp - 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x4ea7c1
push ebx
add esi, 0x30
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.005a1df6
add esp, 0xc
test eax, eax
je 0x4ea815
mov eax, dword [ebp - 0x2c]
mov dword [eax + 4], 0x1c
cmp dword [ebp - 0x30], 0
je 0x4ea7da
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x34], 0
je 0x4ea7e9
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 0x38], 0
je 0x4ea7f8
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [edi]
test eax, eax
je 0x4ea867
push eax
call fcn.00564e3f
and dword [edi], 0
pop ecx
jmp 0x4ea867
xor esi, esi
cmp dword [ebp - 0x30], esi
je 0x4ea825
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x34], esi
je 0x4ea833
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 0x38], esi
je 0x4ea841
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push esi
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
inc eax
jmp 0x4ea869
mov dword [ecx + 4], 0xa
xor eax, eax
call fcn.0059cb1f
ret 0x18