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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x720
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov qword [rsp + 0x770], rbx
mov rax, qword [0x140134780]
xor rax, rsp
mov qword [rsp + 0x710], rax
mov r14, rdx
mov r15, rcx
mov esi, 1
mov dword [rsp + 0x48], esi
xor ebp, ebp
mov dword [rsp + 0x58], ebp
mov word [rsp + 0x2f0], bp
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x2f2]
call fcn.1400a09f0
call fcn.14003c3f0
mov rcx, rax
mov eax, ebp
test rcx, rcx
setne al
test eax, eax
jne 0x140020a6a
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
call fcn.14003c3f0
mov rcx, rax
mov eax, ebp
test rcx, rcx
setne al
test eax, eax
jne 0x140020a98
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
call fcn.14003c3f0
mov rcx, rax
mov eax, ebp
test rcx, rcx
setne al
test eax, eax
jne 0x140020ac6
mov ecx, 0x80004005
call fcn.140001120
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x80], rdi
test r14, r14
jne 0x140020b48
lea rdx, [rdi - 0x18]
or r13, 0xffffffffffffffff
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x140020afe
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140020b20
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], r13d
add r13d, 0xffffffff
test r13d, r13d
jg 0x140020b41
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x1400213f8
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0xa0]
call fcn.1400a09f0
mov edx, 0x104
lea rcx, [rsp + 0x500]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r8, str.infoem.inf
mov edx, 0x104
lea rcx, [rsp + 0x500]
call fcn.1400a1c80
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x500]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x78], rax
or r13, 0xffffffffffffffff
cmp rax, r13
je 0x14002138c
call fcn.14003c3f0
mov rcx, rax
mov eax, ebp
test rcx, rcx
setne al
test eax, eax
je 0x140021381
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x38], rsi
lea rcx, [rsp + 0xcc]
lea rax, [rsp + 0xcc]
test rax, 0xffffffffffff0000
jne 0x140020c1d
movzx edi, cx
mov ecx, edi
call fcn.14003c170
test rax, rax
je 0x140020d24
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1400060c0
mov rsi, qword [rsp + 0x38]
jmp 0x140020d24
xor eax, eax
mov rcx, r13
lea rdi, [rsp + 0xcc]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x140020c98
lea rdx, [rsi - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140020d24
cmp dword [rdx + 0x10], eax
jge 0x140020c64
cmp dword [rsi - 0xc], eax
jl 0x14002132c
mov dword [rsi - 0x10], ebp
mov word [rsi], ax
jmp 0x140020d24
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140020c7c
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 rsi, [rax + 0x18]
mov qword [rsp + 0x38], rsi
mov rbx, qword [rsp + 0x30]
jmp 0x140020d24
mov ebp, dword [rsi - 0x10]
lea r12, [rsp + 0xcc]
sub r12, rsi
sar r12, 1
mov ecx, 1
sub ecx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, edi
or eax, ecx
jge 0x140020ccb
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140004410
mov rsi, qword [rsp + 0x38]
cmp r12, rbp
ja 0x140020ceb
movsxd rax, edi
lea rbp, [rax + rax]
lea r8, [rsi + r12*2]
mov r9, rbp
mov rdx, rbp
mov rcx, rsi
call fcn.14009f850
jmp 0x140020d08
movsxd rax, edi
lea rbp, [rax + rax]
mov r9, rbp
lea r8, [rsp + 0xcc]
mov rdx, rbp
mov rcx, rsi
call fcn.14009f640
test edi, edi
js 0x140021376
cmp edi, dword [rsi - 0xc]
jg 0x140021376
mov dword [rsi - 0x10], edi
mov word [rsi + rbp], 0
xor ebp, ebp
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x1400212ef
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, str.Version
mov rcx, rax
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x1400212e5
mov qword [rsp + 0x20], rbp
mov r9d, 0x104
lea r8, [rsp + 0x2f0]
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x140020df2
lea rdx, str.ClassGuid
lea rcx, [rsp + 0x2f0]
call fcn.14009f5d0
test rax, rax
je 0x140020df2
mov qword [rsp + 0x20], rbp
mov r9d, 0x104
lea r8, [rsp + 0x2f0]
mov edx, 1
lea rcx, [rsp + 0x60]
call qword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x140020df2
mov edx, 0x104
lea rcx, [rsp + 0x2f0]
call fcn.14009fd30
lea rdx, str.E2F84CE7_8EFA_411C_AA69_97454CA4CB57
lea rcx, [rsp + 0x2f0]
call fcn.14009f5d0
test rax, rax
jne 0x140020e0f
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x60]
call qword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
je 0x1400212e5
jmp 0x140020d63
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, str.Manufacturer
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x1400212e5
mov qword [rsp + 0x20], rbp
mov r9d, 0x104
lea r8, [rsp + 0x2f0]
mov edx, 1
lea rcx, [rsp + 0x60]
call qword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x1400212e5
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x2f0]
mov rdx, r12
mov rcx, r15
call fcn.140003280
test eax, eax
jne 0x140020ead
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
nop
lea rdx, [rsi - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14002130b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14002130b
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, [rsp + 0x2f0]
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x1400212e5
nop
mov qword [rsp + 0x20], rbp
mov r9d, 0x104
lea r8, [rsp + 0x2f0]
mov edx, 2
lea rcx, [rsp + 0x60]
call qword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x140021122
xor eax, eax
mov rcx, r13
lea rdi, [rsp + 0x2f0]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
cmp rcx, 1
jbe 0x140021122
mov rcx, r13
lea rdi, [rsp + 0x2f0]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x140020f90
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14002101c
cmp dword [rdx + 0x10], eax
jge 0x140020f61
cmp dword [rbx - 0xc], eax
jl 0x140021337
mov dword [rbx - 0x10], ebp
mov word [rbx], ax
jmp 0x14002101c
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140020f79
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 0x14002101c
mov esi, dword [rbx - 0x10]
lea rbp, [rsp + 0x2f0]
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 0x140020fc3
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140004410
mov rbx, qword [rsp + 0x30]
cmp rbp, rsi
ja 0x140020fe3
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 0x140021000
movsxd rax, edi
lea rsi, [rax + rax]
mov r9, rsi
lea r8, [rsp + 0x2f0]
mov rdx, rsi
mov rcx, rbx
call fcn.14009f640
test edi, edi
js 0x140021358
cmp edi, dword [rbx - 0xc]
jg 0x140021358
mov dword [rbx - 0x10], edi
mov word [rsi + rbx], 0
xor ebp, ebp
movsxd rdi, dword [rbx - 0x10]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140021042
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 0x14002134d
cmp edi, dword [rbx - 0xc]
jg 0x14002134d
mov dword [rbx - 0x10], edi
mov word [rbx + rdi*2], 0
lea rcx, [rbx - 0x18]
mov rdi, qword [rsp + 0x40]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x1400210ce
cmp dword [rdi + 0x10], 0
jl 0x1400210bd
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x1400210bd
call fcn.140004470
mov rbx, rax
mov eax, r13d
lock xadd dword [rdi + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400210ad
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbx + 0x18]
mov qword [rsp + 0x40], rax
mov rbx, qword [rsp + 0x30]
jmp 0x1400210ce
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140006310
mov dx, 0x2a
lea rcx, [rsp + 0x40]
call fcn.1400069e0
mov esi, ebp
cmp dword [r14 + 0xb8], 0
jle 0x140021122
lea rdi, [r14 + 8]
nop
mov rdx, rbx
mov rcx, qword [rdi]
call fcn.14009f5d0
test rax, rax
jne 0x14002113f
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rdi]
call fcn.14009f5d0
test rax, rax
jne 0x14002113f
add esi, 1
add rdi, 8
cmp esi, dword [r14 + 0xb8]
jl 0x1400210f0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x60]
call qword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
je 0x1400212e0
jmp 0x140020ed0
mov edx, 0x104
lea rcx, [rsp + 0x500]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r8, str.inf_
mov edx, 0x104
lea rcx, [rsp + 0x500]
call fcn.1400a1c80
lea r8, [rsp + 0xcc]
mov edx, 0x104
lea rcx, [rsp + 0x500]
call fcn.1400a1c80
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x90], rdx
call fcn.14003c3f0
mov rcx, rax
mov eax, ebp
test rcx, rcx
setne al
test eax, eax
je 0x140021342
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x500]
lea rax, [rsp + 0x500]
test rax, 0xffffffffffff0000
jne 0x1400211f2
movzx edi, cx
mov ecx, edi
call fcn.14003c170
test rax, rax
je 0x14002121c
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1400060c0
jmp 0x14002121c
xor eax, eax
mov rcx, r13
lea rdi, [rsp + 0x500]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x500]
lea rcx, [rsp + 0x50]
call fcn.140006310
nop
lea rdx, [rsp + 0x50]
mov rcx, r15
call fcn.1400183d0
mov edi, eax
lea r9, [rsp + 0x58]
xor r8d, r8d
lea edx, [r8 + 0x24]
lea rcx, [rsp + 0x500]
call fcn.1400022b0
test eax, eax
je 0x140021262
mov r8d, eax
mov edx, 3
mov rcx, r15
call fcn.14000c780
mov rsi, qword [rsp + 0x38]
jmp 0x1400212e5
test edi, edi
je 0x140021280
movsxd rax, dword [r15 + 0x3b0e0]
imul rax, rax, 0x12c8
mov dword [rax + r15 + 0x5cc], 1
lea rdx, [0x1400ee8ac]
lea rcx, [rsp + 0x500]
call fcn.14009f5d0
mov word [rax], 0x2e
mov word [rax + 2], 0x50
mov word [rax + 4], 0x4e
mov word [rax + 6], 0x46
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
mov edx, 0x80
lea rcx, [rsp + 0x500]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsp + 0x500]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [rsp + 0x48], edi
mov rsi, qword [rsp + 0x38]
jmp 0x1400212e5
mov rsi, qword [rsp + 0x38]
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
nop
lea rdx, [rsi - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14002130b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140021363
mov rbx, qword [rsp + 0x30]
jmp 0x140020bb1
mov ecx, 0x80070057
call fcn.140001120
nop
mov ecx, 0x80070057
call fcn.140001120
int3
mov ecx, 0x80004005
call fcn.140001120
int3
mov ecx, 0x80070057
call fcn.140001120
int3
mov ecx, 0x80070057
call fcn.140001120
nop
mov rdi, qword [rsp + 0x80]
mov rax, qword [rsp + 0x78]
mov esi, dword [rsp + 0x48]
jmp 0x14002138c
mov ecx, 0x80070057
call fcn.140001120
nop
mov ecx, 0x80004005
call fcn.140001120
int3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea rdx, [rdi - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400213b3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400213d5
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], r13d
add r13d, 0xffffffff
test r13d, r13d
jg 0x1400213f6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, esi
mov rcx, qword [rsp + 0x710]
xor rcx, rsp
call fcn.1400a1970
mov rbx, qword [rsp + 0x770]
add rsp, 0x720
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret