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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x140168900]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
and qword [rsp + 0x48], 0
mov r12, rdx
mov r15, rcx
xor edi, edi
xor edx, edx
mov qword [rsp + 0x50], rdi
lea rcx, [rbp - 0x80]
mov r8d, 0x250
call fcn.140032ec0
and qword [rsp + 0x40], rdi
lea r9, str.SupportFiles.cab
and qword [rsp + 0x58], rdi
lea r8, [0x140127c20]
lea rdx, str._ls_ls
lea rcx, [rsp + 0x48]
call fcn.1400f23a4
mov r14d, eax
test eax, eax
jns 0x140053d0f
mov rcx, qword [0x140162280]
lea r15, [0x140162280]
cmp rcx, r15
je 0x140053cfb
mov r12b, 1
test byte [rcx + 0x1c], r12b
je 0x140053cfb
mov rcx, qword [rcx + 0x10]
lea r8, [0x140123930]
mov edx, 0x9a
mov r9d, eax
call fcn.140044450
mov edx, r14d
lea rcx, str.ERROR:_NewSprintfW___failed___lx__n
call fcn.1400ec5f0
jmp 0x14005422a
mov r9, qword [rsp + 0x48]
lea rdx, [0x140123d80]
mov r8, r15
lea rcx, [rsp + 0x40]
call fcn.1400f23a4
mov r14d, eax
test eax, eax
jns 0x140053d7c
mov rcx, qword [0x140162280]
lea r15, [0x140162280]
cmp rcx, r15
je 0x140053d63
mov r12b, 1
test byte [rcx + 0x1c], r12b
je 0x140053d63
mov rcx, qword [rcx + 0x10]
lea r8, [0x140123930]
mov edx, 0x9b
mov r9d, eax
call fcn.140044450
mov edx, r14d
lea rcx, str.ERROR:_NewSprintfW___failed___lx__n
call fcn.1400ec5f0
mov rbx, qword [rsp + 0x40]
jmp 0x140054210
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.1400edec0
mov r14d, eax
cmp eax, 0x80070004
je 0x1400541cd
cmp eax, 0x80070001
jle 0x1400541cd
add eax, 0x7ff8fffa
cmp eax, 0x7ff8fff9
jbe 0x1400541cd
mov rdx, qword [rsp + 0x48]
lea r8, [rsp + 0x58]
mov rcx, r15
call fcn.1400e0c80
mov r14d, eax
test eax, eax
jns 0x140053e13
mov rcx, qword [0x140162280]
lea r15, [0x140162280]
mov r12b, 1
cmp rcx, r15
je 0x140053dff
test byte [rcx + 0x1c], r12b
je 0x140053dff
mov rcx, qword [rcx + 0x10]
lea r8, [0x140123930]
mov edx, 0x9d
mov r9d, eax
call fcn.140044450
mov edx, r14d
lea rcx, str.ERROR:_InitMpCab___failed___lx__n
call fcn.1400ec5f0
jmp 0x14005417a
mov rax, qword [r12 + 8]
lea r15, [0x140162280]
mov r13, qword [r12]
mov r12b, 1
mov qword [rsp + 0x70], rax
cmp r13, rax
jmp 0x14005416c
mov r14, qword [r13]
mov al, byte [r13 + 8]
mov qword [rsp + 0x38], r14
mov byte [rsp + 0x30], al
test r14, r14
je 0x140054163
test rdi, rdi
je 0x140053e60
mov rcx, rdi
call fcn.140030c60
and qword [rsp + 0x50], 0
mov r8, r14
lea rdx, str._s
lea rcx, [rsp + 0x50]
call fcn.1400f23a4
mov edi, eax
test eax, eax
jns 0x140053ebc
mov rcx, qword [0x140162280]
cmp rcx, r15
je 0x140053ea4
test byte [rcx + 0x1c], r12b
je 0x140053ea4
mov rcx, qword [rcx + 0x10]
lea r8, [0x140123930]
mov edx, 0x9e
mov r9d, eax
call fcn.140044450
mov edx, edi
lea rcx, str.ERROR:_NewSprintfW___failed___lx__n
call fcn.1400ec5f0
mov rdi, qword [rsp + 0x50]
jmp 0x140054163
mov rdi, qword [rsp + 0x50]
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x60], rax
cmp rax, 0xffffffffffffffff
jne 0x140053f17
call fcn.1400f259c
mov r14d, eax
mov rcx, qword [0x140162280]
cmp rcx, r15
je 0x140053f0b
test byte [rcx + 0x1c], r12b
je 0x140053f0b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140123930]
mov edx, 0x9f
mov r9d, eax
call fcn.140044450
lea rcx, str.ERROR:_Invalid_file_handle_in_FindFirstFileW_____lx__n
jmp 0x14005415b
mov r13b, byte [rsp + 0x30]
mov rdi, rax
test byte [rbp - 0x80], 0x10
jne 0x1400540ac
mov rcx, qword [rsp + 0x48]
lea rdx, [rbp - 0x54]
call fcn.140005abc
test eax, eax
je 0x1400540ac
test rbx, rbx
je 0x140053f52
mov rcx, rbx
call fcn.140030c60
and qword [rsp + 0x40], 0
lea r9, [rbp - 0x54]
mov r8, r14
lea rdx, [0x140123d80]
lea rcx, [rsp + 0x40]
call fcn.1400f23a4
mov ebx, eax
test eax, eax
jns 0x140053fb2
mov rcx, qword [0x140162280]
cmp rcx, r15
je 0x140053f9a
test byte [rcx + 0x1c], r12b
je 0x140053f9a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140123930]
mov edx, 0xa0
mov r9d, eax
call fcn.140044450
mov edx, ebx
lea rcx, str.ERROR:_NewSprintfW___failed___lx__n
call fcn.1400ec5f0
mov rbx, qword [rsp + 0x40]
jmp 0x1400540ac
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x58]
mov r8, rbx
mov rdx, rbx
call fcn.1400e0724
mov r14d, eax
test eax, eax
jns 0x140054010
mov rcx, qword [0x140162280]
cmp rcx, r15
je 0x140053ff6
test byte [rcx + 0x1c], r12b
je 0x140053ff6
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call fcn.1400604e0
mov r9, rbx
lea rcx, str.ERROR:_AddFileToMpCab___failed___lx__r_nFile:__ls_r_nAlias:__ls_r_n
mov r8, rbx
mov edx, r14d
call fcn.1400ec5f0
jmp 0x1400540a7
test r13b, r13b
je 0x1400540a7
mov r8d, 0xc
lea rdx, [rbp - 0x54]
lea rcx, str.mpdetection_
call fcn.14000f5bc
test eax, eax
je 0x1400540a7
mov r8d, 6
lea rdx, [rbp - 0x54]
lea rcx, str.mplog_
call fcn.14000f5bc
test eax, eax
je 0x1400540a7
mov r8d, 0xd
lea rdx, [rbp - 0x54]
lea rcx, str.mpwpptracing_
call fcn.14000f5bc
test eax, eax
je 0x1400540a7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400540a7
call fcn.1400f259c
mov rcx, qword [0x140162280]
cmp rcx, r15
je 0x1400540a7
test byte [rcx + 0x1c], 2
je 0x1400540a7
mov rcx, qword [rcx + 0x10]
lea r8, [0x140123930]
mov edx, 0xa2
mov dword [rsp + 0x20], eax
mov r9, rbx
call fcn.140044764
mov r14, qword [rsp + 0x38]
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140053f1f
call fcn.1400f259c
mov rdi, qword [rsp + 0x50]
mov r14d, eax
mov r13, qword [rsp + 0x68]
cmp eax, 0x80070012
je 0x140054113
mov rcx, qword [0x140162280]
cmp rcx, r15
je 0x140054104
test byte [rcx + 0x1c], r12b
je 0x140054104
mov rcx, qword [rcx + 0x10]
lea r8, [0x140123930]
mov edx, 0xa3
mov r9d, eax
call fcn.140044450
mov edx, r14d
lea rcx, str.ERROR:_FindNextFile___failed___lx__n
call fcn.1400ec5f0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
jne 0x140054163
call fcn.1400f259c
mov r14d, eax
mov rcx, qword [0x140162280]
cmp rcx, r15
je 0x140054154
test byte [rcx + 0x1c], r12b
je 0x140054154
mov rcx, qword [rcx + 0x10]
lea r8, [0x140123930]
mov edx, 0xa4
mov r9d, eax
call fcn.140044450
lea rcx, str.ERROR:_FindClose___failed___lx__n
mov edx, r14d
call fcn.1400ec5f0
add r13, 0x10
cmp r13, qword [rsp + 0x70]
mov qword [rsp + 0x68], r13
jne 0x140053e33
xor r14d, r14d
cmp qword [rsp + 0x58], 0
je 0x140054210
mov rcx, qword [rsp + 0x58]
call fcn.1400e0a18
mov r13d, eax
test eax, eax
jns 0x140054210
mov rcx, qword [0x140162280]
cmp rcx, r15
je 0x1400541c1
test byte [rcx + 0x1c], r12b
je 0x1400541c1
mov rcx, qword [rcx + 0x10]
lea r8, [0x140123930]
mov edx, 0xa5
mov r9d, eax
call fcn.140044450
mov edx, r13d
lea rcx, str.ERROR:_CloseMpCab___failed___lx__n
jmp 0x14005420b
mov rcx, qword [0x140162280]
lea r15, [0x140162280]
cmp rcx, r15
je 0x140054201
mov r12b, 1
test byte [rcx + 0x1c], r12b
je 0x140054201
mov rcx, qword [rcx + 0x10]
lea r8, [0x140123930]
mov edx, 0x9c
mov r9d, r14d
call fcn.140044450
mov edx, r14d
lea rcx, str.ERROR:_UtilDeletePathSafe___failed___lx__n
call fcn.1400ec5f0
test rbx, rbx
je 0x14005421d
mov rcx, rbx
call fcn.140030c60
test rdi, rdi
je 0x14005422a
mov rcx, rdi
call fcn.140030c60
cmp qword [rsp + 0x48], 0
je 0x14005423c
mov rcx, qword [rsp + 0x48]
call fcn.140030c60
mov eax, r14d
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140030c40
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret