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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
xor ebx, ebx
xor eax, eax
or dword [ebp - 0x10], 0xffffffff
push esi
push edi
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]
mov dword [ebp + 8], eax
xor eax, eax
test byte [ebp + 0xc], 0x10
mov byte [ebp - 0x18], bl
lea edi, [ebp - 0x17]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], ebx
mov edi, 0x80000002
je 0x46ecd3
mov dword [ebp - 0x10], ebx
jmp 0x46efef
and dword [ebp + 0xc], 0xffffffef
push 4
pop esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push str.DEVIAutoDisverify
push str.SOFTWAREPELOGON
push edi
mov dword [ebp - 4], esi
call dword [0x4a6d68]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
push str.Policy
push str.SOFTWAREMicrosoftDriver_Signing
push edi
mov dword [ebp - 4], esi
call dword [0x4a6d68]
cmp eax, ebx
jne 0x46ed60
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
jne 0x46ed55
push dword [ebp - 0x1c]
push dword [ebp + 0xc]
push 0x49861c
push 0x4985f0
push 0x4a6f08
call fcn.0040c8e2
add esp, 0x14
cmp dword [ebp + 0xc], ebx
jne 0x46ed55
cmp dword [ebp - 0x1c], 1
je 0x46f016
cmp dword [ebp - 0x14], esi
je 0x46ed6c
cmp dword [ebp - 0x14], 3
je 0x46ed6c
xor eax, eax
mov dword [ebp - 0x14], 3
inc eax
jmp 0x46ed6f
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4985e4
push str.SystemWPAPnP
push edi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], esi
call dword [0x4a6d68]
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 + 0xc], eax
mov dword [ebp - 0xc], esi
jne 0x46edea
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push ebx
call esi
push eax
push str.Err_1
mov ecx, 0x4a6f08
call fcn.00416e7c
cmp dword [ebp + 8], ebx
je 0x46ede0
lea ecx, [ebp - 0x34]
jmp 0x46eede
call esi
mov dword [ebp - 8], eax
jmp 0x46ef0b
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 + 0xc], eax
mov dword [ebp - 0xc], 2
call esi
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 8], eax
push ebx
jne 0x46ee27
push ebx
call esi
push eax
push str.Err_2
jmp 0x46eecc
mov al, byte [ebp + 8]
mov byte [ebp - 0x17], al
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x30]
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov dword [ebp + 0xc], eax
mov dword [ebp - 0xc], 3
call esi
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 8], eax
push ebx
jne 0x46ee65
push ebx
call esi
push eax
push str.Err_3
jmp 0x46eecc
push 4
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov dword [ebp + 0xc], eax
mov dword [ebp - 0xc], 4
call esi
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 8], eax
push ebx
jne 0x46ee94
push ebx
call esi
push eax
push str.Err_4
jmp 0x46eecc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x44]
push eax
push 2
push dword [ebp - 0x30]
mov dword [ebp - 4], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov dword [ebp + 0xc], eax
mov dword [ebp - 0xc], 5
call esi
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 8], eax
jne 0x46eef0
push ebx
push ebx
call esi
push eax
push str.Err_5
mov ecx, 0x4a6f08
call fcn.00416e7c
cmp dword [ebp + 8], ebx
lea ecx, [ebp - 0x34]
je 0x46ef0e
call fcn.0046ec56
mov eax, dword [ebp - 0x10]
or eax, 0x1000
jmp 0x46f019
push 0x10
lea eax, [ebp - 0x44]
push eax
push 3
push str.PrivateHash
push str.SoftwareMicrosoftWindowsCurrentVersionSetup
push edi
call fcn.0042f97c
add esp, 0x18
lea ecx, [ebp - 0x34]
call fcn.0046ec56
push dword [ebp - 0x20]
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x24]
push str.Policy
push str.SoftwareMicrosoftDriver_Signing
push 0x80000001
call fcn.0042f97c
push dword [ebp - 0x20]
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x24]
push str.Policy
push str.SoftwareMicrosoftNon_Driver_Signing
push edi
call fcn.0042f97c
push dword [ebp - 0x20]
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x24]
push str.Policy
push str.SoftwareMicrosoftDriver_Signing
push edi
call fcn.0042f97c
add esp, 0x48
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x24], eax
je 0x46ef7c
mov dword [ebp - 0xc], 7
call esi
mov dword [ebp - 8], eax
cmp dword [ebp - 0x24], ebx
jne 0x46efb6
cmp dword [ebp + 0xc], ebx
je 0x46efa4
cmp dword [ebp + 8], ebx
jne 0x46efe9
push 0x498470
push 0x498450
push 0x4a6f08
call fcn.0040c8e2
add esp, 0xc
jmp 0x46efe9
cmp dword [ebp + 8], ebx
jne 0x46efe9
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0x498440
jmp 0x46efd7
cmp dword [ebp + 0xc], ebx
je 0x46efc7
mov dword [ebp - 0xc], 7
call esi
mov dword [ebp - 8], eax
cmp dword [ebp + 8], ebx
jne 0x46efe9
push dword [ebp - 8]
push dword [ebp - 0xc]
push str.Err_
push 0x498404
push 0x4a6f08
call fcn.0040c8e2
add esp, 0x14
cmp dword [ebp - 0x1c], 1
je 0x46f016
cmp dword [ebp + 8], ebx
jne 0x46f016
push 4
lea eax, [ebp - 0x1c]
push eax
push 4
push str.DEVIAutoDisverify
push str.SoftwarePELOGON
push edi
mov dword [ebp - 0x1c], 1
call fcn.0042f97c
add esp, 0x18
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret