Function at 0x766474c3
Capabilities:
Initialize hashing via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
push ebx
push esi
mov esi, dword [eax + 4]
test esi, esi
push edi
mov dword [ebp - 0x24], esi
je 0x76647671
lea eax, [esi + esi*4]
shl eax, 4
push eax
call fcn.765fc04a
test eax, eax
mov dword [ebp - 4], eax
je 0x766476af
lea eax, [esi + esi*2]
shl eax, 2
push eax
call fcn.765fc04a
mov edi, eax
test edi, edi
mov dword [ebp - 0x20], edi
je 0x766476af
mov ebx, dword [ebp + 0xc]
push 0xc
mov dword [ebx + 0x58], esi
mov dword [ebx + 0x5c], edi
call fcn.765e42f1
pop ecx
xor ecx, ecx
cmp eax, ecx
je 0x76647538
mov dword [eax + 4], ecx
mov dword [eax], ecx
mov dword [eax + 8], ecx
jmp 0x7664753a
xor eax, eax
cmp eax, ecx
mov dword [ebx + 0x50], eax
je 0x766476af
and dword [ebp - 0x10], 0
test esi, esi
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 8]
jbe 0x76647671
mov eax, dword [ebp - 4]
add edi, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], edi
xor eax, eax
cmp dword [ebx], 0x30
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jb 0x766476a4
xor edi, edi
cmp dword [ebx + 8], edi
je 0x766476a4
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 8]
push ebx
push dword [eax + 8]
call fcn.7664266e
test eax, eax
je 0x766475a6
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
lea eax, [eax + eax*2]
mov ecx, dword [ecx + eax*4 + 8]
jmp 0x7664764c
push dword [ebp - 8]
lea esi, [ebx + 0x10]
push dword [ebp + 0xc]
mov eax, esi
call fcn.765fc823
test eax, eax
je 0x766476af
inc dword [ebp - 0x14]
add dword [ebp - 8], 0x50
lea eax, [ebp - 0x34]
push eax
push esi
push 1
call fcn.765ff8c2
test eax, eax
jne 0x766475e9
lea eax, [ebp - 0x34]
push eax
push esi
push 4
call fcn.765ff8c2
test eax, eax
je 0x76647689
lea eax, [ebp - 0x30]
push eax
push edi
push edi
push dword [ebp - 0x34]
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x766476af
push 0x18
call fcn.765e42f1
pop ecx
mov ecx, eax
cmp ecx, edi
je 0x76647626
mov dword [ecx + 4], edi
mov dword [ecx], edi
xor eax, eax
lea edi, [ecx + 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], ecx
xor edi, edi
jmp 0x76647629
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0xc]
cmp eax, edi
je 0x76647690
lea edi, [eax + 8]
lea esi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
mov eax, dword [ebp + 0xc]
movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x50]
call fcn.765fd1dd
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebx + 8]
mov eax, dword [ebp - 0x18]
inc dword [ebp - 0x10]
mov dword [eax - 8], edx
mov edx, dword [ebx + 0xc]
mov dword [eax - 4], edx
mov dword [eax], ecx
add ebx, dword [ebx]
add eax, 0xc
cmp dword [ebp - 0x10], esi
mov dword [ebp - 0x18], eax
jb 0x76647563
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
mov dword [eax + 4], ecx
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
push 0x80091002
jmp 0x766476a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x30]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
jmp 0x766476a9
push 0x80070057
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 4]
call fcn.765e40a0
xor eax, eax
jmp 0x76647682