Function at 0x140015168
Capabilities:
Copy file
Delete file
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa80]
sub rsp, 0xb80
mov rax, qword [0x140042038]
xor rax, rsp
mov qword [rbp + 0xa70], rax
mov rbx, qword [rcx + 0x18]
xor edi, edi
xorps xmm0, xmm0
lea r15d, [rdi + 0x7f]
mov r13, r8
mov r14, rdx
movdqa xmmword [rsp + 0x70], xmm0
mov rsi, rcx
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x78], rdi
mov dword [rbp + 0x3e8], r15d
mov dword [rbp - 0x70], edi
mov qword [rbp - 0x68], rdi
mov qword [rbp - 0x60], rdi
mov word [rbp - 0x58], di
mov word [rbp + 0x1b0], di
mov qword [rbp + 0x418], rdi
jmp 0x1400151fc
mov rdx, rbx
mov rcx, r13
call fcn.1400174f4
test eax, eax
je 0x140015602
mov rbx, qword [rbx + 0x208]
test rbx, rbx
jne 0x1400151e2
mov qword [rsp + 0x30], rdi
lea r8d, [rbx + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140015667
lea r9, [rsp + 0x58]
lea rdx, [rsp + 0x50]
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileTime]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [0x14003704c]
mov rcx, r14
call fcn.140016604
mov rbx, rax
test rax, rax
je 0x140015667
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 2]
call fcn.1400170cc
mov rcx, rbx
call fcn.140017454
mov rcx, rbx
mov r12d, eax
call fcn.14001676c
lea rdx, [rbp + 0x650]
call fcn.140015108
lea rdx, [rbp + 0x860]
call fcn.140015108
lea rcx, [rbp - 0x58]
mov rdx, r14
xorps xmm0, xmm0
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x68], rdi
movdqa xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x60], rdi
mov word [rbp - 0x58], di
mov word [rbp + 0x1b0], di
mov qword [rbp + 0x418], rdi
mov dword [rbp + 0x3e8], r15d
mov dword [rbp - 0x70], edi
call fcn.140017878
lea rdx, [rbp + 0x650]
lea rcx, [rbp + 0x1b0]
call fcn.140017878
mov edx, dword [rsi + 0x14]
lea rcx, [rsp + 0x70]
call fcn.1400137b8
mov rax, qword [rsi]
lea rcx, [rsp + 0x70]
mov qword [rbp + 0x418], rax
call fcn.1400133bc
test eax, eax
jne 0x140015334
mov r15d, dword [rbp - 0x7c]
cmp r15d, r12d
jg 0x140015341
mov byte [rsp + 0x40], 1
jmp 0x14001535c
cmp eax, 4
jne 0x140015341
lea ebx, [rax + 6]
jmp 0x140015649
lea rdx, [rbp + 0x650]
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov byte [rsp + 0x40], dil
mov r15d, r12d
mov ebx, dword [rsi + 0x10]
lea rdx, [0x14003704c]
lea rcx, [rbp + 0x650]
call fcn.140016604
test rax, rax
je 0x140015644
lea r8, [rsp + 0x4c]
lea edx, [rbx + 0x2477]
lea rcx, [rbp + 0x860]
mov r9, rax
call fcn.140014ed8
test al, al
je 0x140015644
lea rcx, [rbp + 0x650]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, str.FILE
lea rcx, [rbp + 0x430]
call fcn.140018ad0
mov ebx, 4
lea rdx, [rbp + 0x430]
mov r8d, ebx
mov r9d, 0x18ee
call fcn.140002ae0
mov r9, qword [rsi + 8]
mov r8d, ebx
lea ebx, [r8 - 3]
lea rcx, [rbp + 0x430]
mov edx, ebx
call fcn.140016f90
lea rcx, [rbp + 0x440]
mov rdx, r13
call fcn.140017878
lea rcx, [rbp + 0x440]
call fcn.1400165e8
mov r9, qword [rsi + 8]
lea edx, [rbx + 3]
mov ecx, eax
mov r8d, ebx
mov rdi, rax
xor ecx, 0xadbc
mov dword [rsp + 0x48], ecx
lea rcx, [rsp + 0x48]
call fcn.140016f90
lea ebx, [rdi + rdi]
lea r9d, [rdi + 0xb33f]
lea rdx, [rbp + 0x440]
mov r8d, ebx
call fcn.140002ae0
mov r9, qword [rsi + 8]
lea rcx, [rbp + 0x440]
mov r8d, ebx
mov edx, 1
call fcn.140016f90
lea r9, [rsp + 0x60]
lea r8, [rbp + 0x440]
mov edx, 0x104
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea rcx, [rbp + 0x440]
call fcn.1400165e8
mov r9, qword [rsi + 8]
mov r14d, 1
mov ecx, eax
lea edx, [r14 + 3]
mov r8d, r14d
xor ecx, 0xf820
mov rdi, rax
mov dword [rsp + 0x48], ecx
lea rcx, [rsp + 0x48]
call fcn.140016f90
lea ebx, [rdi + rdi]
lea r9d, [rdi + 0xf479]
lea rdx, [rbp + 0x440]
mov r8d, ebx
call fcn.140002ae0
mov r9, qword [rsi + 8]
lea rcx, [rbp + 0x440]
mov r8d, ebx
mov edx, r14d
call fcn.140016f90
mov r9, qword [rsi + 8]
lea rcx, [rsp + 0x40]
mov r8d, r14d
mov edx, r14d
call fcn.140016f90
mov r9, qword [rsi + 8]
lea edi, [r14 + 3]
mov ebx, 0x87bc
lea rcx, [rsp + 0x44]
mov edx, edi
xor r15d, ebx
mov r8d, r14d
mov dword [rsp + 0x44], r15d
call fcn.140016f90
mov r9, qword [rsi + 8]
lea rcx, [rsp + 0x44]
xor r12d, ebx
mov r8d, r14d
mov edx, edi
mov dword [rsp + 0x44], r12d
call fcn.140016f90
mov eax, dword [rsp + 0x4c]
mov r9, qword [rsi + 8]
xor eax, 0xa685
lea rcx, [rsp + 0x44]
mov r8d, r14d
mov edx, edi
mov dword [rsp + 0x44], eax
call fcn.140016f90
mov r9, qword [rsi + 8]
lea rcx, [rsp + 0x54]
mov r8d, r14d
mov edx, edi
call fcn.140016f90
mov r9, qword [rsi + 8]
lea rcx, [rsp + 0x50]
mov r8d, r14d
mov edx, edi
call fcn.140016f90
mov r9, qword [rsi + 8]
lea rcx, [rsp + 0x5c]
mov r8d, r14d
mov edx, edi
call fcn.140016f90
mov r9, qword [rsi + 8]
lea rcx, [rsp + 0x58]
mov r8d, r14d
mov edx, edi
call fcn.140016f90
lea rdx, [0x14003704c]
lea rcx, [rbp + 0x860]
call fcn.140016604
xor r14d, r14d
test rax, rax
je 0x14001563d
mov rdx, rax
mov rcx, rsi
call fcn.14001504c
test al, al
je 0x14001563d
lea rcx, [rbp + 0x860]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdi, qword [rsi + 0x18]
test rdi, rdi
jne 0x140015609
mov ecx, 0x210
call fcn.140016d08
mov rdx, r13
mov qword [rsi + 0x18], rax
mov qword [rax + 0x208], r14
mov rcx, qword [rsi + 0x18]
call fcn.140017878
xor eax, eax
jmp 0x14001566c
mov rdi, qword [rax]
lea rax, [rdi + 0x208]
cmp qword [rax], r14
jne 0x140015606
mov ecx, 0x210
call fcn.140016d08
mov rdx, r13
mov rcx, rax
mov rbx, rax
mov qword [rdi + 0x208], rax
call fcn.140017878
mov qword [rbx + 0x208], r14
jmp 0x140015602
mov ebx, 9
jmp 0x140015656
mov ebx, 9
lea rcx, [rbp + 0x650]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp + 0x860]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, ebx
jmp 0x14001566c
mov eax, 2
mov rcx, qword [rbp + 0xa70]
xor rcx, rsp
call fcn.140015ef0
mov rbx, qword [rsp + 0xbd8]
add rsp, 0xb80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret