Function at 0x40d582
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, 0x44c
mov eax, dword [0x4188a0]
push ebx
push 0xf0000000
xor ebx, ebx
push 0x18
push ebx
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x444]
push eax
mov dword [ebp - 0x44c], 0x20
mov dword [ebp - 0x444], ebx
mov dword [ebp - 0x440], ebx
mov byte [ebp - 0x3c], 0x4a
mov byte [ebp - 0x3b], 0x56
mov byte [ebp - 0x3a], 0x9e
mov byte [ebp - 0x39], 0xa6
mov byte [ebp - 0x38], 0xee
mov byte [ebp - 0x37], 0x68
mov byte [ebp - 0x36], 0x8b
mov byte [ebp - 0x35], 0x4b
mov byte [ebp - 0x34], 0x2d
mov byte [ebp - 0x33], 0xc8
mov byte [ebp - 0x32], 0xf7
mov byte [ebp - 0x31], 0xfa
mov byte [ebp - 0x30], 0x41
mov byte [ebp - 0x2f], 0xd
mov byte [ebp - 0x2e], 0x77
mov byte [ebp - 0x2d], 0xb7
mov byte [ebp - 0x2c], 0xa5
mov byte [ebp - 0x2b], 0x6e
mov byte [ebp - 0x2a], 0xe1
mov byte [ebp - 0x29], 0xf
mov byte [ebp - 0x28], 0x43
mov byte [ebp - 0x27], 0xd7
mov byte [ebp - 0x26], 0x94
mov byte [ebp - 0x25], 0x99
mov byte [ebp - 0x24], 0x81
mov byte [ebp - 0x23], 9
mov byte [ebp - 0x22], 0x52
mov byte [ebp - 0x21], 0x78
mov byte [ebp - 0x20], bl
mov byte [ebp - 0x1f], 0x7c
mov byte [ebp - 0x1e], 0x45
mov byte [ebp - 0x1d], 0xab
mov byte [ebp - 0x1c], 0x5f
mov byte [ebp - 0x1b], 0xe6
mov byte [ebp - 0x1a], 0xa8
mov byte [ebp - 0x19], 0x68
mov byte [ebp - 0x18], 0x57
mov byte [ebp - 0x17], 0x9c
mov byte [ebp - 0x16], 0xeb
mov byte [ebp - 0x15], 0xb4
mov byte [ebp - 0x14], 0x51
mov byte [ebp - 0x13], 0x53
mov byte [ebp - 0x12], 5
mov byte [ebp - 0x11], 0xbf
mov byte [ebp - 0x10], 0x33
mov byte [ebp - 0xf], 0xdd
mov byte [ebp - 0xe], 0x1f
mov byte [ebp - 0xd], 0x5d
mov byte [ebp - 0xc], 0x40
mov byte [ebp - 0xb], 0x94
mov byte [ebp - 0xa], 0x21
mov byte [ebp - 9], 0x88
mov byte [ebp - 8], 0x4e
mov byte [ebp - 7], 0x13
mov byte [ebp - 6], 0x54
mov byte [ebp - 5], 0x50
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40d794
push esi
push edi
lea eax, [ebp - 0x440]
push eax
push ebx
push ebx
push 0x800c
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x40d6d0
xor esi, esi
jmp 0x40d783
mov esi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push ebx
push 0x38
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x440]
call esi
test eax, eax
jne 0x40d6f0
xor esi, esi
jmp 0x40d777
push 0x402494
push dword [ebp + 8]
mov dword [ebp - 0x448], ebx
call dword [sym.imp.msvcrt.dll__wfopen]
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x40d757
push edi
push 0x400
lea eax, [ebp - 0x43c]
push 1
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, ebx
jbe 0x40d74f
add dword [ebp - 0x448], eax
push ebx
push eax
lea eax, [ebp - 0x43c]
push eax
push dword [ebp - 0x440]
call esi
test eax, eax
je 0x40d7a1
cmp dword [ebp - 0x448], 0x1000
jb 0x40d70c
push edi
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
push ebx
lea eax, [ebp - 0x44c]
push eax
push dword [ebp + 0xc]
push 2
push dword [ebp - 0x440]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
xor esi, esi
test eax, eax
je 0x40d777
inc esi
push dword [ebp - 0x440]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.00414165
leave
ret 8
push dword [ebp - 0x440]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push edi
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
xor eax, eax
jmp 0x40d792