Function at 0x405970
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 0x43aa56
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x45b00c]
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], vtable.CVolCommonBaseWithMemManager.0
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 0x405a2a
call fcn.004020d0
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 0x405be0
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 0x405a8f
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 0x405a8f
mov ecx, edi
call fcn.004020d0
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 0x405be0
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.00418450
mov esi, eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 0x44]
cmp edx, fcn.00401b70
je 0x405acb
lea ecx, [ebp - 0x40]
call edx
push esi
lea ecx, [ebp - 0x40]
call fcn.00402f40
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.00403370
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.00438e31
push esi
mov esi, eax
mov dword [ebp + 8], eax
push 0
push esi
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebx + 0x14]
add esp, 0x10
test ecx, ecx
jne 0x405b3e
xor eax, eax
jmp 0x405b41
mov eax, dword [ebx + 0xc]
push ecx
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
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.00404450
mov ebx, eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 0x44]
cmp edx, fcn.00401b70
je 0x405b8b
lea ecx, [ebp - 0x40]
call edx
push ebx
lea ecx, [ebp - 0x40]
call fcn.00402f40
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.00403370
push esi
call fcn.00438e3a
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.00418650
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 0x405c06
mov eax, dword [ebp - 0x40]
push ecx
mov eax, dword [eax + 0xc]
cmp eax, fcn.004265e0
jne 0x405c01
mov ecx, 0x45bdd8
call fcn.004298b0
jmp 0x405c06
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