Function at 0x40c160
Capabilities:
Hash data via bcrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464c45
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x63c00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x3c], 0
call fcn.004016b0
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp + 0x18]
mov eax, dword [eax + 0x21c]
push ecx
call eax
xor ecx, ecx
test eax, eax
lea eax, [ebp - 0x28]
cmove ecx, dword [ebp - 0x38]
push ecx
mov dword [ebp - 0x40], ecx
lea ecx, [ebp + 8]
push eax
call fcn.00402ab0
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmovae esi, dword [ebp - 0x28]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call ebx
mov dword [ebp - 0x48], eax
add eax, 2
push eax
mov dword [ebp - 0x38], eax
call fcn.0045669c
mov edi, eax
add esp, 4
test edi, edi
je 0x40c37a
push dword [ebp - 0x38]
push 0
push edi
call fcn.0044f970
mov eax, dword [ebp - 0x48]
add esp, 0xc
inc eax
push 0
push 0
push eax
push edi
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call ebx
test eax, eax
jne 0x40c259
push edi
call fcn.004533f0
add esp, 4
jmp 0x40c37a
push 0
push 0
push 0x46cf54
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
jne 0x40c37a
mov ebx, dword [sym.imp.bcrypt.dll_BCryptGetProperty]
push eax
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x3c]
push eax
push str.ObjectLength
push dword [ebp - 0x2c]
call ebx
test eax, eax
je 0x40c2a3
push 0
push dword [ebp - 0x2c]
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
jmp 0x40c37a
mov eax, dword [ebp - 0x3c]
add eax, 2
push eax
call fcn.0045669c
mov esi, eax
add esp, 4
test esi, esi
jne 0x40c2c7
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
jmp 0x40c37a
mov eax, dword [ebp - 0x3c]
add eax, 2
push eax
push 0
push esi
call fcn.0044f970
add esp, 0xc
lea eax, [ebp - 0x44]
push 0
push eax
push 4
lea eax, [ebp - 0x30]
push eax
push str.HashDigestLength
push dword [ebp - 0x2c]
call ebx
test eax, eax
je 0x40c309
push 0
push dword [ebp - 0x2c]
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
push esi
call fcn.004533f0
add esp, 4
jmp 0x40c37a
mov eax, dword [ebp - 0x30]
add eax, 2
push eax
call fcn.0045669c
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40c333
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
push esi
call fcn.004533f0
add esp, 4
jmp 0x40c37a
mov eax, dword [ebp - 0x30]
add eax, 2
push eax
push 0
push ebx
call fcn.0044f970
add esp, 0xc
lea eax, [ebp - 0x34]
push 0
push 0
push 0
push dword [ebp - 0x3c]
push esi
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.bcrypt.dll_BCryptCreateHash]
push 0
test eax, eax
je 0x40c3b9
push dword [ebp - 0x2c]
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
push esi
call fcn.004533f0
push ebx
call fcn.004533f0
add esp, 8
xor esi, esi
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40c4ac
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c4a2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c50d
jmp 0x40c4a2
push dword [ebp - 0x40]
push edi
push dword [ebp - 0x34]
call dword [sym.imp.bcrypt.dll_BCryptHashData]
push 0
test eax, eax
je 0x40c3e0
push dword [ebp - 0x2c]
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
push dword [ebp - 0x34]
call dword [sym.imp.bcrypt.dll_BCryptDestroyHash]
jmp 0x40c36b
push dword [ebp - 0x30]
push ebx
push dword [ebp - 0x34]
call dword [sym.imp.bcrypt.dll_BCryptFinishHash]
push 0
push dword [ebp - 0x2c]
test eax, eax
je 0x40c40a
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
push dword [ebp - 0x34]
call dword [sym.imp.bcrypt.dll_BCryptDestroyHash]
jmp 0x40c36b
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
push dword [ebp - 0x34]
call dword [sym.imp.bcrypt.dll_BCryptDestroyHash]
push esi
call fcn.004533f0
mov eax, dword [ebp - 0x30]
lea eax, [eax*2 + 2]
push eax
call fcn.0045669c
mov edi, eax
add esp, 8
mov dword [ebp - 0x40], edi
test edi, edi
jne 0x40c449
push ebx
call fcn.004533f0
add esp, 4
jmp 0x40c37a
mov esi, dword [ebp - 0x30]
lea eax, [esi*2 + 2]
push eax
push 0
push edi
call fcn.0044f970
mov ecx, edi
add esp, 0xc
xor edi, edi
mov dword [ebp - 0x38], ecx
test esi, esi
je 0x40c491
nop word [eax + eax]
movzx eax, byte [edi + ebx]
push eax
push 0x46cfa4
push ecx
call fcn.00402690
mov ecx, dword [ebp - 0x38]
inc edi
add ecx, eax
add esp, 0xc
mov dword [ebp - 0x38], ecx
cmp edi, dword [ebp - 0x30]
jb 0x40c470
push ebx
call fcn.004533f0
mov esi, dword [ebp - 0x40]
add esp, 4
jmp 0x40c37c
push edx
push ecx
call fcn.0044df88
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 0x18
call fcn.004016b0
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [eax + 0x200]
call ecx
mov dword [ebp - 4], 0x19
call fcn.004016b0
lea ecx, [ebp + 0x18]
push ecx
mov ecx, dword [eax + 0x200]
call ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044daed
mov esp, ebp
pop ebp
ret 0x20
call fcn.0045376f
int3