Function at 0x140018bf0
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 [0x14015da88]
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.1400eb6e0
and qword [rsp + 0x40], rdi
lea r9, str.SupportFiles.cab
and qword [rsp + 0x58], rdi
lea r8, [0x140123440]
lea rdx, str._ls_ls
lea rcx, [rsp + 0x48]
call fcn.1400b4ccc
mov r14d, eax
test eax, eax
jns 0x140018cbf
mov rcx, qword [0x140158280]
lea r15, [0x140158280]
cmp rcx, r15
je 0x140018cab
mov r12b, 1
test byte [rcx + 0x1c], r12b
je 0x140018cab
mov rcx, qword [rcx + 0x10]
lea r8, [0x140125698]
mov edx, 0x97
mov r9d, eax
call fcn.1400059f4
mov edx, r14d
lea rcx, str.ERROR:_NewSprintfW___failed___lx__n
call fcn.1400ae8a0
jmp 0x1400191da
mov r9, qword [rsp + 0x48]
lea rdx, [0x14011f890]
mov r8, r15
lea rcx, [rsp + 0x40]
call fcn.1400b4ccc
mov r14d, eax
test eax, eax
jns 0x140018d2c
mov rcx, qword [0x140158280]
lea r15, [0x140158280]
cmp rcx, r15
je 0x140018d13
mov r12b, 1
test byte [rcx + 0x1c], r12b
je 0x140018d13
mov rcx, qword [rcx + 0x10]
lea r8, [0x140125698]
mov edx, 0x98
mov r9d, eax
call fcn.1400059f4
mov edx, r14d
lea rcx, str.ERROR:_NewSprintfW___failed___lx__n
call fcn.1400ae8a0
mov rbx, qword [rsp + 0x40]
jmp 0x1400191c0
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.1400afeb0
mov r14d, eax
cmp eax, 0x80070004
je 0x14001917d
cmp eax, 0x80070001
jle 0x14001917d
add eax, 0x7ff8fffa
cmp eax, 0x7ff8fff9
jbe 0x14001917d
mov rdx, qword [rsp + 0x48]
lea r8, [rsp + 0x58]
mov rcx, r15
call fcn.1400a29c4
mov r14d, eax
test eax, eax
jns 0x140018dc3
mov rcx, qword [0x140158280]
lea r15, [0x140158280]
mov r12b, 1
cmp rcx, r15
je 0x140018daf
test byte [rcx + 0x1c], r12b
je 0x140018daf
mov rcx, qword [rcx + 0x10]
lea r8, [0x140125698]
mov edx, 0x9a
mov r9d, eax
call fcn.1400059f4
mov edx, r14d
lea rcx, str.ERROR:_InitMpCab___failed___lx__n
call fcn.1400ae8a0
jmp 0x14001912a
mov rax, qword [r12 + 8]
lea r15, [0x140158280]
mov r13, qword [r12]
mov r12b, 1
mov qword [rsp + 0x70], rax
cmp r13, rax
jmp 0x14001911c
mov r14, qword [r13]
mov al, byte [r13 + 8]
mov qword [rsp + 0x38], r14
mov byte [rsp + 0x30], al
test r14, r14
je 0x140019113
test rdi, rdi
je 0x140018e10
mov rcx, rdi
call fcn.1400e9470
and qword [rsp + 0x50], 0
mov r8, r14
lea rdx, str._s
lea rcx, [rsp + 0x50]
call fcn.1400b4ccc
mov edi, eax
test eax, eax
jns 0x140018e6c
mov rcx, qword [0x140158280]
cmp rcx, r15
je 0x140018e54
test byte [rcx + 0x1c], r12b
je 0x140018e54
mov rcx, qword [rcx + 0x10]
lea r8, [0x140125698]
mov edx, 0x9b
mov r9d, eax
call fcn.1400059f4
mov edx, edi
lea rcx, str.ERROR:_NewSprintfW___failed___lx__n
call fcn.1400ae8a0
mov rdi, qword [rsp + 0x50]
jmp 0x140019113
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 0x140018ec7
call fcn.1400b4f5c
mov r14d, eax
mov rcx, qword [0x140158280]
cmp rcx, r15
je 0x140018ebb
test byte [rcx + 0x1c], r12b
je 0x140018ebb
mov rcx, qword [rcx + 0x10]
lea r8, [0x140125698]
mov edx, 0x9c
mov r9d, eax
call fcn.1400059f4
lea rcx, str.ERROR:_Invalid_file_handle_in_FindFirstFileW_____lx__n
jmp 0x14001910b
mov r13b, byte [rsp + 0x30]
mov rdi, rax
test byte [rbp - 0x80], 0x10
jne 0x14001905c
mov rcx, qword [rsp + 0x48]
lea rdx, [rbp - 0x54]
call fcn.1400be21c
test eax, eax
je 0x14001905c
test rbx, rbx
je 0x140018f02
mov rcx, rbx
call fcn.1400e9470
and qword [rsp + 0x40], 0
lea r9, [rbp - 0x54]
mov r8, r14
lea rdx, [0x14011f890]
lea rcx, [rsp + 0x40]
call fcn.1400b4ccc
mov ebx, eax
test eax, eax
jns 0x140018f62
mov rcx, qword [0x140158280]
cmp rcx, r15
je 0x140018f4a
test byte [rcx + 0x1c], r12b
je 0x140018f4a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140125698]
mov edx, 0x9d
mov r9d, eax
call fcn.1400059f4
mov edx, ebx
lea rcx, str.ERROR:_NewSprintfW___failed___lx__n
call fcn.1400ae8a0
mov rbx, qword [rsp + 0x40]
jmp 0x14001905c
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x58]
mov r8, rbx
mov rdx, rbx
call fcn.1400a3120
mov r14d, eax
test eax, eax
jns 0x140018fc0
mov rcx, qword [0x140158280]
cmp rcx, r15
je 0x140018fa6
test byte [rcx + 0x1c], r12b
je 0x140018fa6
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call fcn.1400132ac
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.1400ae8a0
jmp 0x140019057
test r13b, r13b
je 0x140019057
mov r8d, 0xc
lea rdx, [rbp - 0x54]
lea rcx, str.mpdetection_
call fcn.1400c78b8
test eax, eax
je 0x140019057
mov r8d, 6
lea rdx, [rbp - 0x54]
lea rcx, str.mplog_
call fcn.1400c78b8
test eax, eax
je 0x140019057
mov r8d, 0xd
lea rdx, [rbp - 0x54]
lea rcx, str.mpwpptracing_
call fcn.1400c78b8
test eax, eax
je 0x140019057
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140019057
call fcn.1400b4f5c
mov rcx, qword [0x140158280]
cmp rcx, r15
je 0x140019057
test byte [rcx + 0x1c], 2
je 0x140019057
mov rcx, qword [rcx + 0x10]
lea r8, [0x140125698]
mov edx, 0x9f
mov dword [rsp + 0x20], eax
mov r9, rbx
call fcn.140005648
mov r14, qword [rsp + 0x38]
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140018ecf
call fcn.1400b4f5c
mov rdi, qword [rsp + 0x50]
mov r14d, eax
mov r13, qword [rsp + 0x68]
cmp eax, 0x80070012
je 0x1400190c3
mov rcx, qword [0x140158280]
cmp rcx, r15
je 0x1400190b4
test byte [rcx + 0x1c], r12b
je 0x1400190b4
mov rcx, qword [rcx + 0x10]
lea r8, [0x140125698]
mov edx, 0xa0
mov r9d, eax
call fcn.1400059f4
mov edx, r14d
lea rcx, str.ERROR:_FindNextFile___failed___lx__n
call fcn.1400ae8a0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
jne 0x140019113
call fcn.1400b4f5c
mov r14d, eax
mov rcx, qword [0x140158280]
cmp rcx, r15
je 0x140019104
test byte [rcx + 0x1c], r12b
je 0x140019104
mov rcx, qword [rcx + 0x10]
lea r8, [0x140125698]
mov edx, 0xa1
mov r9d, eax
call fcn.1400059f4
lea rcx, str.ERROR:_FindClose___failed___lx__n
mov edx, r14d
call fcn.1400ae8a0
add r13, 0x10
cmp r13, qword [rsp + 0x70]
mov qword [rsp + 0x68], r13
jne 0x140018de3
xor r14d, r14d
cmp qword [rsp + 0x58], 0
je 0x1400191c0
mov rcx, qword [rsp + 0x58]
call fcn.1400a341c
mov r13d, eax
test eax, eax
jns 0x1400191c0
mov rcx, qword [0x140158280]
cmp rcx, r15
je 0x140019171
test byte [rcx + 0x1c], r12b
je 0x140019171
mov rcx, qword [rcx + 0x10]
lea r8, [0x140125698]
mov edx, 0xa2
mov r9d, eax
call fcn.1400059f4
mov edx, r13d
lea rcx, str.ERROR:_CloseMpCab___failed___lx__n
jmp 0x1400191bb
mov rcx, qword [0x140158280]
lea r15, [0x140158280]
cmp rcx, r15
je 0x1400191b1
mov r12b, 1
test byte [rcx + 0x1c], r12b
je 0x1400191b1
mov rcx, qword [rcx + 0x10]
lea r8, [0x140125698]
mov edx, 0x99
mov r9d, r14d
call fcn.1400059f4
mov edx, r14d
lea rcx, str.ERROR:_UtilDeletePathSafe___failed___lx__n
call fcn.1400ae8a0
test rbx, rbx
je 0x1400191cd
mov rcx, rbx
call fcn.1400e9470
test rdi, rdi
je 0x1400191da
mov rcx, rdi
call fcn.1400e9470
cmp qword [rsp + 0x48], 0
je 0x1400191ec
mov rcx, qword [rsp + 0x48]
call fcn.1400e9470
mov eax, r14d
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.1400e9450
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