Function at 0x140037120
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x4d0
mov rdi, rsp
mov ecx, 0x134
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x4e0]
mov qword [rsp + 0x468], 0xfffffffffffffffe
mov rax, qword [0x1401bb8b8]
xor rax, rsp
mov qword [rsp + 0x4c0], rax
mov rcx, qword [rsp + 0x4e0]
call fcn.14000ed40
mov r9d, 0x659
lea r8, [0x140150cf0]
lea rdx, [0x14014f3c8]
mov rcx, rax
call fcn.14000f120
mov rcx, qword [rsp + 0x4e0]
call fcn.14000f390
test rax, rax
jne 0x1400371b4
mov qword [rsp + 0x470], 1
jmp 0x1400371c0
mov qword [rsp + 0x470], 0
mov r9d, 0x65a
lea r8, [0x140150d60]
lea rdx, str.IsEmptyStr__szOSDirectoryName___FALSE
mov rcx, qword [rsp + 0x470]
call fcn.14000f120
mov rdx, qword [rsp + 0x4e0]
lea rcx, [rsp + 0x2a0]
call fcn.14000dbe0
nop
mov dx, 0x5c
lea rcx, [rsp + 0x2a0]
call fcn.14004b180
lea r8, [0x14014f538]
lea rdx, [rsp + 0x2a0]
lea rcx, [rsp + 0x328]
call fcn.140050ed0
mov qword [rsp + 0x478], rax
mov rax, qword [rsp + 0x478]
mov qword [rsp + 0x480], rax
mov rcx, qword [rsp + 0x480]
call fcn.14004a960
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x308], rax
lea rcx, [rsp + 0x328]
call fcn.140001eb0
cmp qword [rsp + 0x308], 0xffffffffffffffff
je 0x14003748d
cmp dword [rsp + 0x4e8], 2
jne 0x140037292
mov dword [rsp + 0x488], 0
jmp 0x1400372a0
mov eax, dword [rsp + 0x4e8]
mov dword [rsp + 0x488], eax
mov eax, dword [rsp + 0x488]
mov dword [rsp + 0x310], eax
lea rcx, [rsp + 0x5c]
call fcn.14002f090
test rax, rax
jne 0x140037464
mov eax, dword [rsp + 0x30]
and eax, 0x10
test eax, eax
je 0x1400373a4
lea r8, [rsp + 0x5c]
lea rdx, [rsp + 0x2a0]
lea rcx, [rsp + 0x388]
call fcn.140050ed0
mov qword [rsp + 0x490], rax
mov rax, qword [rsp + 0x490]
mov qword [rsp + 0x498], rax
mov rcx, qword [rsp + 0x498]
call fcn.14004a960
mov r8, qword [rsp + 0x4f0]
mov edx, dword [rsp + 0x310]
mov rcx, rax
call fcn.140037120
test rax, rax
jne 0x140037338
mov dword [rsp + 0x4a0], 1
jmp 0x140037343
mov dword [rsp + 0x4a0], 0
movzx eax, byte [rsp + 0x4a0]
mov byte [rsp + 0x380], al
lea rcx, [rsp + 0x388]
call fcn.140001eb0
movzx eax, byte [rsp + 0x380]
test eax, eax
je 0x14003739f
mov rcx, qword [rsp + 0x308]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rsp + 0x3e0], 0
lea rcx, [rsp + 0x2a0]
call fcn.140001eb0
mov rax, qword [rsp + 0x3e0]
jmp 0x140037546
jmp 0x140037464
lea r8, [rsp + 0x5c]
lea rdx, [rsp + 0x2a0]
lea rcx, [rsp + 0x3f0]
call fcn.140050ed0
mov qword [rsp + 0x4a8], rax
mov rax, qword [rsp + 0x4a8]
mov qword [rsp + 0x4b0], rax
mov rcx, qword [rsp + 0x4b0]
call fcn.14004a960
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400373fd
mov dword [rsp + 0x4b8], 1
jmp 0x140037408
mov dword [rsp + 0x4b8], 0
movzx eax, byte [rsp + 0x4b8]
mov byte [rsp + 0x3e8], al
lea rcx, [rsp + 0x3f0]
call fcn.140001eb0
movzx eax, byte [rsp + 0x3e8]
test eax, eax
je 0x140037464
mov rcx, qword [rsp + 0x308]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rsp + 0x448], 0
lea rcx, [rsp + 0x2a0]
call fcn.140001eb0
mov rax, qword [rsp + 0x448]
jmp 0x140037546
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x308]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400372ae
mov rcx, qword [rsp + 0x308]
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [rsp + 0x4e8], 0
je 0x1400374bd
mov qword [rsp + 0x450], 1
lea rcx, [rsp + 0x2a0]
call fcn.140001eb0
mov rax, qword [rsp + 0x450]
jmp 0x140037546
cmp qword [rsp + 0x4f0], 0
je 0x1400374f9
mov rcx, qword [rsp + 0x4e0]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov qword [rsp + 0x458], 1
lea rcx, [rsp + 0x2a0]
call fcn.140001eb0
mov rax, qword [rsp + 0x458]
jmp 0x140037546
mov rcx, qword [rsp + 0x4e0]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cdqe
mov qword [rsp + 0x318], rax
cmp qword [rsp + 0x318], 0
jne 0x140037521
call fcn.140034150
mov rax, qword [rsp + 0x318]
mov qword [rsp + 0x460], rax
lea rcx, [rsp + 0x2a0]
call fcn.140001eb0
mov rax, qword [rsp + 0x460]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.14005d920
mov rax, rdi
mov rcx, qword [rsp + 0x4c0]
xor rcx, rsp
call fcn.14005db80
add rsp, 0x4d0
pop rdi
ret