Function at 0x18002a800
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x990
mov qword [rsp + 0x980], 0xfffffffffffffffe
mov rax, qword [0x1800c34c8]
xor rax, rsp
mov qword [rsp + 0x988], rax
mov byte [rsp + 0x4e0], 0
xor eax, eax
mov word [rsp + 0x4f0], ax
lea rdi, [rsp + 0x4f2]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov rdx, qword [rsp + 0x9a8]
lea rcx, [rsp + 0x4f0]
call fcn.18003cedc
lea rdx, [rsp + 0x4f0]
lea rcx, [rsp + 0x490]
call fcn.1800118d0
nop
lea rcx, [rsp + 0x490]
call fcn.18002b780
movzx eax, al
test eax, eax
je 0x18002a8b3
mov byte [rsp + 0x978], 0
lea rcx, [rsp + 0x490]
call fcn.180011f30
mov al, byte [rsp + 0x978]
jmp 0x18002abc1
lea rcx, [rsp + 0x490]
call fcn.18002b770
mov rdi, rax
lea rcx, [rsp + 0x490]
call fcn.18002b770
mov r8, rax
sub r8, 5
mov r9, rdi
lea rdx, [rsp + 0x4b8]
lea rcx, [rsp + 0x490]
call fcn.18002b830
nop
xor eax, eax
mov word [rsp + 0x280], ax
lea rdi, [rsp + 0x282]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
lea rcx, [rsp + 0x4f0]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea r8, [rsp + 0x4f0]
mov edx, 0x104
lea rcx, [rsp + 0x280]
call fcn.18003c9d4
lea rcx, [rsp + 0x280]
call fcn.18003d0c8
movzx eax, word [rsp + rax*2 + 0x27e]
cmp eax, 0x5c
je 0x18002a968
lea r8, [0x1800a0eb8]
mov edx, 0x104
lea rcx, [rsp + 0x280]
call fcn.18003ca58
jmp 0x18002a981
lea r8, [0x1800a0ec0]
mov edx, 0x104
lea rcx, [rsp + 0x280]
call fcn.18003ca58
mov dword [rsp + 0x30], 0
lea rdi, [rsp + 0x34]
xor eax, eax
mov ecx, 0x24c
rep stosb byte [rdi], al
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x700], rax
cmp qword [rsp + 0x700], 0xffffffffffffffff
je 0x18002ab90
lea rdx, [0x1800a0ec4]
lea rcx, [rsp + 0x5c]
call fcn.18003ce48
test eax, eax
je 0x18002ab67
lea rdx, [0x1800a0ec8]
lea rcx, [rsp + 0x5c]
call fcn.18003ce48
test eax, eax
je 0x18002ab67
xor eax, eax
mov word [rsp + 0x710], ax
lea rdi, [rsp + 0x712]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
lea r8, [rsp + 0x4f0]
mov edx, 0x104
lea rcx, [rsp + 0x710]
call fcn.18003c9d4
lea r8, [0x1800a0ed0]
mov edx, 0x104
lea rcx, [rsp + 0x710]
call fcn.18003ca58
lea r8, [rsp + 0x5c]
mov edx, 0x104
lea rcx, [rsp + 0x710]
call fcn.18003ca58
mov edx, 0x80
lea rcx, [rsp + 0x710]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [rsp + 0x30]
and eax, 0x10
test eax, eax
je 0x18002aa7b
jmp 0x18002ab67
lea rdx, [rsp + 0x5c]
lea rcx, [rsp + 0x920]
call fcn.1800118d0
nop
lea rcx, [rsp + 0x920]
call fcn.18002b770
mov rdi, rax
lea rcx, [rsp + 0x920]
call fcn.18002b770
mov r8, rax
sub r8, 5
mov r9, rdi
lea rdx, [rsp + 0x948]
lea rcx, [rsp + 0x920]
call fcn.18002b830
nop
lea rdx, [rsp + 0x4b8]
lea rcx, [rsp + 0x948]
call fcn.18002e680
movzx eax, al
test eax, eax
je 0x18002ab4c
mov rdx, qword [rsp + 0x9a8]
lea rcx, [rsp + 0x710]
call fcn.18003ce48
test eax, eax
je 0x18002ab4c
mov dword [rsp + 0x974], 0
lea rcx, [rsp + 0x710]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [rsp + 0x974], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x970], eax
cmp dword [rsp + 0x974], 0
jne 0x18002ab44
lea rcx, [rsp + 0x710]
call fcn.1800334b0
mov byte [rsp + 0x4e0], 1
lea rcx, [rsp + 0x948]
call fcn.180011f30
nop
lea rcx, [rsp + 0x920]
call fcn.180011f30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x700]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18002a9c1
mov rcx, qword [rsp + 0x700]
call qword [sym.imp.KERNEL32.dll_FindClose]
movzx eax, byte [rsp + 0x4e0]
mov byte [rsp + 0x979], al
lea rcx, [rsp + 0x4b8]
call fcn.180011f30
nop
lea rcx, [rsp + 0x490]
call fcn.180011f30
mov al, byte [rsp + 0x979]
mov rcx, qword [rsp + 0x988]
xor rcx, rsp
call fcn.18003c690
add rsp, 0x990
pop rdi
ret