Function at 0x14002ed90
Capabilities:
Delete directory
Enumerate files on windows
Move file

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xf60
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0xfb0], rbx
mov rax, qword [0x14012df80]
xor rax, rsp
mov qword [rsp + 0xf50], rax
mov r13, rdx
mov r12, rcx
mov rcx, qword [rcx + 0x10]
cmp dword [rcx - 0x10], 0
je 0x14002f1c6
xor r15d, r15d
mov ebx, r15d
lea rdx, [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
lea r14d, [r15 + 1]
cmp rax, 0xffffffffffffffff
je 0x14002ee44
nop
nop
test byte [rsp + 0x2b0], 0x10
cmove ebx, r14d
lea rdx, [rsp + 0x2b0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14002ee25
test ebx, ebx
je 0x14002ee00
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
je 0x14002ee44
xor r8d, r8d
mov rdx, qword [r12 + 0x10]
mov rcx, qword [r12 + 8]
call fcn.140011b70
mov r8, qword [r12 + 0x10]
mov ebx, 0x104
mov rdx, rbx
lea rcx, [rsp + 0x500]
lea rax, [rsp + 0x500]
sub r8, rax
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x14002ee88
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14002ee88
mov word [rcx], ax
add rcx, 2
sub rdx, r14
jne 0x14002ee64
jmp 0x14002ee8d
test rdx, rdx
jne 0x14002ee91
sub rcx, 2
mov word [rcx], r15w
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], rbx
lea rax, [rsp + 0x920]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x710]
mov r8, rbx
lea rdx, [rsp + 0xd40]
lea rcx, [rsp + 0x500]
call fcn.1400cddd0
test eax, eax
jne 0x14002ef70
lea rax, str..bak
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x920]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x710]
lea r8, [rsp + 0xd40]
mov rdx, rbx
lea rcx, [rsp + 0xb30]
call fcn.1400ce8f0
test eax, eax
jne 0x14002ef70
lea rcx, [rsp + 0x500]
lea rdx, [rsp + 0xb30]
lea rax, [rsp + 0x500]
sub rdx, rax
nop
nop
nop
lea rax, [rbx + 0x7ffffefa]
test rax, rax
je 0x14002ef63
movzx eax, word [rdx + rcx]
test ax, ax
je 0x14002ef63
mov word [rcx], ax
add rcx, 2
sub rbx, r14
jne 0x14002ef40
jmp 0x14002ef68
test rbx, rbx
jne 0x14002ef6c
sub rcx, 2
mov word [rcx], r15w
mov ebx, r15d
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x500]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14002f0b2
nop
nop
nop
nop
test byte [rsp + 0x60], 0x10
cmove ebx, r14d
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14002efbf
test ebx, ebx
je 0x14002efa0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
je 0x14002f0b2
mov rbp, qword [r12 + 8]
mov ebx, r15d
nop
nop
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x4000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, r14d
mov edx, 0x10000
lea rcx, [rsp + 0x500]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp rsi, 0xffffffffffffffff
jne 0x14002f07a
cmp eax, 5
jne 0x14002f035
lea ecx, [rax + 0x5f]
call qword [sym.imp.KERNEL32.dll_Sleep]
add ebx, r14d
cmp ebx, 0xa
jl 0x14002efe0
mov dword [rsp + 0x28], edi
lea rax, [rsp + 0x500]
mov qword [rsp + 0x20], rax
lea r9, [0x1400fc430]
lea r8, str.FileRemoveEx
lea rdx, str.CCmnFunc
mov rcx, qword [rbp + 8]
call fcn.140080a70
xor edx, edx
lea r8d, [rdx + 4]
lea rcx, [rsp + 0x500]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x14002f0b2
lea rax, [rsp + 0x500]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
lea r9, [0x1400fc3e0]
lea r8, str.FileRemoveEx
lea rdx, str.CCmnFunc
mov rcx, qword [rbp + 8]
call fcn.140081070
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r13, r13
je 0x14002f1c6
mov rdx, qword [r12 + 0x10]
mov rcx, qword [r12 + 8]
call fcn.140013c20
mov rbx, rax
test rax, rax
je 0x14002f1c6
mov rcx, rax
call fcn.14002ad10
mov rax, rbx
cmp word [rbx], r15w
je 0x14002f100
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextW]
cmp word [rax], r15w
jne 0x14002f0e7
cmp rbx, rax
ja 0x14002f132
nop
nop
movzx ecx, word [rax]
cmp cx, 0x2f
je 0x14002f132
cmp cx, 0x5c
je 0x14002f132
cmp cx, 0x3a
je 0x14002f132
cmp rax, rbx
je 0x14002f12d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharPrevW]
cmp rbx, rax
jbe 0x14002f100
jmp 0x14002f132
mov rax, rbx
jmp 0x14002f13b
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextW]
lea rdx, str.Setup
mov rcx, rax
call fcn.1400cdd20
test eax, eax
jne 0x14002f1b3
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.14000a8b0
mov rcx, rbx
call fcn.14002ad10
mov rcx, rbx
call fcn.14000fe50
mov rdx, r13
mov rcx, rax
call fcn.1400cdd20
test eax, eax
jne 0x14002f192
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x14002f192
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14002f1b3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [r12 + 8]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0xf50]
xor rcx, rsp
call fcn.1400cd6e0
mov rbx, qword [rsp + 0xfb0]
add rsp, 0xf60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret