Function at 0x14011666c
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x428]
sub rsp, 0x528
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov rax, qword [0x140148058]
xor rax, rsp
mov qword [rbp + 0x410], rax
mov r13, r9
mov qword [rsp + 0x60], r9
mov rsi, r8
mov qword [rbp - 0x80], r8
mov rbx, rdx
mov r14, rcx
mov r15, qword [rbp + 0x4a8]
mov qword [rsp + 0x70], r15
xor r15d, r15d
mov word [rbp + 0x200], r15w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x202]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x50], r15d
mov dword [rsp + 0x54], r15d
cmp dword [r14 + 8], r15d
jne 0x1401166fa
mov eax, 0x80004005
jmp 0x140116c3c
mov r12d, dword [rbp + 0x490]
cmp dword [r14 + 0x2f8], r15d
jne 0x140116714
test r12b, 0x20
jne 0x140116798
lea r9, [rsp + 0x50]
lea r8, [0x140116c60]
lea rdx, [0x140001650]
mov rdi, 0xffffffff80000002
mov rcx, rdi
call fcn.1401152e0
mov ecx, dword [rsp + 0x50]
test eax, eax
cmovne ecx, r15d
mov dword [rsp + 0x50], ecx
mov eax, r15d
test ecx, ecx
sete al
mov dword [r14 + 0x2e4], eax
lea r9, [rsp + 0x54]
lea r8, [0x140116ca0]
lea rdx, [0x140001650]
mov rcx, rdi
call fcn.1401152e0
mov ecx, dword [rsp + 0x54]
test eax, eax
cmovne ecx, r15d
mov dword [rsp + 0x54], ecx
cmp dword [r14 + 0x2f8], r15d
je 0x14011678c
test ecx, ecx
mov eax, r15d
je 0x140116791
mov eax, 1
mov dword [r14 + 0x2e8], eax
mov edx, dword [r14 + 0x2e8]
mov ecx, dword [r14 + 0x2e4]
call fcn.140114288
test eax, eax
jne 0x1401167e5
lea rsi, [0x140148ea8]
mov rcx, qword [0x140148ea8]
cmp rcx, rsi
je 0x1401167db
test byte [rcx + 0x1c], 4
je 0x1401167db
lea edx, [rax + 0x16]
lea r8, [0x1400016a8]
mov rcx, qword [rcx + 0x10]
call fcn.14000fcb0
mov eax, 0x1000010c
jmp 0x140116c3c
mov r8, rbx
mov edx, 0x104
lea rcx, [rbp + 0x200]
call fcn.140044bb0
mov edi, eax
test eax, eax
jns 0x14011683a
lea rsi, [0x140148ea8]
mov rcx, qword [0x140148ea8]
cmp rcx, rsi
je 0x140116830
test byte [rcx + 0x1c], 1
je 0x140116830
mov edx, reloc.Cabinet.dll_FDIDestroy
mov r9d, eax
lea r8, [0x1400016a8]
mov rcx, qword [rcx + 0x10]
call fcn.14000fd64
mov eax, 0x80070057
jmp 0x140116c3c
test r13, r13
jne 0x14011686e
test rsi, rsi
je 0x140116866
lea rdx, [0x1400015c8]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x140116866
mov r13, qword [0x1401480a8]
mov qword [rsp + 0x60], r13
jmp 0x14011686e
mov r13, rsi
mov qword [rsp + 0x60], rsi
lea rax, [r14 + 0x48]
mov qword [rbp - 0x70], rax
mov rcx, rax
call sub.KERNEL32.dll_EnterCriticalSection
cmp dword [r14 + 8], r15d
jne 0x1401168bc
lea rsi, [0x140148ea8]
mov rcx, qword [0x140148ea8]
cmp rcx, rsi
je 0x1401168b2
test byte [rcx + 0x1c], 1
je 0x1401168b2
mov edx, DispGetParam
lea r8, [0x1400016a8]
mov rcx, qword [rcx + 0x10]
call fcn.14000fcb0
mov edi, 0x8000ffff
jmp 0x140116c31
lea rcx, [rbp + 0x200]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov r15, rax
mov qword [rsp + 0x68], rax
lea rax, [rbp + 0x200]
mov rcx, r15
sub rcx, rax
sar rcx, 1
mov eax, 0x103
sub rax, rcx
mov qword [rbp - 0x68], rax
test r15, r15
jne 0x140116929
lea rsi, [0x140148ea8]
mov rcx, qword [0x140148ea8]
cmp rcx, rsi
je 0x14011691f
test byte [rcx + 0x1c], 1
je 0x14011691f
lea edx, [r15 + 0x19]
lea r8, [0x1400016a8]
mov rcx, qword [rcx + 0x10]
call fcn.14000fcb0
mov edi, 0x80070057
jmp 0x140116c31
lea rdx, [rbp - 0x50]
mov rcx, rbx
call sub.KERNEL32.dll_FindFirstFileW
mov qword [rbp - 0x78], rax
cmp rax, 0xffffffffffffffff
jne 0x140116978
lea rsi, [0x140148ea8]
mov rcx, qword [0x140148ea8]
cmp rcx, rsi
je 0x14011696e
test byte [rcx + 0x1c], 1
je 0x14011696e
lea edx, [rax + 0x1b]
mov r9, rbx
lea r8, [0x1400016a8]
mov rcx, qword [rcx + 0x10]
call fcn.14000fcd0
mov edi, 0x90080108
jmp 0x140116c31
lea rsi, [0x140148ea8]
mov rbx, rax
cmp dword [rbp - 0x50], 0x10
je 0x140116b80
lea r8, [rbp - 0x24]
mov rdx, qword [rbp - 0x68]
mov rcx, r15
call fcn.140044bb0
mov edi, eax
test eax, eax
jns 0x1401169d9
mov rcx, qword [0x140148ea8]
cmp rcx, rsi
je 0x140116b80
test byte [rcx + 0x1c], 1
je 0x140116b80
mov edx, reloc.OLEAUT32.dll_DispGetParam
mov r9d, eax
lea r8, [0x1400016a8]
mov rcx, qword [rcx + 0x10]
call fcn.14000fd64
jmp 0x140116b80
mov edi, 0x1b0
mov ecx, edi
call fcn.140105a40
mov qword [rsp + 0x78], rax
test rax, rax
je 0x1401169fc
mov rcx, rax
call fcn.140116170
mov r15, rax
jmp 0x1401169ff
xor r15d, r15d
mov qword [rsp + 0x78], r15
test r15, r15
je 0x140116ba0
and dword [rsp + 0x58], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp + 0x4a0]
mov qword [rsp + 0x38], rax
mov rax, qword [rbp + 0x498]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r13
mov r9, qword [rbp - 0x80]
lea r8, [rbp + 0x200]
mov rdx, r15
mov rcx, r14
call fcn.140119044
mov edi, eax
mov eax, dword [rsp + 0x58]
test edi, edi
jns 0x140116a62
test eax, eax
je 0x140116abf
test eax, eax
je 0x140116aa5
mov rax, qword [0x140148ea8]
cmp rax, rsi
je 0x140116b2a
test byte [rax + 0x1c], 4
je 0x140116af8
mov rcx, r15
call fcn.140109d20
mov r9, rax
mov edx, 0x1d
lea r8, [0x1400016a8]
mov rcx, qword [0x140148ea8]
mov rcx, qword [rcx + 0x10]
call fcn.14000fcd0
jmp 0x140116af1
test byte [r15 + 0xe8], 8
jne 0x140116af1
lea rcx, [r14 + 0x10]
lea rdx, [rsp + 0x78]
call fcn.140116cdc
mov edi, eax
test edi, edi
js 0x140116ad1
mov rax, qword [rsp + 0x70]
inc dword [rax]
xor edi, edi
jmp 0x140116b7b
mov rdx, r15
mov rcx, r14
call fcn.1401176dc
mov rcx, r15
call fcn.140116338
mov rcx, r15
call fcn.140105ac0
jmp 0x140116b7b
mov rax, qword [0x140148ea8]
cmp rax, rsi
je 0x140116b2a
test byte [rax + 0x1c], 4
je 0x140116b2a
mov rcx, r15
call fcn.140109d20
mov r9, rax
mov edx, 0x1e
lea r8, [0x1400016a8]
mov rcx, qword [0x140148ea8]
mov rcx, qword [rcx + 0x10]
call fcn.14000fcd0
mov r13, qword [r15 + 0x158]
test r13, r13
je 0x140116b4c
mov rax, qword [r13]
mov rbx, qword [rax + 0x30]
mov rcx, rbx
call qword [fcn.140015690]
mov rcx, r13
call rbx
mov rcx, r15
call fcn.140109d20
mov rcx, rax
call sub.KERNEL32.dll_DeleteFileW
mov rdx, r15
mov rcx, r14
call fcn.1401176dc
mov rcx, r15
call fcn.140116338
mov rcx, r15
call fcn.140105ac0
mov rbx, qword [rbp - 0x78]
mov r15, qword [rsp + 0x68]
lea rdx, [rbp - 0x50]
mov rcx, rbx
call sub.KERNEL32.dll_FindNextFileW
test eax, eax
je 0x140116bcf
test r12b, 2
je 0x140116bcf
mov r13, qword [rsp + 0x60]
jmp 0x140116982
mov rcx, qword [0x140148ea8]
cmp rcx, rsi
je 0x140116bca
test byte [rcx + 0x1c], 1
je 0x140116bca
mov edx, 0x1c
mov r9d, edi
lea r8, [0x1400016a8]
mov rcx, qword [rcx + 0x10]
call fcn.14000fd64
mov edi, 0x8007000e
mov rcx, rbx
call sub.KERNEL32.dll_FindClose
mov r15, qword [rsp + 0x70]
xor ebx, ebx
cmp dword [r15], ebx
jbe 0x140116c31
cmp dword [r14 + 0xc], ebx
jne 0x140116c31
lea rcx, [r14 + 0xb0]
mov rdx, qword [rbp - 0x80]
call fcn.14010bed8
lea rcx, [r14 + 0xc0]
mov rdx, qword [rsp + 0x60]
call fcn.14010bed8
mov dword [r14 + 0xd0], ebx
cmp dword [r15], 0x20
jb 0x140116c21
test r12b, 0x10
je 0x140116c27
and r12d, 0xffffffef
test r12b, 0x10
jne 0x140116c31
mov rcx, r14
call fcn.14011b214
mov edi, eax
mov rcx, qword [rbp - 0x70]
call sub.KERNEL32.dll_LeaveCriticalSection
mov eax, edi
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.140001000
add rsp, 0x528
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret