Function at 0x10017b60
Capabilities:
Encrypt or decrypt via wincrypt
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x10141084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x1014a9cc]
push edi
cmp dword [esi + 0x14], 0
je 0x10017e1f
call fcn.10018240
test al, al
je 0x10017e1f
mov bh, 0x5e
mov dword [ebp - 0x18], 0x2d3a705e
mov word [ebp - 0x14], 0x2a
xor esi, esi
cmp esi, 5
jb 0x10017bbd
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.1005ff50
add esp, 0xc
mov bl, byte [ebp + esi - 0x17]
xor bl, bh
cmp esi, 5
jb 0x10017bdf
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.1005ff50
add esp, 0xc
mov byte [ebp + esi - 0x17], bl
inc esi
cmp esi, 4
jae 0x10017bee
mov bh, byte [ebp - 0x18]
jmp 0x10017ba1
push ecx
lea eax, [ebp - 0x17]
mov byte [ebp - 0x13], 0
push eax
call fcn.100181d0
cmp eax, 0xffffffff
je 0x10017e19
movaps xmm0, xmmword [0x10131f10]
xor esi, esi
push dword [0x10146674]
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0x5b585809
mov dword [ebp - 0x24], 0x460c4d37
mov dword [ebp - 0x20], 0x1c1c0f
nop dword [eax]
cmp esi, 0x1b
jb 0x10017c4c
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.1005ff50
add esp, 0xc
mov bl, byte [ebp + esi - 0x37]
xor bl, byte [ebp - 0x38]
cmp esi, 0x1b
jb 0x10017c6f
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.1005ff50
add esp, 0xc
mov byte [ebp + esi - 0x37], bl
inc esi
cmp esi, 0x1a
jb 0x10017c30
sub esp, 0x1c
mov byte [ebp - 0x1d], 0
lea eax, [ebp - 0x37]
mov ecx, esp
push eax
call fcn.100075f0
lea eax, [ebp - 0x54]
push eax
call fcn.10012db0
add esp, 0x24
mov ecx, 0x1014a9d0
push eax
call fcn.1000d290
lea ecx, [ebp - 0x54]
call fcn.10006aa0
mov eax, dword [0x1014a9cc]
cmp dword [eax + 0x18], 0x10
jb 0x10017cba
mov eax, dword [eax + 4]
jmp 0x10017cbd
add eax, 4
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
call esi
cmp dword [0x1014a9e8], 0x10
mov ecx, 0x1014a9d4
push 0
cmovae ecx, dword [0x1014a9d4]
mov edi, eax
push 0x80
push 2
push 0
push 2
push 0x40000000
push ecx
mov dword [ebp - 0x1c], edi
call esi
mov ebx, eax
mov dword [ebp - 0x18], ebx
cmp edi, 0xffffffff
je 0x10017df4
cmp ebx, 0xffffffff
je 0x10017df4
lea eax, [ebp - 0x10]
xor bl, bl
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [ebp - 0xc]
xor ecx, ecx
or ecx, dword [ebp - 0x10]
and cl, 1
cdq
movzx edi, cl
neg edi
sbb edi, edi
add edi, 0x20
push edi
call fcn.10086ba0
mov esi, eax
add esp, 4
test esi, esi
je 0x10017dee
push 0
lea eax, [ebp - 8]
push eax
push 4
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10017d7b
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
push esi
call fcn.100750d0
add esp, 0xc
mov dword [ebp - 8], 0
nop
push 0
lea eax, [ebp - 8]
push eax
push edi
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10017de1
cmp dword [ebp - 8], edi
mov eax, 1
movzx ebx, bl
cmovb ebx, eax
lea eax, [ebp - 8]
push eax
push esi
push 0
push 1
push 0
push dword [0x10146678]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x10017de1
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test bl, bl
je 0x10017d90
push esi
call fcn.10085d70
add esp, 4
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x10017e01
push edi
call esi
test ebx, ebx
je 0x10017e36
push ebx
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006fa90
mov esp, ebp
pop ebp
ret
mov esi, dword [0x1014a9cc]
cmp esi, 0x1014a9d0
je 0x10017e36
push 0xffffffffffffffff
push 0
push esi
mov ecx, 0x1014a9d0
call fcn.10006e40
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006fa90
mov esp, ebp
pop ebp
ret