Function at 0x429e59
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 [0x48fd6c]
cmp eax, ebx
jne 0x429ef7
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
jne 0x429eec
cmp dword [ebp + 8], ebx
jne 0x429ee3
push 0x47fb1c
push str.DEVI
push 0x48feb8
call fcn.0040b047
add esp, 0xc
cmp dword [ebp + 0xc], ebx
je 0x42a138
cmp dword [ebp - 0x10], esi
je 0x429f03
cmp dword [ebp - 0x10], 3
je 0x429f03
xor eax, eax
mov dword [ebp - 0x10], 3
inc eax
jmp 0x429f06
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 [0x48fd6c]
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 0x429f74
cmp dword [ebp + 8], ebx
je 0x429f64
lea ecx, [ebp - 0x34]
call fcn.00429e30
mov eax, esi
jmp 0x42a13b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov dword [ebp - 8], eax
jmp 0x42a05c
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 0x42a02c
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 0x42a02c
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 0x42a02c
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 0x42a041
cmp dword [ebp + 8], ebx
lea ecx, [ebp - 0x34]
je 0x42a05f
call fcn.00429e30
xor eax, eax
inc eax
jmp 0x42a13b
push 0x10
lea eax, [ebp - 0x44]
push eax
push 3
push str.PrivateHash
push str.SoftwareMicrosoftWindowsCurrentVersionSetup
push edi
call fcn.00426e2f
add esp, 0x18
lea ecx, [ebp - 0x34]
call fcn.00429e30
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.00426e2f
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.00426e2f
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.00426e2f
add esp, 0x48
cmp dword [ebp - 4], ebx
mov edi, eax
je 0x42a0cc
mov dword [ebp - 0xc], 7
call esi
mov dword [ebp - 8], eax
cmp edi, ebx
jne 0x42a105
cmp dword [ebp - 4], ebx
je 0x42a0f3
cmp dword [ebp + 8], ebx
jne 0x42a138
push 0x47f9b4
push str.DEVI
push 0x48feb8
call fcn.0040b047
add esp, 0xc
jmp 0x42a138
cmp dword [ebp + 8], ebx
jne 0x42a138
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0x47f9a4
jmp 0x42a126
cmp dword [ebp - 4], ebx
je 0x42a116
mov dword [ebp - 0xc], 7
call esi
mov dword [ebp - 8], eax
cmp dword [ebp + 8], ebx
jne 0x42a138
push dword [ebp - 8]
push dword [ebp - 0xc]
push str.Err_
push 0x47f968
push 0x48feb8
call fcn.0040b047
add esp, 0x14
mov eax, dword [ebp - 0x24]
pop edi
pop esi
pop ebx
leave
ret