Function at 0x140036020
Capabilities:
Copy file
Delete file
Get file attributes

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1a8]
sub rsp, 0x280
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14005b010]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rsi, rdx
mov qword [rsp + 0x30], rcx
xor ebx, ebx
mov edi, ebx
mov dword [rsp + 0x20], ebx
call fcn.140010170
mov r13, rax
lea rcx, [rsi + 8]
cmp qword [rsi + 0x20], 8
jb 0x140036086
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or r14d, 0xffffffff
cmp eax, r14d
je 0x1400366be
test al, 0x10
je 0x1400366be
lea rcx, [rsi + 0x60]
cmp qword [rsi + 0x78], 8
jb 0x1400360af
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, r14d
je 0x140036649
test al, 0x10
je 0x140036649
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rbx
lea rax, [rbp + 0x88]
mov qword [rsp + 0x20], rax
mov r14d, 7
mov qword [rbp + 0xa8], r14
mov qword [rbp + 0xa0], rbx
mov word [rbp + 0x90], bx
lea rdx, [rsi + 0x28]
or r15, 0xffffffffffffffff
mov r9, r15
xor r8d, r8d
lea rcx, [rbp + 0x88]
call fcn.140005514
nop
mov qword [rbp + 0x100], r14
mov qword [rbp + 0xf8], rbx
mov word [rbp + 0xe8], bx
mov r9, r15
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp + 0xe0]
call fcn.140005514
nop
lea r9, [rsp + 0x38]
mov r8b, byte [rsi + 0x50]
lea rdx, [rbp + 0x88]
lea rcx, [rbp + 0xe0]
call fcn.14001b654
mov r14, rbx
mov r15, rbx
mov r8, qword [rsp + 0x40]
test r8, r8
jne 0x140036172
mov rdx, rbx
jmp 0x140036195
mov rcx, qword [rsp + 0x48]
sub rcx, r8
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r14, rdx
jae 0x14003660f
lea rdx, [r8 + r15]
mov qword [rbp + 0xd0], 7
mov qword [rbp + 0xc8], rbx
mov word [rbp + 0xb8], bx
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp + 0xb0]
call fcn.140005514
nop
mov eax, 0x5c
mov word [rsp + 0x20], ax
lea r9d, [rax - 0x5b]
or r8, 0xffffffffffffffff
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0xb0]
call fcn.140035228
mov qword [rbp + 0x140], 7
mov qword [rbp + 0x138], rbx
mov word [rbp + 0x128], bx
lea rbx, [rax + 1]
or r9, 0xffffffffffffffff
mov r8, rbx
lea rdx, [rbp + 0xb0]
lea rcx, [rbp + 0x120]
call fcn.140005514
or edi, 4
mov dword [rsp + 0x20], edi
mov r8, qword [rsi + 0x18]
cmp r8, rbx
jae 0x14003626b
mov qword [rbp + 0x80], 7
xor ebx, ebx
mov qword [rbp + 0x78], rbx
mov word [rbp + 0x68], bx
or r9, 0xffffffffffffffff
lea rdx, [rbp + 0xb0]
lea rcx, [rbp + 0x60]
call fcn.140005514
lea rdx, [rbp + 0x60]
or edi, 9
jmp 0x1400362a6
mov qword [rbp + 0x168], 7
xor ebx, ebx
mov qword [rbp + 0x160], rbx
mov word [rbp + 0x150], bx
xor r8d, r8d
lea rdx, [0x14004a0dc]
lea rcx, [rbp + 0x148]
call fcn.1400053ec
lea rdx, [rbp + 0x148]
or edi, 2
mov dword [rsp + 0x20], edi
mov qword [rbp + 0x100], 7
mov qword [rbp + 0xf8], rbx
mov word [rbp + 0xe8], bx
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp + 0xe0]
call fcn.140005514
nop
test dil, 2
je 0x14003630f
and edi, 0xfffffffd
cmp qword [rbp + 0x168], 8
jb 0x1400362f6
mov rcx, qword [rbp + 0x150]
call fcn.1400110f8
mov qword [rbp + 0x168], 7
mov qword [rbp + 0x160], rbx
mov word [rbp + 0x150], bx
test dil, 1
je 0x14003633e
and edi, 0xfffffffe
cmp qword [rbp + 0x80], 8
jb 0x14003632b
mov rcx, qword [rbp + 0x68]
call fcn.1400110f8
mov qword [rbp + 0x80], 7
mov qword [rbp + 0x78], rbx
mov word [rbp + 0x68], bx
lea r8, [rbp + 0xe0]
lea rdx, [rsi + 0x58]
lea rcx, [rbp + 0x88]
call fcn.140008f2c
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0x50
lea rcx, [rbp + 0x88]
call fcn.14001ba70
mov edx, 3
lea r8d, [rdx - 2]
lea rcx, [rsp + 0x60]
call fcn.14000b65c
nop
lea r8, [rbp + 0x120]
lea rdx, [rbp + 0x88]
lea rcx, [rbp + 0x60]
call fcn.140008f2c
mov rbx, rax
lea rdx, str.Spitting_File:
lea rcx, [rsp + 0x70]
call fcn.14000aa8c
mov rcx, rax
lea rdx, [rbp + 0xb0]
call fcn.14000acc0
mov rcx, rax
lea rdx, str._To_location:
call fcn.14000aa8c
mov rcx, rax
mov rdx, rbx
call fcn.14000acc0
nop
cmp qword [rbp + 0x80], 8
jb 0x1400363e7
mov rcx, qword [rbp + 0x68]
call fcn.1400110f8
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x78]
call fcn.14001097c
or edi, 0x10
mov edx, 2
lea rcx, [rbp + 0x60]
call fcn.140013160
nop
cmp qword [rbp + 0x80], 8
jb 0x14003641a
mov rcx, qword [rbp + 0x68]
call fcn.1400110f8
lea r8, [rbp + 0x120]
lea rdx, [rbp + 0x88]
lea rcx, [rbp + 0x60]
call fcn.140008f2c
lea rdx, [rax + 8]
cmp qword [rax + 0x20], 8
jb 0x14003643f
mov rdx, qword [rdx]
lea rcx, [rbp + 0xb8]
cmp qword [rbp + 0xd0], 8
cmovae rcx, qword [rbp + 0xb8]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
sete bl
cmp qword [rbp + 0x80], 8
jb 0x140036477
mov rcx, qword [rbp + 0x68]
call fcn.1400110f8
test bl, bl
je 0x1400364c3
mov qword [rbp + 0x80], 7
xor ebx, ebx
mov qword [rbp + 0x78], rbx
mov word [rbp + 0x68], bx
lea r8d, [rbx + 8]
lea rdx, str.CopyFile
lea rcx, [rbp + 0x60]
call fcn.1400053ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
lea rdx, [rbp + 0x60]
call fcn.140012d24
jmp 0x1400364c5
xor ebx, ebx
mov r8b, 1
lea rdx, [fcn.1400131d0]
mov rcx, r13
call fcn.14001e2d8
test al, al
je 0x140036541
lea rcx, [rbp + 0xb8]
cmp qword [rbp + 0xd0], 8
cmovae rcx, qword [rbp + 0xb8]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140036541
mov qword [rbp + 0x80], 7
mov qword [rbp + 0x78], rbx
mov word [rbp + 0x68], bx
lea r8d, [rax + 0xa]
lea rdx, str.DeleteFile
lea rcx, [rbp + 0x60]
call fcn.1400053ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
lea rdx, [rbp + 0x60]
call fcn.140013d9c
nop
lea rcx, [rbp - 8]
call fcn.14000c1e4
nop
lea rax, [0x1400422a0]
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140011e54
nop
cmp qword [rbp + 0xa8], 8
jb 0x140036576
mov rcx, qword [rbp + 0x90]
call fcn.1400110f8
mov qword [rbp + 0xa8], 7
mov qword [rbp + 0xa0], rbx
mov word [rbp + 0x90], bx
cmp qword [rbp + 0x100], 8
jb 0x1400365a5
mov rcx, qword [rbp + 0xe8]
call fcn.1400110f8
mov qword [rbp + 0x100], 7
mov qword [rbp + 0xf8], rbx
mov word [rbp + 0xe8], bx
cmp qword [rbp + 0x140], 8
jb 0x1400365d4
mov rcx, qword [rbp + 0x128]
call fcn.1400110f8
mov qword [rbp + 0x140], 7
mov qword [rbp + 0x138], rbx
mov word [rbp + 0x128], bx
cmp qword [rbp + 0xd0], 8
jb 0x140036603
mov rcx, qword [rbp + 0xb8]
call fcn.1400110f8
inc r14
add r15, 0x28
jmp 0x140036163
lea rcx, [rsp + 0x38]
call fcn.14000ead0
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140012560
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov edx, 3
lea r8d, [rdx - 2]
lea rcx, [rsp + 0x60]
call fcn.14000b65c
nop
lea rdx, str.The_target_path
lea rcx, [rsp + 0x70]
call fcn.14000aa8c
mov rcx, rax
lea rdx, [rsi + 0x58]
call fcn.14000acc0
mov rcx, rax
lea rdx, str._does_not_exist
call fcn.14000aa8c
lea rdx, [rbp + 0x88]
lea rcx, [rsp + 0x60]
call fcn.140010ae4
nop
mov rdx, rax
lea rcx, [rbp + 0xe0]
call fcn.14000b9a0
lea rdx, [0x140059290]
lea rcx, [rbp + 0xe0]
call sub.msvcrt.dll__CxxThrowException
nop
mov edx, 3
lea r8d, [rdx - 2]
lea rcx, [rsp + 0x60]
call fcn.14000b65c
nop
lea rdx, str.The_source_path
lea rcx, [rsp + 0x70]
call fcn.14000aa8c
mov rcx, rax
mov rdx, rsi
call fcn.14000acc0
mov rcx, rax
lea rdx, str._does_not_exist
call fcn.14000aa8c
lea rdx, [rbp + 0x88]
lea rcx, [rsp + 0x60]
call fcn.140010ae4
nop
mov rdx, rax
lea rcx, [rbp + 0xe0]
call fcn.14000b9a0
lea rdx, [0x140059290]
lea rcx, [rbp + 0xe0]
call sub.msvcrt.dll__CxxThrowException
int3