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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4326c5
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x445664]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
push 0x1ff
mov dword [ebp - 0x388], 0
lea ecx, [ebp - 0x273]
push 0
push ecx
mov dword [ebp - 0x38c], esi
mov dword [ebp - 0x390], eax
mov dword [ebp - 0x24], 0x95414aa9
mov dword [ebp - 0x20], 0x2d4301e2
mov dword [ebp - 0x1c], 0x446cb9b
mov dword [ebp - 0x18], 0x214ad805
call fcn.0041c530
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
lea ebx, [esi + 4]
add esp, 0xc
mov dword [ebp - 0x274], edx
mov edx, dword [ebx + 8]
mov dword [ebp - 0x270], eax
mov eax, dword [ebx + 0xc]
push ebx
push 4
lea edi, [ebp - 0x24]
mov dword [ebp - 0x26c], ecx
mov dword [ebp - 0x268], edx
mov dword [ebp - 0x264], eax
call fcn.00416440
push 0x100
call fcn.0041b190
add esp, 0xc
push 0x100
mov edi, eax
push ebx
push edi
call fcn.0041bc90
add esp, 0xc
lea ecx, [ebp - 0x398]
push ecx
push edi
mov ecx, ebx
call fcn.00416e00
push edi
call fcn.0041a924
add esp, 0xc
call fcn.004165b0
lea edx, [ebp - 0x260]
push edx
lea edi, [esi + 0x14]
call fcn.004031f0
add esp, 4
lea esi, [ebp + eax - 0x260]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0041a803
add esp, 4
xor edi, edi
lea ebx, [ebx]
call fcn.0041a815
and eax, 0x800000ff
jns 0x4037f3
dec eax
or eax, 0xffffff00
inc eax
mov cl, byte [ebx + edi]
xor cl, byte [ebp + edi - 0x270]
mov byte [ebp + edi - 0x74], al
xor cl, al
mov byte [edi + esi], cl
inc edi
cmp edi, 0x10
jl 0x4037e0
add esi, 0x10
push esi
lea edx, [ebp - 0x74]
push edx
push 0x10
call fcn.00417470
add esp, 0xc
cmp byte [0x44835c], 0
jne 0x4038f3
mov eax, dword [str.9E59F200201AD01A]
mov cx, word [eax + 2]
movzx edi, word [eax + 0x1c]
mov dx, word [eax]
mov word [ebp - 0x382], cx
mov ecx, dword [0x448374]
mov word [ecx], di
movzx edi, word [eax + 0x1e]
mov word [ecx + 2], di
mov word [ecx + 0x1c], dx
movzx edx, word [ebp - 0x382]
mov word [ecx + 0x1e], dx
movzx edi, word [eax + 6]
mov dx, word [eax + 4]
mov word [ebp - 0x382], di
movzx edi, word [eax + 0x18]
mov word [ecx + 4], di
movzx edi, word [eax + 0x1a]
mov word [ecx + 6], di
mov word [ecx + 0x18], dx
movzx edx, word [ebp - 0x382]
mov word [ecx + 0x1a], dx
movzx edi, word [eax + 0xa]
mov dx, word [eax + 8]
mov word [ebp - 0x382], di
movzx edi, word [eax + 0x14]
mov word [ecx + 8], di
movzx edi, word [eax + 0x16]
mov word [ecx + 0xa], di
mov word [ecx + 0x14], dx
movzx edx, word [ebp - 0x382]
mov word [ecx + 0x16], dx
movzx edi, word [eax + 0xe]
mov dx, word [eax + 0xc]
mov word [ebp - 0x382], di
movzx edi, word [eax + 0x10]
mov word [ecx + 0xc], di
mov ax, word [eax + 0x12]
mov word [ecx + 0xe], ax
mov word [ecx + 0x10], dx
movzx edx, word [ebp - 0x382]
mov word [ecx + 0x12], dx
mov byte [0x44835c], 1
xor edi, edi
mov dword [ebp - 0x3a4], edi
mov dword [ebp - 0x3a0], edi
mov dword [ebp - 0x454], 0x441218
mov dword [ebp - 0x444], 0x441208
mov dword [ebp - 4], edi
push edi
push edi
lea ecx, [ebp - 0x3f4]
mov dword [ebp - 0x388], 1
mov dword [ebp - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x44c], edi
mov dword [ebp - 0x448], edi
mov dword [ebp - 0x3c4], edi
mov dword [ebp - 0x3ec], edi
mov dword [ebp - 0x3e4], edi
mov dword [ebp - 0x3e0], 0x201
mov dword [ebp - 0x3dc], 6
mov dword [ebp - 0x3d8], edi
mov dword [ebp - 0x3d4], edi
mov dword [ebp - 0x3d0], edi
mov dword [ebp - 0x3cc], edi
mov dword [ebp - 0x3c8], edi
call fcn.00401b30
push 4
call fcn.0041b190
add esp, 4
mov dword [ebp - 0x378], eax
cmp eax, edi
je 0x4039e6
call fcn.00417f79
mov ecx, dword [ebp - 0x378]
mov dword [ecx], eax
call fcn.00417d38
push edi
lea ecx, [ebp - 0x3a8]
mov dword [ebp - 0x394], eax
call fcn.0041811d
mov ecx, dword [ebp - 0x394]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jae 0x4039d3
inc eax
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x3a8]
call fcn.00418145
mov eax, dword [ebp - 0x378]
jmp 0x4039e8
xor eax, eax
mov dword [ebp - 0x3c4], eax
lea eax, [ebp - 0x394]
lea edx, [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x3f4]
mov dword [ebp - 0x3bc], edx
mov dword [ebp - 0x3b8], edi
call fcn.00401c30
push eax
mov dword [ebp - 4], 3
call fcn.0040e7f0
mov dword [ebp - 0x380], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x394]
add esp, 4
cmp eax, edi
je 0x403a8c
push edi
lea ecx, [ebp - 0x398]
mov dword [ebp - 0x378], eax
call fcn.0041811d
mov ecx, dword [ebp - 0x378]
mov eax, dword [ecx + 4]
cmp eax, edi
jbe 0x403a5e
cmp eax, 0xffffffff
jae 0x403a5e
dec eax
mov dword [ecx + 4], eax
mov eax, dword [ecx + 4]
neg eax
sbb eax, eax
not eax
and eax, ecx
lea ecx, [ebp - 0x398]
mov dword [ebp - 0x378], eax
call fcn.00418145
mov ecx, dword [ebp - 0x378]
cmp ecx, edi
je 0x403a8c
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [ebp - 0x380]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
push 0x20
call eax
mov byte [ebp - 0x3b4], al
cmp dword [ebp - 0x3bc], edi
jne 0x403abf
mov eax, dword [ebp - 0x3e8]
or eax, 4
push edi
push eax
lea ecx, [ebp - 0x3f4]
call fcn.00401b30
mov ecx, dword [ebp - 0x444]
mov edx, dword [ecx + 4]
mov dword [ebp + edx - 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 - 0x454]
mov ecx, dword [eax + 4]
mov dword [ebp + ecx - method.std::basic_iostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 6
mov edx, dword [ebp - 0x454]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x43c]
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
call fcn.0040b400
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 - 0x400], edi
mov dword [ebp - 0x3fc], edi
push edi
push edi
push edi
push edi
mov dword [ebp - 4], 8
mov eax, dword [0x448374]
push 0xffffffffffffffff
push eax
push edi
push 0xfde9
mov dword [ebp - 0x380], eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
push edi
call fcn.00418276
mov ecx, dword [ebp - 0x380]
add esp, 4
push 0
push 0
push edi
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
mov dword [ebp - 0x378], eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [ebp - 0x444]
mov eax, dword [edx + 4]
mov ecx, dword [ebp + eax - 0x430]
mov edx, dword [ebp - 0x378]
lea eax, [ebp + eax - 0x444]
and ecx, 0xfffff9ff
or ecx, 0x800
mov dword [eax + 0x14], ecx
push edx
lea eax, [ebp - 0x444]
push eax
call fcn.0040ea70
add esp, 8
lea ecx, [ebp - 0x3a4]
push ecx
lea edx, [ebp - 0x454]
push edx
call fcn.00407390
mov eax, dword [ebp - 0x3a4]
mov dword [esi + 0x20], eax
mov ecx, dword [ebp - 0x3a0]
mov dword [esi + 0x24], ecx
add esi, 0x28
lea ecx, [ebp - 0x270]
sub ecx, esi
lea edx, [ebp - 0x374]
xor edi, edi
sub edx, esi
mov eax, esi
mov dword [ebp - 0x380], ecx
mov dword [ebp - 0x378], edx
jmp 0x403c06
mov ecx, dword [ebp - 0x380]
movzx edx, byte [ebx + edi]
movzx ecx, byte [ecx + eax]
xor ecx, edx
mov edx, dword [ebp - 0x378]
mov byte [eax], cl
mov byte [edx + eax], cl
inc edi
inc eax
cmp edi, 0x10
jl 0x403c00
lea eax, [ebp - 0x260]
lea edi, [esi + 0x10]
sub edi, eax
push edi
mov ecx, eax
push ecx
lea edx, [ebp - 0x364]
push edx
call fcn.0041bc90
mov ecx, dword [ebp - 0x38c]
mov eax, dword [ecx + 0x68]
mov ecx, dword [ecx + 0x6c]
add esp, 0xc
push 0x22
push 0x816889bd
push ecx
push eax
add edi, 0x10
call fcn.0041e9e0
push 0x20
push 0x8cbab5ed
push edx
push eax
call fcn.0041ea50
add eax, 0xc628477a
push 0xf0000000
adc edx, 0x3156cd5a
xor ebx, ebx
push 0x18
push ebx
mov dword [ebp - 0x384], eax
push ebx
lea eax, [ebp - 0x378]
push eax
mov dword [ebp - 0x380], edx
mov dword [ebp - 0x378], ebx
mov dword [ebp - 0x388], ebx
mov dword [ebp - 0x38c], 0x20
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x403d24
mov edx, dword [ebp - 0x378]
lea ecx, [ebp - 0x388]
push ecx
push ebx
push ebx
push 0x800c
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov ecx, dword [ebp - 0x388]
push ebx
push 8
lea eax, [ebp - 0x384]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov ecx, dword [ebp - 0x388]
push ebx
lea edx, [ebp - 0x38c]
push edx
lea eax, [ebp - 0x44]
push eax
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [ebp - 0x388]
cmp eax, ebx
je 0x403d12
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x378]
cmp eax, ebx
je 0x403d24
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x34]
mov dword [0x4466d4], eax
lea eax, [ebp - 0x64]
mov dword [0x4466d8], ecx
push eax
lea ecx, [ebp - 0x374]
mov dword [0x4466d0], edx
mov edx, dword [ebp - 0x28]
push ecx
push edi
mov dword [0x4466dc], edx
call fcn.00417510
mov edx, dword [ebp - 0x54]
mov dword [esi + 0x10], edx
mov eax, dword [ebp - 0x50]
mov dword [esi + 0x14], eax
mov ecx, dword [ebp - 0x4c]
mov dword [esi + 0x18], ecx
mov edx, dword [ebp - 0x48]
mov dword [esi + 0x1c], edx
add esi, 0x20
lea eax, [ebp - 0x260]
mov ebx, esi
sub ebx, eax
mov al, bl
not al
inc al
add esp, 0xc
and al, 0xf
mov byte [ebp - 0x378], al
jne 0x403d98
mov al, 0x10
mov byte [ebp - 0x378], al
movzx edi, al
push edi
push edi
push esi
call fcn.0041c530
mov edx, dword [ebp - 0x378]
add esp, 0xc
lea ecx, [ebp - 0x270]
push ecx
add ebx, edi
push edx
lea edi, [ebp - 0x24]
call fcn.00416440
push ebx
call fcn.0041b190
add esp, 0xc
mov esi, eax
push ebx
lea eax, [ebp - 0x260]
push eax
push esi
call fcn.0041bc90
add esp, 0xc
push ebx
push esi
lea edx, [ebp - 0x38c]
lea ecx, [ebp - 0x260]
call fcn.004168b0
push esi
call fcn.0041a924
add esp, 0xc
call fcn.004165b0
mov ecx, dword [ebp - 0x390]
lea esi, [ebx + 0x14]
push esi
mov dword [ecx], esi
call fcn.00419b93
add esp, 4
push esi
lea edx, [ebp - 0x274]
mov edi, eax
push edx
push edi
call fcn.0041bc90
mov ecx, dword [ebp - 0x454]
mov edx, dword [ecx + 4]
lea eax, [ebp - 0x3f4]
add esp, 0xc
mov dword [ebp - 0x38c], eax
mov dword [ebp + edx - 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 dword [ebp - 4], 9
test byte [ebp - 0x3fc], 1
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x398], eax
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
je 0x403e79
mov ecx, dword [ebp - 0x42c]
mov eax, dword [ecx]
push eax
call fcn.0041a924
add esp, 4
mov edx, dword [ebp - 0x42c]
mov dword [edx], 0
mov eax, dword [ebp - 0x41c]
mov dword [eax], 0
mov ecx, dword [ebp - 0x40c]
mov dword [ecx], 0
mov edx, dword [ebp - 0x428]
mov dword [edx], 0
mov eax, dword [ebp - 0x418]
mov dword [eax], 0
mov ecx, dword [ebp - 0x408]
mov dword [ecx], 0
and dword [ebp - 0x3fc], 0xfffffffe
mov dword [ebp - 0x400], 0
mov dword [ebp - method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x404]
mov dword [ebp - 0x390], eax
test eax, eax
je 0x403f44
mov ebx, dword [eax]
test ebx, ebx
je 0x403f35
push 0
lea ecx, [ebp - 0x380]
call fcn.0041811d
mov eax, dword [ebx + 4]
test eax, eax
je 0x403f13
cmp eax, 0xffffffff
jae 0x403f13
dec eax
mov dword [ebx + 4], eax
mov esi, dword [ebx + 4]
neg esi
sbb esi, esi
lea ecx, [ebp - 0x380]
not esi
call fcn.00418145
and esi, ebx
je 0x403f35
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov ecx, dword [ebp - 0x390]
push ecx
call fcn.0041a924
add esp, 4
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 9
call fcn.00418176
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x454]
mov eax, dword [edx + 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 ecx, dword [ebp - 0x444]
mov edx, dword [ecx + 4]
mov dword [ebp + edx - 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 - 0x454]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x3f4]
mov dword [ebp + ecx - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
push edx
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00417b6d
add esp, 4
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 - 0x14]
xor ecx, ebp
call fcn.00418fcb
mov esp, ebp
pop ebp
ret