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

Disassembly:
push 0xffffffffffffffff
push 0x566f68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
xor eax, eax
push ebx
mov dword [esp + 0x15], eax
xor ebx, ebx
mov dword [esp + 0x19], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1d], eax
push esi
mov word [esp + 0x25], ax
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov byte [esp + 0x18], bl
mov byte [esp + 0x27], al
mov dword [esp + 0x14], 0x10
mov dword [esp + 8], ebx
mov eax, dword [0x8c6b70]
mov esi, 0x21
cmp eax, esi
mov dword [esp + 0x44], ebx
jne 0x501663
xor esi, esi
push edi
push ebx
push esi
lea ecx, [esp + 0x14]
call fcn.004feb50
mov ecx, dword [esp + 0xc]
mov dword [ecx], esi
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x501682
mov edi, dword [eax + 8]
jmp 0x501684
xor edi, edi
mov ecx, dword [0x9e3f5c]
mov edx, dword [str.0123456789ABCDEF]
mov eax, dword [0x9e3f58]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push 0xf0000000
mov dword [esp + 0x38], ecx
push 1
mov dword [esp + 0x34], edx
mov edx, dword [0x9e3f60]
mov dword [esp + 0x38], eax
mov al, byte [0x9e3f64]
push ebx
lea ecx, [esp + 0x1c]
push ebx
push ecx
mov dword [esp + 0x4c], edx
mov byte [esp + 0x50], al
call esi
test eax, eax
jne 0x5016f3
push ebx
push 1
push ebx
lea edx, [esp + 0x1c]
push ebx
push edx
call esi
test eax, eax
jne 0x5016f3
push 8
push 1
push ebx
lea eax, [esp + 0x1c]
push ebx
push eax
call esi
test eax, eax
je 0x501776
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push ebx
push ebx
push 0x8003
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x501776
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x14]
push ebx
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x501776
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push ebx
lea ecx, [esp + 0x20]
push eax
push ecx
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x501776
mov eax, dword [esp + 0x18]
xor esi, esi
cmp eax, ebx
jbe 0x501776
mov ecx, edi
xor eax, eax
add ecx, 2
mov al, byte [esp + esi + 0x1c]
mov edx, eax
and eax, 0xf
sar edx, 4
mov al, byte [esp + eax + 0x2c]
inc esi
mov dl, byte [esp + edx + 0x2c]
mov byte [ecx - 2], dl
mov byte [ecx - 1], al
cmp esi, dword [esp + 0x18]
jb 0x501750
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x501785
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x501795
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, dword [esp + 0xc]
cmp eax, ebx
pop edi
jne 0x5017c8
cmp esi, dword [0x8c6b70]
jne 0x5017b1
xor esi, esi
push ebx
push esi
lea ecx, [esp + 0x10]
call fcn.004feb50
mov ecx, dword [esp + 8]
mov dword [ecx], esi
mov eax, dword [esp + 8]
jmp 0x501803
mov ecx, dword [eax + 0xc]
cmp ecx, esi
jae 0x5017e5
lea edx, [ecx + esi + 0x1000]
push ebx
push edx
lea ecx, [esp + 0x10]
call fcn.004feb50
mov eax, dword [esp + 8]
mov dword [eax], esi
mov eax, dword [esp + 8]
mov ecx, esi
cmp esi, dword [eax + 0xc]
jae 0x501803
mov eax, dword [eax + 8]
inc ecx
mov byte [eax + ecx - 1], bl
mov eax, dword [esp + 8]
cmp ecx, dword [eax + 0xc]
jb 0x5017f2
cmp eax, ebx
je 0x501812
mov ecx, dword [eax + 4]
inc ecx
mov dword [eax + 4], ecx
mov eax, dword [esp + 8]
mov esi, dword [esp + 0x4c]
cmp eax, ebx
mov dword [esi], ebx
je 0x50182d
cmp dword [eax + 4], 1
jle 0x501826
mov dword [esi], eax
jmp 0x50183e
mov ecx, dword [eax]
mov eax, dword [eax + 8]
jmp 0x501831
xor ecx, ecx
xor eax, eax
push ecx
push eax
mov ecx, esi
call fcn.004fe820
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x50185b
mov edx, dword [eax + 4]
dec edx
mov dword [eax + 4], edx
mov eax, dword [esp + 8]
cmp dword [eax + 4], ebx
jne 0x50185b
push eax
call fcn.005376fe
add esp, 4
mov ecx, dword [esp + 0x3c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 0xc