Function at 0x403a51
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0x10
mov eax, 0x455c39
call fcn.0043cc79
mov esi, edx
mov ebx, ecx
mov edi, dword [ebp + 8]
cmp dword [edi + 4], 0
je 0x403c33
mov eax, 0xc800
cmp dword [edi + 4], eax
jg 0x403c33
push 0
push 1
push 0
push dword [esi]
lea eax, [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x403ab2
push 8
push 1
push eax
push dword [esi]
lea eax, [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x403ab2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x403c36
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push esi
push esi
push 0x8003
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x403aec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [ebp + 8], 0
je 0x403ae5
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
jmp 0x403c36
push esi
push dword [ebx + 4]
mov ecx, ebx
push esi
call fcn.00404139
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x403b1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x10], 0
mov esi, eax
je 0x403ad4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x403ad4
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
push ebx
push dword [ebp - 0x10]
push 0x6801
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x403b59
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [ebp - 0x10], ebx
je 0x403b51
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp + 8], ebx
je 0x403ae5
push ebx
jmp 0x403adc
cmp dword [ebp - 0x10], ebx
je 0x403b67
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, 0xc800
push eax
call fcn.0043c1e2
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
mov ecx, 0xc800
mov dword [ebp - 4], ebx
mov eax, dword [edi + 4]
cmp eax, ecx
cmovg eax, ecx
mov ecx, edi
push eax
push ebx
call fcn.00404139
push eax
push esi
call fcn.0043d810
mov eax, dword [edi + 4]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov eax, 0xc800
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push ebx
push 1
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x403be6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x14], 0
mov edi, eax
je 0x403bd4
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp + 8], 0
je 0x403c28
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x403c28
mov ecx, dword [ebp + 0xc]
call fcn.004021be
mov edi, ebx
cmp dword [ebp - 0x18], edi
jbe 0x403c07
mov ecx, dword [ebp + 0xc]
lea eax, [edi + esi]
push eax
call fcn.0040415a
inc edi
cmp edi, dword [ebp - 0x18]
jb 0x403bf5
cmp dword [ebp - 0x14], 0
je 0x403c16
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp + 8], 0
je 0x403c26
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov edi, ebx
push esi
call fcn.0043c1dd
pop ecx
mov eax, edi
jmp 0x403c36
push 0xd
pop eax
call fcn.0043cc42
ret