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

Disassembly:
mov edi, edi
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 0x105f268
mov dword [ebx], esi
cmp dword [ebp + 8], esi
jne 0x105f2a8
mov edi, dword [ebp + 0x10]
cmp edi, esi
je 0x105f283
mov ecx, edi
call fcn.0103d26e
test al, al
je 0x105f2a8
cmp ebx, esi
jne 0x105f29d
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], esi
call fcn.0101d751
jmp 0x105f503
mov ecx, ebx
call fcn.0103d26e
test al, al
jne 0x105f2c6
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], 0x100ab38
call fcn.0101d751
jmp 0x105f503
mov eax, dword [ebp + 0xc]
dec eax
je 0x105f441
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x10], esi
mov dword [ebp + 8], esi
call fcn.0105ef01
cmp dword [ebp + 0xc], esi
mov dword [ebp - 4], eax
jne 0x105f2f0
mov edi, 0xc000042c
push edi
push 1
jmp 0x105f357
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 0x105f3f9
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 0x105f3f9
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 0x105f3f9
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 4]
cmp eax, dword [ebp - 8]
jae 0x105f385
mov edi, 0xc0000023
push edi
push ebx
push esi
push esi
call fcn.0103d1ca
mov ecx, dword [ebp + 8]
cmp ecx, esi
mov dword [ebp - 0x10], edi
je 0x105f370
call fcn.0108f280
mov dword [ebp + 8], esi
mov ecx, dword [ebp + 0x10]
cmp ecx, esi
je 0x105f503
call fcn.0108f214
jmp 0x105f503
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 0x105f39b
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 0x105f3f9
sub dword [ebp + 0xc], edi
add dword [ebp - 4], edi
cmp dword [ebp + 0xc], esi
ja 0x105f390
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 0x105f3f9
mov ecx, dword [ebp + 8]
cmp ecx, esi
mov eax, dword [ebp - 8]
mov dword [edi], eax
je 0x105f3e4
call fcn.0108f280
mov dword [ebp + 8], esi
mov ecx, dword [ebp + 0x10]
cmp ecx, esi
je 0x105f500
call fcn.0108f214
jmp 0x105f500
call fcn.0104b97d
mov edi, eax
cmp edi, esi
jl 0x105f355
mov ecx, dword [ebp + 8]
cmp ecx, esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
je 0x105f41d
call fcn.0108f280
mov dword [ebp + 8], esi
mov ecx, dword [ebp + 0x10]
cmp ecx, esi
je 0x105f429
call fcn.0108f214
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x100ab38
call fcn.0101d708
jmp 0x105f503
cmp dword [ebx + 4], 8
jae 0x105f45e
mov edi, 0xc0000023
push edi
push 1
push esi
push esi
call fcn.0103d1ca
mov dword [ebp - 0x10], edi
jmp 0x105f503
mov ebx, dword [edi + 8]
mov edi, dword [edi]
xor eax, eax
xor ecx, ecx
cmp edi, 4
mov dword [ebp + 0xc], edi
jb 0x105f4c3
mov edx, edi
shr edx, 2
test bl, 3
jne 0x105f49f
mov dword [ebp + 8], edx
push 1
push 0xfffffffffffffff7
push ecx
push eax
call fcn.0109f3e0
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 0x105f47c
jmp 0x105f4c3
mov dword [ebp + 8], edx
push 1
push 0xfffffffffffffff7
push ecx
push eax
call fcn.0109f3e0
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 0x105f4a2
cmp dword [ebp + 0xc], esi
jbe 0x105f4ef
mov edx, dword [ebp + 0xc]
mov dword [ebp + 0xc], edx
push 1
push 0xfffffffffffffff7
push ecx
push eax
call fcn.0109f3e0
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 0x105f4ce
mov edx, dword [ebp + 0x14]
mov edi, dword [edx + 8]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [edx], 8
mov dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0x10