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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x111bc
call fcn.0041fe20
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea edx, [esp + 0x6b8]
xor eax, eax
xor ecx, ecx
push edx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov word [esp + 0x68], ax
mov word [esp + 0x272], cx
mov dword [esp + 0x498], ebx
call fcn.00445f76
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push ebx
push eax
push ecx
mov dword [esp + 0x2c], 1
call fcn.0041568d
add esp, 0xc
push 0x488474
push edi
call fcn.00414774
add esp, 8
test eax, eax
jne 0x4519b0
lea edx, [esp + 0xba8]
push edx
push edi
push esi
call fcn.0045148d
test eax, eax
je 0x4518fa
mov eax, 6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea eax, [esp + 0x9a0]
push eax
lea ecx, [esp + 0xdbc]
push ecx
mov ecx, dword [ebp + 0x10]
lea edx, [esp + 0xfc8]
push edx
lea eax, [esp + 0x34]
push eax
push ecx
call fcn.00415140
add esp, 0x14
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x794]
push eax
call fcn.00412a21
lea ecx, [esp + 0xfc8]
push ecx
lea edx, [esp + 0x79c]
push edx
call fcn.004129f3
lea eax, [esp + 0x9b0]
push eax
lea ecx, [esp + 0xdcc]
push ecx
lea edx, [esp + 0xfd8]
push edx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0xbc8]
push ecx
call fcn.00415140
add esp, 0x24
lea edx, [esp + 0xdb8]
push edx
lea eax, [esp + 0x794]
push eax
call fcn.004129f3
lea ecx, [esp + 0x9a8]
push ecx
lea edx, [esp + 0x79c]
push edx
call fcn.004129f3
lea eax, [esp + 0x7a0]
add esp, 0x10
mov dword [ebp + 0x10], eax
jmp 0x4519c7
lea ecx, [esp + 0xba8]
push ecx
push edi
push esi
call fcn.0045148d
test eax, eax
jne 0x4518ec
mov edx, dword [esi]
push edx
push 1
lea eax, [esp + 0x17]
push 1
push eax
call fcn.00415cf7
mov ecx, dword [esi]
push ecx
push 1
lea edx, [esp + 0x28]
push 4
push edx
call fcn.00415cf7
mov eax, dword [esi]
mov edi, dword [esp + 0x30]
push eax
push 1
lea ecx, [esp + 0x38]
push 4
xor edi, 0x87bc
push ecx
mov dword [esp + 0x44], edi
call fcn.00415cf7
mov edx, dword [esi]
push edx
push 1
lea eax, [esp + 0x48]
push 4
push eax
call fcn.00415cf7
mov ecx, dword [esi]
mov eax, dword [esp + 0x50]
add esp, 0x40
push ecx
push 1
lea edx, [esp + 0x3c]
xor eax, 0xa685
push 4
push edx
mov dword [esp + 0x38], eax
call fcn.00415cf7
mov eax, dword [esi]
push eax
push 1
lea ecx, [esp + 0x48]
push 4
push ecx
call fcn.00415cf7
mov edx, dword [esi]
push edx
push 1
lea eax, [esp + 0x64]
push 4
push eax
call fcn.00415cf7
mov ecx, dword [esi]
push ecx
push 1
lea edx, [esp + 0x70]
push 4
push edx
call fcn.00415cf7
add esp, 0x40
lea eax, [esp + 0x4a8]
push eax
call fcn.00436e8d
lea ecx, [esp + 0x4a8]
push 0x488478
push ecx
call fcn.004155ec
add esp, 8
mov dword [esp + 0x18], eax
cmp eax, ebx
jne 0x451aa8
mov eax, 9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [esi + 8]
add edx, 0x2477
push edx
lea eax, [esp + 0x6bc]
push eax
call fcn.00445ed0
xor eax, eax
cmp edi, ebx
jle 0x451b62
jmp 0x451ad1
mov edi, eax
mov eax, dword [esp + 0x24]
lea ecx, [eax + 0x10000]
cmp ecx, edi
jle 0x451adf
sub edi, eax
jmp 0x451ae4
mov edi, 0x10000
mov edx, dword [esi]
push edx
add eax, edi
push edi
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x11d0]
push 1
push eax
call fcn.00415cf7
add esp, 0x10
cmp edi, ebx
mov dword [esp + 0x1c], ebx
jle 0x451b29
lea ecx, [esp + 0x6b8]
push ecx
call fcn.00445f48
mov ecx, dword [esp + 0x1c]
xor byte [esp + ecx + 0x11c8], al
inc ecx
cmp ecx, edi
mov dword [esp + 0x1c], ecx
jl 0x451b08
push edi
lea edx, [esp + 0x11cc]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00437241
mov ecx, dword [esp + 0x18]
push ecx
push edi
lea edx, [esp + 0x11d0]
push 1
push edx
call fcn.004158e2
mov eax, dword [esp + 0x24]
add esp, 0x10
cmp dword [esp + 0x24], eax
jl 0x451acb
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004159db
mov edx, dword [esp + 0x24]
add esp, 4
cmp dword [esp + 0x28], edx
je 0x451b95
lea eax, [esp + 0x4a8]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov eax, 0xa
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp byte [esp + 0xf], 1
jne 0x451c2c
xor ecx, ecx
lea eax, [esp + 0x4a8]
mov word [esp + 0x64], cx
push eax
lea ecx, [esp + 0x68]
xor edx, edx
push ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov word [esp + 0x276], dx
mov dword [esp + 0x49c], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
call fcn.00412a21
mov edx, dword [ebp + 0x10]
push edx
lea eax, [esp + 0x27a]
push eax
call fcn.00412a21
add esp, 0x10
lea ecx, [esp + 0x40]
push ecx
call fcn.0044e380
test eax, eax
je 0x451c5f
lea edx, [esp + 0x4a8]
push edx
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
push ebx
push eax
lea ecx, [esp + 0x4b0]
push ecx
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
test eax, eax
jne 0x451c5f
lea edx, [esp + 0x4a8]
push edx
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea eax, [esp + 0x4a8]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov eax, dword [ebp + 0x10]
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x34]
push edx
push eax
call fcn.00436e4a
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc