Function at 0x14009a960
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 - 0x1550]
mov eax, 0x1650
call fcn.140096680
sub rsp, rax
mov qword [rbp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x1698], rbx
movzx ebx, dl
mov r15, rcx
lea r13, [rcx + 0x18]
xor edx, edx
mov rcx, r13
call fcn.1400c8d70
test eax, eax
jne 0x14009b361
xor eax, eax
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], rax
mov dword [rbp + 0x60], eax
lea r8, [rbp + 0x40]
xor edx, edx
mov rcx, r13
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesExW]
test eax, eax
je 0x14009b361
mov eax, dword [r15 + 0x220]
test eax, eax
jle 0x14009a9f6
cmp dword [rbp + 0x5c], 0
jne 0x14009a9fe
shl eax, 0xa
cmp dword [rbp + 0x60], eax
ja 0x14009a9fe
test bl, bl
je 0x14009b361
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xb00]
call fcn.1400a57c0
xor r9d, r9d
lea r8, [rbp + 0xb00]
mov edx, 0x104
mov rcx, r13
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFullPathNameW]
xor eax, eax
mov dword [rbp + 0x15a0], eax
mov word [rbp + 0x15a4], ax
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x8f0]
call fcn.1400a57c0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xd10]
call fcn.1400a57c0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1130]
call fcn.1400a57c0
mov qword [rsp + 0x40], 0x104
lea rax, [rbp + 0x1130]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0x104
lea rax, [rbp + 0xd10]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x104
lea r9, [rbp + 0x8f0]
mov r8d, 3
lea rdx, [rbp + 0x15a0]
lea rcx, [rbp + 0xb00]
call fcn.1400c8cd0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x4d0]
call fcn.1400a57c0
lea rax, [rbp + 0x8f0]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x15a0]
lea r8, [0x140105228]
mov edx, 0x104
lea rcx, [rbp + 0x4d0]
call fcn.140071a30
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x6e0]
call fcn.1400a57c0
lea rax, [rbp + 0xd10]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x4d0]
lea r8, [0x140105228]
mov edx, 0x104
lea rcx, [rbp + 0x6e0]
call fcn.140071a30
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xf20]
call fcn.1400a57c0
lea rax, str._.log
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x6e0]
lea r8, [0x140105228]
mov edx, 0x104
lea rcx, [rbp + 0xf20]
call fcn.140071a30
xor edx, edx
mov r8d, 0x250
lea rcx, [rbp + 0x70]
call fcn.1400a57c0
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0xf20]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
mov rdi, rax
xor r14d, r14d
cmp rax, 0xffffffffffffffff
je 0x14009b2f9
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
lea rcx, [rsp + 0x50]
call fcn.14009d290
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
movdqa xmm1, xmmword [0x1400ed8a0]
movdqu xmmword [rbp - 0x80], xmm1
mov word [rsp + 0x70], r14w
lea rax, [rbp + 0x9c]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14009ac00
lea rdx, [rbp + 0x9c]
lea rcx, [rsp + 0x70]
call fcn.140013240
nop
mov rax, qword [rbp + 0x84]
mov qword [rbp - 0x70], rax
movzx eax, byte [rbp + 0x1590]
mov byte [rsp + 0x20], al
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.140097f80
nop
lea rcx, [rsp + 0x70]
call fcn.140012b50
lea rdx, [rbp + 0x70]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
test eax, eax
je 0x14009ad14
movzx ebx, byte [rbp + 0x1590]
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], r14w
lea rax, [rbp + 0x9c]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14009aca0
lea rdx, [rbp + 0x9c]
lea rcx, [rsp + 0x70]
call fcn.140013240
nop
mov rax, qword [rbp + 0x84]
mov qword [rbp - 0x70], rax
mov byte [rsp + 0x20], bl
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.140097f80
nop
lea rcx, [rsp + 0x70]
call fcn.140012b50
xor edx, edx
mov r8d, 0x250
lea rcx, [rbp + 0x70]
call fcn.1400a57c0
lea rdx, [rbp + 0x70]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
test eax, eax
jne 0x14009ac71
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
mov rax, qword [rsp + 0x58]
cmp rax, 9
jne 0x14009ad94
mov rbx, qword [rsp + 0x50]
mov rbx, qword [rbx]
lea rax, [rbx + 0x20]
cmp qword [rax + 0x18], 8
jb 0x14009ad3e
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x8f0]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x15a0]
lea r8, str._s_s_s
mov edx, 0x104
lea rcx, [rbp + 0x2c0]
call fcn.140071a30
lea rcx, [rbp + 0x2c0]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
mov r8, rbx
lea rdx, [rbp + 0x15a8]
lea rcx, [rsp + 0x50]
call fcn.14009dbc0
mov rax, qword [rsp + 0x58]
lea r12, [rax + 1]
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.14009d2d0
mov rsi, rax
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x50]
mov rbx, qword [rax]
cmp rbx, rax
je 0x14009b1e2
nop word [rax + rax]
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x6e0]
lea r8, str._s__04d.log
mov edx, 0x104
lea rcx, [rbp + 0x2c0]
call fcn.140071a30
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], r14w
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], r14
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], 7
mov word [rbp - 0x20], r14w
mov qword [rbp + 0x10], r14
mov qword [rbp + 0x18], r14
mov qword [rbp + 0x10], r14
mov qword [rbp + 0x18], 7
mov word [rbp], r14w
lea rax, [rbp + 0x2c0]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14009ae50
lea rdx, [rbp + 0x2c0]
lea rcx, [rbp]
call fcn.140013240
movzx r8d, r12b
lea r9, [rbp + 0x2c0]
lea rdx, str._log_
lea rcx, [rbp + 0x4d0]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetTempFileNameW]
lea rax, [rbp + 0x2c0]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14009aea0
lea rdx, [rbp + 0x2c0]
lea rcx, [rbp - 0x20]
call fcn.140013240
lea r14, [rbx + 0x20]
xor eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov r15, qword [r14 + 0x10]
cmp qword [r14 + 0x18], 8
jb 0x14009aed7
mov r14, qword [r14]
cmp r15, 8
jae 0x14009aeef
movups xmm0, xmmword [r14]
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x50], 7
jmp 0x14009af2f
mov rdi, r15
or rdi, 7
movabs rax, 0x7ffffffffffffffe
cmp rdi, rax
cmova rdi, rax
lea rdx, [rdi + 1]
lea rcx, [rbp - 0x68]
call fcn.140012fe0
mov qword [rbp - 0x68], rax
lea r8, [r15*2 + 2]
mov rdx, r14
mov rcx, rax
call fcn.1400a5110
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x58], r15
xor r14d, r14d
mov qword [rbp + 0x30], r14
mov qword [rbp + 0x38], r14
mov qword [rbp + 0x30], r14
mov qword [rbp + 0x38], 7
mov word [rbp + 0x20], r14w
lea rax, [rbp + 0x4d0]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], r14w
jne 0x14009af60
lea rdx, [rbp + 0x4d0]
lea rcx, [rbp + 0x20]
call fcn.140013240
nop
lea r8, [rbp - 0x68]
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x70]
call fcn.140097560
mov rdi, rax
lea rax, [rbp - 0x40]
cmp rax, rdi
je 0x14009afc1
lea rcx, [rbp - 0x40]
call fcn.140012b50
movups xmm0, xmmword [rdi]
movaps xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [rdi + 0x10]
movaps xmmword [rbp - 0x30], xmm1
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 7
mov word [rdi], r14w
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x14009b002
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009affd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14009b38b
call fcn.140095e90
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], r14w
mov rdx, qword [rbp + 0x38]
cmp rdx, 8
jb 0x14009b054
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009b04f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14009b391
call fcn.140095e90
mov qword [rbp + 0x30], r14
mov qword [rbp + 0x38], 7
mov word [rbp + 0x20], r14w
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x14009b0a5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009b0a0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14009b397
call fcn.140095e90
mov qword [rbp - 0x58], r14
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], r14w
lea rcx, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae rcx, qword [rbp - 0x20]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae rdx, qword [rbp - 0x20]
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae rcx, qword [rbp - 0x40]
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_MoveFileW]
lea rcx, [rsp + 0x60]
test eax, eax
je 0x14009b1b3
mov rdi, qword [rsi + 8]
lea r9, [rbp - 0x40]
mov r8, rdi
mov rdx, rsi
call fcn.1400977b0
movabs rcx, 0x249249249249248
mov rdx, qword [rsp + 0x68]
sub rcx, rdx
cmp rcx, 1
jb 0x14009b37e
inc rdx
mov qword [rsp + 0x68], rdx
mov qword [rsi + 8], rax
mov qword [rdi], rax
lea rcx, [rbp]
call fcn.140012b50
nop
lea rcx, [rbp - 0x20]
call fcn.140012b50
nop
lea rcx, [rbp - 0x40]
call fcn.140012b50
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x14009b180
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x14009b17b
cmp rbx, qword [rax + 0x10]
jne 0x14009b17b
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x14009b168
mov rbx, rax
jmp 0x14009b19f
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x14009b19f
nop dword [rax]
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x14009b190
dec r12
mov rsi, qword [rsp + 0x60]
cmp rbx, qword [rsp + 0x50]
je 0x14009b1db
jmp 0x14009add0
call fcn.14009d970
nop
lea rcx, [rbp]
call fcn.140012b50
nop
lea rcx, [rbp - 0x20]
call fcn.140012b50
nop
lea rcx, [rbp - 0x40]
call fcn.140012b50
mov rsi, qword [rsp + 0x60]
mov r15, qword [rbp + 0x1590]
mov rbx, qword [rsi]
cmp rbx, rsi
je 0x14009b21a
nop word [rax + rax]
lea rdx, [rbx + 0x50]
cmp qword [rdx + 0x18], 8
jb 0x14009b1fe
mov rdx, qword [rdx]
lea rcx, [rbx + 0x30]
cmp qword [rcx + 0x18], 8
jb 0x14009b20c
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_MoveFileW]
mov rbx, qword [rbx]
cmp rbx, rsi
jne 0x14009b1f0
mov r14, qword [rsi]
mov qword [rsi], rsi
mov qword [rsi + 8], rsi
xor eax, eax
mov qword [rsp + 0x68], rax
cmp r14, rsi
je 0x14009b26f
mov rdi, qword [r14]
lea rbx, [r14 + 0x10]
mov qword [rbp + 0x1590], rbx
lea rcx, [rbx + 0x40]
call fcn.140012b50
nop
lea rcx, [rbx + 0x20]
call fcn.140012b50
nop
mov rcx, rbx
call fcn.140012b50
mov edx, 0x70
mov rcx, r14
call fcn.140095e90
mov r14, rdi
cmp rdi, rsi
jne 0x14009b230
mov edx, 0x70
mov rcx, rsi
call fcn.140095e90
nop
mov rax, qword [rsp + 0x50]
mov rsi, rax
mov rdi, qword [rax + 8]
mov rbx, rdi
cmp byte [rdi + 0x19], 0
jne 0x14009b2ce
mov rdx, qword [rbx + 0x10]
lea rcx, [rsp + 0x50]
call fcn.14009d4b0
mov rbx, qword [rbx]
lea rcx, [rdi + 0x20]
mov qword [rbp + 0x1590], rcx
call fcn.140012b50
mov edx, 0x48
mov rcx, rdi
call fcn.140095e90
mov rdi, rbx
cmp byte [rbx + 0x19], 0
je 0x14009b292
mov rax, qword [rsp + 0x50]
mov qword [rax + 8], rsi
mov rax, qword [rsp + 0x50]
mov qword [rax], rsi
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x10], rsi
xor r14d, r14d
mov qword [rsp + 0x58], r14
lea edx, [r14 + 0x48]
mov rcx, qword [rsp + 0x50]
call fcn.140095e90
xor dil, dil
mov rcx, qword [r15 + 0x230]
test rcx, rcx
je 0x14009b317
call fcn.1400b7d80
mov qword [r15 + 0x230], r14
mov dil, 1
lea r9, [rbp + 0x6e0]
lea r8, str._s_0001.log
mov edx, 0x104
lea rcx, [rbp + 0x1340]
call fcn.140071a30
lea rdx, [rbp + 0x1340]
mov rcx, r13
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_MoveFileW]
test dil, dil
je 0x14009b361
lea r8, str.a_ccsUTF_8
mov rdx, r13
lea rcx, [r15 + 0x230]
call fcn.1400c3030
xor al, al
mov rbx, qword [rsp + 0x1698]
add rsp, 0x1650
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.list_T__too_long
call fcn.140072bf0
nop
call fcn.1400b1720
nop
call fcn.1400b1720
nop
call fcn.1400b1720
int3