Function at 0x405670
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, 0x440
mov eax, dword [0x418894]
push ebx
push 0xf0000000
xor ebx, ebx
push 0x18
push ebx
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x438]
push eax
mov dword [ebp - 0x440], 0x20
mov dword [ebp - 0x438], ebx
mov dword [ebp - 0x434], ebx
mov byte [ebp - 0x30], 0xfc
mov byte [ebp - 0x2f], 0xb
mov byte [ebp - 0x2e], 0x2d
mov byte [ebp - 0x2d], 0x54
mov byte [ebp - 0x2c], 0xb6
mov byte [ebp - 0x2b], 0xd
mov byte [ebp - 0x2a], 0xb4
mov byte [ebp - 0x29], 0xed
mov byte [ebp - 0x28], 3
mov byte [ebp - 0x27], bl
mov byte [ebp - 0x26], 0x4b
mov byte [ebp - 0x25], 0x15
mov byte [ebp - 0x24], 0xf4
mov byte [ebp - 0x23], 0xbe
mov byte [ebp - 0x22], 0xce
mov byte [ebp - 0x21], 0x48
mov byte [ebp - 0x20], 0xc1
mov byte [ebp - 0x1f], 0x29
mov byte [ebp - 0x1e], 0xf
mov byte [ebp - 0x1d], 0x31
mov byte [ebp - 0x1c], 0xd5
mov byte [ebp - 0x1b], 0x9b
mov byte [ebp - 0x1a], 0x6a
mov byte [ebp - 0x19], 0x40
mov byte [ebp - 0x18], 0xef
mov byte [ebp - 0x17], 0x7e
mov byte [ebp - 0x16], 0xf6
mov byte [ebp - 0x15], 0x3f
mov byte [ebp - 0x14], 0x8d
mov byte [ebp - 0x13], 0x54
mov byte [ebp - 0x12], 0xb7
mov byte [ebp - 0x11], 0xa7
mov byte [ebp - 0x10], 3
mov byte [ebp - 0xf], 0xc4
mov byte [ebp - 0xe], 0x4f
mov byte [ebp - 0xd], 6
mov byte [ebp - 0xc], 4
mov byte [ebp - 0xb], 0xdb
mov byte [ebp - 0xa], 0x53
mov byte [ebp - 9], 0x5d
mov byte [ebp - 8], 0xa0
mov byte [ebp - 7], 0x34
mov byte [ebp - 6], 0xa8
mov byte [ebp - 5], 0xcc
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x405852
push esi
push edi
lea eax, [ebp - 0x434]
push eax
push ebx
push ebx
push 0x800c
push dword [ebp - 0x438]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x40578e
xor esi, esi
jmp 0x405841
mov esi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push ebx
push 0x2c
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x434]
call esi
test eax, eax
jne 0x4057ae
xor esi, esi
jmp 0x405835
push 0x40160c
push dword [ebp + 8]
mov dword [ebp - 0x43c], ebx
call dword [sym.imp.msvcrt.dll__wfopen]
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x405815
push edi
push 0x400
lea eax, [ebp - 0x430]
push 1
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, ebx
jbe 0x40580d
add dword [ebp - 0x43c], eax
push ebx
push eax
lea eax, [ebp - 0x430]
push eax
push dword [ebp - 0x434]
call esi
test eax, eax
je 0x40585f
cmp dword [ebp - 0x43c], 0x5000
jb 0x4057ca
push edi
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
push ebx
lea eax, [ebp - 0x440]
push eax
push dword [ebp + 0xc]
push 2
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
xor esi, esi
test eax, eax
je 0x405835
inc esi
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
push dword [ebp - 0x438]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.00414118
leave
ret 8
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
push dword [ebp - 0x438]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push edi
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
xor eax, eax
jmp 0x405850