Function at 0x7fff25d91bd8
Capabilities:
Set file attributes

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x190
mov rax, qword [0x7fff25fcfe70]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov qword [rsp + 0xc0], r9
mov rdi, r8
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0xa8], rcx
mov r13, qword [rsp + 0x218]
mov rax, qword [rsp + 0x238]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x248]
mov rcx, qword [rsp + 0x258]
mov qword [rsp + 0xb0], rcx
mov qword [rsp + 0xb8], rcx
xor ebx, ebx
mov dword [rsp + 0x68], ebx
xor ecx, ecx
mov dword [rsp + 0x88], ecx
xor edx, edx
and dword [rsp + 0x8c], ecx
mov r15, qword [rax]
xor r10d, r10d
mov dword [rsp + 0x60], r10d
xor r9d, r9d
mov dword [rsp + 0x64], r9d
mov eax, dword [rsp + 0x208]
mov r8d, eax
mov r11d, 0x4000
and r8d, r11d
mov dword [rsp + 0x90], r8d
jne 0x7fff25d91ce7
test r8d, r8d
jne 0x7fff25d91ca3
test dword [r13], r11d
jne 0x7fff25d91d1b
mov r14d, 4
mov esi, 1
mov r12d, dword [rsp + 0x230]
cmp r12d, 3
je 0x7fff25d91d37
test edx, edx
jne 0x7fff25d91d37
test ecx, ecx
jne 0x7fff25d91d37
cmp r12d, 3
je 0x7fff25d91f59
test r12d, r12d
jne 0x7fff25d91cdc
test r8d, r8d
jne 0x7fff25d91f87
mov ebx, esi
mov dword [rsp + 0x68], ebx
jmp 0x7fff25d9208f
test dword [rsp + 0x210], r11d
je 0x7fff25d91c98
test dword [r13], r11d
jne 0x7fff25d91c98
mov r14d, 4
test byte [r13], r14b
sete cl
test al, 0x10
setne al
test al, cl
lea ecx, [r14 - 4]
setne cl
mov dword [rsp + 0x88], ecx
jmp 0x7fff25d91ca9
test dword [rsp + 0x228], 0x200
mov esi, 1
cmovne edx, esi
lea r14d, [rsi + 3]
jmp 0x7fff25d91cae
mov eax, dword [r13]
test sil, al
je 0x7fff25d91dc8
mov dword [rsp + 0x8c], esi
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rsp + 0xe0], xmm0
movups xmmword [rsp + 0xf0], xmm0
mov qword [rsp + 0x100], rcx
and eax, 0xfffffffe
mov dword [rsp + 0x100], eax
mov dword [rsp + 0x20], r14d
lea r9d, [rcx + 0x28]
lea r8, [rsp + 0xe0]
lea rdx, [rsp + 0xd0]
mov rcx, qword [rdi]
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
mov dword [rsp + 0x94], eax
test eax, eax
jns 0x7fff25d91dc8
xor edx, edx
mov rcx, qword [rdi]
call sym.KERNELBASE.dll_BaseMarkFileForDelete
mov ecx, dword [rsp + 0x94]
jmp 0x7fff25d91dbe
or qword [rdi], 0xffffffffffffffff
mov ecx, eax
call fcn.7fff25d6b370
jmp 0x7fff25d9208f
mov rcx, qword [rdi]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
or qword [rdi], 0xffffffffffffffff
cmp r12d, 3
jne 0x7fff25d91e3b
test dword [r13], 0x4000
je 0x7fff25d91e0e
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ext_ms_win_feclient_encryptedfile_l1_1_0.dll_EfsClientDecryptFile]
nop dword [rax + rax]
mov dword [rsp + 0x64], eax
mov dword [rsp + 0x98], eax
jmp 0x7fff25d91e12
mov eax, dword [rsp + 0x64]
test eax, eax
jne 0x7fff25d91e62
mov r8d, esi
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ext_ms_win_security_efswrt_l1_1_0.dll_ProtectFileToIdentity]
nop dword [rax + rax]
mov dword [rsp + 0x60], eax
jmp 0x7fff25d91e62
call fcn.7fff25dcf540
test al, al
je 0x7fff25d91e62
mov r8, r13
mov edx, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ext_ms_win_kernel32_file_l1_1_0.dll_BasepCopyEncryption]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x208]
and ecx, dword [rsp + 0x210]
and ecx, 0x5affb7
and dword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
mov eax, dword [rsp + 0x200]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], esi
mov eax, dword [rsp + 0x1f8]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
and qword [rsp + 0x20], 0
lea r9, [rsp + 0xd0]
mov r8, qword [rsp + 0xc0]
mov edx, dword [rsp + 0x1f0]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtCreateFile]
nop dword [rax + rax]
test eax, eax
js 0x7fff25d91db8
cmp dword [rsp + 0x8c], 0
je 0x7fff25d91f3c
or dword [rsp + 0x100], esi
mov dword [rsp + 0x20], r14d
mov r9d, 0x28
lea r8, [rsp + 0xe0]
lea rdx, [rsp + 0xd0]
mov rcx, qword [rdi]
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
mov r12d, eax
test eax, eax
jns 0x7fff25d91f34
xor edx, edx
mov rcx, qword [rdi]
call sym.KERNELBASE.dll_BaseMarkFileForDelete
mov ecx, r12d
call fcn.7fff25d6b370
mov r12d, dword [rsp + 0x230]
jmp 0x7fff25d9208f
mov r12d, dword [rsp + 0x230]
mov r11d, 0x4000
mov r10d, dword [rsp + 0x60]
mov r9d, dword [rsp + 0x64]
mov r8d, dword [rsp + 0x90]
jmp 0x7fff25d91cc4
test r9d, r9d
jne 0x7fff25d91f67
test r10d, r10d
jns 0x7fff25d91cce
xor edx, edx
mov rcx, qword [rdi]
call sym.KERNELBASE.dll_BaseMarkFileForDelete
mov ecx, 0x1770
call qword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
nop dword [rax + rax]
jmp 0x7fff25d9208f
test dword [r13], r11d
jne 0x7fff25d91cdc
test byte [rsp + 0x228], 8
jne 0x7fff25d91cdc
call sym.KERNELBASE.dll_CheckAllowDecryptedRemoteDestinationPolicy
test eax, eax
je 0x7fff25d91fed
and dword [rsp + 0x84], 0
mov dword [rsp + 0x20], r14d
mov r9d, 8
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0xc0]
mov rcx, qword [rdi]
call qword [sym.imp.ntdll.dll_NtQueryVolumeInformationFile]
nop dword [rax + rax]
test eax, eax
js 0x7fff25d91fed
test byte [rsp + 0x84], 0x10
cmovne ebx, esi
mov dword [rsp + 0x68], ebx
test ebx, ebx
jne 0x7fff25d91cdc
test r15, r15
je 0x7fff25d92082
cmp qword [r15 + 0x90], 0
je 0x7fff25d92082
test byte [rsp + 0x228], 0x10
je 0x7fff25d92082
test dword [rsp + 0x220], 0x20000
je 0x7fff25d92048
test dword [rsp + 0x210], 0x4000
jne 0x7fff25d92031
lea eax, [rbx + 0xc]
jmp 0x7fff25d9204d
mov al, byte [r13]
and al, r14b
neg al
sbb ecx, ecx
and ecx, 9
mov eax, 0xc
add eax, ecx
jmp 0x7fff25d9204d
mov eax, 0xb
and dword [r15 + 0x14], 0
mov dword [r15 + 0x18], 0x1770
and qword [r15 + 0x40], 0
mov rcx, qword [rsp + 0xa8]
mov qword [r15 + 0x20], rcx
mov qword [r15 + 0x28], rdi
mov rdx, r15
mov ecx, eax
call sym.KERNELBASE.dll_BasepCopyFileCallback
test eax, eax
cmovne ebx, esi
mov dword [rsp + 0x68], ebx
test ebx, ebx
je 0x7fff25d91f67
jmp 0x7fff25d91cdc
lea eax, [r12 - 2]
xor edx, edx
cmp eax, esi
jbe 0x7fff25df11ce
cmp dword [rsp + 0x240], edx
jne 0x7fff25df11ce
mov eax, ebx
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.7fff25dce640
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov rax, qword [rsp + 0xb0]
test rax, rax
je 0x7fff25df11e8
cmp dword [rax + 0x20], edx
jne 0x7fff25df11e8
mov rcx, rax
call 0x7fff25e050f4
cmp dword [0x7fff25fcf188], 5
jbe 0x7fff25d920ab
movabs r8, 0x400000000000
test qword [0x7fff25fcf198], r8
je 0x7fff25d920ab
mov rax, qword [0x7fff25fcf1a0]
and rax, r8
cmp rax, qword [0x7fff25fcf1a0]
jne 0x7fff25d920ab
mov dword [rsp + 0x6c], r12d
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x130], rax
mov qword [rsp + 0x138], 4
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x140], rax
mov qword [rsp + 0x148], 4
mov eax, dword [rsp + 0x250]
mov dword [rsp + 0x74], eax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x150], rax
mov qword [rsp + 0x158], 4
mov eax, dword [rsp + 0x240]
mov dword [rsp + 0x78], eax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x168], 4
mov dword [rsp + 0x7c], ebx
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x170], rax
mov qword [rsp + 0x178], 4
lea rax, [rsp + 0x110]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 7
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x7fff25f9b071]
lea rcx, [0x7fff25fcf188]
call fcn.7fff25d86f48
nop
jmp 0x7fff25d920ab