Function at 0x4017e0
Capabilities:
Create directory
Get file size
Query environment variable
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x102c
call fcn.00406440
mov eax, dword [0x40a03c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x104
lea ecx, [ebp - 0x414]
push ecx
push str.PROGRAMFILES
mov dword [ebp - 0x102c], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x40182b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401d8d
mov esp, ebp
pop ebp
ret
push 0x104
lea edx, [ebp - 0x61c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40181b
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push str.UFileEncyption
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push str._s_s
push ecx
call esi
add esp, 0x10
push 0
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401887
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4018ca
push 0x40929c
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x824]
push str._s_s
push ecx
call esi
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea edx, [ebp - 0x61c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4018db
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401d8d
mov esp, ebp
pop ebp
ret
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
jne 0x401904
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401d8d
mov esp, ebp
pop ebp
ret
push edi
push ebx
call fcn.00401deb
add esp, 4
push 0
mov edi, eax
lea eax, [ebp - 0x1028]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401949
push edi
call fcn.00401e6b
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401d8d
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea eax, [ebp - 0x824]
call fcn.004014f0
add esp, 4
push edi
test eax, eax
je 0x401b18
call fcn.00401e6b
add esp, 4
cmp dword [0x40b970], 0
je 0x401986
cmp dword [0x40b968], 0x3d
jl 0x401a29
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0x20c]
push ecx
push str._s_vistarun.exe
push 0x40b978
call edi
lea edx, [ebp - 0x1028]
push edx
push 0x6a
call fcn.00401360
add esp, 0x14
test eax, eax
jne 0x401a00
mov ecx, dword [0x40b974]
mov edx, dword [ebp - 0x102c]
push 0x64
lea eax, [ebp - 0x1024]
push eax
add ecx, 0x3eb
push ecx
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x10
push 0x40c058
lea eax, [ebp - 0x1024]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401d8d
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x1028]
mov ebx, eax
push esi
mov eax, 0x40b978
call fcn.004014f0
add esp, 4
push esi
test eax, eax
je 0x401b18
call fcn.00401e6b
add esp, 4
jmp 0x401a2f
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push 0x4092dc
lea ecx, [ebp - 0x20c]
push ecx
push str._s_s.sys
push 0x40bd88
call edi
mov eax, dword [0x40b96c]
lea edx, [ebp - 0x1028]
push edx
push eax
call fcn.00401360
add esp, 0x18
test eax, eax
je 0x401ab1
mov esi, dword [ebp - 0x1028]
mov ebx, eax
push esi
mov eax, 0x40bd88
call fcn.004014f0
add esp, 4
push esi
test eax, eax
je 0x401b18
call fcn.00401e6b
push str.UFileEncyption
lea edx, [ebp - 0x20c]
push edx
push str._s_s.exe
push 0x40bb80
call edi
lea eax, [ebp - 0x1028]
push eax
push 0x69
call fcn.00401360
add esp, 0x1c
test eax, eax
jne 0x401afd
mov edx, dword [0x40b974]
mov eax, dword [ebp - 0x102c]
push 0x64
lea ecx, [ebp - 0x1024]
push ecx
add edx, 0x3eb
push edx
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x10
push 0x40c058
lea ecx, [ebp - 0x1024]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401d8d
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x1028]
mov ebx, eax
push esi
mov eax, 0x40bb80
call fcn.004014f0
add esp, 4
push esi
test eax, eax
jne 0x401b33
call fcn.00401e6b
add esp, 4
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401d8d
mov esp, ebp
pop ebp
ret
call fcn.00401e6b
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop ebx
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00401d8d
mov esp, ebp
pop ebp
ret