Function at 0x14000a720
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 - 0x488]
sub rsp, 0x588
mov qword [rbp - 8], 0xfffffffffffffffe
mov rax, qword [0x1400512d0]
xor rax, rsp
mov qword [rbp + 0x470], rax
mov r12, r9
mov rax, r8
mov qword [rbp - 0x50], rax
mov r8, rdx
mov qword [rbp - 0x48], rdx
mov rdx, rcx
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x10], rcx
mov qword [rbp], r8
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], r9
test byte [0x1400512b0], 2
je 0x14000a7b1
mov rax, qword [rax]
mov rcx, qword [r8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r9, qword [rdx]
lea r8, str.Remove_OEM_inf_with_Class:__s__Provider:__s__DeviceDescription:__s_n
mov edx, 2
lea rcx, str.DeleteOEMInfFiles
call fcn.1400206a0
xor ebx, ebx
mov r13d, ebx
lea rcx, [rsp + 0x70]
call fcn.140004b20
nop
mov word [rbp + 0x260], bx
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x262]
call fcn.140024640
mov edx, 0x104
lea rcx, [rbp + 0x260]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
call fcn.1400011d0
mov rcx, rax
mov eax, ebx
test rcx, rcx
setne al
test eax, eax
jne 0x14000a80d
mov ecx, 0x80004005
call fcn.1400047a0
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x58], rbx
lea rcx, [rbp + 0x260]
lea rax, [rbp + 0x260]
or r15, 0xffffffffffffffff
test rax, 0xffffffffffff0000
jne 0x14000a863
movzx edi, cx
mov ecx, edi
call fcn.140004860
test rax, rax
je 0x14000a961
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.14000e650
mov rbx, qword [rsp + 0x58]
jmp 0x14000a961
lea rax, [rbp + 0x260]
mov rdi, r15
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14000a870
test edi, edi
jne 0x14000a8da
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x14000a961
cmp dword [rdx + 0x10], 0
jge 0x14000a8b3
cmp dword [rbx - 0xc], 0
jge 0x14000a8a6
mov ecx, 0x80070057
call fcn.1400047a0
int3
xor edi, edi
mov dword [rbx - 0x10], edi
mov word [rbx], di
jmp 0x14000a963
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000a8c3
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 + 0x58], rbx
jmp 0x14000a961
mov r14d, dword [rbx - 0x10]
lea rsi, [rbp + 0x260]
sub rsi, rbx
sar rsi, 1
test edi, edi
jns 0x14000a8fa
mov ecx, 0x80070057
call fcn.1400047a0
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14000a91c
mov edx, edi
lea rcx, [rsp + 0x58]
call fcn.14000e980
mov rbx, qword [rsp + 0x58]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp rsi, r14
lea r14, [rax + rax]
mov r9, r14
ja 0x14000a940
lea r8, [rbx + rsi*2]
call fcn.14002205c
jmp 0x14000a94c
lea r8, [rbp + 0x260]
call fcn.140022da0
cmp edi, dword [rbx - 0xc]
jg 0x14000af43
mov dword [rbx - 0x10], edi
xor edi, edi
mov word [r14 + rbx], di
jmp 0x14000a963
xor edi, edi
lea r8, str.Inf_
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x68]
call fcn.14000cf60
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000a98e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea r8, str.oem.inf
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x58]
call fcn.14000cf60
nop
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
mov qword [rbp - 0x28], rax
mov esi, 1
mov r14d, esi
mov eax, edi
setne al
test eax, eax
je 0x14000adf3
lea r8, [rbp + 0x3c]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x60]
call fcn.14000cf60
nop
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rbx - 8], 0
jl 0x14000aa0b
cmp rax, qword [rbx - 0x18]
jne 0x14000aa0b
lea rdi, [rbx - 0x18]
lock inc dword [rbx - 8]
jmp 0x14000aa46
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rbx - 0x10]
call qword [rax]
mov rdi, rax
test rax, rax
je 0x14000aded
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.140022da0
lea rax, [rdi + 0x18]
mov qword [rbp - 0x30], rax
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x30]
call fcn.140009ac0
test eax, eax
je 0x14000ad8a
mov rax, qword [rbp - 0x50]
mov rdx, qword [rax]
xor edi, edi
cmp dword [rdx - 0x10], edi
je 0x14000aa94
mov eax, edi
test rdx, rdx
setne al
test eax, eax
je 0x14000adb6
mov rcx, qword [rbp - 0x78]
call fcn.140022158
mov r14d, edi
test eax, eax
sete r14b
mov rax, qword [r12]
cmp dword [rax - 0x10], 0
je 0x14000ac4d
call fcn.1400011d0
mov rcx, rax
mov eax, edi
test rcx, rcx
setne al
test eax, eax
je 0x14000adcc
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
mov rcx, qword [rbp - 0x80]
cmp dword [rcx - 0x10], 0
jl 0x14000ab92
lea rdx, [0x140042098]
call fcn.1400229cc
test rax, rax
je 0x14000ab92
sub rax, qword [rbp - 0x80]
sar rax, 1
cmp eax, 0xffffffff
jle 0x14000ab92
lea r8d, [rax + 1]
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x80]
call fcn.14000ce70
nop
mov rcx, rax
call fcn.14000d750
mov rcx, rax
call fcn.14000cd50
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x14000ab73
cmp dword [rbx + 0x10], 0
jl 0x14000ab64
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14000ab64
call fcn.14000e0f0
mov rdi, rax
lock add dword [rbx + 0x10], 0xffffffff
jg 0x14000ab57
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 8]
lea rax, [rdi + 0x18]
mov qword [rsp + 0x50], rax
xor edi, edi
jmp 0x14000ab73
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x50]
call fcn.14000e000
nop
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000ab8b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x50]
jmp 0x14000abfc
lea rcx, [rbp - 0x80]
call fcn.14000d750
mov rcx, rax
call fcn.14000cd50
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
lea rdi, [rbx - 0x18]
cmp rcx, rdi
je 0x14000abfa
cmp dword [rdi + 0x10], 0
jl 0x14000abe7
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14000abe7
call fcn.14000e0f0
mov rbx, rax
lock add dword [rdi + 0x10], 0xffffffff
jg 0x14000abdc
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 8]
add rbx, 0x18
mov qword [rsp + 0x50], rbx
jmp 0x14000abfa
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x50]
call fcn.14000e000
mov rbx, qword [rsp + 0x50]
xor edi, edi
mov eax, edi
test rbx, rbx
setne al
test eax, eax
je 0x14000adc1
mov rax, qword [r12]
mov rdx, rbx
sub rdx, rax
movzx ecx, word [rax]
cmp cx, word [rax + rdx]
jne 0x14000ac2c
add rax, 2
test cx, cx
jne 0x14000ac16
mov eax, edi
jmp 0x14000ac31
sbb eax, eax
or eax, 1
mov esi, edi
test eax, eax
sete sil
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000ac4d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test esi, esi
je 0x14000ad8a
test r14d, r14d
je 0x14000ad8a
mov rax, qword [rbp - 0x40]
mov rdx, qword [rax]
mov eax, edi
test rdx, rdx
setne al
test eax, eax
je 0x14000ade2
mov rcx, qword [rsp + 0x70]
call fcn.140022158
test eax, eax
jne 0x14000ad8a
mov rax, qword [rbp - 0x48]
mov rdx, qword [rax]
mov eax, edi
test rdx, rdx
setne al
test eax, eax
je 0x14000add7
mov rcx, qword [rsp + 0x78]
call fcn.140022158
test eax, eax
jne 0x14000ad8a
test byte [0x1400512b0], 2
je 0x14000acf2
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x3c]
lea r8, str.Uninstall_OemInf:__s__Class:__s__Provider___s__Version___s_n
mov edx, 2
lea rcx, str.DeleteOEMInfFiles
call fcn.1400206a0
mov edx, 0x80
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, edi
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rbp + 0x3c]
call qword [sym.imp.SETUPAPI.dll_SetupUninstallOEMInfW]
test eax, eax
je 0x14000ad1e
inc r13d
jmp 0x14000ad26
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test byte [0x1400512b0], 2
je 0x14000ad8a
lea r9, str.Succeed
test ebx, ebx
lea rax, str.Fail
cmovne r9, rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x3c]
mov qword [rsp + 0x20], rax
lea r8, str._s_to_Uninstall_driver_OemInf:__s__Class:__s__Provider___s__Version___s___ErrorCode__0x_x__d__n
mov edx, 2
lea rcx, str.DeleteOEMInfFiles
call fcn.1400206a0
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000ada3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x14000a9c7
mov ecx, 0x80004005
call fcn.1400047a0
nop
mov ecx, 0x80004005
call fcn.1400047a0
nop
mov ecx, 0x80004005
call fcn.1400047a0
int3
mov ecx, 0x80004005
call fcn.1400047a0
int3
mov ecx, 0x80004005
call fcn.1400047a0
int3
call fcn.14000e970
nop
mov rdx, qword [rbp - 0x58]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000ae0c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000ae26
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000ae3e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rbp - 0x68]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000ae56
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rbp - 0x70]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000ae6e
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 0x14000ae86
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 0x14000ae9e
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 0x14000aeb7
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 0x14000aed1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rax, qword [rbp - 0x40]
mov rdx, qword [rax]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000aeed
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rax, qword [rbp - 0x48]
mov rdx, qword [rax]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000af09
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rax, qword [rbp - 0x50]
mov rdx, qword [rax]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000af25
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [r12]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000af3e
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, r13d
jmp 0x14000af4e
mov ecx, 0x80070057
call fcn.1400047a0
nop
mov rcx, qword [rbp + 0x470]
xor rcx, rsp
call fcn.140021670
add rsp, 0x588
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret