Function at 0x406799
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 [0x418898]
push esi
push 0xf0000000
xor esi, esi
push 0x18
push esi
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x448]
push eax
mov dword [ebp - 0x450], 0x20
mov dword [ebp - 0x448], esi
mov dword [ebp - 0x444], esi
mov byte [ebp - 0x40], 0x25
mov byte [ebp - 0x3f], 0x5a
mov byte [ebp - 0x3e], 5
mov byte [ebp - 0x3d], 0xdc
mov byte [ebp - 0x3c], 6
mov byte [ebp - 0x3b], 0xe7
mov byte [ebp - 0x3a], 0xbe
mov byte [ebp - 0x39], 0x1b
mov byte [ebp - 0x38], 0x88
mov byte [ebp - 0x37], 0xc1
mov byte [ebp - 0x36], 0xcc
mov byte [ebp - 0x35], 0x4f
mov byte [ebp - 0x34], 0xae
mov byte [ebp - 0x33], 0x5b
mov byte [ebp - 0x32], 0xa7
mov byte [ebp - 0x31], 0x10
mov byte [ebp - 0x30], 0xcd
mov byte [ebp - 0x2f], 0x94
mov byte [ebp - 0x2e], 0x7c
mov byte [ebp - 0x2d], 0x33
mov byte [ebp - 0x2c], 0xfc
mov byte [ebp - 0x2b], 0x21
mov byte [ebp - 0x2a], 0x6c
mov byte [ebp - 0x29], 0x96
mov byte [ebp - 0x28], 0xb6
mov byte [ebp - 0x27], 0x7f
mov byte [ebp - 0x26], 0xfa
mov byte [ebp - 0x25], 0x16
mov byte [ebp - 0x24], 0x50
mov byte [ebp - 0x23], 0x3b
mov byte [ebp - 0x22], 0x7a
mov byte [ebp - 0x21], 0xf2
mov byte [ebp - 0x20], 0x6d
mov byte [ebp - 0x1f], 0x72
mov byte [ebp - 0x1e], 0x55
mov byte [ebp - 0x1d], 0x60
mov byte [ebp - 0x1c], 0xa4
mov byte [ebp - 0x1b], 0xaf
mov byte [ebp - 0x1a], 0x3e
mov byte [ebp - 0x19], 0xd2
mov byte [ebp - 0x18], 0x13
mov byte [ebp - 0x17], 0xb8
mov byte [ebp - 0x16], 0xa3
mov byte [ebp - 0x15], 0xfe
mov byte [ebp - 0x14], pe_nt_image_headers32
mov byte [ebp - 0x13], 0x3c
mov byte [ebp - 0x12], 0x17
mov byte [ebp - 0x11], 0xe8
mov byte [ebp - 0x10], 0xa5
mov byte [ebp - 0xf], 0xe1
mov byte [ebp - 0xe], 0xbc
mov byte [ebp - 0xd], 0x81
mov byte [ebp - 0xc], 0x3c
mov byte [ebp - 0xb], 0x6d
mov byte [ebp - 0xa], 0xfe
mov byte [ebp - 9], 0x62
mov byte [ebp - 8], 4
mov byte [ebp - 7], 0xbe
mov byte [ebp - 6], 0x8a
mov byte [ebp - 5], 0xfa
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4069bc
push ebx
push edi
lea eax, [ebp - 0x444]
push eax
push esi
push esi
push 0x800c
push dword [ebp - 0x448]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4068f8
xor edi, edi
jmp 0x4069ab
mov edi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push esi
push 0x3c
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x444]
call edi
test eax, eax
jne 0x406918
xor edi, edi
jmp 0x40699f
push 0x4017b0
push dword [ebp + 8]
mov dword [ebp - 0x44c], esi
call dword [sym.imp.msvcrt.dll__wfopen]
mov ebx, eax
cmp ebx, esi
pop ecx
pop ecx
je 0x40697f
push ebx
push 0x400
lea eax, [ebp - 0x440]
push 1
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, esi
jbe 0x406977
add dword [ebp - 0x44c], eax
push esi
push eax
lea eax, [ebp - 0x440]
push eax
push dword [ebp - 0x444]
call edi
test eax, eax
je 0x4069c9
cmp dword [ebp - 0x44c], 0x4c00
jb 0x406934
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
push esi
lea eax, [ebp - 0x450]
push eax
push dword [ebp + 0xc]
push 2
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
xor edi, edi
test eax, eax
je 0x40699f
inc edi
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
push dword [ebp - 0x448]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.00414168
leave
ret 8
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
push dword [ebp - 0x448]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
xor eax, eax
jmp 0x4069ba