Function at 0x1401b5530
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp + 0x2f], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov r15, rdx
mov rsi, rcx
mov eax, dword [rdx + 8]
test eax, eax
jle 0x1401b58fc
xor r13d, r13d
mov r12d, r13d
test eax, eax
jle 0x1401b58fc
mov r14d, r13d
lea rdi, vtable.Core::Array_class_Core::Xml::XmlElement____ptr64_.0
nop dword [rax]
nop dword [rax + rax]
mov ebx, r13d
mov rax, qword [r15 + 0x10]
lea r8, str.path
lea rdx, [rbp - 0x59]
mov rcx, qword [r14 + rax]
call fcn.1402018f0
nop
mov rdx, qword [rbp - 0x59]
lea rcx, str.____File:__s_r_n
call fcn.1401b1eb0
cmp dword [rbp - 0x4d], 0
jle 0x1401b58dc
mov r8d, 1
lea rdx, [0x140345f98]
lea rcx, [rbp - 0x59]
call fcn.1401fc9f0
test al, al
je 0x1401b562f
lea rdx, [rbp - 0x59]
mov rcx, rsi
call fcn.1401b5f10
movzx ebx, al
test al, al
jne 0x1401b5613
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 2]
cmp ecx, 1
jbe 0x1401b5611
mov edx, eax
lea rcx, str._tError__d_r_n
call fcn.1401b1eb0
jmp 0x1401b5623
mov bl, 1
lea rcx, [rsi + 0xb0]
mov rax, qword [rcx]
lea rdx, [rbp - 0x59]
call qword [rax]
neg bl
sbb ebx, ebx
add ebx, 2
jmp 0x1401b58cb
mov qword [rbp + 0x17], rdi
mov dword [rbp + 0x1f], r13d
mov qword [rbp + 0x27], r13
mov qword [rbp - 0x31], r13
mov edx, 0xa
lea rcx, [rbp - 0x39]
call fcn.1401fcb40
mov eax, dword [rbp - 0x31]
inc eax
movsxd rdx, eax
mov r9d, 0xa
lea r8, str.SectorData
mov rcx, qword [rbp - 0x39]
call fcn.1402ba94c
mov edx, 0xa
lea rcx, [rbp - 0x39]
call fcn.1401fde50
nop
mov rax, qword [r15 + 0x10]
lea r8, [rbp + 0x17]
lea rdx, [rbp - 0x39]
mov rcx, qword [r14 + rax]
call fcn.1402046f0
test eax, eax
setg dil
cmp dword [rbp - 0x31], 0
jle 0x1401b56a4
mov rcx, qword [rbp - 0x39]
call fcn.1402b7350
test dil, dil
je 0x1401b56cd
cmp byte [rsi + 8], 0
jne 0x1401b58b6
mov rax, qword [r15 + 0x10]
xor r8d, r8d
mov rdx, qword [r14 + rax]
mov rcx, rsi
call fcn.1401b63d0
mov ebx, eax
jmp 0x1401b58a7
mov rax, qword [r15 + 0x10]
lea r8, str.rootkit
lea rdx, [rbp + 7]
mov rcx, qword [r14 + rax]
call fcn.1402018f0
nop
mov rax, qword [r15 + 0x10]
lea r8, str.repair
lea rdx, [rbp - 0x49]
mov rcx, qword [r14 + rax]
call fcn.1402018f0
nop
mov rax, qword [r15 + 0x10]
lea r8, str.replacement
lea rdx, [rbp - 0x19]
mov rcx, qword [r14 + rax]
call fcn.1402018f0
nop
xor r8d, r8d
lea rdx, [0x14034b530]
lea rcx, [rbp + 7]
call fcn.1401fce20
movzx edi, al
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x29]
call fcn.1400d2fc0
nop
mov r8, qword [rsi + 0xb0]
lea rdx, [rbp - 0x29]
lea rcx, [rsi + 0xb0]
call qword [r8 + 0x10]
test al, al
jne 0x1401b576a
mov rax, qword [rsi + 0xb0]
lea rdx, [rbp - 0x29]
lea rcx, [rsi + 0xb0]
call qword [rax]
cmp dword [rbp - 0xd], 0
jle 0x1401b5787
movzx r9d, byte [rsi + 8]
lea r8, [rbp - 0x19]
lea rdx, [rbp - 0x59]
call fcn.1401b7120
jmp 0x1401b5866
cmp byte [rsi + 8], 0
jne 0x1401b5818
cmp dword [rbp - 0x3d], 0
jle 0x1401b5812
xor r8d, r8d
mov rdx, qword [rbp - 0x59]
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1401b57b6
mov ebx, 1
jmp 0x1401b5868
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401b57d4
and eax, 0xfffffffc
mov edx, eax
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor r8d, r8d
mov rdx, qword [rbp - 0x59]
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1401b57ac
mov rbx, qword [rbp - 0x59]
mov rdi, qword [rbp - 0x49]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov r9, rbx
mov r8, rdi
lea rcx, str.CopyFileW___failed__error__d__r_nSource_s_r_nDestination_s_r_n
call fcn.1401b1eb0
mov ebx, 3
jmp 0x1401b5868
movzx r8d, dil
jmp 0x1401b585a
cmp dword [rbp - 0x3d], 0
jle 0x1401b5857
test dil, dil
je 0x1401b5797
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 9]
call fcn.1401b7650
nop
xor r8d, r8d
lea rdx, [rbp - 9]
mov rcx, rsi
call fcn.1401b7700
mov ebx, eax
cmp dword [rbp - 1], 0
jle 0x1401b5868
mov rcx, qword [rbp - 9]
call fcn.1402b7350
jmp 0x1401b5868
xor r8d, r8d
lea rdx, [rbp - 0x59]
mov rcx, rsi
call fcn.1401b7700
mov ebx, eax
cmp dword [rbp - 0x21], 0
jle 0x1401b5878
mov rcx, qword [rbp - 0x29]
call fcn.1402b7350
nop
cmp dword [rbp - 0x11], 0
jle 0x1401b5888
mov rcx, qword [rbp - 0x19]
call fcn.1402b7350
nop
cmp dword [rbp - 0x41], 0
jle 0x1401b5898
mov rcx, qword [rbp - 0x49]
call fcn.1402b7350
nop
cmp dword [rbp + 0xf], 0
jle 0x1401b58a7
mov rcx, qword [rbp + 7]
call fcn.1402b7350
cmp byte [rsi + 8], 0
jne 0x1401b58b6
cmp ebx, 2
jne 0x1401b58b6
mov byte [rsi + 0x11], 1
mov rcx, qword [rbp + 0x27]
test rcx, rcx
je 0x1401b58c4
call fcn.1402b712c
lea rdi, vtable.Core::Array_class_Core::Xml::XmlElement____ptr64_.0
lea rdx, [rsi + 0x40]
mov r9d, ebx
lea r8, [rbp - 0x59]
call fcn.1401b9c80
nop
cmp dword [rbp - 0x51], 0
jle 0x1401b58eb
mov rcx, qword [rbp - 0x59]
call fcn.1402b7350
inc r12d
add r14, 8
cmp r12d, dword [r15 + 8]
jl 0x1401b5590
mov al, 1
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret