Function at 0x140013140
Capabilities:
Delete file
Enumerate files on windows
Get common file path
Move file

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1560]
mov eax, 0x1660
call fcn.14001d250
sub rsp, rax
mov qword [rbp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x16a8], rbx
movzx ebx, dl
mov r12, rcx
lea r13, [rcx + 0x18]
xor edx, edx
mov rcx, r13
call fcn.1400484dc
test eax, eax
jne 0x140013927
xor eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x38], eax
lea r8, [rbp - 0x58]
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x140013927
mov eax, dword [r12 + 0x220]
test eax, eax
jle 0x1400131d7
cmp dword [rbp - 0x3c], 0
jne 0x1400131df
shl eax, 0xa
cmp dword [rbp - 0x38], eax
ja 0x1400131df
test bl, bl
je 0x140013927
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xb10]
call fcn.14003dad0
xor r9d, r9d
lea r8, [rbp + 0xb10]
mov edx, 0x104
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
xor esi, esi
mov word [rsp + 0x60], si
xor eax, eax
mov dword [rsp + 0x62], eax
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x900]
call fcn.14003dad0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xd20]
call fcn.14003dad0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1140]
call fcn.14003dad0
mov qword [rsp + 0x40], 0x104
lea rax, [rbp + 0x1140]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0x104
lea rax, [rbp + 0xd20]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x104
lea r9, [rbp + 0x900]
lea r8d, [rsi + 3]
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0xb10]
call fcn.140048838
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x4e0]
call fcn.14003dad0
lea rax, [rbp + 0x900]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
lea r8, [0x140079438]
mov edx, 0x104
lea rcx, [rbp + 0x4e0]
call fcn.14000eed0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x6f0]
call fcn.14003dad0
lea rax, [rbp + 0xd20]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x4e0]
lea r8, [0x140079438]
mov edx, 0x104
lea rcx, [rbp + 0x6f0]
call fcn.14000eed0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xf30]
call fcn.14003dad0
lea rax, str._.log
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x6f0]
lea r8, [0x140079438]
mov edx, 0x104
lea rcx, [rbp + 0xf30]
call fcn.14000eed0
xor edx, edx
mov r8d, 0x250
lea rcx, [rbp + 0x290]
call fcn.14003dad0
lea rdx, [rbp + 0x290]
lea rcx, [rbp + 0xf30]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400138bc
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rsi
call fcn.140016110
mov qword [rsp + 0x50], rax
lea rdx, [rbp + 0x2bc]
lea rcx, [rbp - 0x80]
call fcn.140005160
nop
mov rax, qword [rbp + 0x2a4]
mov qword [rbp - 0x60], rax
movzx eax, byte [rbp + 0x15a0]
mov byte [rsp + 0x20], al
lea r9, [rbp - 0x80]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x50]
call fcn.140016fe0
nop
lea rcx, [rbp - 0x80]
call fcn.140005110
lea rdx, [rbp + 0x290]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140013475
movzx ebx, byte [rbp + 0x15a0]
nop word [rax + rax]
lea rdx, [rbp + 0x2bc]
lea rcx, [rbp - 0x80]
call fcn.140005160
nop
mov rax, qword [rbp + 0x2a4]
mov qword [rbp - 0x60], rax
mov byte [rsp + 0x20], bl
lea r9, [rbp - 0x80]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x50]
call fcn.140016fe0
nop
lea rcx, [rbp - 0x80]
call fcn.140005110
xor edx, edx
mov r8d, 0x250
lea rcx, [rbp + 0x290]
call fcn.14003dad0
lea rdx, [rbp + 0x290]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140013410
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r15, qword [rsp + 0x58]
cmp r15, 9
jne 0x1400134ee
mov rbx, qword [rsp + 0x50]
mov rbx, qword [rbx]
lea rcx, [rbx + 0x20]
call fcn.140007530
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x900]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
lea r8, str._s_s_s
mov edx, 0x104
lea rcx, [rbp + 0x80]
call fcn.14000eed0
lea rcx, [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r8, rbx
lea rdx, [rbp + 0x15b0]
lea rcx, [rsp + 0x50]
call fcn.140014700
mov r15, qword [rsp + 0x58]
inc r15
xor edi, edi
mov qword [rsp + 0x68], rdi
mov r14d, edi
mov qword [rsp + 0x70], rdi
xor r8d, r8d
xor edx, edx
call fcn.1400160b0
mov rsi, rax
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x50]
mov rbx, qword [rax]
cmp rbx, rax
je 0x1400137fc
lea rcx, [rbp - 0x30]
call fcn.140005520
mov qword [rsp + 0x78], rax
lea rcx, [rbp - 0x30]
call fcn.1400051d0
mov r12, rax
mov word [rbp + 0x15b8], di
jmp 0x140013552
xor edi, edi
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x6f0]
lea r8, str._s__04d.log
mov edx, 0x104
lea rcx, [rbp + 0x80]
call fcn.14000eed0
lea rcx, [rbp - 0x10]
call fcn.14000af20
nop
lea rcx, [rbp + 0x10]
call fcn.14000af20
nop
lea rcx, [rbp + 0x30]
call fcn.14000af20
nop
cmp word [rbp + 0x80], 0
jne 0x1400135a3
mov r8, rdi
jmp 0x1400135bb
lea rax, [rbp + 0x80]
or r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x1400135b0
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x30]
call fcn.140005270
movzx r8d, r15b
lea r9, [rbp + 0x80]
lea rdx, str._log_
lea rcx, [rbp + 0x4e0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp word [rbp + 0x80], 0
jne 0x1400135f9
mov r8, rdi
jmp 0x14001360f
lea rax, [rbp + 0x80]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140013604
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x10]
call fcn.140005270
lea rdx, [rbp + 0x15b0]
lea rcx, [rbp - 0x30]
call fcn.1400051e0
mov rax, qword [rsp + 0x78]
mov qword [rax], 7
mov qword [r12 + 0x10], 0
cmp qword [r12 + 0x18], 8
jb 0x140013652
mov rcx, qword [r12]
jmp 0x140013655
mov rcx, r12
lea rdx, [rbp + 0x15b8]
call fcn.1400029a0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbx + 0x20]
lea rcx, [rbp - 0x30]
call fcn.140005530
nop
lea rdx, [rbp + 0x4e0]
lea rcx, [rbp - 0x80]
call fcn.140005160
nop
lea r8, [rbp - 0x30]
mov rdx, rax
lea rcx, [rbp + 0x58]
call fcn.1400163c0
nop
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.140014ee0
nop
lea rcx, [rbp + 0x58]
call fcn.140005110
nop
lea rcx, [rbp - 0x80]
call fcn.140005110
nop
lea rcx, [rbp - 0x30]
call fcn.140005110
lea rcx, [rbp + 0x10]
call fcn.140007530
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp + 0x10]
call fcn.140007530
mov rdi, rax
lea rcx, [rbp - 0x10]
call fcn.140007530
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x1400137bb
lea r9, [rbp - 0x10]
mov r8, qword [rsi + 8]
mov rdx, rsi
call fcn.140017230
movabs rcx, 0x249249249249248
sub rcx, r14
cmp rcx, 1
jb 0x1400137ae
inc r14
mov qword [rsp + 0x70], r14
mov qword [rsi + 8], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rax
lea rcx, [rbp + 0x30]
call fcn.140005110
nop
lea rcx, [rbp + 0x10]
call fcn.140005110
nop
lea rcx, [rbp - 0x10]
call fcn.140005110
cmp byte [rbx + 0x19], 0
jne 0x14001379e
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x14001377e
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x14001379e
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140013770
jmp 0x14001379e
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x14001379b
cmp rbx, qword [rax + 0x10]
jne 0x14001379b
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140013788
mov rbx, rax
dec r15
cmp rbx, qword [rsp + 0x50]
jne 0x140013550
jmp 0x1400137f5
lea rcx, str.list_T__too_long
call fcn.14001904c
int3
mov r9, rsi
mov r8, qword [rsi]
lea rdx, [rbp + 0x15b0]
lea rcx, [rsp + 0x68]
call fcn.140014550
nop
lea rcx, [rbp + 0x30]
call fcn.140005110
nop
lea rcx, [rbp + 0x10]
call fcn.140005110
nop
lea rcx, [rbp - 0x10]
call fcn.140005110
mov rsi, qword [rsp + 0x68]
mov r12, qword [rbp + 0x15a0]
mov rbx, qword [rsi]
cmp rbx, rsi
je 0x14001382d
lea rcx, [rbx + 0x50]
call fcn.140007530
mov rdi, rax
lea rcx, [rbx + 0x30]
call fcn.140007530
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov rbx, qword [rbx]
cmp rbx, rsi
jne 0x140013804
mov r14, qword [rsi]
mov qword [rsi], rsi
mov qword [rsi + 8], rsi
mov qword [rsp + 0x70], 0
cmp r14, rsi
je 0x14001388a
nop word [rax + rax]
mov rdi, qword [r14]
lea rbx, [r14 + 0x10]
mov qword [rbp + 0x15a0], rbx
lea rcx, [rbx + 0x40]
call fcn.140005110
nop
lea rcx, [rbx + 0x20]
call fcn.140005110
nop
mov rcx, rbx
call fcn.140005110
mov rcx, r14
call fcn.14001c73c
mov r14, rdi
cmp rdi, rsi
jne 0x140013850
mov rcx, rsi
call fcn.14001c73c
nop
mov r8, qword [rsp + 0x50]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp + 0x15a0]
lea rcx, [rsp + 0x50]
call fcn.140015640
nop
mov rcx, qword [rsp + 0x50]
call fcn.14001c73c
xor esi, esi
xor dil, dil
mov rcx, qword [r12 + 0x230]
test rcx, rcx
je 0x1400138dc
call fcn.1400436d4
mov qword [r12 + 0x230], rsi
mov dil, 1
lea r9, [rbp + 0x6f0]
lea r8, str._s_0001.log
mov edx, 0x104
lea rcx, [rbp + 0x1350]
call fcn.14000eed0
lea rdx, [rbp + 0x1350]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test dil, dil
je 0x140013927
lea r8, str.a_ccsUTF_8
mov rdx, r13
lea rcx, [r12 + 0x230]
call fcn.140048100
xor al, al
mov rbx, qword [rsp + 0x16a8]
add rsp, 0x1660
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret