Function at 0x1400095c0
Capabilities:
Delete file
Get common file path
Move file
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1140
call fcn.1401c4560
sub rsp, rax
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x1158], rbx
mov rax, qword [0x141d1d8e8]
xor rax, rbp
mov qword [rbp + 0x10f0], rax
mov dword [rbp + 0x14], r9d
mov ebx, r8d
mov r12, rdx
mov qword [rbp + 0x28], rdx
mov r13, rcx
mov r15, 0xffffffffffffffff
mov qword [rbp + 0x18], r15
mov rdi, r15
mov qword [rbp], r15
xor esi, esi
lea rax, [rbp + 0xcd0]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xee0]
lea r8, [rbp + 0xac0]
lea rdx, [rbp + 0x8b0]
mov rcx, r12
call fcn.1401cd288
lea rdx, [rbp + 0x8b0]
lea rcx, [rbp + 0x6a0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rbp + 0xac0]
lea rcx, [rbp + 0x6a0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, r12
lea rcx, [rbp + 0x490]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, str..bak
lea rcx, [rbp + 0x490]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r9, [rbp + 0x280]
xor r8d, r8d
lea rdx, [0x1401f92f0]
lea rcx, [rbp + 0x6a0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x14000991e
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rbp + 0x280]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
mov qword [rbp + 0x18], rax
cmp rax, rdi
je 0x14000991e
cmp ebx, edi
jne 0x1400096fb
mov ebx, dword [r13 + 0x4c]
movsxd rcx, ebx
lea rdx, section..data
mov rdx, qword [rdx + rcx*8]
mov qword [rbp + 0x20], rdx
mov r14, 0xffffffffffffffff
inc r14
cmp byte [rdx + r14], 0
jne 0x140009714
mov eax, dword [r13 + 0x68]
mov dword [rbp + 0xc], eax
mov edi, esi
mov dword [rbp + 0x10], esi
movabs r9, 0xffffffffffffff0
cmp edi, eax
jge 0x140009867
movsxd rcx, edi
test edi, edi
js 0x140009974
cmp rcx, qword [r13 + 0x68]
jge 0x140009974
mov r8, qword [r13 + 0x60]
lea rax, [rcx + rcx*4]
mov r12d, dword [r8 + rax*4 + 8]
test r12d, r12d
jle 0x140009826
lea rax, [rcx + rcx*4]
mov r8, qword [r8 + rax*4]
test r8, r8
je 0x1400097f5
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [r8 + rax*2], 0
jne 0x140009780
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jg 0x1400097f5
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x1400097ac
mov rcx, r9
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1401c4560
sub rsp, rcx
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x1400097f5
mov byte [rbx], 0
lea eax, [rdx + rdx]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
xor edx, edx
lea ecx, [rdx + 3]
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove rbx, rsi
jmp 0x1400097f8
mov rbx, rsi
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 8]
mov r8d, r12d
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000991a
cmp r12d, dword [rbp + 8]
jne 0x14000991a
mov rdx, qword [rbp + 0x20]
mov eax, dword [rbp + 0xc]
dec eax
cmp edi, eax
jge 0x140009856
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 8]
mov r8d, r14d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000991a
cmp r14d, dword [rbp + 8]
jne 0x14000991a
inc edi
mov dword [rbp + 0x10], edi
mov eax, dword [rbp + 0xc]
mov rdx, qword [rbp + 0x20]
jmp 0x14000972a
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, 0xffffffffffffffff
mov qword [rbp + 0x18], r15
mov r12, qword [rbp + 0x28]
mov rcx, r12
cmp dword [r13 + 0x50], 0
je 0x1400098d2
lea rdx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
mov qword [rbp], rax
cmp rax, r15
je 0x1400098dc
lea rcx, [rbp + 0x490]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rbp + 0x490]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x14000991e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rdi, r15
mov qword [rbp], r15
jmp 0x1400098dc
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdi, qword [rbp]
mov rdx, r12
lea rcx, [rbp + 0x280]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x14000991e
cmp dword [rbp + 0x14], 0
je 0x140009913
mov rax, qword [r13]
xor edx, edx
mov rcx, r13
call qword [rax + 0xa8]
mov eax, dword [r13 + 0xa8]
mov dword [r13 + 0xac], eax
mov esi, 1
jmp 0x14000991e
mov rdi, qword [rbp]
cmp rdi, 0xffffffffffffffff
je 0x14000992d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp r15, 0xffffffffffffffff
je 0x14000993c
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp + 0x280]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, esi
mov rcx, qword [rbp + 0x10f0]
xor rcx, rbp
call fcn.1401c45c0
mov rbx, qword [rbp + 0x1158]
lea rsp, [rbp + 0x1100]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140024678
nop
int3