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

Disassembly:
push 0x94
mov eax, 0x43828e
call fcn.004368bd
mov dword [ebp - 0xa0], edx
mov edi, ecx
mov eax, dword [edi + 0x118]
xor ebx, ebx
push 7
mov dword [ebp - 0x8c], eax
xor eax, eax
pop ecx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ecx
mov word [ebp - 0x58], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x40], ax
lea esi, [edi + 0x64]
mov byte [ebp - 4], 2
lea edx, [edi + 0x11c]
mov ecx, esi
call fcn.00415132
test al, al
jne 0x40394b
mov dword [ebp - 0x94], 0x6e
jmp 0x403a61
mov ecx, dword [ebp - 0x8c]
push str.Validating_package..._n
push 3
push ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
add esp, 0xc
lea ecx, [ebp - 0x9c]
push esi
call fcn.00404232
mov edx, ecx
lea ecx, [ebp - 0x88]
call fcn.00418514
mov edx, eax
mov byte [ebp - 4], 3
cmp dword [edx + 0x14], 0x10
jb 0x403988
mov edx, dword [edx]
mov ecx, dword [ebp - 0x8c]
push edx
push 0x441338
push 3
mov eax, dword [ecx]
push ecx
call dword [eax + 0xc]
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
call fcn.00401f3d
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x4039b8
mov ecx, dword [esi]
lea edx, [edi + 0x11c]
call fcn.0040c5a1
test al, al
jne 0x403a28
lea ecx, [edi + 0x144]
mov edx, 0x441340
call fcn.004022ba
test al, al
je 0x403a1c
mov eax, dword [edi + 0x15c]
mov dword [ebp - 0x90], eax
call fcn.00402d71
cmp dword [0x44dfd0], 2
je 0x403a03
call fcn.00402d71
cmp dword [0x44dfd0], 3
jne 0x403a1c
cmp dword [ebp - 0x90], 0x80096004
jne 0x403a1c
push str.This_system_is_missing_support_for_SHA2_algorithm._n________See_the_following_KB_for_details___n________http:__support.microsoft.com_kb_968730_n
lea ecx, [ebp - 0x58]
call fcn.004011c3
mov dword [ebp - 0x94], 0x6c
jmp 0x403a61
mov ecx, dword [ebp - 0x8c]
push str.Loading_file_index..._n
push 3
push ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
lea eax, [edi + 0x11c]
mov ecx, esi
push eax
lea edx, [edi + 0x7c]
call fcn.004083d1
add esp, 0x10
test al, al
jne 0x403bea
mov dword [ebp - 0x94], 0x65
push ecx
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.0040b5c9
pop ecx
test al, al
je 0x403b56
push 0xf0000040
push 1
push ebx
push ebx
lea eax, [ebp - 0x98]
mov dword [ebp - 0x8c], 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x403b4f
lea eax, [ebp - 0x90]
push eax
push ebx
push ebx
push 0x8003
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x403b4f
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push ebx
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [ebp - 0x90]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x403b4f
push ebx
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x80]
push eax
push 2
push dword [ebp - 0x90]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x403b4f
mov esi, ebx
cmp dword [ebp - 0x8c], esi
jbe 0x403b63
movzx eax, byte [ebp + esi - 0x80]
push eax
lea eax, [ebp - 0x70]
push str._02X
push eax
call fcn.004183a9
add esp, 0xc
mov byte [ebp - 4], 4
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x403b2c
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x40]
call fcn.004041d4
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 2
call fcn.00404129
inc esi
cmp esi, dword [ebp - 0x8c]
jb 0x403b07
jmp 0x403b63
push str._unavailable__hashing_error_
jmp 0x403b5b
push str._unavailable__read_error_
lea ecx, [ebp - 0x40]
call fcn.004011c3
cmp dword [ebp - 0x48], 0
jne 0x403ba0
lea eax, [edi + 0x144]
cmp dword [eax + 0x14], 0x10
jb 0x403b77
mov eax, dword [eax]
push dword [edi + 0x15c]
push eax
lea eax, [ebp - 0x70]
push str._S___failed_with_0x_08x
push eax
call fcn.004183a9
add esp, 0x10
lea ecx, [ebp - 0x58]
push eax
call fcn.004040b2
lea ecx, [ebp - 0x70]
call fcn.00404129
mov edx, dword [ebp - 0x94]
lea ecx, [ebp - 0x70]
call fcn.0040d18a
mov esi, dword [ebp - 0xa0]
mov ecx, esi
push eax
call fcn.004040b2
lea ecx, [ebp - 0x70]
call fcn.00404129
push ecx
lea eax, [ebp - 0x58]
mov edx, 0x441414
push eax
mov ecx, esi
call fcn.00404287
pop ecx
lea eax, [ebp - 0x40]
mov edx, 0x44141c
push eax
mov ecx, esi
call fcn.00404287
pop ecx
pop ecx
jmp 0x403bec
mov bl, 1
lea ecx, [ebp - 0x40]
call fcn.00404129
lea ecx, [ebp - 0x28]
call fcn.00401f3d
lea ecx, [ebp - 0x58]
call fcn.00404129
mov al, bl
call fcn.00436878
ret