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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410a18
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x41800c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x3c], edi
push 0xb8
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x3c], edi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x40564b
mov esi, dword [esi]
sub esp, 8
lea ecx, [ebp - 0x10c]
push 0x20
push esi
call fcn.004037d0
mov eax, dword [ebp - 0x10c]
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 - 0x10c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x110], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10c]
mov eax, dword [ebp - 0x10c]
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::operator__void_const]
test al, al
je 0x4056e7
mov edx, str.Failed_to_open_file:
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.00403cf0
push 0x403f10
mov ecx, 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___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
xorps xmm0, xmm0
mov ecx, edi
movups xmmword [edi], xmm0
push 0
mov dword [edi + 0x10], 0
push 0x412baf
mov dword [edi + 0x14], 0
call fcn.0040bfe0
jmp 0x405a66
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
mov dword [ebp - 0x20], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x405715
mov edx, str.Error_in_CryptAcquireContext
jmp 0x4056a8
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0x800e
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x40575c
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Error_in_CryptCreateHash
call fcn.00403cf0
push 0x403f10
mov ecx, 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___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x4056c0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
push 0x400
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.0040ef21
push 0x400
push 0
push eax
lea esi, [eax + 0x400]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10c]
mov eax, dword [ebp - 0x1c]
sub esi, eax
push 0
push esi
push eax
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__]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::operator_bool_void_const]
test al, al
je 0x40581d
mov esi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
nop dword [eax]
push 0
push dword [ebp - 0x104]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x40584f
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
sub ecx, eax
push 0
push ecx
push eax
lea ecx, [ebp - 0x10c]
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__]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::operator_bool_void_const]
test al, al
jne 0x4057e0
push 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x38], 0
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 4
push eax
push 4
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x4058d7
mov edx, str.Error_in_CryptGetHashParam__HP_HASHSIZE_
jmp 0x405854
mov edx, str.Error_in_CryptHashData
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.00403cf0
push 0x403f10
mov ecx, 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___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xorps xmm0, xmm0
mov ecx, edi
movups xmmword [edi], xmm0
push 0
mov dword [edi + 0x10], 0
push 0x412baf
mov dword [edi + 0x14], 0
call fcn.0040bfe0
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x405a66
mov ecx, dword [ebp - 0x14]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x4058d0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405c12
push ecx
push edx
jmp 0x405a49
mov esi, dword [ebp - 0x38]
xor eax, eax
mov dword [ebp - 0x2c], 0
xorps xmm0, xmm0
movq qword [ebp - 0x34], xmm0
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
test esi, esi
je 0x405963
cmp esi, 0x7fffffff
ja 0x405c18
cmp esi, 0x1000
jb 0x40593b
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x405c1d
push eax
call fcn.0040ef21
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x405c12
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x405944
push esi
call fcn.0040ef21
add esp, 4
push dword [ebp - 0x110]
add esi, eax
mov dword [ebp - 0x34], eax
push 0
push eax
mov dword [ebp - 0x2c], esi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x34]
add esp, 0xc
mov dword [ebp - 0x30], esi
push 0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
push ecx
push eax
push 2
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x405a8e
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Error_in_CryptGetHashParam__HP_HASHVAL_
call fcn.00403cf0
push 0x403f10
mov ecx, 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___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xorps xmm0, xmm0
mov ecx, edi
push 0
movups xmmword [edi], xmm0
push 0x412baf
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.0040bfe0
mov edx, dword [ebp - 0x34]
test edx, edx
je 0x405a1d
mov ecx, dword [ebp - 0x2c]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x4059fe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405c12
push ecx
push edx
call fcn.0040ef56
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x405a66
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x405a47
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405c12
push edx
push ecx
call fcn.0040ef56
mov dword [ebp - 0x14], 0
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x10c]
call fcn.00402ab0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ef13
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xorps xmm0, xmm0
mov dword [ebp - 0x44], 0
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], 0
xor ecx, ecx
mov byte [ebp - 4], 3
mov dword [ebp - 0x110], ecx
cmp dword [ebp - 0x38], ecx
jbe 0x405b64
xor eax, eax
mov word [ebp - 0x24], ax
mov byte [ebp - 0x22], al
mov eax, dword [ebp - 0x34]
movzx eax, byte [eax + ecx]
push eax
lea eax, [ebp - 0x24]
push str._02X
push eax
call fcn.0040b370
lea edi, [ebp - 0x24]
add esp, 0xc
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x405af8
mov edx, dword [ebp - 0x40]
sub edi, ecx
mov ecx, dword [ebp - 0x44]
mov eax, edx
sub eax, ecx
push edi
cmp edi, eax
ja 0x405b35
lea eax, [ecx + edi]
cmp edx, 0x10
mov dword [ebp - 0x44], eax
lea esi, [ebp - 0x54]
cmovae esi, dword [ebp - 0x54]
lea eax, [ebp - 0x24]
add esi, ecx
push eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x405b48
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x114]
lea ecx, [ebp - 0x54]
push edi
call fcn.0040c5e0
mov ecx, dword [ebp - 0x110]
inc ecx
mov dword [ebp - 0x110], ecx
cmp ecx, dword [ebp - 0x38]
jb 0x405ad0
mov edi, dword [ebp - 0x114]
mov edx, dword [ebp - 0x34]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmm0, xmmword [ebp - 0x54]
mov byte [ebp - 0x54], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x44]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xf
test edx, edx
je 0x405be0
mov ecx, dword [ebp - 0x2c]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x405bc1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405c12
push ecx
push edx
call fcn.0040ef56
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x405a66
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x405a47
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405a47
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.0040cd80
call fcn.00401dd0
int3