Function at 0x40f940
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44acf4
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x45d274]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xf0000000
xor ebx, ebx
push 0x18
push ebx
push ebx
lea eax, [ebp - 0x34]
mov esi, ecx
mov dword [ebp - 0x44], ebx
push eax
mov dword [ebp - 0x3c], esi
mov edi, edx
mov dword [ebp - 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x40f9a5
push 0x451464
mov ecx, esi
call fcn.00402c30
jmp 0x40fba3
mov edx, dword [ebp - 0x34]
lea ecx, [ebp - 0x30]
push ecx
push ebx
push ebx
push 0x8003
push edx
mov dword [ebp - 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push ebx
cmp eax, ebx
je 0x40fa14
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x30]
push ecx
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x40f9e6
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [ebp - 0x34]
push ebx
push ecx
jmp 0x40fa18
mov ecx, dword [ebp - 0x30]
push ebx
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x38]
push eax
push 4
push ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x40], 4
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x40fa2f
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x451464
mov ecx, esi
call fcn.00402c30
jmp 0x40fba3
mov edi, dword [ebp - 0x38]
lea esi, [ebp - 0x54]
call fcn.004103e0
push ebx
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x54]
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x38]
push ecx
push esi
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x40fa92
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [ebp - 0x34]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov edi, dword [ebp - 0x3c]
push 0x451464
mov ecx, edi
call fcn.00402c30
cmp esi, ebx
je 0x40fa8b
push esi
call fcn.0042eec4
add esp, 4
mov eax, edi
jmp 0x40fba5
lea edx, [ebp - 0xec]
push edx
call fcn.00410460
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x50]
cmp dword [ebp - 0x54], edi
je 0x40fb1e
lea ebx, [ebx]
mov eax, dword [ebp - 0xec]
mov eax, dword [eax + 4]
lea eax, [ebp + eax - 0xec]
mov ecx, 0x30
mov word [eax + 0x40], cx
mov edx, dword [ebp - 0xec]
mov eax, dword [edx + 4]
lea eax, [ebp + eax - 0xec]
mov dword [eax + 0x20], 2
mov dword [eax + 0x24], ebx
mov eax, dword [ebp - 0xec]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + eax - 0xd8]
lea eax, [ebp + eax - 0xec]
and ecx, 0xfffff9ff
or ecx, 0x800
mov dword [eax + 0x14], ecx
movzx edx, byte [esi]
push edx
lea eax, [ebp - 0xec]
push eax
call fcn.0040fe90
inc esi
cmp esi, edi
jne 0x40fab0
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [ebp - 0x34]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea esi, [ebp - 0x2c]
lea eax, [ebp - 0xec]
call fcn.00410540
mov edi, 8
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], edi
jb 0x40fb51
mov eax, dword [eax]
mov esi, dword [ebp - 0x3c]
push eax
mov ecx, esi
call fcn.00402c30
mov dword [ebp - 0x44], 1
cmp dword [ebp - 0x18], edi
jb 0x40fb74
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0042eec4
add esp, 4
xor ecx, ecx
mov word [ebp - 0x2c], cx
lea ecx, [ebp - 0xec]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 1
call fcn.0040fbd0
mov eax, dword [ebp - 0x54]
cmp eax, ebx
je 0x40fba3
push eax
call fcn.0042eec4
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042eecf
mov esp, ebp
pop ebp
ret