Function at 0x14006e7a0
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x360]
sub rsp, 0x460
mov rax, qword [0x1400dc3e8]
xor rax, rsp
mov qword [rbp + 0x350], rax
mov r14, r8
mov r15, rdx
mov rsi, rcx
xor r12d, r12d
mov rcx, rdx
call fcn.14001d728
mov qword [rbp + 0x20], r12
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0xd0], xmm0
movups xmmword [rbp + 0xe0], xmm0
mov qword [rbp + 0xf0], rax
movdqu xmmword [rsp + 0x40], xmm0
mov rdx, qword [rsi + 0x10]
test rdx, rdx
je 0x14006f10b
mov eax, dword [rdx + 8]
jmp 0x14006e824
lea ecx, [rax + 1]
lock cmpxchg dword [rdx + 8], ecx
je 0x14006e82e
test eax, eax
je 0x14006f10b
jmp 0x14006e81a
mov rax, qword [rsi + 8]
mov qword [rsp + 0x40], rax
mov rax, qword [rsi + 0x10]
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x40]
lea rdx, [0x1400a4730]
lea rcx, [rbp + 0xd0]
call fcn.14006d430
nop
or r13, 0xffffffffffffffff
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14006e8a7
mov eax, r13d
lock xadd dword [rcx + 8], eax
add eax, r13d
jne 0x14006e8a7
mov rbx, qword [rsp + 0x48]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x14006f593.0]
mov eax, r13d
lock xadd dword [rbx + 0xc], eax
add eax, r13d
jne 0x14006e8a7
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006f593.0]
mov rax, qword [rsi]
mov rbx, qword [rax + 0x48]
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x14006e8c9
mov qword [rbp + 0x20], r12
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [case.0x14006f593.0]
nop
lea r8, [rbp + 0x20]
mov rdx, qword [rbp + 0xe0]
mov rcx, rsi
mov rax, rbx
call qword [case.0x14006f593.0]
mov edi, eax
mov qword [rbp + 0x50], r12
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x60], xmm0
mov r8d, 0x2f
lea rdx, str.RoActivateInstance_for_IPackageManager_returned
lea rcx, [rbp + 0x50]
call fcn.140016628
nop
mov dword [rbp - 0x20], edi
mov rcx, qword [r14 + 0x38]
test rcx, rcx
je 0x14006f111
mov rax, qword [rcx]
lea r8, [rbp - 0x20]
lea rdx, [rbp + 0x50]
mov rax, qword [rax + 0x10]
call qword [case.0x14006f593.0]
nop
lea rcx, [rbp + 0x50]
call fcn.140007f4c
mov qword [rbp + 0x48], r12
test edi, edi
js 0x14006e967
mov rbx, qword [rbp + 0x20]
mov rax, qword [rbx]
mov rdi, qword [rax]
lea rcx, [rbp + 0x48]
call fcn.14006c414
mov r8, rax
lea rdx, [0x1400a4710]
mov rcx, rbx
mov rax, rdi
call qword [case.0x14006f593.0]
mov edi, eax
mov qword [rbp + 0x40], r12
test edi, edi
js 0x14006e98c
mov rcx, qword [rbp + 0x48]
mov rax, qword [rcx]
lea r9, [rbp + 0x40]
xor edx, edx
lea r8d, [rdx + 1]
mov rax, qword [rax + 0x50]
call qword [case.0x14006f593.0]
mov edi, eax
mov rcx, r12
mov qword [rbp + 8], rcx
test edi, edi
js 0x14006e9b2
mov rcx, qword [rbp + 0x40]
mov rax, qword [rcx]
lea rdx, [rbp + 8]
mov rax, qword [rax + 0x30]
call qword [case.0x14006f593.0]
mov edi, eax
mov rcx, qword [rbp + 8]
mov byte [rbp - 0x28], r12b
test edi, edi
js 0x14006f064
mov rax, qword [rcx]
lea rdx, [rbp - 0x28]
mov rax, qword [rax + 0x38]
call qword [case.0x14006f593.0]
mov edi, eax
cmp byte [rbp - 0x28], r12b
je 0x14006f060
mov qword [rbp], r12
test edi, edi
js 0x14006e9fa
mov rcx, qword [rbp + 8]
mov rax, qword [rcx]
lea rdx, [rbp]
mov rax, qword [rax + 0x30]
call qword [case.0x14006f593.0]
mov edi, eax
mov rcx, r12
mov qword [rbp + 0x18], rcx
test edi, edi
js 0x14006ea34
mov rbx, qword [rbp]
mov rax, qword [rbx]
mov rdi, qword [rax]
lea rcx, [rbp + 0x18]
call fcn.14006c414
mov r8, rax
lea rdx, [0x1400aea38]
mov rcx, rbx
mov rax, rdi
call qword [case.0x14006f593.0]
mov edi, eax
mov rcx, qword [rbp + 0x18]
mov rax, r12
mov qword [rbp + 0x10], rax
test edi, edi
js 0x14006ea56
mov rax, qword [rcx]
lea rdx, [rbp + 0x10]
mov rax, qword [rax + 0x40]
call qword [case.0x14006f593.0]
mov edi, eax
mov rax, qword [rbp + 0x10]
mov rcx, r12
mov qword [rbp - 8], rcx
test edi, edi
js 0x14006ea7a
xor r9d, r9d
lea r8d, [r9 + 8]
lea rdx, [rbp - 8]
mov rcx, rax
call fcn.14006c384
mov edi, eax
mov rcx, qword [rbp - 8]
mov edx, r12d
mov dword [rbp + 0x28], edx
test edi, edi
js 0x14006ea9e
mov rax, qword [rcx]
lea rdx, [rbp + 0x28]
mov rax, qword [rax + 0x38]
call qword [case.0x14006f593.0]
mov edi, eax
mov rcx, qword [rbp - 8]
mov edx, dword [rbp + 0x28]
mov qword [rbp + 0xb0], r12
mov rax, r12
mov qword [rbp + 0xc0], rax
mov qword [rbp + 0xc8], 7
mov word [rbp + 0xb0], r12w
test edx, edx
je 0x14006ebb2
mov qword [rbp - 0x10], rax
test edi, edi
js 0x14006eaeb
mov rax, qword [rcx]
lea r8, [rbp - 0x10]
xor edx, edx
mov rax, qword [rax + 0x30]
call qword [case.0x14006f593.0]
mov edi, eax
mov rax, qword [rbp - 0x10]
mov rcx, r12
mov qword [rbp + 0x30], rcx
test edi, edi
js 0x14006eb13
mov rcx, qword [rax]
mov r8, qword [rcx + 0x30]
lea rdx, [rbp + 0x30]
mov rcx, rax
mov rax, r8
call qword [case.0x14006f593.0]
mov edi, eax
mov rcx, qword [rbp + 0x30]
mov qword [rbp - 0x38], r12
test edi, edi
js 0x14006eb5d
mov rax, qword [rcx]
lea rdx, [rbp - 0x38]
mov rax, qword [rax + 0x30]
call qword [case.0x14006f593.0]
mov edi, eax
test eax, eax
js 0x14006eb5d
mov dword [rbp - 0x20], r12d
mov rax, qword [rsi]
lea r8, [rbp - 0x20]
mov rdx, qword [rbp - 0x38]
mov rcx, rsi
mov rax, qword [rax + 0x40]
call qword [case.0x14006f593.0]
mov rdx, rax
lea rcx, [rbp + 0xb0]
call fcn.140013f08
mov rax, qword [rsi]
mov rdx, qword [rbp - 0x38]
mov rcx, rsi
mov rax, qword [rax + 0x38]
call qword [case.0x14006f593.0]
mov qword [rbp - 0x38], r12
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x14006eb90
mov qword [rbp + 0x30], r12
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14006f593.0]
nop
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14006ebab
mov qword [rbp - 0x10], r12
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14006f593.0]
nop
mov rax, qword [rbp + 0xc0]
test rax, rax
je 0x14006eef3
mov rbx, r12
mov qword [rbp - 0x10], rbx
test edi, edi
js 0x14006ebe4
mov rbx, qword [rbp]
mov rax, qword [rbx]
lea rdx, [rbp - 0x10]
mov rcx, rbx
mov rax, qword [rax + 0x38]
call qword [case.0x14006f593.0]
mov edi, eax
mov rbx, qword [rbp - 0x10]
mov rcx, r12
mov qword [rbp + 0x38], rcx
test edi, edi
js 0x14006ec1a
mov rax, qword [rbx]
mov rdi, qword [rax]
lea rcx, [rbp + 0x38]
call fcn.14006c414
mov r8, rax
lea rdx, [0x1400ae9c8]
mov rcx, rbx
mov rax, rdi
call qword [case.0x14006f593.0]
mov edi, eax
mov rcx, qword [rbp + 0x38]
mov rdx, r12
mov qword [rbp - 0x30], rdx
test edi, edi
js 0x14006ec3c
mov rax, qword [rcx]
lea rdx, [rbp - 0x30]
mov rax, qword [rax + 0x60]
call qword [case.0x14006f593.0]
mov edi, eax
mov rdx, qword [rbp - 0x30]
mov dword [rbp - 0x18], r12d
mov rax, qword [rsi]
lea r8, [rbp - 0x18]
mov rcx, rsi
mov rax, qword [rax + 0x40]
call qword [case.0x14006f593.0]
mov qword [rbp + 0x50], r12
mov qword [rbp + 0x60], r12
mov qword [rbp + 0x68], r12
mov r8, r13
inc r8
cmp word [rax + r8*2], r12w
jne 0x14006ec63
mov rdx, rax
lea rcx, [rbp + 0x50]
call fcn.140016628
nop
mov rax, qword [rsi]
mov rdx, qword [rbp - 0x30]
mov rcx, rsi
mov rax, qword [rax + 0x38]
call qword [case.0x14006f593.0]
mov qword [rbp - 0x30], r12
cmp qword [rbp + 0x60], r12
je 0x14006eeb3
mov r8d, 6
lea rdx, str..exe
lea rcx, [rbp + 0x50]
call fcn.140024870
xor edx, edx
mov r8d, 0x250
lea rcx, [rbp + 0x100]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0x50]
cmp qword [rbp + 0x68], 8
cmovae rcx, qword [rbp + 0x50]
lea rdx, [rbp + 0x100]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, r13
je 0x14006eeb3
mov qword [rbp + 0x90], r12
mov qword [rbp + 0xa0], r12
mov qword [rbp + 0xa8], r12
lea rax, [rbp + 0x12c]
mov r8, r13
inc r8
cmp word [rax + r8*2], r12w
jne 0x14006ed0c
lea rdx, [rbp + 0x12c]
lea rcx, [rbp + 0x90]
call fcn.140016628
nop
mov qword [rbp + 0x70], r12
mov qword [rbp + 0x80], r12
mov qword [rbp + 0x88], 7
mov word [rbp + 0x70], r12w
lea rcx, [rbp + 0x90]
cmp qword [rbp + 0xa8], 8
setae r9b
cmovae rcx, qword [rbp + 0x90]
mov rax, qword [rbp + 0xa0]
lea r8, [rcx + rax*2]
lea rdx, [rbp + 0x90]
test r9b, r9b
cmovne rdx, qword [rbp + 0x90]
mov rax, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.14006d010
lea r9, [rbp + 0xb0]
lea r8, [rbp + 0x70]
lea rdx, [rsp + 0x78]
mov rcx, r15
call fcn.14006c9b0
movabs rax, 0x7ffffffffffffffe
mov rcx, qword [rbp + 0x80]
sub rax, rcx
cmp rax, 0x2a
jb 0x14006f11d
lea rax, [rbp + 0x70]
cmp qword [rbp + 0x88], 8
cmovae rax, qword [rbp + 0x70]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x2a
lea r9, str.Adding_entry_to_exe_to_friendly_name_map:
lea r8, [rbp + 0x70]
mov dl, byte [rbp - 0x28]
lea rcx, [rsp + 0x58]
call fcn.14001969c
nop
lea r8, [0x1400b55d8]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x58]
call fcn.1400244b0
nop
lea r8, [rbp + 0xb0]
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.14002451c
mov r9, rax
mov dword [rbp - 0x20], r12d
mov rcx, qword [r14 + 0x38]
test rcx, rcx
je 0x14006f117
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
lea r8, [rbp - 0x20]
mov rdx, r9
call qword [case.0x14006f593.0]
nop
lea rcx, [rbp - 0x78]
call fcn.140007f4c
nop
lea rcx, [rbp - 0x58]
call fcn.140007f4c
nop
lea rcx, [rsp + 0x58]
call fcn.140007f4c
nop
lea rcx, [rbp + 0x70]
call fcn.140007f4c
nop
lea rcx, [rbp + 0x90]
call fcn.140007f4c
lea rdx, [rbp + 0x100]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14006eced
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea rcx, [rbp + 0x50]
call fcn.140007f4c
nop
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x14006eed8
mov qword [rbp + 0x38], r12
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14006f593.0]
nop
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14006eef3
mov qword [rbp - 0x10], r12
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14006f593.0]
nop
test edi, edi
js 0x14006ef94
mov rcx, qword [rbp + 8]
mov rax, qword [rcx]
lea rdx, [rbp - 0x28]
mov rax, qword [rax + 0x40]
call qword [case.0x14006f593.0]
mov edi, eax
test eax, eax
js 0x14006ef94
lea rcx, [rbp + 0xb0]
call fcn.140007f4c
nop
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x14006ef3e
mov qword [rbp - 8], r12
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14006f593.0]
nop
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x14006ef59
mov qword [rbp + 0x10], r12
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14006f593.0]
nop
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x14006ef74
mov qword [rbp + 0x18], r12
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14006f593.0]
nop
mov rcx, qword [rbp]
test rcx, rcx
je 0x14006ef8f
mov qword [rbp], r12
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14006f593.0]
nop
jmp 0x14006e9d1
mov qword [rbp + 0x50], r12
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x60], xmm0
mov r8d, 0x25
lea rdx, str.Exe_to_friendly_name_iteration_failed
lea rcx, [rbp + 0x50]
call fcn.140016628
nop
mov dword [rbp - 0x18], edi
mov rcx, qword [r14 + 0x38]
test rcx, rcx
je 0x14006f105
mov rax, qword [rcx]
lea r8, [rbp - 0x18]
lea rdx, [rbp + 0x50]
mov rax, qword [rax + 0x10]
call qword [case.0x14006f593.0]
nop
lea rcx, [rbp + 0x50]
call fcn.140007f4c
nop
lea rcx, [rbp + 0xb0]
call fcn.140007f4c
nop
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x14006f00f
mov qword [rbp - 8], r12
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14006f593.0]
nop
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x14006f02a
mov qword [rbp + 0x10], r12
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14006f593.0]
nop
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x14006f045
mov qword [rbp + 0x18], r12
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14006f593.0]
nop
mov rcx, qword [rbp]
test rcx, rcx
je 0x14006f060
mov qword [rbp], r12
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14006f593.0]
nop
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x14006f07b
mov qword [rbp + 8], r12
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14006f593.0]
nop
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x14006f096
mov qword [rbp + 0x40], r12
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14006f593.0]
nop
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x14006f0b1
mov qword [rbp + 0x48], r12
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14006f593.0]
nop
lea rcx, [rbp + 0xd0]
call fcn.14006dce0
nop
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x14006f0d9
mov qword [rbp + 0x20], r12
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14006f593.0]
nop
mov eax, edi
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.140092030
mov rbx, qword [rsp + 0x4b8]
add rsp, 0x460
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call sub.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_
nop
call fcn.14006ff30
nop
call sub.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_
nop
call sub.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_
nop
call fcn.140016864
int3