Function at 0x417130
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 0x41a3a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
mov al, byte [0x42052c]
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.004178b0
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 0x4171c6
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 0x417385
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.00417830
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 fcn.00419ce8
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 0x41729b
lea ecx, [esp + 0x1c]
call fcn.00419ce8
xor ecx, ecx
lea edx, [esp + 0x1c]
mov cl, byte [esi + ebp]
mov byte [esp + 0xb8], 1
push ecx
push 0x41fc28
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
call sub.MFC42.DLL_CString::operator_1
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 0x417243
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4172ae
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [esp + 0x14], ebx
mov ecx, dword [0x41fb7c]
mov esi, dword [esp + 0xc0]
mov edx, dword [esp + 0x24]
push ecx
push 0x41fb7c
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 SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x417308
lea ecx, [esp + 0x18]
push ecx
push str.CLSIDE0A466DE_165D_4033_BDEC_2267EC81D1C9VersionIndependentProgID
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edx, dword [0x41fb7c]
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 0x417342
mov edx, dword [0x41fb7c]
mov ecx, dword [esp + 0x28]
push edx
push esi
call fcn.00417830
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 0x41735c
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x41736c
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