Function at 0x140009640
Capabilities:
Enumerate files on windows
Get common file path
Set file attributes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x458]
sub rsp, 0x558
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov rax, qword [0x1400442d0]
xor rax, rsp
mov qword [rbp + 0x440], rax
mov r13, r9
mov rax, r8
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x58], rcx
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x30], rdx
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], r9
xor ebx, ebx
mov r12d, ebx
lea rcx, [rsp + 0x60]
call fcn.140004620
nop
mov word [rbp + 0x230], bx
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x232]
call fcn.14001bcd0
mov edx, 0x104
lea rcx, [rbp + 0x230]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
call fcn.1400011c0
mov rcx, rax
mov eax, ebx
test rcx, rcx
setne al
test eax, eax
jne 0x1400096f6
mov ecx, 0x80004005
call fcn.140004180
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x28], rbx
lea rcx, [rbp + 0x230]
lea rax, [rbp + 0x230]
or rsi, 0xffffffffffffffff
test rax, 0xffffffffffff0000
jne 0x14000974c
movzx edi, cx
mov ecx, edi
call fcn.140004240
test rax, rax
je 0x140009847
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14000cdd0
mov rbx, qword [rsp + 0x28]
jmp 0x140009847
lea rax, [rbp + 0x230]
mov rdi, rsi
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140009756
test edi, edi
jne 0x1400097c0
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x140009847
cmp dword [rdx + 0x10], 0
jge 0x140009799
cmp dword [rbx - 0xc], 0
jge 0x14000978c
mov ecx, 0x80070057
call fcn.140004180
int3
xor edi, edi
mov dword [rbx - 0x10], edi
mov word [rbx], di
jmp 0x140009849
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400097a9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x28], rbx
jmp 0x140009847
mov r15d, dword [rbx - 0x10]
lea r14, [rbp + 0x230]
sub r14, rbx
sar r14, 1
test edi, edi
jns 0x1400097e0
mov ecx, 0x80070057
call fcn.140004180
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140009802
mov edx, edi
lea rcx, [rsp + 0x28]
call fcn.14000d100
mov rbx, qword [rsp + 0x28]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r14, r15
lea r15, [rax + rax]
mov r9, r15
ja 0x140009826
lea r8, [rbx + r14*2]
call fcn.140019800
jmp 0x140009832
lea r8, [rbp + 0x230]
call fcn.14001a388
cmp edi, dword [rbx - 0xc]
jg 0x140009d87
mov dword [rbx - 0x10], edi
xor edi, edi
mov word [r15 + rbx], di
jmp 0x140009849
xor edi, edi
lea r8, str.Inf_
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.14000b6d0
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140009874
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea r8, str.oem.inf
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x40]
call fcn.14000b6d0
nop
lea rdx, [rbp - 0x20]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
mov qword [rbp - 0x58], rax
mov r15d, 1
mov r14d, r15d
mov eax, edi
setne al
test eax, eax
je 0x140009c31
lea r8, [rbp + 0xc]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.14000b6d0
nop
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rbx - 8], 0
jl 0x1400098f4
cmp rax, qword [rbx - 0x18]
jne 0x1400098f4
lea rdi, [rbx - 0x18]
lock inc dword [rbx - 8]
jmp 0x14000992f
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rbx - 0x10]
call qword [rax]
mov rdi, rax
test rax, rax
je 0x140009c2b
mov eax, dword [rbx - 0x10]
mov dword [rdi + 8], eax
mov eax, dword [rbx - 0x10]
inc eax
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rbx
add rdx, rdx
lea rcx, [rdi + 0x18]
call fcn.14001a388
lea rax, [rdi + 0x18]
mov qword [rbp - 0x60], rax
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x60]
call fcn.140008c30
test eax, eax
je 0x140009bc8
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax]
xor edi, edi
cmp dword [rdx - 0x10], edi
je 0x14000997f
mov eax, edi
test rdx, rdx
setne al
test eax, eax
je 0x140009bf4
mov rcx, qword [rsp + 0x78]
call fcn.1400198fc
mov r15d, edi
test eax, eax
sete r15b
mov rax, qword [r13]
cmp dword [rax - 0x10], 0
je 0x140009b3d
call fcn.1400011c0
mov rcx, rax
mov eax, edi
test rcx, rcx
setne al
test eax, eax
je 0x140009c0a
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
mov rcx, qword [rsp + 0x70]
cmp dword [rcx - 0x10], 0
jl 0x140009a80
lea rdx, [0x140038934]
call fcn.140019fb4
test rax, rax
je 0x140009a80
sub rax, qword [rsp + 0x70]
sar rax, 1
cmp eax, 0xffffffff
jle 0x140009a80
lea r8d, [rax + 1]
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x70]
call fcn.14000b5e0
nop
mov rcx, rax
call fcn.14000bec0
mov rcx, rax
call fcn.14000bf80
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x140009a61
cmp dword [rbx + 0x10], 0
jl 0x140009a52
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140009a52
call fcn.14000c860
mov rdi, rax
lock add dword [rbx + 0x10], 0xffffffff
jg 0x140009a45
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 8]
lea rax, [rdi + 0x18]
mov qword [rsp + 0x20], rax
xor edi, edi
jmp 0x140009a61
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x20]
call fcn.14000c770
nop
mov rdx, qword [rbp - 0x68]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140009a79
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x20]
jmp 0x140009aeb
lea rcx, [rsp + 0x70]
call fcn.14000bec0
mov rcx, rax
call fcn.14000bf80
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
lea rdi, [rbx - 0x18]
cmp rcx, rdi
je 0x140009ae9
cmp dword [rdi + 0x10], 0
jl 0x140009ad6
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140009ad6
call fcn.14000c860
mov rbx, rax
lock add dword [rdi + 0x10], 0xffffffff
jg 0x140009acb
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 8]
add rbx, 0x18
mov qword [rsp + 0x20], rbx
jmp 0x140009ae9
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x20]
call fcn.14000c770
mov rbx, qword [rsp + 0x20]
xor edi, edi
mov eax, edi
test rbx, rbx
setne al
test eax, eax
je 0x140009bff
mov rax, qword [r13]
mov rdx, rbx
sub rdx, rax
movzx ecx, word [rax]
cmp cx, word [rax + rdx]
jne 0x140009b1b
add rax, 2
test cx, cx
jne 0x140009b05
mov eax, edi
jmp 0x140009b20
sbb eax, eax
or eax, 1
mov r14d, edi
test eax, eax
sete r14b
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140009b3d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test r14d, r14d
je 0x140009bc8
test r15d, r15d
je 0x140009bc8
mov rax, qword [rsp + 0x58]
mov rdx, qword [rax]
mov eax, edi
test rdx, rdx
setne al
test eax, eax
je 0x140009c20
mov rcx, qword [rsp + 0x60]
call fcn.1400198fc
test eax, eax
jne 0x140009bc8
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax]
mov eax, edi
test rdx, rdx
setne al
test eax, eax
je 0x140009c15
mov rcx, qword [rsp + 0x68]
call fcn.1400198fc
test eax, eax
jne 0x140009bc8
mov edx, 0x80
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rbp + 0xc]
call qword [sym.imp.SETUPAPI.dll_SetupUninstallOEMInfW]
test eax, eax
je 0x140009bc1
inc r12d
jmp 0x140009bc8
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140009be1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rdx, [rbp - 0x20]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x1400098b0
mov ecx, 0x80004005
call fcn.140004180
nop
mov ecx, 0x80004005
call fcn.140004180
nop
mov ecx, 0x80004005
call fcn.140004180
int3
mov ecx, 0x80004005
call fcn.140004180
int3
mov ecx, 0x80004005
call fcn.140004180
int3
call fcn.14000d0f0
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140009c4b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140009c65
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x70]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140009c7d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140009c95
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140009cad
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140009cc6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140009cdf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140009cf8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140009d12
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rax, qword [rsp + 0x58]
mov rdx, qword [rax]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140009d2f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140009d4c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140009d69
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [r13]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140009d82
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, r12d
jmp 0x140009d92
mov ecx, 0x80070057
call fcn.140004180
nop
mov rcx, qword [rbp + 0x440]
xor rcx, rsp
call fcn.140018e90
add rsp, 0x558
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret