Function at 0x4031a8
Capabilities:
Create new key via cryptacquirecontext
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov dword [esp], str.DecryptorMain_started.
call sym._LogToFile
mov dword [ebp - 0xc], 0
mov dword [esp + 0x10], 0xf0000000
mov dword [esp + 0xc], 0x18
mov dword [esp + 8], 0
mov dword [esp + 4], 0
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call sym._CryptAcquireContextA_20
sub esp, 0x14
test eax, eax
jne 0x40320c
mov dword [esp], str.Failed_to_initialize_cryptographic_provider.
call sym._LogToFile
mov eax, 1
jmp 0x40353f
mov dword [esp + 0xc], 0
lea eax, [ebp - 0x128]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x104
mov dword [esp], str.encryptor.exe_private_key.blob
call sym._GetFullPathNameA_16
sub esp, 0x10
mov dword [esp], str.Attempting_to_load_RSA_private_key_from_file.
call sym._LogToFile
lea eax, [ebp - 0x128]
mov dword [esp], eax
call sym._LogToFile
mov dword [esp + 4], 0x40d2a7
lea eax, [ebp - 0x128]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40329a
mov dword [esp], str.Failed_to_open_private_key_file.
call sym._LogToFile
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._CryptReleaseContext_8
sub esp, 8
mov eax, 1
jmp 0x40353f
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._fseek
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._ftell
mov dword [ebp - 0x14], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._fseek
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._malloc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fread
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._fclose
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x24]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov edx, dword [ebp - 0x14]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._CryptImportKey_24
sub esp, 0x18
test eax, eax
jne 0x403386
mov dword [esp], str.Failed_to_import_RSA_private_key.
call sym._LogToFile
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._free
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._CryptReleaseContext_8
sub esp, 8
mov eax, 1
jmp 0x40353f
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._free
mov dword [esp + 4], 0x40d2a7
mov dword [esp], str.encrypted_aes_key.bin
call sym._fopen
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4033e8
mov dword [esp], str.Failed_to_open_AES_key_file.
call sym._LogToFile
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._CryptDestroyKey_4
sub esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._CryptReleaseContext_8
sub esp, 8
mov eax, 1
jmp 0x40353f
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._fseek
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._ftell
mov dword [ebp - 0x14], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._fseek
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._malloc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fread
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._fclose
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x14]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._CryptImportKey_24
sub esp, 0x18
test eax, eax
jne 0x4034de
mov dword [esp], str.Failed_to_import_AES_key.
call sym._LogToFile
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._free
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._CryptDestroyKey_4
sub esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._CryptReleaseContext_8
sub esp, 8
mov eax, 1
jmp 0x40353f
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._free
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov dword [esp], str.C:TestCrypt
call sym._DecryptDirectory
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._CryptDestroyKey_4
sub esp, 4
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._CryptDestroyKey_4
sub esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._CryptReleaseContext_8
sub esp, 8
mov dword [esp], str.Decryption_process_completed.
call sym._LogToFile
mov eax, 0
leave
ret