Function at 0x40f1c0
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 0x4d5cf6
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x6fe068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x40], 0x6e2c70
mov dword [ebp - 0x40], vtable.CVolObject.0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x40], vtable.CVolMem.0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0x40
mov dword [ebp - 4], 2
cmp dword [ebx + 0x14], 0
jg 0x40f27a
call fcn.0040af80
mov byte [ebp - 4], 3
mov dword [edi], vtable.CWString.0
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 0
mov dword [ebp - 0x40], vtable.CVolMem.0
mov dword [ebp - 4], 4
jmp 0x40f430
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
lea eax, [ebp - 0x10]
push 0xf0000000
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push 0
push eax
call esi
test eax, eax
jne 0x40f2df
push 8
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
lea eax, [ebp - 0x10]
push eax
call esi
test eax, eax
jne 0x40f2df
mov ecx, edi
call fcn.0040af80
mov byte [ebp - 4], 5
mov dword [edi], vtable.CWString.0
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 0
mov dword [ebp - 0x40], vtable.CVolMem.0
mov dword [ebp - 4], 6
jmp 0x40f430
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x5c]
push 0
call fcn.00445cc0
mov esi, eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 0x44]
cmp edx, fcn.00401060
je 0x40f31b
lea ecx, [ebp - 0x40]
call edx
push esi
lea ecx, [ebp - 0x40]
call fcn.0040b5f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.0040ba10
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov ecx, dword [ebp - 0x34]
test eax, eax
push edx
push eax
cmove ecx, edx
push ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp - 0x14]
push 0x6801
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov esi, dword [ebx + 0x14]
push esi
call fcn.004aeb39
push esi
mov esi, eax
mov dword [ebp + 8], eax
push 0
push esi
call fcn.004b0540
mov ecx, dword [ebx + 0x14]
add esp, 0x10
test ecx, ecx
jne 0x40f38e
xor eax, eax
jmp 0x40f391
mov eax, dword [ebx + 0xc]
push ecx
push eax
push esi
call fcn.004b06a0
mov eax, dword [ebx + 0x14]
add esp, 0xc
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push esi
push 0
push 1
push 0
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x5c]
push esi
call fcn.0040c740
mov ebx, eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 0x44]
cmp edx, fcn.00401060
je 0x40f3db
lea ecx, [ebp - 0x40]
call edx
push ebx
lea ecx, [ebp - 0x40]
call fcn.0040b5f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.0040ba10
push esi
call fcn.004aeb42
add esp, 4
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.00445ec0
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 0
mov dword [ebp - 0x40], vtable.CVolMem.0
mov dword [ebp - 4], 9
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x40f456
mov eax, dword [ebp - 0x40]
push ecx
mov eax, dword [eax + 0xc]
cmp eax, method.CVolRefObject.virtual_12
jne 0x40f451
mov ecx, 0x7033a8
call fcn.0044d390
jmp 0x40f456
lea ecx, [ebp - 0x40]
call eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 0
mov dword [ebp - 0x40], vtable.CVolObject.0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4