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

Disassembly:
push 0xffffffffffffffff
push 0x568458
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 [0x8c7f60]
mov esi, 0x21
cmp eax, esi
mov dword [esp + 0x44], ebx
jne 0x502b53
xor esi, esi
push edi
push ebx
push esi
lea ecx, [esp + 0x14]
call fcn.00500040
mov ecx, dword [esp + 0xc]
mov dword [ecx], esi
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x502b72
mov edi, dword [eax + 8]
jmp 0x502b74
xor edi, edi
mov ecx, dword [0x9e5f5c]
mov edx, dword [str.0123456789ABCDEF]
mov eax, dword [0x9e5f58]
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 [0x9e5f60]
mov dword [esp + 0x38], eax
mov al, byte [0x9e5f64]
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 0x502be3
push ebx
push 1
push ebx
lea edx, [esp + 0x1c]
push ebx
push edx
call esi
test eax, eax
jne 0x502be3
push 8
push 1
push ebx
lea eax, [esp + 0x1c]
push ebx
push eax
call esi
test eax, eax
je 0x502c66
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 0x502c66
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 0x502c66
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 0x502c66
mov eax, dword [esp + 0x18]
xor esi, esi
cmp eax, ebx
jbe 0x502c66
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 0x502c40
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x502c75
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x502c85
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 0x502cb8
cmp esi, dword [0x8c7f60]
jne 0x502ca1
xor esi, esi
push ebx
push esi
lea ecx, [esp + 0x10]
call fcn.00500040
mov ecx, dword [esp + 8]
mov dword [ecx], esi
mov eax, dword [esp + 8]
jmp 0x502cf3
mov ecx, dword [eax + 0xc]
cmp ecx, esi
jae 0x502cd5
lea edx, [ecx + esi + 0x1000]
push ebx
push edx
lea ecx, [esp + 0x10]
call fcn.00500040
mov eax, dword [esp + 8]
mov dword [eax], esi
mov eax, dword [esp + 8]
mov ecx, esi
cmp esi, dword [eax + 0xc]
jae 0x502cf3
mov eax, dword [eax + 8]
inc ecx
mov byte [eax + ecx - 1], bl
mov eax, dword [esp + 8]
cmp ecx, dword [eax + 0xc]
jb 0x502ce2
cmp eax, ebx
je 0x502d02
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 0x502d1d
cmp dword [eax + 4], 1
jle 0x502d16
mov dword [esi], eax
jmp 0x502d2e
mov ecx, dword [eax]
mov eax, dword [eax + 8]
jmp 0x502d21
xor ecx, ecx
xor eax, eax
push ecx
push eax
mov ecx, esi
call fcn.004ffd10
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x502d4b
mov edx, dword [eax + 4]
dec edx
mov dword [eax + 4], edx
mov eax, dword [esp + 8]
cmp dword [eax + 4], ebx
jne 0x502d4b
push eax
call fcn.00538bee
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