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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6bb2
mov eax, dword fs:[0]
push eax
mov eax, 0x11e0
call fcn.00499fe0
mov eax, dword [0x4ce4bc]
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 - 0x105c], 0
mov dword [ebp - 0x1028], 0
mov dword [ebp - 0x1074], edi
mov dword [ebp - 0x1060], 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 0x4923cc
mov eax, dword [eax]
push 1
push 0x40
push 0x20
push eax
lea ecx, [ebp - 0x11ec]
call fcn.0040e530
mov eax, dword [ebp - 0x11ec]
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 - 0x11ec]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x11f0], eax
cmp dword [ebp - 0x1190], 0
mov byte [ebp - 4], 1
jne 0x492463
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 - 0x11ec]
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], 0xf
call fcn.0040fe30
jmp 0x49262d
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 0x4925da
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 0x4925cc
mov eax, dword [ebp - 0x11ec]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x11e0], 1
jne 0x49250e
mov esi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
push 0x1000
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x11ec]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
movzx eax, word [ebp - 0x11e4]
push 0
push eax
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x1044]
call esi
test eax, eax
je 0x4925c0
mov eax, dword [ebp - 0x11ec]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x11e0], 1
je 0x4924c0
lea ecx, [ebp - 0x11dc]
call fcn.00413b50
test eax, eax
jne 0x492538
mov eax, dword [ebp - 0x11ec]
lea ecx, [ebp - 0x11ec]
push 0
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
push 0
lea eax, [ebp - 0x1070]
mov dword [ebp - 0x104c], 0
push eax
lea eax, [ebp - 0x104c]
mov dword [ebp - 0x1070], 4
push eax
push 4
push dword [ebp - 0x1044]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x492939
mov eax, dword [ebp - 0x104c]
xor ecx, ecx
xor esi, esi
mov dword [ebp - 0x1060], eax
xor ebx, ebx
mov dword [ebp - 0x1054], esi
mov dword [ebp - 0x106c], esi
mov dword [ebp - 0x1050], ecx
mov dword [ebp - 0x1068], ecx
mov dword [ebp - 0x1064], ecx
mov dword [ebp - 0x1058], ebx
test eax, eax
je 0x4926c7
cmp eax, 0x7fffffff
ja 0x4929aa
jmp 0x49264b
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.0040e720
lea ecx, [ebp - 0x11ec]
call fcn.0040fe30
mov edx, dword [ebp - 0x1014]
cmp edx, 0x10
jb 0x49262d
mov ecx, dword [ebp - 0x1028]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x492623
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4929a4
push edx
push ecx
call fcn.004991fe
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.0049920c
mov esp, ebp
pop ebp
ret
cmp eax, 0x1000
jb 0x49267f
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4929af
push ecx
call fcn.004991ce
add esp, 4
test eax, eax
je 0x4929a4
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [ebp - 0x1054], esi
mov dword [esi - 4], eax
jmp 0x492690
push eax
call fcn.004991ce
add esp, 4
mov dword [ebp - 0x1054], eax
mov esi, eax
mov eax, dword [ebp - 0x1060]
push eax
push 0
push esi
lea ebx, [esi + eax]
mov dword [ebp - 0x106c], esi
mov ecx, ebx
mov dword [ebp - 0x1050], ebx
mov dword [ebp - 0x1064], ecx
call sub.VCRUNTIME140.dll_memset
mov dword [ebp - 0x1068], ebx
add esp, 0xc
mov ebx, esi
mov dword [ebp - 0x1058], esi
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 0x492909
lea ecx, [ebp - 0x10bc]
mov dword [ebp - 0x1124], 0x4ae7bc
mov dword [ebp - 0x1114], 0x4ae7c4
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
lea eax, [ebp - 0x110c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x1124]
mov dword [ebp - 0x105c], 2
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char____]
mov eax, dword [ebp - 0x1124]
mov dword [ebp - 4], 4
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 - 0x1124]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x1128], eax
lea ecx, [ebp - 0x110c]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
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 - 0x10d4], 0
mov dword [ebp - 0x10d0], 0
push 0x4949d0
lea ecx, [ebp - 0x1114]
mov byte [ebp - 4], 5
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov byte [ecx + eax + 0x40], 0x30
cmp ebx, dword [ebp - 0x1050]
je 0x492812
mov edi, dword [ebp - 0x1058]
mov esi, dword [ebp - 0x1050]
lea esp, [esp]
mov bl, byte [edi]
lea eax, [ebp - 0x1134]
push 0
push 2
push eax
call sub.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__
lea edx, [ebp - 0x1114]
push dword [eax + 0xc]
mov ecx, dword [eax]
push dword [eax + 8]
mov eax, dword [ebp - 0x1114]
mov eax, dword [eax + 4]
add eax, edx
push eax
call ecx
add esp, 0x18
movzx eax, bl
lea ecx, [ebp - 0x1114]
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
inc edi
cmp edi, esi
jne 0x4927c0
mov esi, dword [ebp - 0x1054]
mov edi, dword [ebp - 0x1074]
mov eax, dword [ebp - 0x10d0]
xor edx, edx
and al, 0x22
mov dword [ebp - 0x1040], 0
mov byte [ebp - 4], 6
mov ecx, edx
mov dword [ebp - 0x1030], 0
mov dword [ebp - 0x102c], 0xf
mov byte [ebp - 0x1040], 0
mov dword [ebp - 0x105c], 0xa
cmp al, 2
je 0x49287c
mov eax, dword [ebp - 0x10ec]
mov ebx, dword [eax]
test ebx, ebx
je 0x49287c
mov eax, dword [ebp - 0x10fc]
mov ecx, ebx
cmp ebx, dword [ebp - 0x10d4]
cmovb ecx, dword [ebp - 0x10d4]
mov edx, dword [eax]
sub ecx, edx
jmp 0x4928a5
test byte [ebp - 0x10d0], 4
jne 0x4928a5
mov eax, dword [ebp - 0x10f0]
mov ebx, dword [eax]
test ebx, ebx
je 0x4928a5
mov eax, dword [ebp - 0x1100]
mov ecx, ebx
mov edx, dword [eax]
sub ecx, edx
mov eax, dword [ebp - 0x10e0]
add ecx, dword [eax]
test edx, edx
je 0x4928b6
push ecx
push edx
lea ecx, [ebp - 0x1040]
call fcn.00413a60
mov eax, dword [ebp - 0x1040]
lea ecx, [ebp - 0x1124]
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.0044ddd0
test esi, esi
je 0x492939
mov ecx, dword [ebp - 0x1064]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x49292f
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4929a4
push ecx
push esi
call fcn.004991fe
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.0040e720
lea ecx, [ebp - 0x11ec]
call fcn.0040fe30
mov edx, dword [ebp - 0x1014]
cmp edx, 0x10
jb 0x49262d
mov ecx, dword [ebp - 0x1028]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x492623
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x492623
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.00401c60
call fcn.00401bd0
int3