Function at 0x415f74
Capabilities:
Copy file
Delete file
Encode data using xor
Get common file path
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x111c0
call fcn.004666e0
push esi
push edi
lea eax, [esp + 0x740]
call fcn.00414db9
lea eax, [esp + 0x38]
call fcn.00415b95
push 0
push dword [ebx + 4]
xor edi, edi
push dword [ebx]
inc edi
mov dword [esp + 0x24], edi
call fcn.00459161
add esp, 0xc
push 0x470d94
push dword [ebp + 8]
call fcn.004571cc
pop ecx
pop ecx
test eax, eax
lea eax, [esp + 0xba8]
push eax
push dword [ebp + 8]
mov esi, ebx
jne 0x41609b
call fcn.004164a8
test eax, eax
je 0x415fe6
push 6
pop eax
jmp 0x416332
lea eax, [esp + 0x320]
push eax
lea eax, [esp + 0xfc4]
push eax
lea eax, [esp + 0xdc0]
push eax
lea eax, [esp + 0x2c]
push eax
push dword [ebp + 0xc]
call fcn.00457a9e
add esp, 0x14
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x534]
push eax
call fcn.004555f7
lea eax, [esp + 0xdc0]
push eax
lea eax, [esp + 0x53c]
push eax
call fcn.004555c6
lea eax, [esp + 0x330]
push eax
lea eax, [esp + 0xfd4]
push eax
lea eax, [esp + 0xdd0]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0xbc8]
push eax
call fcn.00457a9e
add esp, 0x24
lea eax, [esp + 0xfc0]
push eax
lea eax, [esp + 0x534]
push eax
call fcn.004555c6
lea eax, [esp + 0x328]
push eax
lea eax, [esp + 0x53c]
push eax
call fcn.004555c6
lea eax, [esp + 0x540]
add esp, 0x10
mov dword [ebp + 0xc], eax
jmp 0x4160a8
call fcn.004164a8
test eax, eax
jne 0x415fde
push dword [ebx]
lea eax, [esp + 0xf]
push edi
push edi
push eax
call fcn.00458d94
push dword [ebx]
lea eax, [esp + 0x24]
push edi
push 4
pop esi
push esi
push eax
call fcn.00458d94
push dword [ebx]
mov edi, dword [esp + 0x34]
push 1
lea eax, [esp + 0x38]
push esi
xor edi, 0x87bc
push eax
mov dword [esp + 0x44], edi
call fcn.00458d94
push dword [ebx]
lea eax, [esp + 0x44]
push 1
push esi
push eax
call fcn.00458d94
mov eax, dword [esp + 0x50]
add esp, 0x40
push dword [ebx]
xor eax, 0xa685
push 1
mov dword [esp + 0x28], eax
lea eax, [esp + 0x34]
push esi
push eax
call fcn.00458d94
push dword [ebx]
lea eax, [esp + 0x3c]
push 1
push esi
push eax
call fcn.00458d94
push dword [ebx]
lea eax, [esp + 0x58]
push 1
push esi
push eax
call fcn.00458d94
push dword [ebx]
lea eax, [esp + 0x64]
push 1
push esi
push eax
call fcn.00458d94
add esp, 0x40
lea eax, [esp + 0x320]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
lea eax, [esp + 0x110]
push eax
push 0
push 0x470d8c
lea eax, [esp + 0x32c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
lea eax, [esp + 0x110]
push 0x470d98
push eax
call fcn.00458a52
pop ecx
pop ecx
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x416195
push 9
jmp 0x415fe0
mov eax, dword [ebx + 8]
add eax, 0x2477
push eax
lea esi, [esp + 0x3c]
call fcn.00415cd0
xor esi, esi
mov dword [esp + 0xc], esi
cmp edi, esi
jle 0x416243
jmp 0x4161bb
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
add eax, 0x10000
cmp eax, edi
jle 0x4161d0
mov esi, edi
sub esi, dword [esp + 0xc]
jmp 0x4161d5
mov esi, 0x10000
push dword [ebx]
add dword [esp + 0x10], esi
push esi
lea eax, [esp + 0x11d0]
push 1
push eax
call fcn.00458d94
add esp, 0x10
xor edi, edi
test esi, esi
jle 0x41620a
lea eax, [esp + 0x38]
push eax
call fcn.00415ca0
xor byte [esp + edi + 0x11c8], al
inc edi
cmp edi, esi
jl 0x4161f4
push esi
lea eax, [esp + 0x11cc]
push eax
lea edi, [esp + 0x20]
call fcn.00414d65
push dword [esp + 0x1c]
lea eax, [esp + 0x11cc]
push esi
push 1
push eax
call fcn.00458346
mov eax, dword [esp + 0x1c]
add esp, 0x10
cmp eax, dword [esp + 0x14]
jl 0x4161b7
xor esi, esi
push dword [esp + 0x1c]
call fcn.00458ad6
mov eax, dword [esp + 0x1c]
pop ecx
cmp dword [esp + 0x20], eax
je 0x41626f
push 0xa
pop esi
lea eax, [esp + 0x110]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov eax, esi
jmp 0x416332
cmp byte [esp + 0xb], 1
jne 0x4162cc
lea eax, [esp + 0x740]
call fcn.00414db9
lea eax, [esp + 0x110]
push eax
lea eax, [esp + 0x768]
push eax
mov dword [esp + 0x75c], esi
mov dword [esp + 0x760], esi
call fcn.004555f7
push dword [ebp + 0xc]
lea eax, [esp + 0x97a]
push eax
call fcn.004555f7
add esp, 0x10
lea eax, [esp + 0x740]
call fcn.00414de9
test eax, eax
je 0x4162e9
push 0xb
jmp 0x416259
push esi
push dword [ebp + 0xc]
lea eax, [esp + 0x118]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
test eax, eax
jne 0x4162e9
push 7
jmp 0x416259
lea eax, [esp + 0x110]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push esi
push 0x80
push 3
push esi
push 1
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x416330
lea eax, [esp + 0x30]
push eax
push esi
lea eax, [esp + 0x30]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8