Function at 0x1401b6b40
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 0x1401b6f0c
xor r13d, r13d
mov r12d, r13d
test eax, eax
jle 0x1401b6f0c
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.140204010
nop
mov rdx, qword [rbp - 0x59]
lea rcx, str.____File:__s_r_n
call fcn.1401b34f0
cmp dword [rbp - 0x4d], 0
jle 0x1401b6eec
mov r8d, 1
lea rdx, [0x140347f58]
lea rcx, [rbp - 0x59]
call fcn.1401ff110
test al, al
je 0x1401b6c3f
lea rdx, [rbp - 0x59]
mov rcx, rsi
call fcn.1401b7520
movzx ebx, al
test al, al
jne 0x1401b6c23
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 2]
cmp ecx, 1
jbe 0x1401b6c21
mov edx, eax
lea rcx, str._tError__d_r_n
call fcn.1401b34f0
jmp 0x1401b6c33
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 0x1401b6edb
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.1401ff260
mov eax, dword [rbp - 0x31]
inc eax
movsxd rdx, eax
mov r9d, 0xa
lea r8, str.SectorData
mov rcx, qword [rbp - 0x39]
call fcn.1402bd21c
mov edx, 0xa
lea rcx, [rbp - 0x39]
call fcn.140200570
nop
mov rax, qword [r15 + 0x10]
lea r8, [rbp + 0x17]
lea rdx, [rbp - 0x39]
mov rcx, qword [r14 + rax]
call fcn.140206e10
test eax, eax
setg dil
cmp dword [rbp - 0x31], 0
jle 0x1401b6cb4
mov rcx, qword [rbp - 0x39]
call fcn.1402b9c20
test dil, dil
je 0x1401b6cdd
cmp byte [rsi + 8], 0
jne 0x1401b6ec6
mov rax, qword [r15 + 0x10]
xor r8d, r8d
mov rdx, qword [r14 + rax]
mov rcx, rsi
call fcn.1401b79e0
mov ebx, eax
jmp 0x1401b6eb7
mov rax, qword [r15 + 0x10]
lea r8, str.rootkit
lea rdx, [rbp + 7]
mov rcx, qword [r14 + rax]
call fcn.140204010
nop
mov rax, qword [r15 + 0x10]
lea r8, str.repair
lea rdx, [rbp - 0x49]
mov rcx, qword [r14 + rax]
call fcn.140204010
nop
mov rax, qword [r15 + 0x10]
lea r8, str.replacement
lea rdx, [rbp - 0x19]
mov rcx, qword [r14 + rax]
call fcn.140204010
nop
xor r8d, r8d
lea rdx, [0x14034d4f0]
lea rcx, [rbp + 7]
call fcn.1401ff540
movzx edi, al
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x29]
call fcn.1400d2ff0
nop
mov r8, qword [rsi + 0xb0]
lea rdx, [rbp - 0x29]
lea rcx, [rsi + 0xb0]
call qword [r8 + 0x10]
test al, al
jne 0x1401b6d7a
mov rax, qword [rsi + 0xb0]
lea rdx, [rbp - 0x29]
lea rcx, [rsi + 0xb0]
call qword [rax]
cmp dword [rbp - 0xd], 0
jle 0x1401b6d97
movzx r9d, byte [rsi + 8]
lea r8, [rbp - 0x19]
lea rdx, [rbp - 0x59]
call fcn.1401b8730
jmp 0x1401b6e76
cmp byte [rsi + 8], 0
jne 0x1401b6e28
cmp dword [rbp - 0x3d], 0
jle 0x1401b6e22
xor r8d, r8d
mov rdx, qword [rbp - 0x59]
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1401b6dc6
mov ebx, 1
jmp 0x1401b6e78
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401b6de4
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 0x1401b6dbc
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.1401b34f0
mov ebx, 3
jmp 0x1401b6e78
movzx r8d, dil
jmp 0x1401b6e6a
cmp dword [rbp - 0x3d], 0
jle 0x1401b6e67
test dil, dil
je 0x1401b6da7
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 9]
call fcn.1401b8c60
nop
xor r8d, r8d
lea rdx, [rbp - 9]
mov rcx, rsi
call fcn.1401b8d10
mov ebx, eax
cmp dword [rbp - 1], 0
jle 0x1401b6e78
mov rcx, qword [rbp - 9]
call fcn.1402b9c20
jmp 0x1401b6e78
xor r8d, r8d
lea rdx, [rbp - 0x59]
mov rcx, rsi
call fcn.1401b8d10
mov ebx, eax
cmp dword [rbp - 0x21], 0
jle 0x1401b6e88
mov rcx, qword [rbp - 0x29]
call fcn.1402b9c20
nop
cmp dword [rbp - 0x11], 0
jle 0x1401b6e98
mov rcx, qword [rbp - 0x19]
call fcn.1402b9c20
nop
cmp dword [rbp - 0x41], 0
jle 0x1401b6ea8
mov rcx, qword [rbp - 0x49]
call fcn.1402b9c20
nop
cmp dword [rbp + 0xf], 0
jle 0x1401b6eb7
mov rcx, qword [rbp + 7]
call fcn.1402b9c20
cmp byte [rsi + 8], 0
jne 0x1401b6ec6
cmp ebx, 2
jne 0x1401b6ec6
mov byte [rsi + 0x11], 1
mov rcx, qword [rbp + 0x27]
test rcx, rcx
je 0x1401b6ed4
call fcn.1402b99fc
lea rdi, vtable.Core::Array_class_Core::Xml::XmlElement____ptr64_.0
lea rdx, [rsi + 0x40]
mov r9d, ebx
lea r8, [rbp - 0x59]
call fcn.1401bb2a0
nop
cmp dword [rbp - 0x51], 0
jle 0x1401b6efb
mov rcx, qword [rbp - 0x59]
call fcn.1402b9c20
inc r12d
add r14, 8
cmp r12d, dword [r15 + 8]
jl 0x1401b6ba0
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