Function at 0x403020
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 ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4111d8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x416120]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
xor eax, eax
push eax
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push eax
lea edx, [ebp - 0x24]
push edx
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], eax
mov dword [ebx], ecx
mov dword [ebp - 4], eax
call esi
test eax, eax
jne 0x4030aa
push 8
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push eax
lea eax, [ebp - 0x24]
push eax
call esi
test eax, eax
jne 0x4030aa
push 0x20
push str.Unable_to_Acquire_Crypt_Provider
mov ecx, edi
call fcn.004018b0
jmp 0x403291
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push 0x8003
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4030d8
push 0x15
push str.Unable_to_Create_Hash
mov ecx, edi
call fcn.004018b0
jmp 0x403291
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
test eax, eax
je 0x4030f2
mov eax, dword [eax]
test eax, eax
je 0x4030f2
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov edi, eax
jmp 0x4030f4
xor edi, edi
mov esi, dword [esi]
test esi, esi
je 0x403110
cmp dword [esi + 4], 0
jne 0x40310b
mov eax, dword [esi]
push eax
call fcn.00403d20
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x403112
xor esi, esi
mov ecx, dword [ebp - 0x18]
push 0
push edi
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x403138
mov ecx, dword [ebp - 0x1c]
push 0x1b
push str.Unable_to_Hash_the_Password
call fcn.004018b0
jmp 0x403291
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
push edx
push 0x800000
push eax
push 0x6801
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x40316c
mov ecx, dword [ebp - 0x1c]
push 0x14
push str.Unable_to_Derive_Key
call fcn.004018b0
jmp 0x403291
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
jne 0x40318e
mov ecx, dword [ebp - 0x1c]
push 0x16
push str.Unable_to_Destroy_Hash
call fcn.004018b0
jmp 0x403291
cmp byte [ebp + 0x1c], 0
mov dword [ebp - 0x18], 0
je 0x4031c6
mov eax, dword [ebp - 0x20]
push 0
push ebx
push 0
push 0
push 1
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x4031c6
mov ecx, dword [ebp - 0x1c]
push str.Unable_to_Determine_the_Size_of_Encrypted_Buffer
call fcn.00402450
jmp 0x403291
mov ecx, dword [ebx]
mov esi, dword [ebp - 0x1c]
mov edx, dword [esi + 4]
push ecx
push 8
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
jne 0x4031f2
push str.Unable_to_Allocate_Memory
mov ecx, esi
call fcn.00402450
jmp 0x403291
cmp byte [ebp + 0x1c], 0
je 0x403233
mov edx, dword [ebx]
push edx
mov edx, dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
push ecx
push eax
call fcn.00404720
mov edx, dword [ebp - 0x20]
add esp, 0xc
push eax
push 0
push 1
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x40328d
push str.Unable_to_Encrypt_the_Data
mov ecx, esi
call fcn.00402450
jmp 0x403291
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push ecx
push edx
push eax
call fcn.00404720
add esp, 0xc
push eax
mov eax, dword [ebp - 0x20]
push 0
push 1
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x40328d
push str.Unable_to_Decrypt_the_Data
mov ecx, esi
call fcn.00402450
jmp 0x403291
mov byte [ebp - 0x11], 1
mov eax, dword [ebp - 0x20]
xor esi, esi
cmp eax, esi
je 0x4032a4
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x18]
cmp eax, esi
je 0x4032b5
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x24]
cmp eax, esi
je 0x4032c4
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18