Function at 0x40b67d
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], esp
lea eax, [ebp - 4]
push eax
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40b6e6
push 0x24
push 0x40103c9
push 6
call fcn.0042c74f
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40b6fd
mov eax, 0x4503f8
jmp 0x40b9bb
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
test eax, eax
je 0x40b719
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0042c743
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40b72a
push ebx
call fcn.0042c749
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x80000005
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40b741
mov eax, 0x4503f8
push eax
push 1
mov ebx, 0x194
call fcn.0042e070
add esp, 0x10
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], esp
push 0
push dword [ebp - 0xc]
mov eax, dword [ebp - 8]
test eax, eax
je 0x40b76c
add eax, 8
push eax
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40b796
push 0xf3
push 0x40103c9
push 6
call fcn.0042c74f
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40b7d9
mov dword [ebp - 0x18], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40b7cf
push 0x129
push 0x40103c9
push 6
call fcn.0042c74f
add esp, 0xc
mov eax, 0x4503f8
jmp 0x40b9bb
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], esp
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 2
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40b81f
push 0x1a1
push 0x40103c9
push 6
call fcn.0042c74f
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40b862
mov dword [ebp - 0x18], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40b858
push 0x1de
push 0x40103c9
push 6
call fcn.0042c74f
add esp, 0xc
mov eax, 0x4503f8
jmp 0x40b9bb
push 0x80000301
push 0
push dword [ebp - 0x10]
push 1
mov ebx, 0x1bc
call fcn.0042d8d0
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40b895
push ebx
call fcn.0042c749
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040b9e3
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
push 2
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x40b8e2
push 0x285
push 0x40103c9
push 6
call fcn.0042c74f
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x40b925
mov dword [ebp - 0x18], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40b91b
push 0x2b5
push 0x40103c9
push 6
call fcn.0042c74f
add esp, 0xc
mov eax, 0x4503f8
jmp 0x40b9bb
mov dword [ebp - 0x18], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40b951
push 0x2e6
push 0x40103c9
push 6
call fcn.0042c74f
add esp, 0xc
push 0x80000301
push 0
push dword [ebp - 0x10]
push 0x80000005
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x40b96e
mov eax, 0x4503f8
push eax
push 2
mov ebx, 0x1a0
call fcn.0042e080
add esp, 0x1c
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40b998
push ebx
call fcn.0042c749
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40b9b6
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0042c743
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40b9bb
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40b9cc
push ebx
call fcn.0042c749
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40b9dc
push ebx
call fcn.0042c749
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc