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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x11220
call fcn.140030cb0
sub rsp, rax
xor ebp, ebp
mov rdi, rcx
lea rcx, [rsp + 0x4e0]
mov r12, r8
mov rsi, rdx
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rbp
mov dword [rsp + 0x60], ebp
mov dword [rsp + 0x64], ebp
mov dword [rsp + 0x68], ebp
mov dword [rsp + 0x6c], ebp
mov dword [rsp + 0x70], ebp
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], rbp
mov word [rsp + 0x88], bp
mov word [rsp + 0x292], bp
mov qword [rsp + 0x4c0], rbp
call fcn.14004f560
mov edx, dword [rdi + 8]
mov rcx, qword [rdi]
lea r13d, [rbp + 1]
mov ebx, r13d
xor r8d, r8d
mov dword [rsp + 0x34], ebx
call fcn.140019e98
lea rdx, [0x14009e840]
mov rcx, rsi
call fcn.140017790
xor r9d, r9d
lea r8, [rsp + 0xbf0]
mov rdx, rsi
mov rcx, rdi
cmp eax, ebp
jne 0x140061a8d
call fcn.1400614b0
cmp eax, ebp
je 0x1400619d1
mov eax, 6
jmp 0x140061d46
lea rax, [rsp + 0x1010]
lea r9, [rsp + 0xe00]
lea r8, [rsp + 0x9e0]
lea rdx, [rsp + 0x38]
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.14001823c
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x7d0]
call fcn.140016e4c
lea rdx, [rsp + 0x9e0]
lea rcx, [rsp + 0x7d0]
call fcn.140016e20
lea r11, [rsp + 0x1010]
lea r9, [rsp + 0xe00]
lea r8, [rsp + 0x9e0]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0xbf0]
mov qword [rsp + 0x20], r11
call fcn.14001823c
lea rdx, [rsp + 0xe00]
lea rcx, [rsp + 0x7d0]
call fcn.140016e20
lea rdx, [rsp + 0x1010]
lea rcx, [rsp + 0x7d0]
call fcn.140016e20
lea r12, [rsp + 0x7d0]
mov qword [rsp + 0x11270], r12
jmp 0x140061a9a
call fcn.1400614b0
cmp eax, ebp
jne 0x1400619c7
mov r9, qword [rdi]
lea rcx, [rsp + 0x11260]
mov r8, r13
mov rdx, r13
call fcn.140019a28
mov r9, qword [rdi]
mov esi, 4
lea rcx, [rsp + 0x30]
mov rdx, rsi
mov r8, r13
call fcn.140019a28
mov r14d, dword [rsp + 0x30]
mov r9, qword [rdi]
lea rcx, [rsp + 0x30]
mov r8, r13
mov rdx, rsi
xor r14d, 0x87bc
call fcn.140019a28
mov r9, qword [rdi]
lea rcx, [rsp + 0x30]
mov r8, r13
mov rdx, rsi
call fcn.140019a28
mov eax, dword [rsp + 0x30]
mov r9, qword [rdi]
xor eax, 0xa685
lea rcx, [rsp + 0x44]
mov r8, r13
mov rdx, rsi
mov dword [rsp + 0x38], eax
call fcn.140019a28
mov r9, qword [rdi]
lea rcx, [rsp + 0x40]
mov r8, r13
mov rdx, rsi
call fcn.140019a28
mov r9, qword [rdi]
lea rcx, [rsp + 0x4c]
mov r8, r13
mov rdx, rsi
call fcn.140019a28
mov r9, qword [rdi]
lea rcx, [rsp + 0x48]
mov r8, r13
mov rdx, rsi
call fcn.140019a28
lea rdx, [rsp + 0x5c0]
mov rcx, rdi
call fcn.14003ef50
lea rdx, [0x14009e844]
lea rcx, [rsp + 0x5c0]
call fcn.1400195fc
mov r15, rax
cmp rax, rbp
jne 0x140061b87
lea eax, [rsi + 5]
jmp 0x140061d46
mov edx, dword [rdi + 0xc]
lea rcx, [rsp + 0x4e0]
add edx, 0x2477
call fcn.14004f490
cmp r14d, ebp
mov esi, ebp
jle 0x140061c53
xor r12d, r12d
lea eax, [rsi + 0x10000]
cmp eax, r14d
jle 0x140061bbd
mov ebx, r14d
sub ebx, esi
jmp 0x140061bc2
mov ebx, 0x10000
mov r9, qword [rdi]
movsxd r13, ebx
lea rcx, [rsp + 0x1220]
mov r8, r13
mov edx, 1
add esi, ebx
call fcn.140019a28
cmp r13, r12
mov rbp, r12
jle 0x140061c0b
lea rcx, [rsp + 0x4e0]
xor edx, edx
mov r8d, 0xff
call fcn.14004f520
inc rbp
xor byte [rsp + rbp + 0x121f], al
cmp rbp, r13
jl 0x140061be7
lea rdx, [rsp + 0x1220]
lea rcx, [rsp + 0x34]
mov r8d, ebx
call fcn.14003f370
mov r8, r13
mov r13d, 1
lea rcx, [rsp + 0x1220]
mov r9, r15
mov rdx, r13
call fcn.140018ce4
cmp esi, r14d
jl 0x140061bab
mov ebx, dword [rsp + 0x34]
mov r12, qword [rsp + 0x11270]
xor ebp, ebp
mov rcx, r15
call fcn.140019694
cmp dword [rsp + 0x38], ebx
je 0x140061c6b
mov ebx, 0xa
jmp 0x140061d0f
cmp byte [rsp + 0x11260], r13b
jne 0x140061cf2
lea rdx, [rsp + 0x5c0]
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rbp
mov dword [rsp + 0x60], ebp
mov dword [rsp + 0x64], ebp
mov dword [rsp + 0x68], ebp
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], rbp
mov word [rsp + 0x88], bp
mov word [rsp + 0x292], bp
mov qword [rsp + 0x4c0], rbp
mov dword [rsp + 0x6c], ebp
mov dword [rsp + 0x70], ebp
call fcn.140016e4c
lea rcx, [rsp + 0x292]
mov rdx, r12
call fcn.140016e4c
lea rcx, [rsp + 0x50]
call fcn.140059110
cmp eax, ebp
je 0x140061d21
mov ebx, reloc.WSOCK32.dll_inet_ntoa
jmp 0x140061d0f
lea rcx, [rsp + 0x5c0]
xor r8d, r8d
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, ebp
jne 0x140061d21
mov ebx, 7
lea rcx, [rsp + 0x5c0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, ebx
jmp 0x140061d46
lea rcx, [rsp + 0x5c0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x40]
mov rdx, r12
mov rcx, rdi
call fcn.14003eed0
xor eax, eax
mov rbx, qword [rsp + 0x11268]
add rsp, 0x11220
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret