Function at 0x105eb87
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 0x105eba4
mov dword [ebx], esi
cmp dword [ebp + 8], esi
jne 0x105ebe4
mov edi, dword [ebp + 0x10]
cmp edi, esi
je 0x105ebbf
mov ecx, edi
call fcn.0103cc6a
test al, al
je 0x105ebe4
cmp ebx, esi
jne 0x105ebd9
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], esi
call fcn.0101cd64
jmp 0x105ee3f
mov ecx, ebx
call fcn.0103cc6a
test al, al
jne 0x105ec02
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], 0x100aab8
call fcn.0101cd64
jmp 0x105ee3f
mov eax, dword [ebp + 0xc]
dec eax
je 0x105ed7d
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x10], esi
mov dword [ebp + 8], esi
call fcn.0105e83d
cmp dword [ebp + 0xc], esi
mov dword [ebp - 4], eax
jne 0x105ec2c
mov edi, 0xc000042c
push edi
push 1
jmp 0x105ec93
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 0x105ed35
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 0x105ed35
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 0x105ed35
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 4]
cmp eax, dword [ebp - 8]
jae 0x105ecc1
mov edi, 0xc0000023
push edi
push ebx
push esi
push esi
call fcn.0103cbc6
mov ecx, dword [ebp + 8]
cmp ecx, esi
mov dword [ebp - 0x10], edi
je 0x105ecac
call fcn.0108ac1f
mov dword [ebp + 8], esi
mov ecx, dword [ebp + 0x10]
cmp ecx, esi
je 0x105ee3f
call fcn.0108abb3
jmp 0x105ee3f
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 0x105ecd7
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 0x105ed35
sub dword [ebp + 0xc], edi
add dword [ebp - 4], edi
cmp dword [ebp + 0xc], esi
ja 0x105eccc
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 0x105ed35
mov ecx, dword [ebp + 8]
cmp ecx, esi
mov eax, dword [ebp - 8]
mov dword [edi], eax
je 0x105ed20
call fcn.0108ac1f
mov dword [ebp + 8], esi
mov ecx, dword [ebp + 0x10]
cmp ecx, esi
je 0x105ee3c
call fcn.0108abb3
jmp 0x105ee3c
call fcn.0104b39a
mov edi, eax
cmp edi, esi
jl 0x105ec91
mov ecx, dword [ebp + 8]
cmp ecx, esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
je 0x105ed59
call fcn.0108ac1f
mov dword [ebp + 8], esi
mov ecx, dword [ebp + 0x10]
cmp ecx, esi
je 0x105ed65
call fcn.0108abb3
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x100aab8
call fcn.0101d3f6
jmp 0x105ee3f
cmp dword [ebx + 4], 8
jae 0x105ed9a
mov edi, 0xc0000023
push edi
push 1
push esi
push esi
call fcn.0103cbc6
mov dword [ebp - 0x10], edi
jmp 0x105ee3f
mov ebx, dword [edi + 8]
mov edi, dword [edi]
xor eax, eax
xor ecx, ecx
cmp edi, 4
mov dword [ebp + 0xc], edi
jb 0x105edff
mov edx, edi
shr edx, 2
test bl, 3
jne 0x105eddb
mov dword [ebp + 8], edx
push 1
push 0xfffffffffffffff7
push ecx
push eax
call fcn.0109af00
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 0x105edb8
jmp 0x105edff
mov dword [ebp + 8], edx
push 1
push 0xfffffffffffffff7
push ecx
push eax
call fcn.0109af00
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 0x105edde
cmp dword [ebp + 0xc], esi
jbe 0x105ee2b
mov edx, dword [ebp + 0xc]
mov dword [ebp + 0xc], edx
push 1
push 0xfffffffffffffff7
push ecx
push eax
call fcn.0109af00
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 0x105ee0a
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