Function at 0x40a530
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
lea ebp, [esp - 0x28]
sub esp, 0x28
push 0xffffffffffffffff
push 0x4d8631
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
push ebx
push esi
push edi
mov eax, dword [0x5021c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp + 0xc], edi
push 0xf0000000
push 0x18
push 0
mov dword [ebp], edi
lea eax, [ebp + 0x20]
push 0
mov dword [ebp + 4], 0
push eax
mov dword [ebp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40a5d9
lea eax, [ebp + 0x24]
mov dword [ebp + 0x24], 0
push eax
push 0
push 0
push 0x8003
push dword [ebp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push 0
test eax, eax
je 0x40a5d0
push dword [ebp + 0x30]
push esi
push dword [ebp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x40a5f8
push dword [ebp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
jmp 0x40a845
push 0
lea eax, [ebp + 8]
mov dword [ebp + 0x10], 0
push eax
lea eax, [ebp + 0x10]
mov dword [ebp + 8], 4
push eax
push 4
push dword [ebp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x40a5c5
mov ebx, dword [ebp + 0x10]
xor eax, eax
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], eax
test ebx, ebx
je 0x40a66d
cmp ebx, 0x7fffffff
ja 0x40a85a
push ebx
lea ecx, [ebp + 0x14]
call fcn.0040e120
mov eax, dword [ebp + 0x14]
push ebx
push 0
push eax
lea esi, [eax + ebx]
call fcn.004affe0
add esp, 0xc
mov dword [ebp + 0x18], esi
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], 0
call fcn.0040ddb0
mov eax, dword [ebp + 0x14]
push 0
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 0
push ecx
push eax
push 2
push dword [ebp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x40a6ed
push dword [ebp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov edx, dword [ebp + 0x14]
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
test edx, edx
je 0x40a845
mov ecx, dword [ebp + 0x1c]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x40a6e6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a85f
push ecx
push edx
jmp 0x40a83d
push ecx
lea ecx, [ebp - 0xa4]
call fcn.0040b250
mov byte [ebp - 4], 1
mov ecx, 0x30
mov eax, dword [ebp - 0xa4]
mov ebx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
mov eax, dword [eax + 4]
mov word [ebp + eax - 0x64], cx
mov eax, dword [ebp - 0xa4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x84], 2
mov dword [ebp + eax - 0x80], 0
cmp esi, ebx
je 0x40a771
jmp 0x40a740
mov eax, dword [ebp - 0xa4]
lea ecx, [ebp - 0x90]
add ecx, dword [eax + 4]
mov eax, dword [ecx]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx], eax
lea ecx, [ebp - 0xa4]
movzx eax, byte [esi]
push eax
call fcn.0040b460
inc esi
cmp esi, ebx
jne 0x40a740
push dword [ebp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov byte [ebp - 4], 2
mov ebx, dword [ebp - 0x64]
xor edx, edx
mov dword [edi], eax
mov ecx, edx
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
mov eax, ebx
and al, 0x22
mov dword [ebp + 4], 4
cmp al, 2
je 0x40a7d7
mov eax, dword [ebp - 0x80]
mov esi, dword [eax]
test esi, esi
je 0x40a7d7
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x68]
mov edx, dword [eax]
cmp esi, ecx
jb 0x40a7d3
mov ecx, esi
sub ecx, edx
jmp 0x40a7fb
test bl, 4
jne 0x40a7fd
mov eax, dword [ebp - 0x84]
mov esi, dword [eax]
test esi, esi
je 0x40a7fd
mov eax, dword [ebp - 0x94]
mov edx, dword [eax]
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
add ecx, ecx
sub ecx, edx
add ecx, esi
sar ecx, 1
test edx, edx
je 0x40a80a
push ecx
push edx
mov ecx, edi
call fcn.00403a40
lea ecx, [ebp - 0xa4]
call fcn.0040a870
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x40a845
mov edx, dword [ebp + 0x1c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x40a83b
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a85f
push edx
push ecx
call fcn.004accfd
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x28]
pop ebp
ret
call fcn.00402330
call fcn.004b306f
int3