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

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2c0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x100151198]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov r14, r8
mov rbx, rdx
mov rbp, rcx
mov qword [rsp + 0x40], rcx
lea rsi, [0x100152eb8]
mov r15d, 5
mov rdi, qword [0x100152eb8]
cmp rdi, rsi
je 0x1000749a0
test byte [rdi + 0x1c], 1
je 0x1000749a0
cmp byte [rdi + 0x19], r15b
jb 0x1000749a0
mov eax, dword [r8 + 8]
mov rcx, qword [rdx]
mov edx, 0xd1
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9, qword [rbp]
lea r8, [0x10001e430]
mov rcx, qword [rdi + 0x10]
call fcn.10008ed5c
and dword [rsp + 0x60], 0
xor edx, edx
mov r8d, 0x24c
lea rcx, [rsp + 0x64]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x60]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r13, rax
xor r9d, r9d
cmp rax, 0xffffffffffffffff
jne 0x1000749da
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov rcx, qword [0x100152eb8]
cmp rcx, rsi
je 0x100074a36
test byte [rcx + 0x1c], 2
je 0x100074a36
movzx eax, byte [rcx + 0x19]
mov edx, 2
test r9d, r9d
cmove edx, r15d
cmp eax, edx
jl 0x100074a36
mov rax, qword [rbx]
mov edx, 0xd2
mov qword [rsp + 0x30], r13
lea rdi, [rsp + 0x8c]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
lea r8, [0x10001e430]
mov rcx, qword [rcx + 0x10]
call fcn.10006b224
mov rcx, qword [0x100152eb8]
cmp r13, 0xffffffffffffffff
je 0x100074cb5
lea rcx, [0x100151100]
mov rax, qword [0x100151100]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
mov r10, qword [0x100152eb8]
cmp r10, rsi
je 0x100074ad5
test byte [r10 + 0x1c], 2
je 0x100074a97
cmp byte [r10 + 0x19], r15b
jb 0x100074a97
mov edx, 0xd3
lea r9, [rsp + 0x8c]
lea r8, [0x10001e430]
mov rcx, qword [r10 + 0x10]
call fcn.100034788
mov r10, qword [0x100152eb8]
cmp r10, rsi
je 0x100074ad5
test byte [r10 + 0x1c], 1
je 0x100074ad5
cmp byte [r10 + 0x19], r15b
jb 0x100074ad5
mov eax, dword [r14 + 8]
mov edx, 0xcf
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x8c]
lea r8, [0x10001e430]
mov rcx, qword [r10 + 0x10]
call fcn.10009b2f4
mov r10, qword [0x100152eb8]
xor r12d, r12d
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x8c]
repne scasw ax, word [rdi]
not rcx
lea r15, [rcx - 1]
xor esi, esi
mov eax, dword [r14 + 8]
test eax, eax
jle 0x100074b79
xor ebp, ebp
test rbp, rbp
js 0x100074c74
cmp esi, eax
jge 0x100074c74
mov rax, qword [r14]
mov rdi, qword [rax + rbp]
mov rdx, rdi
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
not rcx
dec rcx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rdx
mov r9d, r15d
lea r8, [rsp + 0x8c]
lea edx, [rax + 1]
lea ecx, [rax + 0x7f]
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x100074b67
inc esi
add rbp, 8
mov eax, dword [r14 + 8]
cmp esi, eax
jl 0x100074afc
mov r10, qword [0x100152eb8]
mov rbp, qword [rsp + 0x40]
jmp 0x100074b79
mov r12d, 1
mov r10, qword [0x100152eb8]
mov rbp, qword [rsp + 0x40]
lea rsi, [0x100152eb8]
cmp r10, rsi
je 0x100074bb2
test byte [r10 + 0x1c], 1
je 0x100074bba
mov r15d, 5
cmp byte [r10 + 0x19], r15b
jb 0x100074bc0
mov edx, 0xd0
mov r9d, r12d
lea r8, [0x10001e430]
mov rcx, qword [r10 + 0x10]
call fcn.100036328
jmp 0x100074bc0
mov r15d, 5
jmp 0x100074bc0
mov r15d, 5
test r12d, r12d
jne 0x100074c5d
lea r8, [rsp + 0x8c]
mov rdx, rbp
lea rcx, [rsp + 0x50]
call fcn.100057780
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.100035ed8
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x100074c0d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
test eax, eax
jne 0x100074c29
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x100152eb8]
cmp rcx, rsi
je 0x100074c5d
test byte [rcx + 0x1c], 2
je 0x100074c5d
cmp byte [rcx + 0x19], r15b
jb 0x100074c5d
mov edx, 0xd4
mov dword [rsp + 0x20], edi
mov r9, rbx
lea r8, [0x10001e430]
mov rcx, qword [rcx + 0x10]
call fcn.10009b2f4
lea rdx, [rsp + 0x60]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x100074c8a
jmp 0x100074a5a
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov ecx, 0xc000008c
call qword [sym.imp.KERNEL32.dll_RaiseException]
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x100074cae
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [0x100152eb8]
jmp 0x100074cb5
mov rcx, qword [0x100152eb8]
cmp rcx, rsi
je 0x100074cd5
test byte [rcx + 0x1c], 1
je 0x100074cd5
mov edx, 0xd5
lea r8, [0x10001e430]
mov rcx, qword [rcx + 0x10]
call fcn.100034764
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.10011b980
mov rbx, qword [rsp + 0x318]
add rsp, 0x2c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret