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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407634
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x120
mov eax, dword [0x40e040]
xor eax, ebp
mov dword [ebp - 0x14], 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 - 0x110], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x12c], edi
xorps xmm0, xmm0
mov dword [ebp - 0x114], 0
movups xmmword [ebp - 0x108], xmm0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x40], 0x20
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 0xf
mov byte [ebp - 0x108], 0
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40181c
lea eax, [ebp - 0x38]
push eax
push 0
push 0
push 0x800c
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x40182f
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x408349
mov ecx, edi
call fcn.00404ce0
mov eax, edi
jmp 0x4019de
cmp dword [esi + 0x14], 7
mov eax, dword [esi + 0x10]
jbe 0x401841
mov ecx, dword [esi]
mov esi, ecx
lea edi, [ecx + eax*2]
jmp 0x401844
lea edi, [esi + eax*2]
xorps xmm0, xmm0
movups xmmword [ebp - 0x58], xmm0
cmp esi, edi
jne 0x401864
xor ecx, ecx
mov edx, 0xf
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], edx
mov byte [ebp - 0x58], cl
jmp 0x401963
sub edi, esi
mov dword [ebp - 0x48], 0
sar edi, 1
mov dword [ebp - 0x44], 0xf
cmp edi, 0x7fffffff
ja 0x401c92
mov eax, 0xf
cmp edi, eax
jbe 0x401922
mov eax, edi
or eax, 0xf
cmp eax, 0x7fffffff
jbe 0x4018d5
mov eax, 0x80000000
mov dword [ebp - 0x10c], 0x7fffffff
add eax, 0x23
push eax
call fcn.0040654c
add esp, 4
test eax, eax
je 0x401c8c
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x44], eax
jmp 0x401925
mov ecx, 0x16
cmp eax, ecx
cmovb eax, ecx
mov dword [ebp - 0x10c], eax
lea ecx, [eax + 1]
test ecx, ecx
jne 0x4018f4
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x44], eax
jmp 0x401925
cmp ecx, 0x1000
jb 0x401909
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x401c97
jmp 0x4018ad
push ecx
call fcn.0040654c
mov ecx, eax
add esp, 4
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x44], eax
jmp 0x401925
mov ecx, dword [ebp - 0x58]
cmp eax, 0xf
lea edx, [ebp - 0x58]
cmova edx, ecx
mov dword [ebp - 0x10c], edx
mov ecx, edx
mov edx, edi
test edi, edi
je 0x401950
nop dword [eax]
mov al, byte [esi]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
lea esi, [esi + 2]
sub edx, 1
jne 0x401940
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x48], edi
mov byte [eax + edi], 0
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
push 0
cmp edx, 0xf
mov byte [ebp - 4], 1
lea eax, [ebp - 0x58]
cmova eax, dword [ebp - 0x58]
push ecx
push eax
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x4019fc
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov esi, dword [ebp - 0x110]
mov ecx, esi
push 0x408349
call fcn.00404ce0
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x4019dc
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4019d2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401c8c
push ecx
push edx
call fcn.00406691
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040653e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x34]
push eax
push 2
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x401982
push 0x98
lea eax, [ebp - 0xf0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xf0], 0x40b598
lea ecx, [ebp - 0xa0]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0x114], 8
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0xf0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf0], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xf0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xf4], eax
lea ecx, [ebp - 0xec]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov dword [ebp - 0xec], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 4
mov byte [ebp - 4], 4
cmp dword [ebp - 0x40], 0
mov dword [ebp - 0x10c], 0
jbe 0x401b3e
push 0
lea eax, [ebp - 0x128]
push 2
push eax
call dword [sym.imp.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
add esp, 0xc
lea ecx, [ebp - 0xf0]
mov esi, eax
push 0x401220
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___]
push dword [esi + 0xc]
mov edi, eax
push dword [esi + 8]
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
add ecx, edi
push ecx
mov ecx, dword [esi]
call ecx
mov eax, dword [edi]
add esp, 0xc
mov esi, dword [ebp - 0x10c]
mov ecx, edi
mov eax, dword [eax + 4]
mov byte [eax + edi + 0x40], 0x30
movzx eax, byte [ebp + esi - 0x34]
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 esi
mov dword [ebp - 0x10c], esi
cmp esi, dword [ebp - 0x40]
jb 0x401ad6
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov byte [ebp - 4], 5
xorps xmm0, xmm0
mov esi, dword [ebp - 0x110]
mov edx, dword [ebp - 0xb0]
mov eax, edx
and al, 0x22
mov dword [ebp - 0x114], 0xc
movq qword [ebp - 0x124], xmm0
mov dword [ebp - 0x11c], 0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
cmp al, 2
je 0x401bd0
mov eax, dword [ebp - 0xcc]
mov ecx, dword [eax]
test ecx, ecx
je 0x401bd0
mov eax, dword [ebp - 0xdc]
cmp ecx, dword [ebp - 0xb4]
cmovb ecx, dword [ebp - 0xb4]
mov edx, dword [eax]
sub ecx, edx
jmp 0x401c03
test dl, 4
jne 0x401bf7
mov eax, dword [ebp - 0xd0]
mov edi, dword [eax]
test edi, edi
je 0x401bf7
mov eax, dword [ebp - 0xe0]
mov edx, dword [eax]
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax]
sub ecx, edx
add ecx, edi
jmp 0x401c03
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp - 0x124]
test edx, edx
je 0x401c10
push ecx
push edx
mov ecx, esi
call fcn.004055e0
mov eax, dword [ebp - 0xf0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf0], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xf0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xf4], eax
lea ecx, [ebp - 0xec]
call fcn.00404a60
lea ecx, [ebp - 0xe8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xa0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x4019dc
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4019d2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4019d2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.00401170
call fcn.004010d0
int3