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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x111c0
call fcn.004664c0
push esi
push edi
lea eax, [esp + 0x740]
call fcn.00414c1e
lea eax, [esp + 0x38]
call fcn.004159fa
push 0
push dword [ebx + 4]
xor edi, edi
push dword [ebx]
inc edi
mov dword [esp + 0x24], edi
call fcn.00458f41
add esp, 0xc
push 0x470da4
push dword [ebp + 8]
call fcn.00456fac
pop ecx
pop ecx
test eax, eax
lea eax, [esp + 0xba8]
push eax
push dword [ebp + 8]
mov esi, ebx
jne 0x415f00
call fcn.0041630d
test eax, eax
je 0x415e4b
push 6
pop eax
jmp 0x416197
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.0045787e
add esp, 0x14
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x534]
push eax
call fcn.004553d7
lea eax, [esp + 0xdc0]
push eax
lea eax, [esp + 0x53c]
push eax
call fcn.004553a6
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.0045787e
add esp, 0x24
lea eax, [esp + 0xfc0]
push eax
lea eax, [esp + 0x534]
push eax
call fcn.004553a6
lea eax, [esp + 0x328]
push eax
lea eax, [esp + 0x53c]
push eax
call fcn.004553a6
lea eax, [esp + 0x540]
add esp, 0x10
mov dword [ebp + 0xc], eax
jmp 0x415f0d
call fcn.0041630d
test eax, eax
jne 0x415e43
push dword [ebx]
lea eax, [esp + 0xf]
push edi
push edi
push eax
call fcn.00458b74
push dword [ebx]
lea eax, [esp + 0x24]
push edi
push 4
pop esi
push esi
push eax
call fcn.00458b74
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.00458b74
push dword [ebx]
lea eax, [esp + 0x44]
push 1
push esi
push eax
call fcn.00458b74
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.00458b74
push dword [ebx]
lea eax, [esp + 0x3c]
push 1
push esi
push eax
call fcn.00458b74
push dword [ebx]
lea eax, [esp + 0x58]
push 1
push esi
push eax
call fcn.00458b74
push dword [ebx]
lea eax, [esp + 0x64]
push 1
push esi
push eax
call fcn.00458b74
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 0x470d9c
lea eax, [esp + 0x32c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [esp + 0x110]
push 0x470da8
push eax
call fcn.00458832
pop ecx
pop ecx
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x415ffa
push 9
jmp 0x415e45
mov eax, dword [ebx + 8]
add eax, 0x2477
push eax
lea esi, [esp + 0x3c]
call fcn.00415b35
xor esi, esi
mov dword [esp + 0xc], esi
cmp edi, esi
jle 0x4160a8
jmp 0x416020
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
add eax, 0x10000
cmp eax, edi
jle 0x416035
mov esi, edi
sub esi, dword [esp + 0xc]
jmp 0x41603a
mov esi, 0x10000
push dword [ebx]
add dword [esp + 0x10], esi
push esi
lea eax, [esp + 0x11d0]
push 1
push eax
call fcn.00458b74
add esp, 0x10
xor edi, edi
test esi, esi
jle 0x41606f
lea eax, [esp + 0x38]
push eax
call fcn.00415b05
xor byte [esp + edi + 0x11c8], al
inc edi
cmp edi, esi
jl 0x416059
push esi
lea eax, [esp + 0x11cc]
push eax
lea edi, [esp + 0x20]
call fcn.00414bca
push dword [esp + 0x1c]
lea eax, [esp + 0x11cc]
push esi
push 1
push eax
call fcn.00458126
mov eax, dword [esp + 0x1c]
add esp, 0x10
cmp eax, dword [esp + 0x14]
jl 0x41601c
xor esi, esi
push dword [esp + 0x1c]
call fcn.004588b6
mov eax, dword [esp + 0x1c]
pop ecx
cmp dword [esp + 0x20], eax
je 0x4160d4
push 0xa
pop esi
lea eax, [esp + 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, esi
jmp 0x416197
cmp byte [esp + 0xb], 1
jne 0x416131
lea eax, [esp + 0x740]
call fcn.00414c1e
lea eax, [esp + 0x110]
push eax
lea eax, [esp + 0x768]
push eax
mov dword [esp + 0x75c], esi
mov dword [esp + 0x760], esi
call fcn.004553d7
push dword [ebp + 0xc]
lea eax, [esp + 0x97a]
push eax
call fcn.004553d7
add esp, 0x10
lea eax, [esp + 0x740]
call fcn.00414c4e
test eax, eax
je 0x41614e
push 0xb
jmp 0x4160be
push esi
push dword [ebp + 0xc]
lea eax, [esp + 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x41614e
push 7
jmp 0x4160be
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 0x416195
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