Function at 0x42b367
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x44], bl
lea edi, [ebp - 0x43]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
or dword [ebp - 0x24], 0xffffffff
mov dword [ebp + 8], eax
xor eax, eax
push 4
mov byte [ebp - 0x14], bl
lea edi, [ebp - 0x13]
stosw word es:[edi], ax
pop esi
stosb byte es:[edi], al
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x10]
push eax
push str.Policy
push str.SOFTWAREMicrosoftDriver_Signing
mov edi, 0x80000002
push edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], esi
call dword [0x496d5c]
cmp eax, ebx
jne 0x42b405
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
jne 0x42b3fa
cmp dword [ebp + 8], ebx
jne 0x42b3f1
push 0x485ec4
push 0x485ea4
push 0x496eb8
call fcn.0040b4f8
add esp, 0xc
cmp dword [ebp + 0xc], ebx
je 0x42b646
cmp dword [ebp - 0x10], esi
je 0x42b411
cmp dword [ebp - 0x10], 3
je 0x42b411
xor eax, eax
mov dword [ebp - 0x10], 3
inc eax
jmp 0x42b414
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x485e98
push str.SystemWPAPnP
push edi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], esi
call dword [0x496d5c]
push ebx
xor esi, esi
inc esi
push esi
push ebx
push ebx
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
cmp eax, ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esi
jne 0x42b482
cmp dword [ebp + 8], ebx
je 0x42b472
lea ecx, [ebp - 0x34]
call fcn.0042b33e
mov eax, esi
jmp 0x42b649
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov dword [ebp - 8], eax
jmp 0x42b56a
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push 0x8003
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 2
call esi
cmp dword [ebp - 4], ebx
mov dword [ebp - 8], eax
je 0x42b53a
mov al, byte [ebp + 8]
push ebx
mov byte [ebp - 0x13], al
push 4
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x30]
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x12], bl
mov byte [ebp - 0x11], bl
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 3
call esi
cmp dword [ebp - 4], ebx
mov dword [ebp - 8], eax
je 0x42b53a
push ebx
push 4
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 4
call esi
cmp dword [ebp - 4], ebx
mov dword [ebp - 8], eax
je 0x42b53a
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x44]
push eax
push 2
push dword [ebp - 0x30]
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 5
call esi
cmp dword [ebp - 4], ebx
mov dword [ebp - 8], eax
jne 0x42b54f
cmp dword [ebp + 8], ebx
lea ecx, [ebp - 0x34]
je 0x42b56d
call fcn.0042b33e
xor eax, eax
inc eax
jmp 0x42b649
push 0x10
lea eax, [ebp - 0x44]
push eax
push 3
push str.PrivateHash
push str.SoftwareMicrosoftWindowsCurrentVersionSetup
push edi
call fcn.004280f8
add esp, 0x18
lea ecx, [ebp - 0x34]
call fcn.0042b33e
push dword [ebp - 0x1c]
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x20]
push str.Policy
push str.SoftwareMicrosoftDriver_Signing
push 0x80000001
call fcn.004280f8
push dword [ebp - 0x1c]
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x20]
push str.Policy
push str.SoftwareMicrosoftNon_Driver_Signing
push edi
call fcn.004280f8
push dword [ebp - 0x1c]
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x20]
push str.Policy
push str.SoftwareMicrosoftDriver_Signing
push edi
call fcn.004280f8
add esp, 0x48
cmp dword [ebp - 4], ebx
mov edi, eax
je 0x42b5da
mov dword [ebp - 0xc], 7
call esi
mov dword [ebp - 8], eax
cmp edi, ebx
jne 0x42b613
cmp dword [ebp - 4], ebx
je 0x42b601
cmp dword [ebp + 8], ebx
jne 0x42b646
push 0x485d5c
push 0x485ea4
push 0x496eb8
call fcn.0040b4f8
add esp, 0xc
jmp 0x42b646
cmp dword [ebp + 8], ebx
jne 0x42b646
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0x485d4c
jmp 0x42b634
cmp dword [ebp - 4], ebx
je 0x42b624
mov dword [ebp - 0xc], 7
call esi
mov dword [ebp - 8], eax
cmp dword [ebp + 8], ebx
jne 0x42b646
push dword [ebp - 8]
push dword [ebp - 0xc]
push str.Err_
push 0x485d10
push 0x496eb8
call fcn.0040b4f8
add esp, 0x14
mov eax, dword [ebp - 0x24]
pop edi
pop esi
pop ebx
leave
ret