Function at 0x100074b70
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 [0x100152198]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov r14, r8
mov rbx, rdx
mov rbp, rcx
mov qword [rsp + 0x40], rcx
lea rsi, [0x100153eb8]
mov r15d, 5
mov rdi, qword [0x100153eb8]
cmp rdi, rsi
je 0x100074c00
test byte [rdi + 0x1c], 1
je 0x100074c00
cmp byte [rdi + 0x19], r15b
jb 0x100074c00
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.10008efe4
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 0x100074c3a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov rcx, qword [0x100153eb8]
cmp rcx, rsi
je 0x100074c96
test byte [rcx + 0x1c], 2
je 0x100074c96
movzx eax, byte [rcx + 0x19]
mov edx, 2
test r9d, r9d
cmove edx, r15d
cmp eax, edx
jl 0x100074c96
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.10006b4d0
mov rcx, qword [0x100153eb8]
cmp r13, 0xffffffffffffffff
je 0x100074f15
lea rcx, [0x100152100]
mov rax, qword [0x100152100]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
mov r10, qword [0x100153eb8]
cmp r10, rsi
je 0x100074d35
test byte [r10 + 0x1c], 2
je 0x100074cf7
cmp byte [r10 + 0x19], r15b
jb 0x100074cf7
mov edx, 0xd3
lea r9, [rsp + 0x8c]
lea r8, [0x10001e430]
mov rcx, qword [r10 + 0x10]
call fcn.1000347a8
mov r10, qword [0x100153eb8]
cmp r10, rsi
je 0x100074d35
test byte [r10 + 0x1c], 1
je 0x100074d35
cmp byte [r10 + 0x19], r15b
jb 0x100074d35
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.10003b678
mov r10, qword [0x100153eb8]
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 0x100074dd9
xor ebp, ebp
test rbp, rbp
js 0x100074ed4
cmp esi, eax
jge 0x100074ed4
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 0x100074dc7
inc esi
add rbp, 8
mov eax, dword [r14 + 8]
cmp esi, eax
jl 0x100074d5c
mov r10, qword [0x100153eb8]
mov rbp, qword [rsp + 0x40]
jmp 0x100074dd9
mov r12d, 1
mov r10, qword [0x100153eb8]
mov rbp, qword [rsp + 0x40]
lea rsi, [0x100153eb8]
cmp r10, rsi
je 0x100074e12
test byte [r10 + 0x1c], 1
je 0x100074e1a
mov r15d, 5
cmp byte [r10 + 0x19], r15b
jb 0x100074e20
mov edx, 0xd0
mov r9d, r12d
lea r8, [0x10001e430]
mov rcx, qword [r10 + 0x10]
call fcn.100036510
jmp 0x100074e20
mov r15d, 5
jmp 0x100074e20
mov r15d, 5
test r12d, r12d
jne 0x100074ebd
lea r8, [rsp + 0x8c]
mov rdx, rbp
lea rcx, [rsp + 0x50]
call fcn.100057844
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.100035ef8
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x100074e6d
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 0x100074e89
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x100153eb8]
cmp rcx, rsi
je 0x100074ebd
test byte [rcx + 0x1c], 2
je 0x100074ebd
cmp byte [rcx + 0x19], r15b
jb 0x100074ebd
mov edx, 0xd4
mov dword [rsp + 0x20], edi
mov r9, rbx
lea r8, [0x10001e430]
mov rcx, qword [rcx + 0x10]
call fcn.10003b678
lea rdx, [rsp + 0x60]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x100074eea
jmp 0x100074cba
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 0x100074f0e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [0x100153eb8]
jmp 0x100074f15
mov rcx, qword [0x100153eb8]
cmp rcx, rsi
je 0x100074f35
test byte [rcx + 0x1c], 1
je 0x100074f35
mov edx, 0xd5
lea r8, [0x10001e430]
mov rcx, qword [rcx + 0x10]
call fcn.100034784
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.10011be80
mov rbx, qword [rsp + 0x318]
add rsp, 0x2c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret