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

Disassembly:
push rbp
lea rbp, [rsp - 0x3770]
mov eax, 0x3870
call fcn.140015a30
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x3740], rax
xor edx, edx
lea rcx, [rbp + 0x1330]
mov r8d, 0x100
call fcn.140017670
xor edx, edx
lea rcx, [rbp + 0x1530]
mov r8d, 0x100
call fcn.140017670
xor edx, edx
lea rcx, [rbp + 0x1a0]
mov r8d, 0x100
call fcn.140017670
xor edx, edx
lea rcx, [rbp + 0x1430]
mov r8d, 0x100
call fcn.140017670
mov edx, 0x80
lea rcx, [rbp + 0x1530]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x14001379e
lea r8, [rbp + 0x1530]
mov qword [rsp + 0x3868], r12
mov edx, 0x80
lea rcx, [rbp + 0x1330]
call fcn.14001df44
lea r8, str.Inf_
mov edx, 0x80
lea rcx, [rbp + 0x1330]
call fcn.14001dec4
lea r8, [rbp + 0x1330]
mov edx, 0x80
lea rcx, [rbp + 0x1430]
call fcn.14001df44
lea r8, str._system32CatRoot_
mov edx, 0x80
lea rcx, [rbp + 0x1530]
call fcn.14001dec4
mov eax, dword [0x140031db0]
lea rcx, [rbp + 0x2e7]
movaps xmm0, xmmword [str.0123456789012345678901234567890123456789012345678901234567890123456789]
xor edx, edx
movaps xmm1, xmmword [0x140031d80]
mov r8d, 0x103b
mov dword [rbp + 0x2e0], eax
movzx eax, word [0x140031db4]
mov word [rbp + 0x2e4], ax
movzx eax, byte [0x140031db6]
movaps xmmword [rbp + 0x2a0], xmm0
movaps xmm0, xmmword [0x140031d90]
movaps xmmword [rbp + 0x2b0], xmm1
movaps xmm1, xmmword [0x140031da0]
mov byte [rbp + 0x2e6], al
movaps xmmword [rbp + 0x2c0], xmm0
movaps xmmword [rbp + 0x2d0], xmm1
call fcn.140017670
lea r8, [rbp + 0x1330]
mov edx, 0x80
lea rcx, [rbp + 0x1430]
call fcn.14001df44
lea r8, str.oem.inf
mov edx, 0x80
lea rcx, [rbp + 0x1430]
call fcn.14001dec4
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x1430]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x140013796
mov qword [rsp + 0x3880], rbx
mov qword [rsp + 0x3888], rsi
mov qword [rsp + 0x3890], rdi
mov qword [rsp + 0x3860], r13
xor r13d, r13d
mov qword [rsp + 0x3858], r14
mov qword [rsp + 0x3850], r15
nop
lea r8, [rbp + 0x1330]
mov edx, 0x80
lea rcx, [rbp + 0x1a0]
call fcn.14001df44
lea r8, [rsp + 0x7c]
mov edx, 0x80
lea rcx, [rbp + 0x1a0]
call fcn.14001dec4
xor r9d, r9d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
lea rcx, [rbp + 0x1a0]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140013747
xor bl, bl
lea rcx, [rbp + 0x2a0]
xor sil, sil
xor r14b, r14b
mov edx, 0x78
mov r8d, 0x1082
mov dil, 1
call fcn.140017670
nop dword [rax + rax]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r13
mov r8d, 0x1000
lea rdx, [rbp + 0x2e0]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400135ec
mov ecx, dword [rsp + 0x40]
cmp ecx, 0x40
jb 0x1400135ec
test dil, dil
je 0x1400130bc
cmp byte [rbp + 0x2e3], r13b
jne 0x1400130bc
lea eax, [rcx + 0x41]
mov r14b, 1
cmp eax, 0x1082
jae 0x1400137b6
mov byte [rbp + rax + 0x2a0], r13b
lea eax, [rcx + 0x40]
cmp eax, 0x1082
jae 0x1400137b6
mov byte [rbp + rax + 0x2a0], r13b
test r14b, r14b
je 0x14001314e
xor edx, edx
lea rcx, [rbp + 0x1630]
mov r8d, 0x2104
call fcn.140017670
lea rax, [rbp + 0x1630]
mov dword [rsp + 0x28], 0x104
mov r9d, 0xffffffff
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x2a0]
xor edx, edx
mov ecx, 0xfde9
call sym.Prounstl.exe_public:_static_int___cdecl_CNcsString::NcsMultiByteToWideChar_unsigned_int__unsigned_long_int__char_const____ptr64__int__wchar_t____ptr64__int_
test dil, dil
je 0x140013139
lea rdx, [0x140031dd0]
lea rcx, [rbp + 0x1630]
call fcn.140017c08
test rax, rax
jne 0x140013139
mov bl, 1
jmp 0x1400131a0
lea rdx, [0x140031de0]
lea rcx, [rbp + 0x1630]
call fcn.140017c08
jmp 0x140013193
mov edx, 0x1082
lea rcx, [rbp + 0x2a0]
call fcn.14001e794
test dil, dil
je 0x140013180
lea rdx, str.INTEL
lea rcx, [rbp + 0x2a0]
call fcn.140017a18
test rax, rax
jne 0x140013180
mov bl, 1
jmp 0x1400131a0
lea rdx, str.PROUNSTL
lea rcx, [rbp + 0x2a0]
call fcn.140017a18
test rax, rax
je 0x1400131a0
mov bl, 1
movzx esi, bl
nop dword [rax]
mov edx, dword [rsp + 0x40]
movzx ecx, byte [rbp + rdx + 0x2a0]
lea eax, [rdx + 1]
mov byte [rbp + 0x2a0], cl
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2a1], al
lea eax, [rdx + 2]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2a2], al
lea eax, [rdx + 3]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2a3], al
lea eax, [rdx + 4]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2a4], al
lea eax, [rdx + 5]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2a5], al
lea eax, [rdx + 6]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2a6], al
lea eax, [rdx + 7]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2a7], al
lea eax, [rdx + 8]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2a8], al
lea eax, [rdx + 9]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2a9], al
lea eax, [rdx + 0xa]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2aa], al
lea eax, [rdx + 0xb]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2ab], al
lea eax, [rdx + 0xc]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2ac], al
lea eax, [rdx + 0xd]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2ad], al
lea eax, [rdx + 0xe]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2ae], al
lea eax, [rdx + 0xf]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2af], al
lea eax, [rdx + 0x10]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2b0], al
lea eax, [rdx + 0x11]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2b1], al
lea eax, [rdx + 0x12]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2b2], al
lea eax, [rdx + 0x13]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2b3], al
lea eax, [rdx + 0x14]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2b4], al
lea eax, [rdx + 0x15]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2b5], al
lea eax, [rdx + 0x16]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2b6], al
lea eax, [rdx + 0x17]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2b7], al
lea eax, [rdx + 0x18]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2b8], al
lea eax, [rdx + 0x19]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2b9], al
lea eax, [rdx + 0x1a]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2ba], al
lea eax, [rdx + 0x1b]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2bb], al
lea eax, [rdx + 0x1c]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2bc], al
lea eax, [rdx + 0x1d]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2bd], al
lea eax, [rdx + 0x1e]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2be], al
lea eax, [rdx + 0x1f]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2bf], al
lea eax, [rdx + 0x20]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2c0], al
lea eax, [rdx + 0x21]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2c1], al
lea eax, [rdx + 0x22]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2c2], al
lea eax, [rdx + 0x23]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2c3], al
lea eax, [rdx + 0x24]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2c4], al
lea eax, [rdx + 0x25]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2c5], al
lea eax, [rdx + 0x26]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2c6], al
lea eax, [rdx + 0x27]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2c7], al
lea eax, [rdx + 0x28]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2c8], al
lea eax, [rdx + 0x29]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2c9], al
lea eax, [rdx + 0x2a]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2ca], al
lea eax, [rdx + 0x2b]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2cb], al
lea eax, [rdx + 0x2c]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2cc], al
lea eax, [rdx + 0x2d]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2cd], al
lea eax, [rdx + 0x2e]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2ce], al
lea eax, [rdx + 0x2f]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2cf], al
lea eax, [rdx + 0x30]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2d0], al
lea eax, [rdx + 0x31]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2d1], al
lea eax, [rdx + 0x32]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2d2], al
lea eax, [rdx + 0x33]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2d3], al
lea eax, [rdx + 0x34]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2d4], al
lea eax, [rdx + 0x35]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2d5], al
lea eax, [rdx + 0x36]
xor dil, dil
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2d6], al
lea eax, [rdx + 0x37]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2d7], al
lea eax, [rdx + 0x38]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2d8], al
lea eax, [rdx + 0x39]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2d9], al
lea eax, [rdx + 0x3a]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2da], al
lea eax, [rdx + 0x3b]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2db], al
lea eax, [rdx + 0x3c]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2dc], al
lea eax, [rdx + 0x3d]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2dd], al
lea eax, [rdx + 0x3e]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2de], al
lea eax, [rdx + 0x3f]
movzx eax, byte [rbp + rax + 0x2a0]
mov byte [rbp + 0x2df], al
test bl, bl
je 0x140013060
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test sil, sil
je 0x140013747
mov edx, 0x80
lea rcx, [rbp + 0x1a0]
call fcn.14001e214
lea rdx, [0x140031e10]
lea rcx, [rbp + 0x1a0]
call fcn.140017c08
xor r8d, r8d
mov rcx, rax
lea edx, [r8 + 1]
call qword [sym.imp.SETUPAPI.dll_SetupUninstallOEMInfW]
test eax, eax
jne 0x140013747
mov edx, 0x80
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea r8, [rbp + 0x1330]
mov edx, 0x80
lea rcx, [rbp + 0x1a0]
call fcn.14001df44
lea r8, [rsp + 0x7c]
mov edx, 0x80
lea rcx, [rbp + 0x1a0]
call fcn.14001dec4
mov edx, 0x2e
lea rcx, [rbp + 0x1a0]
call fcn.140017810
test rax, rax
je 0x1400136b1
lea r8, str..pnf
mov edx, 5
mov rcx, rax
call fcn.14001df44
mov edx, 0x80
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea r8, [rbp + 0x1530]
mov edx, 0x80
lea rcx, [rbp + 0x1a0]
call fcn.14001df44
lea r8, [rsp + 0x7c]
mov edx, 0x80
lea rcx, [rbp + 0x1a0]
call fcn.14001dec4
mov edx, 0x2e
lea rcx, [rbp + 0x1a0]
call fcn.140017810
test rax, rax
je 0x140013728
lea r8, str..cat
mov edx, 5
mov rcx, rax
call fcn.14001df44
mov edx, 0x80
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rsp + 0x50]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140012fd0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r14, qword [rsp + 0x3858]
mov r13, qword [rsp + 0x3860]
mov rbx, qword [rsp + 0x3880]
mov rdi, qword [rsp + 0x3890]
mov rsi, qword [rsp + 0x3888]
mov r15, qword [rsp + 0x3850]
mov r12, qword [rsp + 0x3868]
mov rcx, qword [rbp + 0x3740]
xor rcx, rsp
call fcn.140015690
add rsp, 0x3870
pop rbp
ret
call fcn.140015b94
int3