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

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0xad0]
sub rsp, 0xbd0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0xbf8], rbx
mov rax, qword [0x140462840]
xor rax, rsp
mov qword [rbp + 0xac0], rax
mov byte [rsp + 0x20], r8b
movzx ebx, dl
mov rdi, rcx
call fcn.1401904b0
mov rcx, rdi
cmp al, 1
jne 0x14018f6c7
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14018f9f6
mov rcx, rdi
call fcn.14018ebc0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov r9, rbx
mov r8d, 0x467d
lea rcx, str._bm3_
call fcn.1401ad4c0
jmp 0x14018fa0b
call fcn.140190420
cmp al, 1
jne 0x14018f9fa
cmp bl, al
jne 0x14018f9df
mov byte [rsp + 0x21], al
mov rcx, rdi
lea rdx, [rbp + 0x6a0]
sub rdx, rdi
nop dword [rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x14018f6f0
lea rcx, [rbp + 0x6a0]
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x14018f710
test rax, rax
je 0x14018f752
movzx ecx, word [rbp + rax*2 + 0x69e]
cmp cx, 0x5c
je 0x14018f752
cmp cx, 0x2f
je 0x14018f752
lea rcx, [rbp + 0x6a0]
sub rcx, 2
nop
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x14018f740
mov eax, dword [0x1402dfd40]
mov dword [rcx], eax
lea rax, [rbp + 0x6a0]
sub rax, 2
nop dword [rax]
lea rax, [rax + 2]
cmp word [rax], 0
jne 0x14018f760
movsd xmm0, qword [0x1402e3500]
movsd qword [rax], xmm0
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x30]
call sub.MSVCR120.dll_memset
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x6a0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14018f7d0
mov rcx, rdi
call fcn.14018ebc0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov r9, rbx
mov r8d, 0x467e
lea rcx, str._bm3_
call fcn.1401ad4c0
jmp 0x14018fa0b
movzx ecx, word [rsp + 0x5c]
movzx eax, word [rsp + 0x5e]
cmp cx, word [0x1402dc530]
jne 0x14018f7f0
cmp ax, word [0x1402dc532]
je 0x14018f929
cmp cx, word [0x140330ee0]
jne 0x14018f814
cmp ax, word [0x140330ee2]
jne 0x14018f814
movzx eax, word [rsp + 0x60]
cmp ax, word [0x140330ee4]
je 0x14018f929
mov rcx, rdi
lea rdx, [rbp + 0x8b0]
sub rdx, rdi
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x14018f830
lea rcx, [rbp + 0x8b0]
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x14018f850
test rax, rax
je 0x14018f892
movzx ecx, word [rbp + rax*2 + 0x8ae]
cmp cx, 0x5c
je 0x14018f892
cmp cx, 0x2f
je 0x14018f892
lea rcx, [rbp + 0x8b0]
sub rcx, 2
nop
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x14018f880
mov eax, dword [0x1402dfd40]
mov dword [rcx], eax
lea rax, [rbp + 0x8b0]
sub rax, 2
nop dword [rax]
lea rax, [rax + 2]
cmp word [rax], 0
jne 0x14018f8a0
lea r8, [rsp + 0x5c]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx ecx, word [r8 + rdx*2]
mov word [rax + rdx*2], cx
lea rdx, [rdx + 1]
test cx, cx
jne 0x14018f8c0
lea rdx, [rbp + 0x8b0]
lea rcx, [rbp + 0x180]
call fcn.14018e4e0
nop
movzx r8d, byte [rsp + 0x20]
mov dl, 1
mov rcx, rax
call fcn.14018f640
test al, al
sete bl
lea rcx, [rbp + 0x180]
call fcn.14018e600
test bl, bl
je 0x14018f917
mov byte [rsp + 0x21], 0
cmp byte [rsp + 0x20], 0
je 0x14018f941
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x30]
call sub.MSVCR120.dll_memset
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
jne 0x14018f949
jmp 0x14018f7d0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x12
je 0x14018f97d
test eax, eax
je 0x14018f97d
mov rcx, rdi
call fcn.14018ebc0
mov r9, rax
mov r8d, 0x467e
mov edx, ebx
lea rcx, str._bm3_
call fcn.1401ad4c0
xor bl, bl
jmp 0x14018f97f
mov bl, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
jne 0x14018f9b6
mov rcx, rdi
call fcn.14018ebc0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov r9, rbx
mov r8d, 0x467e
lea rcx, str._bm3_
call fcn.1401ad4c0
xor bl, bl
movzx eax, byte [rsp + 0x21]
test al, al
jne 0x14018f9e1
mov rcx, rdi
call fcn.14018ebc0
mov r8, rax
mov edx, 0x467e
lea rcx, str._bm3_
call fcn.1401ad510
xor bl, bl
jmp 0x14018f9e1
mov bl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x14018f69a
test bl, bl
je 0x14018fa0b
mov al, 1
jmp 0x14018fa0d
mov edx, 0x466e
lea rcx, str._bm3_
call fcn.1401ad480
xor al, al
mov rcx, qword [rbp + 0xac0]
xor rcx, rsp
call fcn.140289bf0
mov rbx, qword [rsp + 0xbf8]
add rsp, 0xbd0
pop rdi
pop rsi
pop rbp
ret