Function at 0x1400229c0
Capabilities:
Delete file
Get common file path
Query or enumerate registry value
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb10
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov qword [rsp + 0xb60], rbx
mov rax, qword [0x140134780]
xor rax, rsp
mov qword [rsp + 0xb00], rax
mov dword [rsp + 0x58], r8d
mov qword [rsp + 0x78], rdx
mov r15, rcx
mov r13d, 1
xor r14d, r14d
mov qword [rsp + 0x70], r14
mov dword [rsp + 0x68], r14d
call fcn.14003c3f0
mov rcx, rax
mov eax, r14d
test rcx, rcx
setne al
test eax, eax
jne 0x140022a39
mov ecx, 0x80004005
call fcn.140001120
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea rdx, [0x1400eeb50]
test rdx, 0xffffffffffff0000
jne 0x140022a7e
movzx edi, dx
mov ecx, edi
call fcn.14003c170
test rax, rax
je 0x140022a8d
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400060c0
mov rbx, qword [rsp + 0x30]
jmp 0x140022a8d
lea rcx, [rsp + 0x30]
call fcn.140006560
mov rbx, qword [rsp + 0x30]
mov dword [rsp + 0x54], r14d
call fcn.14003c3f0
mov rcx, rax
mov eax, r14d
test rcx, rcx
setne al
test eax, eax
jne 0x140022ab2
mov ecx, 0x80004005
call fcn.140001120
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea rbp, [0x1400ee798]
mov rsi, rbp
or r12, 0xffffffffffffffff
shr rsi, 0x10
jne 0x140022af6
movzx edi, bp
mov ecx, edi
call fcn.14003c170
test rax, rax
je 0x140022b16
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400060c0
jmp 0x140022b16
xor eax, eax
mov rcx, r12
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rdx, rbp
lea rcx, [rsp + 0x48]
call fcn.140006310
nop
call fcn.14003c3f0
mov rcx, rax
mov eax, r14d
test rcx, rcx
setne al
test eax, eax
jne 0x140022b36
mov ecx, 0x80004005
call fcn.140001120
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x40], rax
test rsi, rsi
jne 0x140022b6b
movzx edi, bp
mov ecx, edi
call fcn.14003c170
test rax, rax
je 0x140022b8b
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400060c0
jmp 0x140022b8b
xor eax, eax
mov rcx, r12
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rdx, rbp
lea rcx, [rsp + 0x40]
call fcn.140006310
nop
mov r9d, 4
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140022c13
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140022bc9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140022beb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
add r12d, 0xffffffff
test r12d, r12d
jg 0x140022c0c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x140023288
mov dword [rsp + 0x90], SafeArrayDestroyData
xor esi, esi
mov dword [rsp + 0x38], esi
lea r8, [rsp + 0x90]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x140023216
nop
mov qword [rsp + 0x20], 0
mov r9d, 0x104
lea r8, [rsp + 0x2c0]
lea rdx, [rsp + 0x90]
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdW]
xor eax, eax
mov rcx, r12
lea rdi, [rsp + 0x2c0]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x140022cde
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140022d6c
cmp dword [rdx + 0x10], eax
jge 0x140022caf
cmp dword [rbx - 0xc], eax
jl 0x1400231f5
mov dword [rbx - 0x10], eax
mov word [rbx], ax
jmp 0x140022d6c
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140022cc7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
jmp 0x140022d6c
mov esi, dword [rbx - 0x10]
lea rbp, [rsp + 0x2c0]
sub rbp, rbx
sar rbp, 1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140022d11
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140004410
mov rbx, qword [rsp + 0x30]
cmp rbp, rsi
ja 0x140022d31
movsxd rax, edi
lea rsi, [rax + rax]
lea r8, [rbx + rbp*2]
mov r9, rsi
mov rdx, rsi
mov rcx, rbx
call fcn.14009f850
jmp 0x140022d4e
movsxd rax, edi
lea rsi, [rax + rax]
mov r9, rsi
lea r8, [rsp + 0x2c0]
mov rdx, rsi
mov rcx, rbx
call fcn.14009f640
test edi, edi
js 0x14002320b
cmp edi, dword [rbx - 0xc]
jg 0x14002320b
mov dword [rbx - 0x10], edi
mov word [rsi + rbx], 0
mov esi, dword [rsp + 0x38]
cmp dword [rbx - 0x10], 0
jl 0x140022d95
lea rdx, str.FUNC_01VEN_8086DEV
mov rcx, rbx
call fcn.14009f5d0
test rax, rax
je 0x140022d95
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x1400231d2
cmp dword [rbx - 0x10], 0
jl 0x140022dbe
lea rdx, str.SWDMMDEVAPI
mov rcx, rbx
call fcn.14009f5d0
test rax, rax
je 0x140022dbe
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x1400231d2
xor ebp, ebp
cmp dword [rbx - 0x10], ebp
jl 0x140022deb
lea rdx, str.SWDDRIVERENUMREALTEKSRV
mov rcx, rbx
call fcn.14009f5d0
test rax, rax
je 0x140022deb
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x140022deb
mov ebp, 1
jmp 0x140022e1e
cmp dword [rbx - 0x10], ebp
jl 0x140022e1e
lea rdx, str.SWDDRIVERENUM
mov rcx, rbx
call fcn.14009f5d0
test rax, rax
je 0x140022e1e
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x140022e1e
test byte [0x14013a788], 2
mov eax, 1
cmovne ebp, eax
mov dword [rsp + 0x5c], 0
mov dword [rsp + 0x60], 0
cmp dword [rsp + 0x58], 0
je 0x140022e58
xor r9d, r9d
mov r8d, dword [rsp + 0xa4]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.SETUPAPI.dll_CM_Get_DevNode_Status]
test eax, eax
je 0x1400231d2
mov dword [rsp + 0x3c], 0
xor r8d, r8d
mov edx, dword [rsp + 0xa4]
lea rcx, [rsp + 0x3c]
call qword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
test eax, eax
jne 0x1400231d2
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x4d0]
call fcn.1400a09f0
xor r9d, r9d
mov r8d, 0x104
lea rdx, [rsp + 0x4d0]
mov ecx, dword [rsp + 0x3c]
call qword [sym.imp.SETUPAPI.dll_CM_Get_Device_IDW]
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x4d0]
call fcn.14009f5d0
test rax, rax
je 0x1400231d2
xor esi, esi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
lea r8d, [rsi + 0xb]
lea rdx, [rsp + 0x90]
mov rcx, r14
call fcn.140001ff0
test eax, eax
je 0x140022f9f
mov rdx, qword [rsp + 0x70]
test rdx, rdx
jne 0x140022f03
xor ecx, ecx
jmp 0x140022f15
xor eax, eax
mov rcx, r12
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov r8d, ecx
lea rcx, [rsp + 0x30]
call fcn.140006310
mov rbx, qword [rsp + 0x30]
movsxd rdi, dword [rbx - 0x10]
mov r13d, 1
mov ecx, r13d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140022f51
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140004410
mov rbx, qword [rsp + 0x30]
lea eax, [rdi + 1]
movsxd rdx, eax
mov rcx, rbx
call fcn.14009fd30
test edi, edi
js 0x140023200
cmp edi, dword [rbx - 0xc]
jg 0x140023200
mov dword [rbx - 0x10], edi
mov word [rbx + rdi*2], si
cmp dword [rbx - 0x10], esi
jl 0x140022fa5
lea rdx, str.MICROSOFT
mov rcx, rbx
call fcn.14009f5d0
test rax, rax
je 0x140022fa5
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
cmovne esi, r13d
jmp 0x140022fa5
mov r13d, 1
mov dword [rsp + 0x28], 0x20019
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, r13d
lea rdx, [rsp + 0x90]
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14002306f
mov dword [rsp + 0x50], r13d
mov dword [rsp + 0x64], 0x208
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x6e0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.InfPath
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140023061
mov edx, 0x104
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r8, str.inf_
mov edx, 0x104
lea rcx, [rsp + 0xb0]
call fcn.1400a1c80
lea r8, [rsp + 0x6e0]
mov edx, 0x104
lea rcx, [rsp + 0xb0]
call fcn.1400a1c80
jmp 0x140023064
mov esi, r13d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140023072
mov esi, r13d
lea rdx, [rsp + 0x6e0]
mov rcx, r15
call fcn.140017430
cmp eax, 1
cmovg esi, r13d
lea r8, [rsp + 0x90]
mov rdx, r14
mov ecx, 5
call qword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
mov r13d, eax
test eax, eax
je 0x1400231ce
test esi, esi
jne 0x1400231be
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x88]
call fcn.140013740
mov rdx, rax
mov rcx, r15
call fcn.1400183d0
test eax, eax
je 0x1400230ec
movsxd rax, dword [r15 + 0x3b0e0]
imul rax, rax, 0x12c8
mov dword [rax + r15 + 0x5cc], r13d
test ebp, ebp
je 0x140023119
lea r8, [rsp + 0x8f0]
lea rdx, [rsp + 0xb0]
mov rcx, r15
call fcn.140005380
test eax, eax
je 0x140023119
lea rcx, [rsp + 0x8f0]
call fcn.140002d50
cmp dword [0x140139918], 0
jne 0x140023146
cmp dword [0x14013991c], 0
jne 0x140023146
cmp dword [0x140139920], 0
jne 0x140023146
cmp dword [0x140139924], 0
jne 0x140023146
cmp dword [0x140139928], 0
je 0x1400231be
lea r9, [rsp + 0x54]
xor r8d, r8d
lea edx, [r8 + 0x24]
lea rcx, [rsp + 0xb0]
call fcn.1400022b0
test eax, eax
je 0x140023172
mov r8d, eax
xor edx, edx
mov rcx, r15
call fcn.14000c780
jmp 0x1400231be
lea rdx, [0x1400ee8ac]
lea rcx, [rsp + 0xb0]
call fcn.14009f5d0
mov word [rax], 0x2e
mov word [rax + 2], 0x50
mov word [rax + 4], 0x4e
mov word [rax + 6], 0x46
mov edx, 0x80
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, 0xa
call fcn.140001d80
mov esi, dword [rsp + 0x38]
jmp 0x1400231d2
mov esi, dword [rsp + 0x38]
add esi, 1
mov dword [rsp + 0x38], esi
lea r8, [rsp + 0x90]
mov edx, esi
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x140023216
jmp 0x140022c40
mov ecx, 0x80070057
call fcn.140001120
int3
mov ecx, 0x80070057
call fcn.140001120
int3
mov ecx, 0x80070057
call fcn.140001120
int3
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140023242
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140023264
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
add r12d, 0xffffffff
test r12d, r12d
jg 0x140023285
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r13d
mov rcx, qword [rsp + 0xb00]
xor rcx, rsp
call fcn.1400a1970
mov rbx, qword [rsp + 0xb60]
add rsp, 0xb10
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret