Function at 0x401190
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 0x404854
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x120
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x12c], esi
xorps xmm0, xmm0
mov dword [ebp - 0x118], 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 0x40126f
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 0x401299
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xorps xmm0, xmm0
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
jmp 0x401479
cmp dword [edi + 0x14], 7
mov eax, dword [edi + 0x10]
jbe 0x4012ab
mov ecx, dword [edi]
mov edi, dword [edi]
lea ecx, [ecx + eax*2]
jmp 0x4012ae
lea ecx, [edi + eax*2]
xorps xmm0, xmm0
movups xmmword [ebp - 0x58], xmm0
cmp edi, ecx
jne 0x4012ce
xor ecx, ecx
mov edx, 0xf
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], edx
mov byte [ebp - 0x58], cl
jmp 0x4013e9
sub ecx, edi
mov dword [ebp - 0x48], 0
sar ecx, 1
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x44], 0xf
cmp ecx, 0x7fffffff
ja 0x40172f
mov eax, 0xf
cmp ecx, eax
jbe 0x40139e
mov eax, ecx
or eax, 0xf
cmp eax, 0x7fffffff
jbe 0x40134b
mov eax, 0x80000000
mov dword [ebp - 0x110], 0x7fffffff
add eax, 0x23
push eax
call fcn.004037b9
add esp, 4
test eax, eax
je 0x401729
mov ecx, dword [ebp - 0x10c]
lea edx, [eax + 0x23]
and edx, 0xffffffe0
mov dword [edx - 4], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x44], eax
jmp 0x4013a1
mov edx, 0x16
cmp eax, edx
cmovb eax, edx
mov dword [ebp - 0x110], eax
lea edx, [eax + 1]
test edx, edx
jne 0x40136a
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x44], eax
jmp 0x4013a1
cmp edx, 0x1000
jb 0x40137f
lea eax, [edx + 0x23]
cmp eax, edx
jbe 0x401734
jmp 0x40131d
push edx
call fcn.004037b9
mov ecx, dword [ebp - 0x10c]
mov edx, eax
mov eax, dword [ebp - 0x110]
add esp, 4
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x44], eax
jmp 0x4013a1
mov edx, dword [ebp - 0x58]
mov esi, dword [ebp - 0x114]
cmp eax, 0xf
lea eax, [ebp - 0x58]
cmova eax, edx
mov dword [ebp - 0x10c], eax
mov edx, eax
test ecx, ecx
je 0x4013d6
mov esi, ecx
nop
mov al, byte [edi]
lea edx, [edx + 1]
mov byte [edx - 1], al
lea edi, [edi + 2]
sub esi, 1
jne 0x4013c0
mov esi, dword [ebp - 0x114]
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x48], ecx
mov byte [eax + ecx], 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 0x401499
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 ecx, dword [ebp - 0x44]
xorps xmm0, xmm0
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 ecx, 0xf
jbe 0x401479
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40146f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401729
push ecx
push edx
call fcn.004038fe
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.004037ab
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 0x40140c
push 0x98
lea eax, [ebp - 0xf0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xf0], 0x406da4
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 - 0x118], 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 0x4015e1
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 0x401170
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 0x401573
mov esi, dword [ebp - 0x114]
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 edx, dword [ebp - 0xb0]
mov eax, edx
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
and al, 0x22
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 0x118], 0xc
movq qword [ebp - 0x124], xmm0
mov dword [ebp - 0x11c], 0
cmp al, 2
je 0x40166d
mov eax, dword [ebp - 0xcc]
mov ecx, dword [eax]
test ecx, ecx
je 0x40166d
mov eax, dword [ebp - 0xdc]
cmp ecx, dword [ebp - 0xb4]
cmovb ecx, dword [ebp - 0xb4]
mov edx, dword [eax]
sub ecx, edx
jmp 0x4016a0
test dl, 4
jne 0x401694
mov eax, dword [ebp - 0xd0]
mov edi, dword [eax]
test edi, edi
je 0x401694
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 0x4016a0
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp - 0x124]
test edx, edx
je 0x4016ad
push ecx
push edx
mov ecx, esi
call fcn.00402d70
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.00402720
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 0x401479
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40146f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40146f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.00401160
call fcn.004010c0
int3