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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x408]
sub rsp, 0x4e0
mov rax, qword [0x1400b8288]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
mov rbx, rdx
mov r15, rcx
xor r13d, r13d
lea rcx, [rbp + 0x1c0]
xor edx, edx
mov r8d, 0x208
mov r14d, r13d
call sub.msvcrt.dll_memset
test r15, r15
je 0x140054768
cmp word [r15], r13w
je 0x140054768
test rbx, rbx
je 0x140054768
cmp word [rbx], r13w
je 0x140054768
mov r9d, 0x104
lea rax, [rbp + 0x1c0]
mov r8d, r9d
lea rcx, [rbp + 0x1c0]
sub rbx, rax
lea edx, [r13 + 1]
lea rax, [r8 + 0x7ffffefa]
test rax, rax
je 0x1400542ec
movzx eax, word [rbx + rcx]
test ax, ax
je 0x1400542ec
mov word [rcx], ax
add rcx, 2
sub r8, rdx
jne 0x1400542cb
test r8, r8
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r13w
je 0x140054763
lea r8, [0x14009ea90]
mov rdx, r9
lea rcx, [rbp + 0x1c0]
call fcn.1400010f8
test eax, eax
js 0x140054763
or rdi, 0xffffffffffffffff
lea r12, [rbp + 0x1c0]
mov rbx, rdi
mov esi, r13d
inc rbx
cmp word [r15 + rbx*2], r13w
jne 0x140054330
lea rax, [rbp + 0x1c0]
inc rdi
cmp word [rax + rdi*2], r13w
jne 0x140054341
mov edx, 0x5c
test ebx, ebx
je 0x140054392
lea eax, [rbx - 1]
cmp dx, word [r15 + rax*2]
jne 0x140054381
cmp dx, word [rbp + 0x1c0]
lea rax, [rbp + 0x1c2]
lea r12, [rbp + 0x1c0]
cmove r12, rax
lea eax, [rdi - 1]
cmovne eax, edi
mov edi, eax
jmp 0x140054392
cmp dx, word [rbp + 0x1c0]
mov r9d, 1
cmovne esi, r9d
lea ecx, [rdi + 1]
mov edx, 8
add ecx, esi
add ecx, ebx
mov r13d, ecx
lea r8, [rcx*2]
mov rcx, qword gs:[0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x1400543e1
mov rax, qword gs:[0x30]
mov dword [rax + 0x68], 8
jmp 0x140054763
lea rcx, [rsp + 0x40]
mov r9d, ebx
mov qword [rsp + 0x28], rcx
mov r8, r15
lea rcx, [rsp + 0x48]
mov rdx, r13
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.14000c208
mov ebx, eax
test eax, eax
js 0x140054734
test esi, esi
mov esi, 1
je 0x140054450
mov rdx, qword [rsp + 0x40]
lea rax, [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
lea r8, [0x14009b488]
mov qword [rsp + 0x28], rax
mov r9d, esi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call fcn.14000c208
mov ebx, eax
test eax, eax
js 0x140054734
mov rdx, qword [rsp + 0x40]
mov r8, r12
mov rcx, qword [rsp + 0x48]
mov r9d, edi
call fcn.14000107c
xor r12d, r12d
mov ebx, eax
test eax, eax
js 0x140054734
mov rax, qword gs:[0x30]
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8d, 0x250
mov dword [rax + 0x68], r12d
call sub.msvcrt.dll_memset
mov r13, qword [rsp + 0x60]
lea rdx, [rsp + 0x70]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
nop dword [rax + rax]
or rbx, 0xffffffffffffffff
mov qword [rsp + 0x40], rax
cmp rax, rbx
je 0x140054712
mov eax, esi
mov r14d, esi
test eax, eax
je 0x140054701
lea rax, [0x14009ea98]
mov dword [rsp + 0x28], ebx
mov r9d, ebx
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x64]
mov edx, esi
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
nop dword [rax + rax]
cmp eax, 2
je 0x1400546a1
lea rax, [0x14009ea9c]
mov dword [rsp + 0x28], ebx
mov r9d, ebx
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x64]
mov edx, esi
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
nop dword [rax + rax]
cmp eax, 2
je 0x1400546a1
lea rax, [rbp - 0x64]
mov r14d, r12d
mov qword [rsp + 0x48], rax
mov rdi, rbx
inc rdi
cmp word [r15 + rdi*2], r12w
jne 0x14005453e
lea rax, [rbp - 0x64]
inc rbx
cmp word [rax + rbx*2], r12w
jne 0x14005454c
test edi, edi
je 0x140054584
lea ecx, [rdi - 1]
mov eax, 0x5c
cmp ax, word [r15 + rcx*2]
jne 0x14005457c
cmp ax, word [rbp - 0x64]
jne 0x140054584
lea rax, [rbp - 0x62]
dec ebx
mov qword [rsp + 0x48], rax
jmp 0x140054584
cmp ax, word [rbp - 0x64]
cmovne r14d, esi
lea ecx, [rbx + 1]
mov edx, 8
add ecx, r14d
add ecx, edi
mov r12d, ecx
lea r8, [rcx + rcx]
mov rcx, qword gs:[0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x1400546eb
lea rax, [rsp + 0x50]
mov r9d, edi
mov qword [rsp + 0x28], rax
mov r8, r15
lea rax, [rsp + 0x58]
mov edx, r12d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14000c208
xor r12d, r12d
mov edi, eax
test eax, eax
js 0x1400546bc
test r14d, r14d
je 0x14005462d
mov rdx, qword [rsp + 0x50]
lea rax, [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
lea r9d, [r12 + 1]
mov qword [rsp + 0x28], rax
lea r8, [0x14009b488]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
call fcn.14000c208
mov edi, eax
test eax, eax
js 0x1400546bc
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov r9d, ebx
call fcn.14000107c
mov edi, eax
test eax, eax
js 0x1400546bc
mov rax, qword gs:[0x30]
mov edx, 0x80
mov rcx, rsi
mov dword [rax + 0x68], r12d
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop dword [rax + rax]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
or rbx, 0xffffffffffffffff
lea esi, [rbx + 2]
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [rax + rax]
jmp 0x1400544be
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rax, qword gs:[0x30]
movzx ecx, di
mov dword [rax + 0x68], ecx
jmp 0x1400546fe
mov rax, qword gs:[0x30]
xor r12d, r12d
mov dword [rax + 0x68], 8
mov r14d, r12d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, r13
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
jmp 0x140054763
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rcx, qword gs:[0x30]
movzx edx, bx
mov dword [rcx + 0x68], edx
mov eax, r14d
jmp 0x14005477b
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.140096bd0
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret