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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001efb9
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x1002c0b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
push edi
mov esi, ecx
mov dword [ebp - 0xbc], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esi + 0x10], edi
jne 0x1000c55f
or eax, 0xffffffff
jmp 0x1000c8c0
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x50]
push edx
call fcn.1000c460
add esp, 8
mov dword [ebp - 4], edi
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xa8], edi
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x50]
mov ebx, 8
cmp dword [ebp - 0x3c], ebx
jae 0x1000c59e
lea eax, [ebp - 0x50]
mov ecx, dword [ebp - 0x34]
push 0xf0000000
push ecx
push eax
push edi
lea edx, [ebp - 0xb4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1000c610
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0xac]
cmp eax, edi
je 0x1000c5d5
push eax
call fcn.1000db59
add esp, 4
mov eax, dword [ebp - 0xb0]
cmp eax, edi
je 0x1000c5e6
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0xb4]
cmp eax, edi
je 0x1000c5f8
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [ebp - 0x3c], ebx
jb 0x1000c609
mov eax, dword [ebp - 0x50]
push eax
call fcn.1000ccc0
add esp, 4
mov eax, esi
jmp 0x1000c8c0
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0xa8], ecx
cmp dword [esi + 0x14], ebx
jb 0x1000c620
mov esi, dword [esi]
mov ebx, 7
xor edx, edx
mov ecx, esi
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], edi
mov word [ebp - 0x6c], dx
lea eax, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x1000c636
sub ecx, eax
sar ecx, 1
mov eax, esi
push ecx
lea esi, [ebp - 0x6c]
call fcn.100029d0
mov edx, esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.10007710
mov byte [ebp - 4], 4
cmp dword [ebp - 0x58], 8
jb 0x1000c674
mov eax, dword [ebp - 0x6c]
push eax
call fcn.1000ccc0
add esp, 4
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x58], ebx
xor ecx, ecx
mov ebx, 0x10
mov dword [ebp - 0x5c], edi
mov word [ebp - 0x6c], cx
cmp dword [ebp - 0x18], ebx
jae 0x1000c690
lea esi, [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xb4]
lea edx, [ebp - 0xb0]
push edx
push edi
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1000c728
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [ebp - 0x18], ebx
jb 0x1000c6c7
mov edx, dword [ebp - 0x2c]
push edx
call fcn.1000ccc0
add esp, 4
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
cmp eax, edi
je 0x1000c6e8
push eax
call fcn.1000db59
add esp, 4
mov eax, dword [ebp - 0xb0]
cmp eax, edi
je 0x1000c6f9
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0xb4]
cmp eax, edi
je 0x1000c70b
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [ebp - 0x3c], 8
jb 0x1000c609
mov eax, dword [ebp - 0x50]
push eax
call fcn.1000ccc0
add esp, 4
mov eax, esi
jmp 0x1000c8c0
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ebp - 0xb0]
push edi
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1000c870
mov ecx, dword [ebp - 0xb0]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push edi
lea eax, [ebp - 0xa8]
push eax
push edi
push 2
push ecx
mov dword [ebp - 0xa8], edi
call esi
test eax, eax
je 0x1000c870
mov edx, dword [ebp - 0xa8]
push edx
call fcn.1000db64
mov ecx, dword [ebp - 0xa8]
add esp, 4
push ecx
push edi
push eax
mov dword [ebp - 0xac], eax
call fcn.1000e330
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xb0]
add esp, 0xc
push edi
lea edx, [ebp - 0xa8]
push edx
push eax
push 2
push ecx
call esi
test eax, eax
je 0x1000c870
mov eax, dword [ebp - 0xa8]
push edi
call fcn.1000c1f0
mov esi, eax
add esp, 4
push esi
mov dword [ebp - 0xc0], esi
call fcn.1000db64
add esp, 4
push esi
mov ebx, eax
push edi
push ebx
call fcn.1000e330
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xac]
add esp, 0xc
lea edx, [ebp - 0xc0]
push edx
push eax
mov eax, ebx
call fcn.1000c280
add esp, 8
test eax, eax
setne al
mov byte [ebp - 0xb5], al
test al, al
je 0x1000c85a
push ebx
lea ecx, [ebp - 0x88]
call fcn.10002530
lea edx, [ebp - 0x88]
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 5
call fcn.10007850
mov esi, dword [ebp - 0xbc]
mov edi, eax
mov byte [ebp - 4], 6
call fcn.10001db0
lea esi, [ebp - 0xa4]
call fcn.10002b00
lea ecx, [ebp - 0x88]
call fcn.100020c0
xor edi, edi
push ebx
call fcn.1000db59
add esp, 4
cmp byte [ebp - 0xb5], 0
je 0x1000c870
xor ebx, ebx
jmp 0x1000c878
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea ecx, [ebp - 0x2c]
call fcn.100020c0
mov eax, dword [ebp - 0xac]
cmp eax, edi
je 0x1000c893
push eax
call fcn.1000db59
add esp, 4
mov eax, dword [ebp - 0xb0]
cmp eax, edi
je 0x1000c8a4
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0xb4]
cmp eax, edi
je 0x1000c8b6
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea esi, [ebp - 0x50]
call fcn.10002b00
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000ccb1
mov esp, ebp
pop ebp
ret