Function at 0x4062f0
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x409e96
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
mov al, byte [0x40e2a4]
push ebx
push ebp
push esi
mov esi, dword [esp + 0xc0]
mov ebp, ecx
push edi
mov byte [esp + 0x2c], al
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x2d]
push esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x30]
push 2
push ecx
mov ecx, ebp
mov dword [esp + 0x34], ebp
call fcn.00406b90
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
xor ebx, ebx
push ebx
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
lea edx, [esp + 0x1c]
push esi
push edx
call edi
test eax, eax
jne 0x406386
push 8
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
lea eax, [esp + 0x1c]
push esi
push eax
call edi
test eax, eax
je 0x406545
push ebx
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
lea ecx, [esp + 0x1c]
push esi
push ecx
call edi
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push ebx
push ebx
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov edx, dword [esp + 0x14]
push ebx
lea ecx, [esp + 0x30]
push 0x80
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
lea eax, [esp + 0x2c]
push 0x80
push eax
mov ecx, ebp
call fcn.00406b10
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push ecx
push 0x800000
push edx
push 0x6602
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xb8], ebx
je 0x40645b
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_1
xor ecx, ecx
lea edx, [esp + 0x1c]
mov cl, byte [esi + ebp]
mov byte [esp + 0xb8], 1
push ecx
push 0x40d6cc
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
call fcn.004098f4
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb8], bl
call sub.MFC42.DLL_CString::CString
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
inc ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ebp, ecx
jb 0x406403
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40646e
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [esp + 0x14], ebx
mov ecx, dword [0x40d620]
mov esi, dword [esp + 0xc0]
mov edx, dword [esp + 0x24]
push ecx
push 0x40d620
push esi
push ebx
push ebx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ebx
push eax
push 0xf003f
push ebx
push str.CLSIDE0A466DE_165D_4033_BDEC_2267EC81D1C9VersionIndependentProgID
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4064c8
lea ecx, [esp + 0x18]
push ecx
push str.CLSIDE0A466DE_165D_4033_BDEC_2267EC81D1C9VersionIndependentProgID
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edx, dword [0x40d620]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
push edx
push esi
push 3
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp esi, ebx
je 0x406502
mov edx, dword [0x40d620]
mov ecx, dword [esp + 0x28]
push edx
push esi
call fcn.00406b10
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x40651c
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40652c
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea ecx, [esp + 0x20]
mov dword [esp + 0xb8], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xac
ret 8