Function at 0x40c496
Capabilities:
Contain obfuscated stackstrings
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x414050]
push ebx
push 0xf0000000
xor ebx, ebx
push 0x18
push ebx
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x448]
push eax
mov dword [ebp - 0x450], 0x20
mov dword [ebp - 0x448], ebx
mov dword [ebp - 0x444], ebx
mov byte [ebp - 0x40], 0xd4
mov byte [ebp - 0x3f], 0x6a
mov byte [ebp - 0x3e], 0x65
mov byte [ebp - 0x3d], 0x41
mov byte [ebp - 0x3c], 0xe
mov byte [ebp - 0x3b], 0x3d
mov byte [ebp - 0x3a], 0xa5
mov byte [ebp - 0x39], 0xdc
mov byte [ebp - 0x38], 0x6e
mov byte [ebp - 0x37], 0x8f
mov byte [ebp - 0x36], 0xb7
mov byte [ebp - 0x35], 0x78
mov byte [ebp - 0x34], 0xcc
mov byte [ebp - 0x33], 0xd4
mov byte [ebp - 0x32], 0x14
mov byte [ebp - 0x31], 0xd5
mov byte [ebp - 0x30], 0x62
mov byte [ebp - 0x2f], 0xa8
mov byte [ebp - 0x2e], 0x59
mov byte [ebp - 0x2d], 0x86
mov byte [ebp - 0x2c], 0x10
mov byte [ebp - 0x2b], 0x50
mov byte [ebp - 0x2a], 0xc9
mov byte [ebp - 0x29], 0xb7
mov byte [ebp - 0x28], 0x6b
mov byte [ebp - 0x27], 0x77
mov byte [ebp - 0x26], 0xe4
mov byte [ebp - 0x25], 0x15
mov byte [ebp - 0x24], 0x7b
mov byte [ebp - 0x23], 0x6e
mov byte [ebp - 0x22], 0xc3
mov byte [ebp - 0x21], 0x2b
mov byte [ebp - 0x20], 0xcf
mov byte [ebp - 0x1f], 0xbc
mov byte [ebp - 0x1e], 0x70
mov byte [ebp - 0x1d], 0x72
mov byte [ebp - 0x1c], 0x28
mov byte [ebp - 0x1b], 0xa2
mov byte [ebp - 0x1a], 0x21
mov byte [ebp - 0x19], 0xa2
mov byte [ebp - 0x18], 0x5b
mov byte [ebp - 0x17], 0x83
mov byte [ebp - 0x16], 0x23
mov byte [ebp - 0x15], 0x20
mov byte [ebp - 0x14], 0x31
mov byte [ebp - 0x13], 0xce
mov byte [ebp - 0x12], 0xa6
mov byte [ebp - 0x11], 0x81
mov byte [ebp - 0x10], 7
mov byte [ebp - 0xf], 0x4a
mov byte [ebp - 0xe], 0x8d
mov byte [ebp - 0xd], 0xdd
mov byte [ebp - 0xc], 0x75
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], 0xd0
mov byte [ebp - 9], 0x41
mov byte [ebp - 8], 0x34
mov byte [ebp - 7], 0x87
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x40c6b0
push esi
push edi
lea eax, [ebp - 0x444]
push eax
push ebx
push ebx
push 0x800c
push dword [ebp - 0x448]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x40c5ec
xor esi, esi
jmp 0x40c69f
mov esi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push ebx
push 0x3a
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x444]
call esi
test eax, eax
jne 0x40c60c
xor esi, esi
jmp 0x40c693
push 0x4020e8
push dword [ebp + 8]
mov dword [ebp - 0x44c], ebx
call dword [sym.imp.msvcrt.dll__wfopen]
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x40c673
push edi
push 0x400
lea eax, [ebp - 0x440]
push 1
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, ebx
jbe 0x40c66b
add dword [ebp - 0x44c], eax
push ebx
push eax
lea eax, [ebp - 0x440]
push eax
push dword [ebp - 0x444]
call esi
test eax, eax
je 0x40c6bd
cmp dword [ebp - 0x44c], 0x5400
jb 0x40c628
push edi
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
push ebx
lea eax, [ebp - 0x450]
push eax
push dword [ebp + 0xc]
push 2
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
xor esi, esi
test eax, eax
je 0x40c693
inc esi
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
push dword [ebp - 0x448]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.00412b38
leave
ret 8
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
push dword [ebp - 0x448]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push edi
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
xor eax, eax
jmp 0x40c6ae