Function at 0x106a531
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0x14]
push esi
xor esi, esi
cmp ebx, esi
push edi
mov dword [ebp - 0x10], 0xc00000e5
je 0x106a54c
mov dword [ebx], esi
cmp dword [ebp + 8], esi
jne 0x106a58c
mov edi, dword [ebp + 0x10]
cmp edi, esi
je 0x106a567
mov ecx, edi
call fcn.0103f5c0
test al, al
je 0x106a58c
cmp ebx, esi
jne 0x106a581
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], esi
call fcn.010202e5
jmp 0x106a7e7
mov ecx, ebx
call fcn.0103f5c0
test al, al
jne 0x106a5aa
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], 0x100cea8
call fcn.010202e5
jmp 0x106a7e7
mov eax, dword [ebp + 0xc]
dec eax
je 0x106a725
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x10], esi
mov dword [ebp + 8], esi
call fcn.01069fbf
cmp dword [ebp + 0xc], esi
mov dword [ebp - 4], eax
jne 0x106a5d4
mov edi, 0xc000042c
push edi
push 1
jmp 0x106a63b
push 0xf0000000
xor ebx, ebx
inc ebx
push ebx
push esi
push esi
lea eax, [ebp + 0x10]
push eax
call sub.ADVAPI32.dll_CryptAcquireContextA
test eax, eax
je 0x106a6dd
lea eax, [ebp + 8]
push eax
push esi
push esi
push dword [ebp - 4]
push dword [ebp + 0x10]
call sub.ADVAPI32.dll_CryptCreateHash
test eax, eax
je 0x106a6dd
push 4
pop eax
push esi
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
call sub.ADVAPI32.dll_CryptGetHashParam
test eax, eax
je 0x106a6dd
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 4]
cmp eax, dword [ebp - 8]
jae 0x106a669
mov edi, 0xc0000023
push edi
push ebx
push esi
push esi
call fcn.0103f55c
mov ecx, dword [ebp + 8]
cmp ecx, esi
mov dword [ebp - 0x10], edi
je 0x106a654
call fcn.010939d1
mov dword [ebp + 8], esi
mov ecx, dword [ebp + 0x10]
cmp ecx, esi
je 0x106a7e7
call fcn.0109396c
jmp 0x106a7e7
mov eax, dword [edi]
mov dword [ebp + 0xc], eax
mov eax, dword [edi + 8]
mov dword [ebp - 4], eax
or edi, 0xffffffff
cmp dword [ebp + 0xc], edi
ja 0x106a67f
mov edi, dword [ebp + 0xc]
push esi
push edi
push dword [ebp - 4]
push dword [ebp + 8]
call sub.ADVAPI32.dll_CryptHashData
test eax, eax
je 0x106a6dd
sub dword [ebp + 0xc], edi
add dword [ebp - 4], edi
cmp dword [ebp + 0xc], esi
ja 0x106a674
mov edi, dword [ebp + 0x14]
push esi
lea eax, [ebp - 8]
push eax
push dword [edi + 8]
push 2
push dword [ebp + 8]
call sub.ADVAPI32.dll_CryptGetHashParam
test eax, eax
je 0x106a6dd
mov ecx, dword [ebp + 8]
cmp ecx, esi
mov eax, dword [ebp - 8]
mov dword [edi], eax
je 0x106a6c8
call fcn.010939d1
mov dword [ebp + 8], esi
mov ecx, dword [ebp + 0x10]
cmp ecx, esi
je 0x106a7e4
call fcn.0109396c
jmp 0x106a7e4
call fcn.0104c9b5
mov edi, eax
cmp edi, esi
jl 0x106a639
mov ecx, dword [ebp + 8]
cmp ecx, esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
je 0x106a701
call fcn.010939d1
mov dword [ebp + 8], esi
mov ecx, dword [ebp + 0x10]
cmp ecx, esi
je 0x106a70d
call fcn.0109396c
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x100cea8
call fcn.0102080c
jmp 0x106a7e7
cmp dword [ebx + 4], 8
jae 0x106a742
mov edi, 0xc0000023
push edi
push 1
push esi
push esi
call fcn.0103f55c
mov dword [ebp - 0x10], edi
jmp 0x106a7e7
mov ebx, dword [edi + 8]
mov edi, dword [edi]
xor eax, eax
xor ecx, ecx
cmp edi, 4
mov dword [ebp + 0xc], edi
jb 0x106a7a7
mov edx, edi
shr edx, 2
test bl, 3
jne 0x106a783
mov dword [ebp + 8], edx
push 1
push 0xfffffffffffffff7
push ecx
push eax
call fcn.010a3950
mov ecx, dword [ebx]
xor edi, edi
add eax, ecx
adc edx, edi
sub dword [ebp + 0xc], 4
add ebx, 4
dec dword [ebp + 8]
mov ecx, edx
jne 0x106a760
jmp 0x106a7a7
mov dword [ebp + 8], edx
push 1
push 0xfffffffffffffff7
push ecx
push eax
call fcn.010a3950
mov ecx, dword [ebx]
xor edi, edi
add eax, ecx
adc edx, edi
sub dword [ebp + 0xc], 4
add ebx, 4
dec dword [ebp + 8]
mov ecx, edx
jne 0x106a786
cmp dword [ebp + 0xc], esi
jbe 0x106a7d3
mov edx, dword [ebp + 0xc]
mov dword [ebp + 0xc], edx
push 1
push 0xfffffffffffffff7
push ecx
push eax
call fcn.010a3950
mov ecx, eax
movzx eax, byte [ebx]
mov edi, edx
cdq
add ecx, eax
adc edi, edx
inc ebx
dec dword [ebp + 0xc]
mov eax, ecx
mov ecx, edi
jne 0x106a7b2
mov edi, dword [ebp + 0x14]
mov edx, dword [edi + 8]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov dword [edi], 8
mov dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0x10