Function at 0xcd2947
Capabilities:
Copy file
Delete file
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x11b8
call fcn.00ca1f50
push ebx
push esi
mov ebx, ecx
lea ecx, [ebp - 0x994]
push edi
mov dword [ebp - 0x30], ebx
call fcn.00cd25d6
push 0x10000
call fcn.00c7fe0b
pop ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.00c65722
lea ecx, [ebp - 0x324]
call fcn.00cd274e
xor edi, edi
xor esi, esi
push edi
push dword [ebx + 4]
inc esi
mov ecx, ebx
push dword [ebx]
mov dword [ebp - 0x1c], esi
call fcn.00c6511f
push 0xd263b8
push dword [ebp + 8]
call fcn.00c85232
pop ecx
pop ecx
push ecx
test eax, eax
mov ecx, ebx
lea eax, [ebp - 0x11b4]
push eax
push dword [ebp + 8]
jne 0xcd2a6c
call fcn.00cd2e66
test eax, eax
jne 0xcd2a75
lea eax, [ebp - 0xfac]
push eax
lea eax, [ebp - 0xda4]
push eax
lea eax, [ebp - 0xb9c]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
call fcn.00c8d583
add esp, 0x14
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x52c]
push eax
call fcn.00c84983
lea eax, [ebp - 0xb9c]
push eax
lea eax, [ebp - 0x52c]
push eax
call fcn.00c89038
lea eax, [ebp - 0xfac]
push eax
lea eax, [ebp - 0xda4]
push eax
lea eax, [ebp - 0xb9c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x11b4]
push eax
call fcn.00c8d583
add esp, 0x24
lea eax, [ebp - 0xda4]
push eax
lea eax, [ebp - 0x52c]
push eax
call fcn.00c89038
lea eax, [ebp - 0xfac]
push eax
lea eax, [ebp - 0x52c]
push eax
call fcn.00c89038
add esp, 0x10
lea eax, [ebp - 0x52c]
jmp 0xcd2a7f
call fcn.00cd2e66
test eax, eax
je 0xcd2a7c
push 6
jmp 0xcd2cb6
mov eax, dword [ebp + 0xc]
push dword [ebx]
mov dword [ebp + 0xc], eax
mov ecx, ebx
push esi
push esi
lea eax, [ebp - 5]
push eax
call fcn.00c650f5
push dword [ebx]
lea eax, [ebp - 0xc]
mov ecx, ebx
push esi
push 4
push eax
call fcn.00c650f5
push dword [ebx]
mov eax, dword [ebp - 0xc]
mov ecx, ebx
xor eax, 0x87bc
push esi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xc]
push 4
push eax
call fcn.00c650f5
push dword [ebx]
lea eax, [ebp - 0xc]
mov ecx, ebx
push esi
push 4
push eax
call fcn.00c650f5
push dword [ebx]
mov eax, dword [ebp - 0xc]
mov ecx, ebx
xor eax, 0xa685
push esi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
push 4
push eax
call fcn.00c650f5
push dword [ebx]
lea eax, [ebp - 0x44]
mov ecx, ebx
push esi
push 4
push eax
call fcn.00c650f5
push dword [ebx]
lea eax, [ebp - 0x38]
mov ecx, ebx
push esi
push 4
push eax
call fcn.00c650f5
push dword [ebx]
lea eax, [ebp - 0x3c]
mov ecx, ebx
push esi
push 4
push eax
call fcn.00c650f5
lea ecx, [ebp - 0x24c]
call fcn.00cd3017
lea eax, [ebp - 0x24c]
push 0xd26a94
push eax
call fcn.00c8e5eb
mov dword [ebp - 0x20], eax
pop ecx
pop ecx
test eax, eax
jne 0xcd2b43
push 9
jmp 0xcd2cb6
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0x324]
add eax, 0x2477
push eax
call fcn.00cd2792
mov edx, dword [ebp - 0x18]
mov ecx, edi
test edx, edx
jle 0xcd2bf0
lea eax, [ecx + 0x10000]
cmp eax, edx
jle 0xcd2b74
mov eax, edx
sub eax, ecx
jmp 0xcd2b79
mov eax, 0x10000
push dword [ebx]
add ecx, eax
mov dword [ebp + 8], eax
push eax
push esi
push dword [ebp - 0x14]
mov dword [ebp - 0x34], ecx
mov ecx, ebx
call fcn.00c650f5
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], edi
test eax, eax
jle 0xcd2bc1
mov ebx, dword [ebp - 0x14]
mov edi, eax
mov esi, dword [ebp - 0x2c]
push ecx
push ecx
lea ecx, [ebp - 0x324]
call fcn.00cd28d2
xor byte [ebx + esi], al
inc esi
cmp esi, edi
jl 0xcd2ba1
mov ebx, dword [ebp - 0x30]
xor esi, esi
mov eax, dword [ebp + 8]
inc esi
xor edi, edi
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
call fcn.00cd211d
push dword [ebp - 0x20]
push dword [ebp + 8]
push esi
push dword [ebp - 0x14]
call fcn.00c8dbb3
mov ecx, dword [ebp - 0x34]
add esp, 0x10
mov edx, dword [ebp - 0x18]
cmp ecx, edx
jl 0xcd2b64
mov esi, dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.00c8e678
pop ecx
cmp dword [ebp - 0x24], esi
je 0xcd2c12
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0xa
jmp 0xcd2cb6
cmp byte [ebp - 5], 1
jne 0xcd2c91
lea ecx, [ebp - 0x994]
call fcn.00cd25d6
mov esi, 0x104
mov dword [ebp - 0x980], edi
push esi
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x97c], edi
push eax
lea eax, [ebp - 0x970]
push eax
call fcn.00c8d2eb
add esp, 0xc
xor eax, eax
mov word [ebp - 0x768], ax
lea eax, [ebp - 0x766]
push esi
mov esi, dword [ebp + 0xc]
push esi
push eax
call fcn.00c8d2eb
add esp, 0xc
lea ecx, [ebp - 0x994]
xor eax, eax
mov word [ebp - 0x55e], ax
call fcn.00cd22ce
test eax, eax
je 0xcd2cb9
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0xb
jmp 0xcd2cb6
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x24c]
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0xcd2cb9
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 7
pop edi
jmp 0xcd2cd5
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
lea edx, [ebp - 0x44]
call fcn.00cd2fd8
pop ecx
mov eax, dword [ebp - 0x10]
sub dword [eax], 1
jne 0xcd2cf0
push 4
push eax
call fcn.00c7fdcd
push dword [ebp - 0x14]
call fcn.00c7fe14
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc