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

Disassembly:
push 0xffffffffffffffff
push 0x4d5560
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
push 0x4e7868
xor ebx, ebx
call fcn.00405e30
push 0xf0000000
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push ebx
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x47861a
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx]
lea edx, [esp + 0x1c]
push edx
call fcn.00479be0
lea eax, [esp + 0x14]
push eax
push ebx
push ebx
mov dword [esp + 0x40], ebx
mov ecx, dword [esp + 0x24]
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x478630
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4785f2
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47861a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 0xc]
push ebx
push ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
mov eax, dword [esp + 0x14]
jne 0x47865a
cmp eax, ebx
je 0x4785e2
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x4785e2
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push ebx
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x28]
push edx
push 4
push eax
mov dword [esp + 0x3c], 4
call esi
test eax, eax
jne 0x4786a9
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x47868b
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x47869b
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [esp + 0x1c]
call fcn.00452320
jmp 0x47861a
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004a5882
mov ebp, eax
mov eax, dword [esp + 0x18]
add esp, 4
cmp ebp, ebx
je 0x478680
push ebx
lea edx, [esp + 0x24]
push edx
push ebp
push 2
push eax
call esi
test eax, eax
jne 0x4786db
push ebp
call fcn.004a594c
add esp, 4
jmp 0x47867c
cmp dword [esp + 0x20], ebx
jbe 0x47874e
mov edx, dword [0x51856c]
mov eax, dword [edx + 0xc]
mov ecx, 0x51856c
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x34], 1
movzx ecx, byte [ebx + ebp]
push ecx
push str._2.2x
lea edi, [esp + 0x2c]
call fcn.0040e4a0
mov esi, dword [esp + 0x2c]
mov eax, dword [esi - 0xc]
mov edx, dword [esp + 0x48]
add esp, 8
push eax
push esi
push edx
call fcn.0040e720
lea eax, [esi - 0x10]
mov byte [esp + 0x34], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x478747
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc ebx
cmp ebx, dword [esp + 0x20]
jb 0x4786e1
push ebp
call fcn.004a594c
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x478766
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x478777
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47879f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret