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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x330]
sub rsp, 0x430
mov rax, qword [0x1403debe8]
xor rax, rsp
mov qword [rbp + 0x320], rax
mov r15, rcx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
xor ebx, ebx
mov edi, ebx
mov qword [rsp + 0x40], rbx
mov qword [rbp + 0x88], rbx
mov qword [rbp + 0x98], rbx
mov qword [rbp + 0xa0], SafeArrayLock
mov byte [rbp + 0x88], bl
lea r8d, [rbx + 0x4a]
lea rdx, [0x1402ce4c0]
lea rcx, [rbp + 0x88]
call fcn.1400f8490
lea r8d, [rbx + 1]
lea rdx, [0x1402d1710]
lea rcx, [rbp + 0x88]
call fcn.1400f8490
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x68], rbx
mov qword [rbp - 0x60], rbx
lea rsi, [rbp + 0x88]
mov r13, qword [rbp + 0x88]
mov r12, qword [rbp + 0xa0]
cmp r12, 0x10
cmovae rsi, r13
movabs rax, 0x7fffffffffffffff
mov r14, qword [rbp + 0x98]
cmp r14, 0x10
jae 0x14016ea06
movups xmm0, xmmword [rsi]
movups xmmword [rbp - 0x78], xmm0
lea ebx, [rdi + 0xf]
jmp 0x14016ea30
mov rbx, r14
or rbx, 0xf
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
call fcn.1400e1b00
mov qword [rbp - 0x78], rax
lea r8, [r14 + 1]
mov rdx, rsi
mov rcx, rax
call fcn.140244220
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x60], rbx
lea rdx, [rbp - 0x78]
lea rcx, [rbp + 0xa8]
call fcn.140201b70
nop
lea rcx, [rbp + 0xa8]
cmp qword [rbp + 0xc0], 8
cmovae rcx, qword [rbp + 0xa8]
lea rdx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x70]
mov rcx, r15
call fcn.14016f3d0
lea rcx, [rsp + 0x30]
cmp rcx, rax
je 0x14016eab2
mov r15, qword [rax]
mov qword [rsp + 0x30], r15
mov r14, qword [rax + 8]
mov qword [rsp + 0x38], r14
mov rdi, qword [rax + 0x10]
mov qword [rsp + 0x40], rdi
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
jmp 0x14016eabe
mov r14, qword [rsp + 0x38]
mov r15, qword [rsp + 0x30]
xor ecx, ecx
mov qword [rsp + 0x20], r15
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x14016eb71
mov rsi, qword [rsp + 0x78]
cmp rbx, rsi
je 0x14016eb39
nop dword [rax + rax]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14016eb1c
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14016eb15
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14016f304
mov rcx, r8
call fcn.14020be84
xor ecx, ecx
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], SafeArrayLock
mov byte [rbx], 0
add rbx, 0x20
cmp rbx, rsi
jne 0x14016eae0
mov rbx, qword [rsp + 0x70]
mov rdx, qword [rbp - 0x80]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
mov rax, rbx
cmp rdx, 0x1000
jb 0x14016eb69
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14016f304
mov rcx, rbx
call fcn.14020be84
mov rax, r14
sub rax, r15
sar rax, 5
test rax, rax
je 0x14016f30a
mov rcx, r15
mov rbx, r15
mov rsi, qword [r15 + 0x18]
cmp rsi, 0x10
jb 0x14016eb97
mov rcx, qword [r15]
mov r15, qword [r15 + 0x10]
cmp r15, 0xa
jne 0x14016ec2b
mov r8, r15
lea rdx, [0x1402dab40]
call fcn.140244120
test eax, eax
jne 0x14016ec2b
xor esi, esi
mov qword [rbp - 0x38], rsi
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x20], SafeArrayLock
lea ecx, [rax + 0x40]
call fcn.1400e1b00
mov rcx, rax
mov qword [rbp - 0x28], 0x32
mov qword [rbp - 0x20], 0x3f
movups xmm0, xmmword [str._AsusSystemAnalysisService__DeleteFile__OPEN_ERROR]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1402dab60]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x1402dab70]
movups xmmword [rax + 0x20], xmm0
movzx eax, word [0x1402dab80]
mov word [rcx + 0x30], ax
mov byte [rcx + 0x32], sil
mov qword [rbp - 0x38], rcx
lea rcx, [rbp - 0x38]
call fcn.1401955b0
mov r15, qword [rsp + 0x20]
jmp 0x14016f1e1
mov rdx, rbx
cmp rsi, 0x10
jb 0x14016ec3c
mov rdx, qword [rsp + 0x20]
mov rdx, qword [rdx]
xor esi, esi
cmp r15, 5
jne 0x14016ece1
mov ecx, esi
lea r8, str.EMPTY
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x14016ec69
cmp rcx, 5
jne 0x14016ec51
mov eax, esi
jmp 0x14016ec6e
sbb eax, eax
or eax, 1
test eax, eax
jne 0x14016ece1
cmp rbx, r14
je 0x14016ecd2
nop word [rax + rax]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14016ecba
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14016ecb5
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14016f310
mov rcx, r8
call fcn.14020be84
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], SafeArrayLock
mov byte [rbx], sil
add rbx, 0x20
cmp rbx, r14
jne 0x14016ec80
mov r15, qword [rsp + 0x20]
mov r14, r15
mov qword [rsp + 0x38], r15
jmp 0x14016ece6
mov r15, qword [rsp + 0x20]
mov qword [rbp + 0x28], rsi
mov qword [rbp + 0x40], SafeArrayLock
mov qword [rbp + 0x38], 7
mov eax, dword [str.BGFS.db]
mov dword [rbp + 0x28], eax
movzx eax, word [0x1402ce63c]
mov word [rbp + 0x2c], ax
movzx eax, byte [0x1402ce63e]
mov byte [rbp + 0x2e], al
mov byte [rbp + 0x2f], 0
cmp r14, rdi
je 0x14016ed46
movups xmm0, xmmword [rbp + 0x28]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rbp + 0x38]
movups xmmword [r14 + 0x10], xmm1
mov edx, SafeArrayGetLBound
mov byte [rbp + 0x28], 0
add r14, 0x20
mov qword [rsp + 0x38], r14
jmp 0x14016ed6f
lea r8, [rbp + 0x28]
mov rdx, r14
lea rcx, [rsp + 0x30]
call fcn.14016d9b0
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x38]
mov r15, qword [rsp + 0x30]
mov qword [rsp + 0x20], r15
mov rdx, qword [rbp + 0x40]
cmp rdx, 0x10
jb 0x14016eda6
inc rdx
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14016eda1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14016f310
call fcn.14020be84
mov byte [rbp + 0x28], 0
mov rax, qword [rsp + 0x28]
cmp rax, 0xffffffffffffffff
je 0x14016f1b1
lea rdx, [rbp + 0xd0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14016f19f
movabs rbx, 0x7ffffffffffffffe
movabs r13, 0x7fffffffffffffff
nop word [rax + rax]
test byte [rbp + 0xd0], 0x10
jne 0x14016f172
mov qword [rbp + 0x68], rsi
mov qword [rbp + 0x78], rsi
mov qword [rbp + 0x80], 7
mov word [rbp + 0x68], si
lea rax, [rbp + 0xfc]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x14016ee22
lea rdx, [rbp + 0xfc]
lea rcx, [rbp + 0x68]
call fcn.1400f8950
nop
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rsi
lea rsi, [rbp + 0x68]
mov r12, qword [rbp + 0x68]
cmp qword [rbp + 0x80], 8
cmovae rsi, r12
mov rdi, qword [rbp + 0x78]
cmp rdi, 8
jae 0x14016ee83
movups xmm0, xmmword [rsi]
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], 7
jmp 0x14016eedf
or rdi, 7
cmp rdi, rbx
cmova rdi, rbx
lea rcx, [rdi + 1]
cmp rcx, r13
ja 0x14016f32e
lfence
add rcx, rcx
call fcn.1400e1b00
mov qword [rsp + 0x50], rax
mov rbx, qword [rbp + 0x78]
lea r8, [rbx*2 + 2]
mov rdx, rsi
mov rcx, rax
call fcn.140244220
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rdi
mov r14, qword [rsp + 0x38]
mov r15, qword [rsp + 0x30]
mov qword [rsp + 0x20], r15
mov r12, qword [rbp + 0x68]
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x48]
call fcn.140202d30
nop
mov rbx, r15
mov rsi, qword [rbp + 0x60]
mov rdi, qword [rbp + 0x48]
cmp r15, r14
je 0x14016ef44
mov r15, qword [rbp + 0x58]
nop dword [rax]
nop word [rax + rax]
lea rdx, [rbp + 0x48]
cmp rsi, 0x10
cmovae rdx, rdi
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14016ef29
mov rcx, qword [rbx]
mov r8, qword [rbx + 0x10]
cmp r8, r15
jne 0x14016ef3b
call fcn.140244120
test eax, eax
je 0x14016ef44
add rbx, 0x20
cmp rbx, r14
jne 0x14016ef10
cmp rbx, r14
jne 0x14016f0d7
xor ebx, ebx
mov qword [rbp + 8], rbx
mov qword [rbp + 0x18], rbx
mov qword [rbp + 0x20], SafeArrayLock
mov byte [rbp + 8], bl
lea r8d, [rbx + 0x4a]
lea rdx, [0x1402ce4c0]
lea rcx, [rbp + 8]
call fcn.1400f8490
lea rdx, [rbp + 0x48]
cmp qword [rbp + 0x60], 0x10
cmovae rdx, qword [rbp + 0x48]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x14016ef90
lea rcx, [rbp + 8]
call fcn.1400f8490
lea rcx, [rbp + 8]
cmp qword [rbp + 0x20], 0x10
cmovae rcx, qword [rbp + 8]
call sub.api_ms_win_crt_filesystem_l1_1_0.dll_remove
mov r13, qword [rbp + 0x18]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, r13
cmp rax, 0x27
jb 0x14016f31c
lea r15, [rbp + 8]
cmp qword [rbp + 0x20], 0x10
cmovae r15, qword [rbp + 8]
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], rbx
lea rsi, [r13 + 0x27]
mov ebx, SafeArrayGetLBound
lea rdi, [rbp - 0x58]
cmp rsi, rbx
jbe 0x14016f02e
mov rbx, rsi
or rbx, 0xf
cmp rbx, rcx
jbe 0x14016f011
mov rbx, rcx
jmp 0x14016f01e
cmp rbx, 0x16
mov eax, SafeArrayPutElement
cmovb rbx, rax
lea rcx, [rbx + 1]
call fcn.1400e1b00
mov rdi, rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x40], rbx
movups xmm0, xmmword [str._AsusSystemAnalysisService__DeleteFile_]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [0x1402daba0]
movups xmmword [rdi + 0x10], xmm1
mov eax, dword [0x1402dabb0]
mov dword [rdi + 0x20], eax
movzx eax, word [0x1402dabb4]
mov word [rdi + 0x24], ax
movzx eax, byte [0x1402dabb6]
mov byte [rdi + 0x26], al
lea rcx, [rdi + 0x27]
mov r8, r13
mov rdx, r15
call fcn.140244220
mov byte [rdi + rsi], 0
lea rcx, [rbp - 0x58]
call fcn.140195010
nop
mov rdx, qword [rbp + 0x20]
cmp rdx, 0x10
jb 0x14016f0c1
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14016f0bc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14016f316
call fcn.14020be84
mov byte [rbp + 8], 0
mov rsi, qword [rbp + 0x60]
mov rdi, qword [rbp + 0x48]
movabs r13, 0x7fffffffffffffff
cmp rsi, 0x10
jb 0x14016f10e
lea rdx, [rsi + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x14016f106
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14016f322
mov rcx, rdi
call fcn.14020be84
xor esi, esi
mov qword [rbp + 0x58], rsi
mov qword [rbp + 0x60], SafeArrayLock
mov byte [rbp + 0x48], sil
mov rax, qword [rbp + 0x80]
cmp rax, 8
jb 0x14016f163
lea rdx, [rax*2 + 2]
mov rax, r12
cmp rdx, 0x1000
jb 0x14016f15b
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14016f328
mov rcx, r12
call fcn.14020be84
movabs rbx, 0x7ffffffffffffffe
mov r15, qword [rsp + 0x20]
lea rdx, [rbp + 0xd0]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14016edf0
mov rdi, qword [rsp + 0x40]
mov r12, qword [rbp + 0xa0]
mov r13, qword [rbp + 0x88]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov esi, 1
jmp 0x14016f1e1
mov qword [rbp - 0x18], rsi
mov qword [rbp - 8], rsi
mov qword [rbp], 7
mov r8d, SafeArrayPutElement
lea rdx, str.Can_not_open_the_path___n
lea rcx, [rbp - 0x18]
call fcn.1400f8950
lea rcx, [rbp - 0x18]
call fcn.140195940
nop
mov rdx, qword [rbp + 0xc0]
cmp rdx, 8
jb 0x14016f227
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xa8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14016f222
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14016f334
call fcn.14020be84
xor eax, eax
mov qword [rbp + 0xb8], rax
mov qword [rbp + 0xc0], 7
mov word [rbp + 0xa8], ax
cmp r12, 0x10
jb 0x14016f27b
lea rdx, [r12 + 1]
mov rax, r13
cmp rdx, 0x1000
jb 0x14016f272
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14016f33a
mov rcx, r13
call fcn.14020be84
nop
test r15, r15
je 0x14016f2cc
mov rbx, r15
cmp r15, r14
je 0x14016f299
mov rcx, rbx
call fcn.1400ebdb0
add rbx, 0x20
cmp rbx, r14
jne 0x14016f288
sub rdi, r15
and rdi, 0xffffffffffffffe0
mov rax, r15
cmp rdi, 0x1000
jb 0x14016f2c1
add rdi, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14016f2fe
mov rdx, rdi
mov rcx, r15
call fcn.14020be84
mov eax, esi
mov rcx, qword [rbp + 0x320]
xor rcx, rsp
call fcn.14020c3e0
lea r11, [rsp + 0x430]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
nop
call fcn.1401770d0
int3
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
nop
call fcn.1400f83d0
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
nop
call fcn.1400f8240
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
int3