Function at 0x1401b8ba0
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 0x1401b8f6c
xor r13d, r13d
mov r12d, r13d
test eax, eax
jle 0x1401b8f6c
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.1402075e0
nop
mov rdx, qword [rbp - 0x59]
lea rcx, str.____File:__s_r_n
call fcn.1401b5550
cmp dword [rbp - 0x4d], 0
jle 0x1401b8f4c
mov r8d, 1
lea rdx, [0x14034c088]
lea rcx, [rbp - 0x59]
call fcn.140202750
test al, al
je 0x1401b8c9f
lea rdx, [rbp - 0x59]
mov rcx, rsi
call fcn.1401b9580
movzx ebx, al
test al, al
jne 0x1401b8c83
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 2]
cmp ecx, 1
jbe 0x1401b8c81
mov edx, eax
lea rcx, str._tError__d_r_n
call fcn.1401b5550
jmp 0x1401b8c93
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 0x1401b8f3b
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.1402028a0
mov eax, dword [rbp - 0x31]
inc eax
movsxd rdx, eax
mov r9d, 0xa
lea r8, str.SectorData
mov rcx, qword [rbp - 0x39]
call fcn.1402c06dc
mov edx, 0xa
lea rcx, [rbp - 0x39]
call fcn.140203bb0
nop
mov rax, qword [r15 + 0x10]
lea r8, [rbp + 0x17]
lea rdx, [rbp - 0x39]
mov rcx, qword [r14 + rax]
call fcn.14020a3e0
test eax, eax
setg dil
cmp dword [rbp - 0x31], 0
jle 0x1401b8d14
mov rcx, qword [rbp - 0x39]
call fcn.1402bd0e0
test dil, dil
je 0x1401b8d3d
cmp byte [rsi + 8], 0
jne 0x1401b8f26
mov rax, qword [r15 + 0x10]
xor r8d, r8d
mov rdx, qword [r14 + rax]
mov rcx, rsi
call fcn.1401b9a40
mov ebx, eax
jmp 0x1401b8f17
mov rax, qword [r15 + 0x10]
lea r8, str.rootkit
lea rdx, [rbp + 7]
mov rcx, qword [r14 + rax]
call fcn.1402075e0
nop
mov rax, qword [r15 + 0x10]
lea r8, str.repair
lea rdx, [rbp - 0x49]
mov rcx, qword [r14 + rax]
call fcn.1402075e0
nop
mov rax, qword [r15 + 0x10]
lea r8, str.replacement
lea rdx, [rbp - 0x19]
mov rcx, qword [r14 + rax]
call fcn.1402075e0
nop
xor r8d, r8d
lea rdx, [0x140351b10]
lea rcx, [rbp + 7]
call fcn.140202b80
movzx edi, al
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x29]
call fcn.1400d4470
nop
mov r8, qword [rsi + 0xb0]
lea rdx, [rbp - 0x29]
lea rcx, [rsi + 0xb0]
call qword [r8 + 0x10]
test al, al
jne 0x1401b8dda
mov rax, qword [rsi + 0xb0]
lea rdx, [rbp - 0x29]
lea rcx, [rsi + 0xb0]
call qword [rax]
cmp dword [rbp - 0xd], 0
jle 0x1401b8df7
movzx r9d, byte [rsi + 8]
lea r8, [rbp - 0x19]
lea rdx, [rbp - 0x59]
call fcn.1401ba930
jmp 0x1401b8ed6
cmp byte [rsi + 8], 0
jne 0x1401b8e88
cmp dword [rbp - 0x3d], 0
jle 0x1401b8e82
xor r8d, r8d
mov rdx, qword [rbp - 0x59]
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1401b8e26
mov ebx, 1
jmp 0x1401b8ed8
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401b8e44
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 0x1401b8e1c
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.1401b5550
mov ebx, 3
jmp 0x1401b8ed8
movzx r8d, dil
jmp 0x1401b8eca
cmp dword [rbp - 0x3d], 0
jle 0x1401b8ec7
test dil, dil
je 0x1401b8e07
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 9]
call fcn.1401bae60
nop
xor r8d, r8d
lea rdx, [rbp - 9]
mov rcx, rsi
call fcn.1401baf10
mov ebx, eax
cmp dword [rbp - 1], 0
jle 0x1401b8ed8
mov rcx, qword [rbp - 9]
call fcn.1402bd0e0
jmp 0x1401b8ed8
xor r8d, r8d
lea rdx, [rbp - 0x59]
mov rcx, rsi
call fcn.1401baf10
mov ebx, eax
cmp dword [rbp - 0x21], 0
jle 0x1401b8ee8
mov rcx, qword [rbp - 0x29]
call fcn.1402bd0e0
nop
cmp dword [rbp - 0x11], 0
jle 0x1401b8ef8
mov rcx, qword [rbp - 0x19]
call fcn.1402bd0e0
nop
cmp dword [rbp - 0x41], 0
jle 0x1401b8f08
mov rcx, qword [rbp - 0x49]
call fcn.1402bd0e0
nop
cmp dword [rbp + 0xf], 0
jle 0x1401b8f17
mov rcx, qword [rbp + 7]
call fcn.1402bd0e0
cmp byte [rsi + 8], 0
jne 0x1401b8f26
cmp ebx, 2
jne 0x1401b8f26
mov byte [rsi + 0x11], 1
mov rcx, qword [rbp + 0x27]
test rcx, rcx
je 0x1401b8f34
call fcn.1402bcebc
lea rdi, vtable.Core::Array_class_Core::Xml::XmlElement____ptr64_.0
lea rdx, [rsi + 0x40]
mov r9d, ebx
lea r8, [rbp - 0x59]
call fcn.1401bd4a0
nop
cmp dword [rbp - 0x51], 0
jle 0x1401b8f5b
mov rcx, qword [rbp - 0x59]
call fcn.1402bd0e0
inc r12d
add r14, 8
cmp r12d, dword [r15 + 8]
jl 0x1401b8c00
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