Function at 0x42afa7
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 0x42b045
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
jne 0x42b03a
cmp dword [ebp + 8], ebx
jne 0x42b031
push 0x485ebc
push str.DEVI
push 0x496eb8
call fcn.0040b348
add esp, 0xc
cmp dword [ebp + 0xc], ebx
je 0x42b286
cmp dword [ebp - 0x10], esi
je 0x42b051
cmp dword [ebp - 0x10], 3
je 0x42b051
xor eax, eax
mov dword [ebp - 0x10], 3
inc eax
jmp 0x42b054
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 str.seed
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 0x42b0c2
cmp dword [ebp + 8], ebx
je 0x42b0b2
lea ecx, [ebp - 0x34]
call fcn.0042af7e
mov eax, esi
jmp 0x42b289
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov dword [ebp - 8], eax
jmp 0x42b1aa
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 0x42b17a
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 0x42b17a
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 0x42b17a
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 0x42b18f
cmp dword [ebp + 8], ebx
lea ecx, [ebp - 0x34]
je 0x42b1ad
call fcn.0042af7e
xor eax, eax
inc eax
jmp 0x42b289
push 0x10
lea eax, [ebp - 0x44]
push eax
push 3
push str.PrivateHash
push str.SoftwareMicrosoftWindowsCurrentVersionSetup
push edi
call fcn.00427da9
add esp, 0x18
lea ecx, [ebp - 0x34]
call fcn.0042af7e
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.00427da9
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.00427da9
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.00427da9
add esp, 0x48
cmp dword [ebp - 4], ebx
mov edi, eax
je 0x42b21a
mov dword [ebp - 0xc], 7
call esi
mov dword [ebp - 8], eax
cmp edi, ebx
jne 0x42b253
cmp dword [ebp - 4], ebx
je 0x42b241
cmp dword [ebp + 8], ebx
jne 0x42b286
push 0x485d54
push str.DEVI
push 0x496eb8
call fcn.0040b348
add esp, 0xc
jmp 0x42b286
cmp dword [ebp + 8], ebx
jne 0x42b286
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0x485d44
jmp 0x42b274
cmp dword [ebp - 4], ebx
je 0x42b264
mov dword [ebp - 0xc], 7
call esi
mov dword [ebp - 8], eax
cmp dword [ebp + 8], ebx
jne 0x42b286
push dword [ebp - 8]
push dword [ebp - 0xc]
push str.Err_
push 0x485d08
push 0x496eb8
call fcn.0040b348
add esp, 0x14
mov eax, dword [ebp - 0x24]
pop edi
pop esi
pop ebx
leave
ret