Function at 0x140008980
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.140029ba0
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.14001d5c4
test eax, eax
jne 0x140009167
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 0x140009167
mov eax, dword [r12 + 0x220]
test eax, eax
jle 0x140008a17
cmp dword [rbp - 0x3c], 0
jne 0x140008a1f
shl eax, 0xa
cmp dword [rbp - 0x38], eax
ja 0x140008a1f
test bl, bl
je 0x140009167
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xb10]
call fcn.140010440
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.140010440
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xd20]
call fcn.140010440
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1140]
call fcn.140010440
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.14001d920
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x4e0]
call fcn.140010440
lea rax, [rbp + 0x900]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
lea r8, [0x14003e668]
mov edx, 0x104
lea rcx, [rbp + 0x4e0]
call fcn.140006470
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x6f0]
call fcn.140010440
lea rax, [rbp + 0xd20]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x4e0]
lea r8, [0x14003e668]
mov edx, 0x104
lea rcx, [rbp + 0x6f0]
call fcn.140006470
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xf30]
call fcn.140010440
lea rax, str._.log
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x6f0]
lea r8, [0x14003e668]
mov edx, 0x104
lea rcx, [rbp + 0xf30]
call fcn.140006470
xor edx, edx
mov r8d, 0x250
lea rcx, [rbp + 0x290]
call fcn.140010440
lea rdx, [rbp + 0x290]
lea rcx, [rbp + 0xf30]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400090fc
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rsi
call fcn.14000b250
mov qword [rsp + 0x50], rax
lea rdx, [rbp + 0x2bc]
lea rcx, [rbp - 0x80]
call fcn.1400058d0
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.14000b880
nop
lea rcx, [rbp - 0x80]
call fcn.140005230
lea rdx, [rbp + 0x290]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140008cb5
movzx ebx, byte [rbp + 0x15a0]
nop word [rax + rax]
lea rdx, [rbp + 0x2bc]
lea rcx, [rbp - 0x80]
call fcn.1400058d0
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.14000b880
nop
lea rcx, [rbp - 0x80]
call fcn.140005230
xor edx, edx
mov r8d, 0x250
lea rcx, [rbp + 0x290]
call fcn.140010440
lea rdx, [rbp + 0x290]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140008c50
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r15, qword [rsp + 0x58]
cmp r15, 9
jne 0x140008d2e
mov rbx, qword [rsp + 0x50]
mov rbx, qword [rbx]
lea rcx, [rbx + 0x20]
call fcn.140005220
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.140006470
lea rcx, [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r8, rbx
lea rdx, [rbp + 0x15b0]
lea rcx, [rsp + 0x50]
call fcn.140009f20
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.14000b1f0
mov rsi, rax
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x50]
mov rbx, qword [rax]
cmp rbx, rax
je 0x14000903c
lea rcx, [rbp - 0x30]
call fcn.1400056e0
mov qword [rsp + 0x78], rax
lea rcx, [rbp - 0x30]
call fcn.140004660
mov r12, rax
mov word [rbp + 0x15b8], di
jmp 0x140008d92
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.140006470
lea rcx, [rbp - 0x10]
call fcn.140005200
nop
lea rcx, [rbp + 0x10]
call fcn.140005200
nop
lea rcx, [rbp + 0x30]
call fcn.140005200
nop
cmp word [rbp + 0x80], 0
jne 0x140008de3
mov r8, rdi
jmp 0x140008dfb
lea rax, [rbp + 0x80]
or r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x140008df0
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x30]
call fcn.140005780
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 0x140008e39
mov r8, rdi
jmp 0x140008e4f
lea rax, [rbp + 0x80]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140008e44
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x10]
call fcn.140005780
lea rdx, [rbp + 0x15b0]
lea rcx, [rbp - 0x30]
call fcn.140005000
mov rax, qword [rsp + 0x78]
mov qword [rax], 7
mov qword [r12 + 0x10], 0
cmp qword [r12 + 0x18], 8
jb 0x140008e92
mov rcx, qword [r12]
jmp 0x140008e95
mov rcx, r12
lea rdx, [rbp + 0x15b8]
call fcn.140005770
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbx + 0x20]
lea rcx, [rbp - 0x30]
call fcn.140005340
nop
lea rdx, [rbp + 0x4e0]
lea rcx, [rbp - 0x80]
call fcn.1400058d0
nop
lea r8, [rbp - 0x30]
mov rdx, rax
lea rcx, [rbp + 0x58]
call fcn.14000b4b0
nop
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.140004550
nop
lea rcx, [rbp + 0x58]
call fcn.140005230
nop
lea rcx, [rbp - 0x80]
call fcn.140005230
nop
lea rcx, [rbp - 0x30]
call fcn.140005230
lea rcx, [rbp + 0x10]
call fcn.140005220
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp + 0x10]
call fcn.140005220
mov rdi, rax
lea rcx, [rbp - 0x10]
call fcn.140005220
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x140008ffb
lea r9, [rbp - 0x10]
mov r8, qword [rsi + 8]
mov rdx, rsi
call fcn.14000baa0
movabs rcx, 0x249249249249248
sub rcx, r14
cmp rcx, 1
jb 0x140008fee
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.140005230
nop
lea rcx, [rbp + 0x10]
call fcn.140005230
nop
lea rcx, [rbp - 0x10]
call fcn.140005230
cmp byte [rbx + 0x19], 0
jne 0x140008fde
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x140008fbe
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x140008fde
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140008fb0
jmp 0x140008fde
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x140008fdb
cmp rbx, qword [rax + 0x10]
jne 0x140008fdb
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140008fc8
mov rbx, rax
dec r15
cmp rbx, qword [rsp + 0x50]
jne 0x140008d90
jmp 0x140009035
lea rcx, str.list_T__too_long
call fcn.14000d640
int3
mov r9, rsi
mov r8, qword [rsi]
lea rdx, [rbp + 0x15b0]
lea rcx, [rsp + 0x68]
call fcn.140009d70
nop
lea rcx, [rbp + 0x30]
call fcn.140005230
nop
lea rcx, [rbp + 0x10]
call fcn.140005230
nop
lea rcx, [rbp - 0x10]
call fcn.140005230
mov rsi, qword [rsp + 0x68]
mov r12, qword [rbp + 0x15a0]
mov rbx, qword [rsi]
cmp rbx, rsi
je 0x14000906d
lea rcx, [rbx + 0x50]
call fcn.140005220
mov rdi, rax
lea rcx, [rbx + 0x30]
call fcn.140005220
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov rbx, qword [rbx]
cmp rbx, rsi
jne 0x140009044
mov r14, qword [rsi]
mov qword [rsi], rsi
mov qword [rsi + 8], rsi
mov qword [rsp + 0x70], 0
cmp r14, rsi
je 0x1400090ca
nop word [rax + rax]
mov rdi, qword [r14]
lea rbx, [r14 + 0x10]
mov qword [rbp + 0x15a0], rbx
lea rcx, [rbx + 0x40]
call fcn.140005230
nop
lea rcx, [rbx + 0x20]
call fcn.140005230
nop
mov rcx, rbx
call fcn.140005230
mov rcx, r14
call fcn.14000d690
mov r14, rdi
cmp rdi, rsi
jne 0x140009090
mov rcx, rsi
call fcn.14000d690
nop
mov r8, qword [rsp + 0x50]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp + 0x15a0]
lea rcx, [rsp + 0x50]
call fcn.14000a8d0
nop
mov rcx, qword [rsp + 0x50]
call fcn.14000d690
xor esi, esi
xor dil, dil
mov rcx, qword [r12 + 0x230]
test rcx, rcx
je 0x14000911c
call fcn.14001b210
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.140006470
lea rdx, [rbp + 0x1350]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test dil, dil
je 0x140009167
lea r8, str.a_ccsUTF_8
mov rdx, r13
lea rcx, [r12 + 0x230]
call fcn.14001b360
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