Function at 0x1001a840
Capabilities:
Create new key via cryptacquirecontext
Hash data using sha1
Hash data using sha1 via wincrypt
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 0x10061de5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x5b0
mov eax, dword [0x1007e064]
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 - 0x444], esi
mov dword [ebp - 0x458], esi
mov dword [ebp - 0x450], 0
movups xmm0, xmmword [str.0123456789abcdef]
mov al, byte [0x10077560]
mov dword [ebp - 0x444], 0
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x448], 0
movups xmmword [ebp - 0x28], xmm0
mov byte [ebp - 0x18], al
mov dword [ebp - 0x508], 0x100775e0
mov dword [ebp - 0x4f8], 0x10077588
mov dword [ebp - 0x498], 0
mov dword [ebp - 0x478], 0
mov dword [ebp - 0x474], 0
mov dword [ebp - 0x470], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x4f0]
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x450], 2
push eax
lea ecx, [ebp - 0x4a0]
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 - 0x4a4], 0x50
movlpd qword [ebp - 0x500], xmm0
call fcn.10011100
mov eax, dword [ebp - 0x4f8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 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 - 0x4f8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x4fc], eax
mov eax, dword [ebp - 0x508]
mov eax, dword [eax + 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 eax, dword [ebp - 0x508]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x50c], eax
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x508]
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 - 0x508]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x50c], eax
lea ecx, [ebp - 0x4f0]
call fcn.10011030
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 - 0x4b8], 0
mov dword [ebp - 0x4b4], 0
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x444]
mov dword [ebp - 4], 6
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1001aa41
lea eax, [ebp - 0x44c]
push eax
push 0
push 0
push 0x8004
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1001aa6b
push eax
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
mov ecx, esi
mov dword [esi + 0x10], 0
push 0
mov dword [esi + 0x14], 0xf
push 0x10070127
mov byte [esi], 0
call fcn.1000cb50
jmp 0x1001ac19
sub esp, 0xc
lea ecx, [ebp - 0x5c0]
push edi
call fcn.100105b0
mov byte [ebp - 4], 7
cmp dword [ebp - 0x564], 0
je 0x1001ab47
sub esp, 8
lea eax, [ebp - 0x440]
lea ecx, [ebp - 0x5c0]
push eax
call fcn.1001b6a0
mov eax, dword [eax + 8]
test eax, eax
je 0x1001aade
mov edi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
nop dword [eax]
push 0
push eax
lea eax, [ebp - 0x440]
push eax
push dword [ebp - 0x44c]
call edi
sub esp, 8
lea eax, [ebp - 0x440]
lea ecx, [ebp - 0x5c0]
push eax
call fcn.1001b6a0
mov eax, dword [eax + 8]
test eax, eax
jne 0x1001aab0
push 0
lea eax, [ebp - 0x448]
mov dword [ebp - 0x448], 0x14
push eax
lea eax, [ebp - 0x3c]
push eax
push 2
push dword [ebp - 0x44c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
xor edi, edi
cmp dword [ebp - 0x448], edi
jbe 0x1001ab47
nop dword [eax]
movzx eax, byte [ebp + edi - 0x3c]
lea ecx, [ebp - 0x4f8]
shr eax, 4
mov dl, byte [ebp + eax - 0x28]
call fcn.1001ba50
movzx eax, byte [ebp + edi - 0x3c]
lea ecx, [ebp - 0x4f8]
and eax, 0xf
mov dl, byte [ebp + eax - 0x28]
call fcn.1001ba50
inc edi
cmp edi, dword [ebp - 0x448]
jb 0x1001ab10
mov eax, dword [ebp - 0x44c]
test eax, eax
je 0x1001ab58
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x444]
test eax, eax
je 0x1001ab6b
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov byte [ebp - 4], 8
xorps xmm0, xmm0
mov eax, dword [ebp - 0x4b4]
and al, 0x22
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 0x450], 0x42
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x1c], 0
cmp al, 2
je 0x1001abd0
mov eax, dword [ebp - 0x4d0]
mov ecx, dword [eax]
test ecx, ecx
je 0x1001abd0
mov eax, dword [ebp - 0x4e0]
cmp ecx, dword [ebp - 0x4b8]
cmovb ecx, dword [ebp - 0x4b8]
mov edx, dword [eax]
sub ecx, edx
jmp 0x1001ac01
test byte [ebp - 0x4b4], 4
jne 0x1001abfb
mov eax, dword [ebp - 0x4d4]
mov edi, dword [eax]
test edi, edi
je 0x1001abfb
mov eax, dword [ebp - 0x4e4]
mov edx, dword [eax]
mov eax, dword [ebp - 0x4c4]
mov ecx, dword [eax]
sub ecx, edx
add ecx, edi
jmp 0x1001ac01
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
test edx, edx
je 0x1001ac0e
push ecx
push edx
mov ecx, esi
call fcn.1000cb50
lea ecx, [ebp - 0x5c0]
call fcn.1000f580
lea ecx, [ebp - 0x508]
call fcn.1001ac50
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.10039070
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret