Function at 0x1400214ac
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x320]
sub rsp, 0x420
mov rax, qword [0x140037db0]
xor rax, rsp
mov qword [rbp + 0x310], rax
lea rdx, [0x14002aa6c]
lea rcx, [rbp - 0x48]
call fcn.140007470
nop
lea rcx, [rbp + 0x18]
call fcn.14001dd6c
nop
lea r8, [rbp - 0x48]
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.14001d4a0
nop
lea rcx, [rbp + 0x18]
call fcn.140007fe4
nop
lea rcx, [rbp - 0x48]
call fcn.140007fe4
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rcx, qword [rbp - 0x28]
lea rdx, [rbp + 0xc0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
nop dword [rax + rax]
mov rbx, rax
mov qword [rsp + 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x14002159a
call fcn.140008bdc
mov rbx, rax
cmp dword [rax], 2
jbe 0x1400218a1
lea rax, str.Failed_to_find_files_in_platform_folder__not_deleting_sense_versions
mov qword [rsp + 0x50], rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea rdx, [0x14002f0cb]
mov rcx, rbx
call fcn.140002600
jmp 0x1400218a1
call fcn.14000d600
mov rdx, rax
lea rcx, [rbp - 0x48]
call fcn.140008740
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x48]
call fcn.14001aa48
test al, al
jne 0x140021619
call fcn.140008bdc
mov rbx, rax
cmp dword [rax], 2
jbe 0x140021897
lea rax, str.Failed_to_parse_sense_version_name__not_deleting_sense_versions
mov qword [rsp + 0x50], rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea rdx, [0x14002f0cb]
mov rcx, rbx
call fcn.140002600
jmp 0x140021897
lea rdx, str.SOFTWAREMicrosoftWindows_Advanced_Threat_Protection
lea rcx, [rbp + 0x78]
call fcn.140007470
nop
lea rdx, [0x140027c30]
lea rcx, [rbp + 0x58]
call fcn.140007470
nop
lea rdx, str.InstallLocation
lea rcx, [rbp + 0x38]
call fcn.140007470
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x78]
lea r8, [rbp + 0x58]
lea rdx, [rbp + 0x38]
lea rcx, [rbp + 0x98]
call fcn.14000ce24
nop
lea rcx, [rbp + 0x38]
call fcn.140007fe4
nop
lea rcx, [rbp + 0x58]
call fcn.140007fe4
nop
lea rcx, [rbp + 0x78]
call fcn.140007fe4
test byte [rbp + 0xc0], 0x10
je 0x14002186c
lea rdx, [rbp + 0xec]
lea rcx, [rbp - 0x68]
call fcn.140007470
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x68]
call fcn.14001aa48
test al, al
jne 0x14002170b
call fcn.140008bdc
cmp dword [rax], 4
jbe 0x140021863
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rcx, qword [rbp - 0x68]
mov qword [rsp + 0x50], rcx
lea rcx, str.Not_deleting_folder_because_it_doesnt_have_a_valid_version_name
mov qword [rsp + 0x60], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
lea rdx, [0x14002f099]
jmp 0x140021855
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x78]
call fcn.140019ed4
test al, al
jne 0x140021816
lea rdx, [rbp - 8]
lea rcx, [rsp + 0x78]
call fcn.140019f00
lea rdx, [rbp - 8]
lea rcx, [rbp + 0x98]
call fcn.140009730
mov rdi, rax
lea rcx, [rbp - 8]
call fcn.140007fe4
call fcn.140008bdc
cmp rdi, 0xffffffffffffffff
je 0x140021785
cmp dword [rax], 4
jbe 0x140021863
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rcx, qword [rbp - 0x68]
mov qword [rsp + 0x60], rcx
lea rcx, str.Not_deleting_folder_because_install_location_points_to_it__________________________this_means_InstallLocation_is_different_when_the_current_version__bug_
lea rdx, [0x14002f099]
jmp 0x140021841
cmp dword [rax], 4
jbe 0x1400217cc
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rcx, qword [rbp - 0x68]
mov qword [rsp + 0x60], rcx
lea rcx, str.Deleting_sense_version
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
lea rdx, [0x14002f06b]
mov rcx, rax
call fcn.14000248c
lea rcx, [rbp - 8]
call fcn.14001dd6c
nop
lea r8, [rbp - 0x68]
mov rdx, rax
lea rcx, [rbp + 0x18]
call fcn.14001d4a0
nop
lea rcx, [rbp - 8]
call fcn.140007fe4
or dword [rsp + 0x68], 0xffffffff
or dword [rsp + 0x6c], 0xffffffff
mov r8, qword [rsp + 0x68]
mov dl, 1
lea rcx, [rbp + 0x18]
call fcn.14000e494
nop
lea rcx, [rbp + 0x18]
call fcn.140007fe4
jmp 0x140021863
call fcn.140008bdc
cmp dword [rax], 4
jbe 0x140021863
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rcx, qword [rbp - 0x68]
mov qword [rsp + 0x60], rcx
lea rcx, str.Skipping_deleting_sense_version_as_its_the_same_version_that_runs_now
lea rdx, [0x14002f06b]
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.14000248c
nop
lea rcx, [rbp - 0x68]
call fcn.140007fe4
lea rdx, [rbp + 0xc0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14002168b
lea rcx, [rbp + 0x98]
call fcn.140007fe4
nop
lea rcx, [rbp - 0x48]
call fcn.140007fe4
nop
lea rcx, [rsp + 0x70]
call fcn.14001eb90
nop
lea rcx, [rbp - 0x28]
call fcn.140007fe4
mov rcx, qword [rbp + 0x310]
xor rcx, rsp
call fcn.14000f830
lea r11, [rsp + 0x420]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret