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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov ecx, dword [ebp + 0x18]
mov al, cl
and al, 3
push ebx
push esi
xor ebx, ebx
movsx edx, al
push edi
sub ecx, edx
cmp al, bl
lea edi, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x28], ebx
lea esi, [ebp - 0x28]
mov dword [ebp - 0x10], ebx
mov byte [ebp + 0x1b], al
mov dword [ebp - 0x20], ecx
je 0x1009f2a9
lea esi, [ecx - 0xc]
mov dword [ebp - 0xc], esi
mov edi, dword [ebp - 0xc]
add esi, 4
cmp dword [esi], ebx
jne 0x1009f47a
cmp dword [ebp + 0x14], 0xffffcfc7
jne 0x1009f445
push 0xffffffffffffffff
push 0x100d39fc
call fcn.1004605e
xor eax, eax
inc eax
push 0x1c00
lea ecx, [ebp - 4]
mov dword [ebp + 0x18], ebx
mov dword [ebp - 0x30], 0x400
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], eax
call fcn.10045fcc
mov eax, dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptEnumProviderTypesW]
lea ecx, [eax + 0x1000]
lea edi, [eax + 0x1400]
add eax, 0x1800
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
mov dword [ebp - 0x2c], ecx
push ebx
jmp 0x1009f33b
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x2c]
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push dword [ebp + 0x18]
call esi
inc dword [ebp + 0x18]
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push dword [ebp + 0x18]
call esi
test eax, eax
jne 0x1009f318
push ebx
push 1
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1009f35c
xor ebx, ebx
inc ebx
jmp 0x1009f436
push dword [ebp - 8]
lea eax, [ebp - 0x30]
push eax
push edi
push 1
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptGetProvParam]
test eax, eax
je 0x1009f420
mov eax, dword [edi]
mov dword [ebp + 0x18], eax
lea eax, [edi + 4]
mov ecx, dword [eax]
add eax, 4
mov esi, dword [eax]
push 0x63
mov dword [ebp - 0x2c], ecx
pop ecx
add eax, 4
cmp esi, ecx
mov dword [ebp - 8], ebx
jae 0x1009f398
mov ecx, esi
push ecx
push eax
push dword [ebp - 0x14]
call fcn.100b6a80
add esp, 0xc
push 0x63
pop eax
cmp esi, eax
jae 0x1009f3ae
mov eax, esi
mov ecx, dword [ebp - 0x14]
mov byte [eax + ecx], bl
mov eax, dword [ebp + 0x18]
and eax, 0xe000
cmp eax, 0x2000
je 0x1009f3f4
cmp eax, 0x6000
je 0x1009f3ed
cmp eax, 0x8000
je 0x1009f3e6
cmp eax, 0xa000
je 0x1009f3df
mov eax, 0x100d39f4
jmp 0x1009f3f9
mov eax, 0x100d39ec
jmp 0x1009f3f9
mov eax, 0x100d39e4
jmp 0x1009f3f9
mov eax, 0x100d39dc
jmp 0x1009f3f9
mov eax, 0x100d39d4
push ecx
push esi
push eax
push dword [ebp - 0x2c]
push dword [ebp + 0x18]
push str._8.8xh___4d___4s___4d___s_r_n
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [ebp - 0x20]
add esp, 0x1c
push dword [ebp - 4]
call fcn.10046015
jmp 0x1009f423
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x18], ebx
jne 0x1009f35c
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea ecx, [ebp - 4]
call fcn.1003f96c
mov eax, ebx
jmp 0x1009f547
push 0xf0000000
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1009f468
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1009f547
push esi
push ebx
push ebx
push dword [ebp + 0x14]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1009f48d
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x1009f49b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
jmp 0x1009f525
test byte [ebp + 0x1b], 2
je 0x1009f4a8
xor eax, eax
jmp 0x1009f547
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 4
pop eax
push ebx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
push dword [esi]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], eax
call edi
push dword [ebp - 8]
lea ecx, [ebp - 0x1c]
call fcn.10045fcc
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
push ebx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
push ecx
push eax
push 2
push dword [esi]
mov dword [ebp - 0x30], eax
call edi
mov eax, dword [ebp - 0x20]
xor edi, edi
cmp dword [ebp - 4], ebx
mov byte [eax], bl
mov dword [ebp + 0x18], eax
jbe 0x1009f51a
mov eax, dword [ebp - 0x30]
movzx eax, byte [edi + eax]
push eax
push 0x100d0100
push dword [ebp + 0x18]
call dword [sym.imp.USER32.dll_wsprintfA]
add dword [ebp + 0x18], 2
add esp, 0xc
inc edi
cmp edi, dword [ebp - 4]
jb 0x1009f4f7
lea ecx, [ebp - 0x1c]
call fcn.1003f96c
mov edi, dword [ebp - 0xc]
mov eax, dword [esi]
cmp eax, ebx
je 0x1009f534
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [esi], ebx
mov eax, dword [edi]
cmp eax, ebx
je 0x1009f544
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [edi], ebx
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret