Function at 0x3a98dd100
Capabilities:
Set file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
xor r13d, r13d
mov esi, edx
mov rbx, rcx
lea rbp, [rcx + 0x220]
mov rdi, r8
lea r12, [rcx + 0x1f0]
or esi, 0x100000
mov dword [rsp + 0x50], 0
mov r9, rbp
mov r8, r12
mov edx, esi
mov qword [rsp + 0x48], 0
mov rcx, rdi
mov dword [rsp + 0x40], 0x204040
mov dword [rsp + 0x38], 2
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], 0
call sub.ntdll.dll_NtCreateFile
mov r14d, eax
test eax, eax
js 0x3a98dd1a0
xor eax, eax
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp eax, 0xc0000035
sete al
xor r13d, 1
and r13b, al
je 0x3a98dd3ef
lea rax, [rsp + 0x78]
mov dword [rsp + 0x6c], 2
mov r10d, 0x1040
mov r15d, 0x10000
mov qword [rsp + 0x60], rax
mov eax, r10d
mov dword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x60]
mov edx, r15d
or eax, 0x204000
mov dword [rsp + 0x38], 1
or edx, 0x100000
mov r9, rbp
mov qword [rsp + 0x48], 0
mov r8, r12
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x68], r10d
call sub.ntdll.dll_NtCreateFile
mov r10d, dword [rsp + 0x68]
cmp eax, 0xc0000121
mov r14d, eax
je 0x3a98dd2d0
test eax, eax
js 0x3a98dd2f0
and r10d, 0x1000
mov rcx, qword [rsp + 0x78]
je 0x3a98dd365
call sub.ntdll.dll_NtClose
mov r14d, eax
test eax, eax
jns 0x3a98dd132
mov rcx, qword [rbx + 0x230]
mov rdx, qword [rbx + 8]
mov r8, qword [rbx + 0x10]
call fcn.3a98e46d0
mov edx, 0x5c
mov word [rax], dx
movzx r8d, word [rbx + 0x1e0]
lea rcx, [rax + 2]
mov rdx, qword [rbx + 0x1e8]
shr r8w, 1
and r8d, 0x7fff
call fcn.3a98e46d0
xor ecx, ecx
mov r8, qword [rbx + 0x230]
lea rdx, str.Error_closing___ls__after_setting_delete_on_close_disposition
mov word [rax], cx
mov ecx, r14d
call fcn.3a98f4982
mov eax, 0x2f
jmp 0x3a98dd185
cmp dword [rsp + 0x6c], 1
je 0x3a98dd2f0
mov dword [rsp + 0x6c], 1
mov r10d, 0x40
mov r15d, 0x10100
jmp 0x3a98dd1d3
mov rcx, qword [rbx + 0x230]
mov rdx, qword [rbx + 8]
mov dword [rsp + 0x68], r10d
mov r8, qword [rbx + 0x10]
call fcn.3a98e46d0
mov r8d, 0x5c
mov rdx, qword [rbx + 0x1e8]
mov word [rax], r8w
movzx r8d, word [rbx + 0x1e0]
lea rcx, [rax + 2]
shr r8w, 1
and r8d, 0x7fff
call fcn.3a98e46d0
mov r10d, dword [rsp + 0x68]
xor r9d, r9d
mov ecx, r14d
mov word [rax], r9w
lea rdx, str.Cant_open___ls__for_deletion__perms_x__flags_x_
mov r9d, r15d
mov dword [rsp + 0x20], r10d
mov r8, qword [rbx + 0x230]
call fcn.3a98f4982
jmp 0x3a98dd2c6
mov dword [rsp + 0x20], 4
pxor xmm0, xmm0
mov rdx, rbp
mov r9d, 0x28
lea r8, [rsp + 0x80]
movups xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0xa0], 0
movups xmmword [rsp + 0x90], xmm0
mov dword [rsp + 0xa0], pe_nt_image_headers64
call sub.ntdll.dll_NtSetInformationFile
mov r14d, eax
test eax, eax
js 0x3a98dd43c
mov dword [rsp + 0x20], 0xd
mov rcx, qword [rsp + 0x78]
lea r8, [rsp + 0x77]
mov rdx, rbp
mov r9d, 1
mov byte [rsp + 0x77], 1
call sub.ntdll.dll_NtSetInformationFile
mov r14d, eax
test eax, eax
js 0x3a98dd40e
mov rcx, qword [rsp + 0x78]
jmp 0x3a98dd25c
mov rcx, rbx
call fcn.3a98dacc0
lea rdx, str.Cant_create___ls_
mov ecx, r14d
mov r8, rax
call fcn.3a98f4982
jmp 0x3a98dd2c6
mov rcx, rbx
call fcn.3a98dacc0
mov ecx, r14d
lea rdx, str.Cant_set_delete_on_close_disposition_on___ls_
mov r8, rax
call fcn.3a98f4982
mov rcx, qword [rsp + 0x78]
call sub.ntdll.dll_NtClose
mov eax, 0x39
jmp 0x3a98dd185
mov rcx, rbx
call fcn.3a98dacc0
mov ecx, r14d
lea rdx, str.Cant_reset_attributes_of___ls__to_prepare_for_deletion
mov r8, rax
call fcn.3a98f4982
mov rcx, qword [rsp + 0x78]
call sub.ntdll.dll_NtClose
jmp 0x3a98dd432