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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x5b0
mov rax, qword [0x1400ced18]
xor rax, rsp
mov qword [rsp + 0x5a0], rax
movzx eax, word [0x140094438]
mov word [rsp + 0x390], ax
lea rax, [rsp + 0x392]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov r8, qword [rsp + 0x5c8]
mov edx, 0x104
lea rcx, [rsp + 0x390]
call fcn.14004c740
lea rdx, str.wbxcrash_.zip
lea rcx, [rsp + 0x390]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x128]
mov rcx, rax
call fcn.140046170
nop
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x390]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0xffffffffffffffff
je 0x1400475b7
mov ecx, 0x10
call fcn.14008202c
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400474e7
mov rax, qword [rsp + 0x50]
add rax, 8
mov qword [rsp + 0xb8], rax
lea rax, [0x1400ce018]
mov rcx, qword [rsp + 0xb8]
mov rax, qword [rax]
mov qword [rcx], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x68], rax
jmp 0x1400474f0
mov qword [rsp + 0x68], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140047517
jmp 0x1400475ac
mov rax, qword [rsp + 0x40]
add rax, 8
mov qword [rsp + 0xc8], rax
lea rax, [rsp + 0x16c]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x140047547
mov dword [rsp + 0x30], 0
jmp 0x140047556
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [rsp + 0x30], eax
lea r8, [rsp + 0x16c]
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xc8]
call fcn.140020da0
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x154]
mov qword [rax], rcx
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xa0]
call fcn.140046040
lea rdx, [rsp + 0x140]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14004749e
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x78]
mov rcx, qword [rcx]
mov rax, qword [rax + 8]
sub rax, rcx
sar rax, 3
mov qword [rsp + 0xd0], rax
cmp qword [rsp + 0xd0], 5
jb 0x1400476cb
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx]
mov rax, qword [rax + 8]
sub rax, rcx
sar rax, 3
mov qword [rsp + 0xf8], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xe0], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov rax, qword [rax]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x20], 0
lea r9, [0x14004c270]
mov r8d, 8
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort_s]
mov qword [rsp + 0x38], 0
jmp 0x1400476e3
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx]
mov rax, qword [rax + 8]
sub rax, rcx
sar rax, 3
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
cmp qword [rsp + 0x38], rax
jae 0x14004783f
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x110]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x38]
lea rax, [rax + rcx*8]
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x118]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x14004783a
mov rax, qword [rsp + 0x38]
inc rax
cmp rax, 5
jb 0x1400477d1
mov r8, qword [rsp + 0x5c8]
mov edx, 0x104
lea rcx, [rsp + 0x390]
call fcn.14004c740
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
mov qword [rsp + 0x120], rax
mov rdx, qword [rsp + 0x120]
lea rcx, [rsp + 0x390]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x390]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x14004782e
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x48]
add rax, 8
mov rcx, rax
call fcn.1400202f0
mov eax, 1
and eax, 1
test eax, eax
je 0x14004781f
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.140082068
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x98], rax
jmp 0x14004783a
mov qword [rsp + 0x98], 0
jmp 0x1400476d6
lea rcx, [rsp + 0xa0]
call fcn.14004c1e0
nop
lea rcx, [rsp + 0xa0]
call fcn.14004c0a0
mov rcx, qword [rsp + 0x5a0]
xor rcx, rsp
call fcn.140082550
add rsp, 0x5b0
pop rdi
ret