Function at 0x40aaa0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Import public key
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
mov eax, 0x10d0
call fcn.00426850
mov eax, dword [0x43d00c]
mov edi, dword [ebp + 0x14]
xorps xmm0, xmm0
xor eax, ebp
test edi, edi
mov dword [esp + 0x10c8], eax
mov dword [esp + 0x14], 0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x20], xmm0
je 0x40ac5a
mov eax, dword [ebp + 8]
test eax, eax
je 0x40ac5a
cmp dword [ebp + 0xc], 0
je 0x40ac5a
cmp dword [ebp + 0x10], 0
je 0x40ac5a
cmp dword [eax], 0
je 0x40ac8b
lea esi, [esp + 0x14]
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x40ab6d
push 0xf0000008
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x40ab6d
xor edi, edi
push 0xf0000000
push 0x18
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x40ab6d
push 0xf0000008
push 0x18
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x40ad3e
lea edi, [esp + 0x20]
xor ebx, ebx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + ebx*4]
test eax, eax
je 0x40ac7a
mov esi, dword [esp + 0x14]
test esi, esi
je 0x40ac7a
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx + ebx*4]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], eax
lea eax, [esp + 0x10a0]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
mov eax, 2
push eax
push eax
lea ecx, [esp + 0xc4]
push ecx
push eax
call dword [sym.imp.CRYPT32.dll_CryptQueryObject]
test eax, eax
je 0x40ac7a
mov eax, dword [esp + 0x10a0]
mov eax, dword [eax + 0xc]
add eax, 0x38
push edi
push eax
push 0x10001
push esi
call dword [sym.imp.CRYPT32.dll_CryptImportPublicKeyInfo]
mov esi, eax
push dword [esp + 0x10a0]
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test esi, esi
je 0x40ac7a
inc ebx
add edi, 4
cmp dword [ebp + 0x14], ebx
jne 0x40ab73
mov eax, dword [ebp + 8]
mov edi, dword [esp + 0x14]
xorps xmm0, xmm0
mov esi, dword [eax]
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x50], xmm0
test esi, esi
je 0x40ace2
xor eax, eax
push 2
push eax
push eax
push esi
call fcn.00419c9a
add esp, 0x10
test eax, eax
je 0x40acf3
push 2
call fcn.0041526f
add esp, 4
push str.ERROR:_Could_not_seek_to_the_end_of_the_MAR_file._n
jmp 0x40ac9a
push 2
call fcn.0041526f
add esp, 4
push str.ERROR:_Invalid_parameter_specified._n
push eax
call fcn.004053f0
add esp, 8
xor eax, eax
dec eax
mov dword [esp], eax
jmp 0x40acac
push 2
call fcn.0041526f
add esp, 4
push str.ERROR:_Could_not_load_public_key._n
jmp 0x40ac9a
push 2
call fcn.0041526f
add esp, 4
push str.ERROR:_MAR_file_is_not_open._n
push eax
call fcn.004053f0
add esp, 8
xor eax, eax
dec eax
mov dword [esp], eax
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x40acc9
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
lea esi, [esp + 0x20]
mov eax, dword [esi]
test eax, eax
je 0x40acc3
push eax
call ebx
add esi, 4
dec edi
jne 0x40acba
mov ecx, dword [esp + 0x10c8]
xor ecx, ebp
call fcn.00412591
mov eax, dword [esp]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 2
call fcn.0041526f
add esp, 4
push str.ERROR:_Invalid_file_pointer_passed._n
jmp 0x40ac9a
push esi
call fcn.0041a961
add esp, 4
cmp eax, 0x1f400001
sbb edx, 0
jl 0x40ad17
push 2
call fcn.0041526f
add esp, 4
push str.ERROR:_MAR_file_is_too_large_to_be_verified._n
jmp 0x40ac9a
xor eax, eax
push eax
push eax
push 0x10
push esi
call fcn.00419c9a
add esp, 0x10
test eax, eax
je 0x40ad5a
push 2
call fcn.0041526f
add esp, 4
push str.ERROR:_Could_not_seek_to_the_signature_block._n
jmp 0x40ac9a
mov dword [esp + 0x14], 0
push 2
call fcn.0041526f
add esp, 4
push str.ERROR:_Could_not_init_crytpo_library._n
jmp 0x40ac9a
lea eax, [esp + 0x1c]
push esi
push 1
push 4
push eax
call fcn.0041eb0c
add esp, 0x10
cmp eax, 1
jne 0x40ada3
push dword [esp + 0x1c]
call dword [sym.imp.WSOCK32.dll_ntohl]
cmp eax, 8
mov dword [esp + 0x1c], eax
jbe 0x40adb7
push 2
call fcn.0041526f
add esp, 4
push 8
push str.ERROR:_At_most__d_signatures_can_be_specified._n
push eax
call fcn.004053f0
add esp, 0xc
jmp 0x40aca3
push 2
call fcn.0041526f
add esp, 4
push str.ERROR:_Could_not_read_number_of_signatures._n
jmp 0x40ac9a
test eax, eax
mov dword [esp + 0xc], edi
mov dword [esp + 4], eax
je 0x40ae7b
mov ecx, dword [esp + 4]
lea eax, [esp + 0x40]
lea edi, [esp + 0x60]
mov dword [esp], eax
mov dword [esp + 0x10], ecx
push esi
push 1
push 4
push edi
call fcn.0041eb0c
add esp, 0x10
cmp eax, 1
jne 0x40af42
push dword [edi]
mov ebx, dword [sym.imp.WSOCK32.dll_ntohl]
call ebx
mov dword [esp + 8], eax
mov dword [edi], eax
push esi
push 1
push 4
lea eax, [esp + 0x24]
push eax
call fcn.0041eb0c
add esp, 0x10
cmp eax, 1
jne 0x40af56
push dword [esp + 0x18]
call ebx
cmp eax, 0x801
mov dword [esp + 0x18], eax
jae 0x40af6a
mov ebx, eax
push eax
call fcn.0041f18c
add esp, 4
mov ecx, dword [esp]
test eax, eax
mov dword [ecx], eax
je 0x40af7e
push esi
push 1
push ebx
push eax
call fcn.0041eb0c
add esp, 0x10
cmp eax, 1
jne 0x40af92
cmp dword [esp + 8], 2
jne 0x40afcd
add dword [esp], 4
add edi, 4
dec dword [esp + 0x10]
jne 0x40adda
push esi
call fcn.0041a961
add esp, 4
and edx, eax
xor eax, eax
dec eax
cmp edx, 0xffffffff
je 0x40aca6
cmp dword [esp + 4], 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x10a0], xmm0
movaps xmmword [esp + 0x10b0], xmm0
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x90], xmm0
je 0x40af2e
cmp dword [esp + 0xc], 0
lea eax, [esp + 0x10a0]
je 0x40af1a
mov ebx, dword [esp + 4]
mov edi, eax
xor ecx, ecx
mov dword [edi], ecx
push edi
push ecx
push ecx
push 0x800d
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40af1a
add edi, 4
dec ebx
jne 0x40aed0
xor eax, eax
push eax
push eax
push eax
push esi
call fcn.00419c9a
add esp, 0x10
test eax, eax
je 0x40b008
push 2
call fcn.0041526f
add esp, 4
push str.ERROR:_Could_not_seek_to_start_of_the_file_n
jmp 0x40ac9a
push 2
call fcn.0041526f
add esp, 4
push str.ERROR:_Could_not_initialize_signature_handle._n
jmp 0x40ac9a
push 2
call fcn.0041526f
add esp, 4
push str.ERROR:_There_must_be_at_least_one_signature._n
jmp 0x40ac9a
push 2
call fcn.0041526f
add esp, 4
push str.ERROR:_Could_not_read_signatures_algorithm_ID._n
jmp 0x40ac9a
push 2
call fcn.0041526f
add esp, 4
push str.ERROR:_Could_not_read_signatures_length._n
jmp 0x40ac9a
push 2
call fcn.0041526f
add esp, 4
push str.ERROR:_Signature_length_is_too_large_to_verify._n
jmp 0x40ac9a
push 2
call fcn.0041526f
add esp, 4
push str.ERROR:_Could_allocate_buffer_for_signature._n
jmp 0x40ac9a
push 2
call fcn.0041526f
add esp, 4
push str.ERROR:_Could_not_read_extracted_signature._n
push eax
call fcn.004053f0
add esp, 8
mov edi, dword [esp + 4]
xor eax, eax
lea esi, [esp + 0x40]
dec eax
mov dword [esp], eax
push dword [esi]
call fcn.0041ed02
add esp, 4
add esi, 4
dec edi
jne 0x40afb8
jmp 0x40aca9
push 2
call fcn.0041526f
add esp, 4
push str.ERROR:_Unknown_signature_algorithm_ID._n
push eax
call fcn.004053f0
add esp, 8
mov edi, dword [esp + 4]
xor eax, eax
lea esi, [esp + 0x40]
dec eax
mov dword [esp], eax
push dword [esi]
call fcn.0041ed02
add esp, 4
add esi, 4
dec edi
jne 0x40aff3
jmp 0x40aca9
lea eax, [esp + 0x10a0]
lea edx, [esp + 0xa0]
mov ecx, esi
push str.signature_block
push dword [esp + 8]
push eax
push 0x14
call fcn.0040a9f0
add esp, 0x10
test eax, eax
jne 0x40aca3
mov eax, dword [esp + 4]
xor ebx, ebx
lea edi, [esp + 0x80]
inc ebx
cmp eax, 1
cmova ebx, eax
mov dword [esp + 8], ebx
mov ecx, esi
lea edx, [esp + 0xa0]
push str.signature_algorithm_ID
push dword [esp + 8]
lea eax, [esp + 0x10a8]
push eax
push 4
call fcn.0040a9f0
add esp, 0x10
test eax, eax
jne 0x40aca3
mov ecx, esi
mov edx, edi
push str.signature_length
push dword [esp + 8]
lea eax, [esp + 0x10a8]
push eax
push 4
call fcn.0040a9f0
add esp, 0x10
test eax, eax
jne 0x40aca3
push dword [edi]
call dword [sym.imp.WSOCK32.dll_ntohl]
cmp eax, 0x801
mov dword [edi], eax
jae 0x40b0cd
push 1
push 0
push eax
push esi
call fcn.00419c9a
add esp, 0x10
test eax, eax
jne 0x40b0e1
add edi, 4
dec ebx
jne 0x40b04c
jmp 0x40b150
push 2
call fcn.0041526f
add esp, 4
push str.ERROR:_Embedded_signature_length_is_too_large._n
jmp 0x40ac9a
push 2
call fcn.0041526f
add esp, 4
push str.ERROR:_Could_not_seek_past_signature._n
jmp 0x40ac9a
push esi
push 0x1000
push 1
lea eax, [esp + 0xac]
push eax
call fcn.0041eb0c
add esp, 0x10
mov dword [esp], eax
push esi
call fcn.0041e753
add esp, 4
test eax, eax
jne 0x40b248
mov edi, dword [esp + 8]
lea ebx, [esp + 0x10a0]
push 0
push dword [esp + 4]
lea eax, [esp + 0xa8]
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40b234
add ebx, 4
dec edi
jne 0x40b12c
push esi
call fcn.0041e728
add esp, 4
test eax, eax
je 0x40b0f5
xor ebx, ebx
mov eax, dword [esp + ebx*4 + 0x80]
test eax, eax
mov dword [esp], eax
je 0x40b220
mov esi, dword [esp + ebx*4 + 0x40]
test esi, esi
je 0x40b220
push dword [esp]
call fcn.0041f18c
add esp, 4
test eax, eax
je 0x40b220
mov ecx, dword [esp]
mov edi, eax
mov dl, byte [esi + ecx - 1]
mov byte [eax], dl
inc eax
dec ecx
jne 0x40b195
xor eax, eax
push eax
push eax
push dword [esp + ebx*4 + 0x28]
push dword [esp + 0xc]
push edi
push dword [esp + ebx*4 + 0x10b4]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureA]
mov esi, eax
push edi
call fcn.0041ed02
add esp, 4
test esi, esi
je 0x40b220
inc ebx
cmp ebx, dword [esp + 8]
jne 0x40b15f
xor esi, esi
push dword [esp + esi*4 + 0x40]
call fcn.0041ed02
add esp, 4
inc esi
cmp dword [esp + 4], esi
jne 0x40b1d1
mov edi, dword [ebp + 0x14]
mov dword [esp], 0
cmp dword [esp + 8], edi
je 0x40acac
push 2
call fcn.0041526f
add esp, 4
push dword [esp + 4]
push dword [esp + 0xc]
push str.ERROR:_Only__d_of__d_signatures_were_verified._n
push eax
call fcn.004053f0
mov edi, dword [ebp + 0x14]
add esp, 0x10
jmp 0x40ac72
push 2
call fcn.0041526f
add esp, 4
push str.ERROR:_Error_verifying_signature._n
jmp 0x40ac9a
push 2
call fcn.0041526f
add esp, 4
push str.ERROR:_Error_updating_verify_context_with_data_block._n
jmp 0x40ac9a
push 2
call fcn.0041526f
add esp, 4
push str.ERROR:_Error_reading_data_block._n
jmp 0x40ac9a