Function at 0x14000658c
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x8c0
mov qword [r11 - 0x6f0], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x140126108]
xor rax, rsp
mov qword [rsp + 0x8b0], rax
mov r13, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [r11 - 0x248]
call fcn.140089b10
mov edx, 0x104
lea rcx, [rsp + 0x6a0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor r12d, r12d
test eax, eax
je 0x140006e4b
mov qword [rsp + 0x350], r12
mov qword [rsp + 0x358], r12
mov qword [rsp + 0x350], r12
lea ebx, [r12 + 7]
mov qword [rsp + 0x358], rbx
mov word [rsp + 0x340], r12w
lea rax, [rsp + 0x6a0]
or rsi, 0xffffffffffffffff
mov r8, rsi
inc r8
cmp word [rax + r8*2], r12w
jne 0x140006636
lea rdx, [rsp + 0x6a0]
lea rcx, [rsp + 0x340]
call fcn.140001a78
nop
mov r8d, 0x1e
lea rdx, str.PerformanceWinSATDataStore_
lea rcx, [rsp + 0x340]
call fcn.14000f738
mov qword [rsp + 0x370], r12
mov qword [rsp + 0x378], r12
lea rdx, [rsp + 0x340]
lea rcx, [rsp + 0x360]
call fcn.140001ae4
nop
mov r8d, 3
lea rdx, [0x1400e8d78]
lea rcx, [rsp + 0x360]
call fcn.14000f738
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x450]
call fcn.140089b10
lea rcx, [rsp + 0x360]
cmp qword [rsp + 0x378], 8
cmovae rcx, qword [rsp + 0x360]
lea rdx, [rsp + 0x450]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, rsi
je 0x140006e30
mov qword [rsp + 0x390], r12
mov qword [rsp + 0x398], r12
mov qword [rsp + 0x390], r12
mov qword [rsp + 0x398], rbx
mov word [rsp + 0x380], r12w
mov rbx, r12
mov r14d, 6
mov qword [rsp + 0x330], r12
mov qword [rsp + 0x338], r12
lea rdx, [rsp + 0x340]
lea rcx, [rsp + 0x320]
call fcn.140001ae4
nop
lea rax, [rsp + 0x47c]
mov r8, rsi
inc r8
cmp word [rax + r8*2], r12w
jne 0x14000675c
lea rdx, [rsp + 0x47c]
lea rcx, [rsp + 0x320]
call fcn.14000f738
test byte [rsp + 0x450], 0x10
jne 0x140006848
lea rcx, [rsp + 0x320]
cmp qword [rsp + 0x338], 8
cmovae rcx, qword [rsp + 0x320]
mov qword [rsp + 0x20], r14
lea r9, str.Formal
xor r8d, r8d
mov rdx, qword [rsp + 0x330]
call fcn.1400124b8
cmp rax, rsi
je 0x140006848
lea rcx, [rsp + 0x320]
cmp qword [rsp + 0x338], 8
cmovae rcx, qword [rsp + 0x320]
lea r8, [rsp + 0x3a0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x140006848
mov eax, dword [rsp + 0x3ac]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x3b0]
mov dword [rsp + 0x34], eax
cmp qword [rsp + 0x30], rbx
jle 0x140006848
mov rbx, qword [rsp + 0x30]
lea rdx, [rsp + 0x320]
cmp qword [rsp + 0x338], 8
cmovae rdx, qword [rsp + 0x320]
mov r8, qword [rsp + 0x330]
lea rcx, [rsp + 0x380]
call fcn.140001a78
nop
lea rcx, [rsp + 0x320]
call fcn.140001a14
lea rdx, [rsp + 0x450]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14000672b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea rcx, [rsp + 0x380]
call fcn.1400c2a98
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x208], rcx
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x210], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0xb0], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r12
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x78]
call fcn.1400c34f8
mov r15, r12
mov qword [rsp + 0x90], r12
mov rcx, r12
mov rax, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
sub rax, rdx
sar rax, 3
cmp rcx, rax
jae 0x140006d4a
mov rdi, qword [rdx + r15*8]
lea rdx, [rsp + 0x3c8]
mov rcx, rdi
call fcn.1400c3518
nop
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], r14
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0xc8], rcx
cmp qword [rax + 0x18], 8
jb 0x140006931
mov rax, qword [rax]
mov qword [rsp + 0xd0], rax
cmp rcx, r14
jne 0x14000695b
mov rcx, r14
lea rdx, str.WinSPR
mov dword [rsp + 0x3c], r12d
movzx r8d, word [rdx]
cmp word [rax], r8w
jae 0x140006977
mov dword [rsp + 0x3c], esi
mov bl, 1
mov byte [rsp + 0x38], bl
lea rcx, [rsp + 0x3c8]
call fcn.140001a14
test bl, bl
je 0x14000699b
jmp 0x140006d37
jbe 0x140006983
mov dword [rsp + 0x3c], 1
jmp 0x14000695b
cmp rcx, 1
je 0x140006996
dec rcx
add rax, 2
add rdx, 2
jmp 0x14000694d
mov bl, r12b
jmp 0x14000695d
lea rax, [rsp + 0x40]
mov qword [rsp + 0xd8], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0xe0], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r12
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1400c34f8
mov rsi, r12
mov qword [rsp + 0xa0], r12
mov rcx, r12
mov rax, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
sub rax, rdx
sar rax, 3
cmp rcx, rax
jae 0x140006c84
mov r14, qword [rdx + rsi*8]
lea rdx, [rsp + 0x3e8]
mov rcx, r14
call fcn.1400c35f8
nop
mov rbx, qword [rax + 0x10]
mov qword [rsp + 0xe8], rbx
test rbx, rbx
setne byte [rsp + 0x39]
lea rcx, [rsp + 0x3e8]
call fcn.140001a14
test rbx, rbx
je 0x140006c71
mov ecx, 0x40
call fcn.14006b1c0
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x108], rax
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], r12
mov qword [rsp + 0x110], rax
mov qword [rax + 0x10], r12
mov edx, 7
mov qword [rax + 0x18], rdx
mov word [rsp + 0x70], r12w
mov word [rax], r12w
lea rcx, [rax + 0x20]
mov qword [rsp + 0x118], rcx
mov qword [rsp + 0x120], rcx
mov qword [rcx + 0x10], r12
mov qword [rcx + 0x18], r12
mov qword [rsp + 0x128], rcx
mov qword [rcx + 0x10], r12
mov qword [rcx + 0x18], rdx
mov word [rsp + 0x72], r12w
mov word [rcx], r12w
mov qword [rsp + 0x130], rax
mov qword [rsp + 0x138], rax
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x140], rcx
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x408]
mov rcx, r14
call fcn.1400c3518
mov rbx, rax
mov rdi, qword [rsp + 0x30]
mov qword [rsp + 0x148], rdi
cmp rdi, rax
je 0x140006b54
mov rcx, rdi
call fcn.140001a14
mov qword [rsp + 0x150], rbx
mov qword [rsp + 0x158], rdi
mov qword [rsp + 0x160], rbx
mov r8d, 0x20
mov rdx, rbx
mov rcx, rdi
call fcn.140089700
mov qword [rsp + 0x168], rbx
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 7
mov word [rsp + 0x74], r12w
mov word [rbx], r12w
lea rcx, [rsp + 0x408]
call fcn.140001a14
lea rdx, [rsp + 0x428]
mov rcx, r14
call fcn.1400c35f8
mov rbx, rax
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x170], rcx
lea rdi, [rcx + 0x20]
cmp rdi, rax
je 0x140006bd9
mov rcx, rdi
call fcn.140001a14
mov qword [rsp + 0x178], rbx
mov qword [rsp + 0x180], rdi
mov qword [rsp + 0x188], rbx
mov r8d, 0x20
mov rdx, rbx
mov rcx, rdi
call fcn.140089700
mov qword [rsp + 0x190], rbx
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 7
mov word [rsp + 0x76], r12w
mov word [rbx], r12w
lea rcx, [rsp + 0x428]
call fcn.140001a14
lea rcx, [r13 + 0x2288]
mov qword [rsp + 0x198], rcx
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x1a0], rax
mov qword [rsp + 0x80], rax
mov rdx, qword [rcx + 8]
lea r8, [rsp + 0x80]
cmp qword [rcx + 0x10], rdx
je 0x140006c2e
mov qword [rsp + 0x1a8], r8
mov qword [rdx], rax
add qword [rcx + 8], 8
jmp 0x140006c33
call fcn.140012320
mov qword [rsp + 0x30], r12
mov rbx, qword [rsp + 0x30]
mov qword [rsp + 0x1b0], rbx
test rbx, rbx
je 0x140006c71
mov qword [rsp + 0x1b8], rbx
lea rcx, [rbx + 0x20]
call fcn.140001a14
nop
mov rcx, rbx
call fcn.140001a14
mov edx, 0x40
mov rcx, rbx
call fcn.14006b200
inc rsi
mov qword [rsp + 0xa0], rsi
mov rcx, rsi
jmp 0x1400069de
lea rax, [rsp + 0x40]
mov qword [rsp + 0x1c0], rax
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x1c8], rcx
test rcx, rcx
je 0x140006d2f
mov rax, qword [rsp + 0x50]
sub rax, rcx
sar rax, 3
mov qword [rsp + 0x1d0], rax
mov rdx, rax
shl rdx, 3
mov qword [rsp + 0x88], rdx
cmp rdx, 0x1000
jb 0x140006d1c
lfence
mov rdx, qword [rsp + 0x88]
add rdx, 0x27
mov qword [rsp + 0x88], rdx
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x1d8], rax
mov rcx, qword [rax - 8]
sub rax, rcx
mov qword [rsp + 0x1e0], rax
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006e7a
mov r15, qword [rsp + 0x90]
call fcn.14006b200
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r12
or rsi, 0xffffffffffffffff
lea r14d, [rsi + 7]
inc r15
mov qword [rsp + 0x90], r15
mov rcx, r15
jmp 0x1400068dc
lea rax, [rsp + 0x58]
mov qword [rsp + 0x1e8], rax
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x1f0], rcx
test rcx, rcx
je 0x140006dd9
mov rax, qword [rsp + 0x68]
sub rax, rcx
sar rax, 3
mov qword [rsp + 0xa8], rax
mov rdx, rax
shl rdx, 3
mov qword [rsp + 0x98], rdx
cmp rdx, 0x1000
jb 0x140006dc6
lfence
mov rdx, qword [rsp + 0x98]
add rdx, 0x27
mov qword [rsp + 0x98], rdx
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax - 8]
sub rax, rcx
sub rax, 8
cmp rax, 0x1f
ja 0x140006e80
call fcn.14006b200
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r12
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140006df5
mov rax, qword [rcx]
mov edx, 1
mov rax, qword [rax]
call qword [str._K_f_]
nop
lea rcx, [rsp + 0x380]
call fcn.140001a14
nop
lea rcx, [rsp + 0x360]
call fcn.140001a14
nop
lea rcx, [rsp + 0x340]
call fcn.140001a14
mov al, 1
jmp 0x140006e4d
lea rcx, [rsp + 0x360]
call fcn.140001a14
nop
lea rcx, [rsp + 0x340]
call fcn.140001a14
xor al, al
mov rcx, qword [rsp + 0x8b0]
xor rcx, rsp
call fcn.14006b320
lea r11, [rsp + 0x8c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.14008d3ec
nop
call fcn.14008d3ec
int3