Function at 0x51cf20
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5af7eb
mov eax, dword fs:[0]
push eax
mov eax, 0x11d4
call fcn.0055cc70
mov eax, dword [0x639354]
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
mov edi, dword [ebp + 8]
xor esi, esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1058], edi
mov dword [ebp - 0x1054], 0
mov dword [ebp - 0x1028], 0
mov dword [ebp - 0x1068], edi
mov dword [ebp - 0x1018], esi
mov dword [ebp - 0x1014], 0xf
mov byte [ebp - 0x1028], 0
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], esi
jb 0x51cf9c
mov eax, dword [eax]
push 1
push 0x40
push 0x20
push eax
lea ecx, [ebp - 0x11e0]
call fcn.0051b9f0
mov eax, dword [ebp - 0x11e0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x11e0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x11e4], eax
cmp dword [ebp - 0x1184], 0
mov byte [ebp - 4], 1
jne 0x51d033
mov eax, dword [ebp - 0x1028]
mov ecx, dword [ebp - 0x1020]
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi], eax
mov eax, dword [ebp - 0x1024]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov ecx, dword [ebp - 0x101c]
mov dword [edi + 0xc], ecx
lea ecx, [ebp - 0x11e0]
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], 0xf
call fcn.0051cc60
jmp 0x51d1ca
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 0x1048]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x51d177
lea eax, [ebp - 0x1044]
push eax
push 0
push 0
push 0x800c
push dword [ebp - 0x1048]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x51d169
mov eax, dword [ebp - 0x11e0]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x11d4], 1
jne 0x51d0dd
mov esi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
push 0x1000
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x11e0]
call fcn.004f0d00
movzx eax, word [ebp - 0x11d8]
push 0
push eax
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x1044]
call esi
test eax, eax
je 0x51d15d
mov eax, dword [ebp - 0x11e0]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x11d4], 1
je 0x51d090
lea ecx, [ebp - 0x11e0]
call fcn.0051f560
push 0
lea eax, [ebp - 0x1058]
mov dword [ebp - 0x104c], 0
push eax
lea eax, [ebp - 0x104c]
mov dword [ebp - 0x1058], 4
push eax
push 4
push dword [ebp - 0x1044]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x51d536
mov ebx, dword [ebp - 0x104c]
xor eax, eax
xor esi, esi
mov dword [ebp - 0x1050], eax
mov dword [ebp - 0x1064], esi
mov dword [ebp - 0x1060], eax
mov dword [ebp - 0x105c], eax
test ebx, ebx
je 0x51d251
cmp ebx, 0x7fffffff
ja 0x51d5a6
jmp 0x51d1e8
push dword [ebp - 0x1044]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x1048]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [ebp - 0x1028]
mov ecx, edi
push eax
call fcn.004d6170
lea ecx, [ebp - 0x11e0]
call fcn.0051cc60
mov edx, dword [ebp - 0x1014]
cmp edx, 0x10
jb 0x51d1ca
mov ecx, dword [ebp - 0x1028]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x51d1c0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51d5a1
push edx
push ecx
call fcn.0055c524
add esp, 8
mov eax, edi
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.0055c3a9
mov esp, ebp
pop ebp
ret
cmp ebx, 0x1000
jb 0x51d217
lea eax, [ebx + 0x23]
cmp eax, ebx
jbe 0x51d5ab
push eax
call fcn.0055c4f4
add esp, 4
test eax, eax
je 0x51d5a1
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x51d222
push ebx
call fcn.0055c4f4
add esp, 4
mov esi, eax
push ebx
lea eax, [esi + ebx]
mov dword [ebp - 0x1064], esi
push 0
push esi
mov dword [ebp - 0x1050], eax
mov dword [ebp - 0x105c], eax
call fcn.00560a80
mov ebx, dword [ebp - 0x1050]
add esp, 0xc
mov dword [ebp - 0x1060], ebx
jmp 0x51d253
xor ebx, ebx
push 0
lea eax, [ebp - 0x104c]
mov byte [ebp - 4], 2
push eax
push esi
push 2
push dword [ebp - 0x1044]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x51d506
mov dword [ebp - 0x1118], 0x5d639c
mov dword [ebp - 0x1108], 0x5d63a4
mov dword [ebp - 0x10a8], 0
mov dword [ebp - 0x1088], 0
mov dword [ebp - 0x1084], 0
mov dword [ebp - 0x1080], 0
mov dword [ebp - method.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
push 0
push 0
lea eax, [ebp - 0x1100]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x1118]
mov dword [ebp - 0x1054], 2
call fcn.005086f0
mov eax, dword [ebp - 0x1108]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1108]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x110c], eax
mov eax, dword [ebp - 0x1118]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_iostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1118]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x111c], eax
mov eax, dword [ebp - 0x1118]
mov dword [ebp - 4], 7
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x1118]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x111c], eax
lea ecx, [ebp - 0x1100]
call fcn.00502790
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x10c8], 0
mov dword [ebp - 0x10c4], 0
mov eax, dword [ebp - 0x1108]
lea ecx, [ebp - 0x10f4]
mov byte [ebp - 4], 8
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx], eax
mov eax, dword [ebp - 0x1108]
mov eax, dword [eax + 4]
mov byte [ebp + eax - 0x10c8], 0x30
cmp esi, ebx
je 0x51d40f
mov edi, esi
mov bl, byte [edi]
lea eax, [ebp - 0x1128]
push 0
push 2
push eax
call fcn.0055f409
lea edx, [ebp - 0x1108]
push dword [eax + 0xc]
mov ecx, dword [eax]
push dword [eax + 8]
mov eax, dword [ebp - 0x1108]
mov eax, dword [eax + 4]
add eax, edx
push eax
call ecx
add esp, 0x18
movzx eax, bl
lea ecx, [ebp - 0x1108]
push eax
call fcn.0051be10
inc edi
cmp edi, dword [ebp - 0x1050]
jne 0x51d3c0
mov edi, dword [ebp - 0x1068]
mov eax, dword [ebp - 0x10c4]
xor edx, edx
and al, 0x22
mov dword [ebp - 0x1040], 0
mov byte [ebp - 4], 9
mov ecx, edx
mov dword [ebp - 0x1030], 0
mov dword [ebp - 0x102c], 0xf
mov byte [ebp - 0x1040], 0
mov dword [ebp - 0x1054], 0x22
cmp al, 2
je 0x51d479
mov eax, dword [ebp - 0x10e0]
mov ebx, dword [eax]
test ebx, ebx
je 0x51d479
mov eax, dword [ebp - 0x10f0]
mov ecx, ebx
cmp ebx, dword [ebp - 0x10c8]
cmovb ecx, dword [ebp - 0x10c8]
mov edx, dword [eax]
sub ecx, edx
jmp 0x51d4a2
test byte [ebp - 0x10c4], 4
jne 0x51d4a2
mov eax, dword [ebp - 0x10e4]
mov ebx, dword [eax]
test ebx, ebx
je 0x51d4a2
mov eax, dword [ebp - 0x10f4]
mov edx, dword [eax]
mov eax, dword [ebp - 0x10d4]
mov ecx, dword [eax]
sub ecx, edx
add ecx, ebx
test edx, edx
je 0x51d4b3
push ecx
push edx
lea ecx, [ebp - 0x1040]
call fcn.00438630
mov eax, dword [ebp - 0x1040]
lea ecx, [ebp - 0x1118]
mov dword [ebp - 0x1028], eax
mov eax, dword [ebp - 0x103c]
mov dword [ebp - 0x1024], eax
mov eax, dword [ebp - 0x1038]
mov dword [ebp - 0x1020], eax
mov eax, dword [ebp - 0x1034]
mov dword [ebp - 0x101c], eax
mov eax, dword [ebp - 0x1030]
mov dword [ebp - 0x1018], eax
mov eax, dword [ebp - 0x102c]
mov dword [ebp - 0x1014], eax
call fcn.0051ccf0
test esi, esi
je 0x51d536
mov ecx, dword [ebp - 0x105c]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x51d52c
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51d5a1
push ecx
push esi
call fcn.0055c524
add esp, 8
push dword [ebp - 0x1044]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x1048]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [ebp - 0x1028]
mov ecx, edi
push eax
call fcn.004d6170
lea ecx, [ebp - 0x11e0]
call fcn.0051cc60
mov edx, dword [ebp - 0x1014]
cmp edx, 0x10
jb 0x51d1ca
mov ecx, dword [ebp - 0x1028]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x51d1c0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x51d1c0
call fcn.0056af64
call fcn.0042a2c0
call fcn.0042a210
int3