Function at 0x7dded4a1
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
or dword [ebp - 8], 0xffffffff
push ebx
xor ebx, ebx
xor eax, eax
push esi
xor esi, esi
push edi
mov word [ebp - 0x2c], ax
mov word [ebp - 0x2a], ax
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x24], ax
mov word [ebp - 0x22], ax
mov dword [ebp - 0x20], ebx
mov byte [ebp - 1], bl
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
cmp dword [ebp + 8], ebx
je 0x7dded54c
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x7dded54c
mov eax, dword [ebp + 0x10]
and eax, 1
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp + 0x10]
jne 0x7dded54c
push ebx
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
lea eax, [ebp - 0x10]
push eax
push ebx
push 1
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 0x23
call dword [sym.imp.ntdll.dll_RtlAcquirePrivilege]
cmp eax, ebx
jge 0x7dded51a
push eax
call sym.KERNEL32.dll_BaseSetLastNTError
jmp 0x7dded554
push edi
call dword [sym.imp.ntdll.dll_RtlDetermineDosPathNameType_U]
cmp eax, 7
ja case.default.0x7dded52d
movzx eax, byte [eax + 0x7dded7ac]
jmp dword [eax*4 + 0x7dded7a0]
mov byte [ebp - 1], bl
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
jne 0x7dded628
push 0x57
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
cmp dword [ebp - 0x10], ebx
je 0x7dded562
push dword [ebp - 0x10]
call dword [sym.imp.ntdll.dll_RtlReleasePrivilege]
mov edi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0xc], ebx
je 0x7dded57f
push dword [ebp - 0xc]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call edi
cmp esi, ebx
je 0x7dded593
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push ebx
push dword [eax + 0x18]
call edi
cmp byte [ebp - 1], bl
jne 0x7dded5af
cmp dword [ebp - 0x20], ebx
je 0x7dded5af
push dword [ebp - 0x20]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call edi
cmp dword [ebp - 0x28], ebx
je 0x7dded5c6
push dword [ebp - 0x28]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call edi
cmp dword [ebp - 8], 0xffffffff
pop edi
pop esi
pop ebx
je 0x7dded5d8
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtClose]
call fcn.7dd711c7
neg eax
sbb eax, eax
inc eax
leave
ret 0xc
push edi
call fcn.7dded289
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x7dded554
mov dword [ebp + 0xc], eax
mov byte [ebp - 1], bl
mov edi, eax
jmp case.default.0x7dded52d
mov eax, edi
mov byte [ebp - 1], 1
mov dword [ebp - 0x20], edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x7dded610
sub eax, edx
sar eax, 1
add eax, eax
mov word [ebp - 0x22], ax
mov word [ebp - 0x24], ax
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x7dded62d
movzx ecx, word [ebp - 0x24]
sub eax, edx
sar eax, 1
lea esi, [ecx + eax*2 + 0x14]
mov dword [ebp - 0x14], esi
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x2c]
mov ecx, dword fs:[0x18]
push esi
push eax
mov eax, dword [ecx + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
cmp esi, ebx
jne 0x7dded670
push 8
jmp 0x7dded54e
push 6
xor eax, eax
pop ecx
mov edi, esi
rep stosd dword es:[edi], eax
cmp byte [ebp - 1], bl
je 0x7dded682
or dword [esi + 0x10], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff8
mov word [esi + 4], ax
xor eax, eax
mov word [esi + 0xc], ax
mov eax, dword [ebp + 0xc]
mov dword [esi], 0xa000000c
lea edi, [esi + 0x14]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x7dded6a1
sub eax, ecx
sar eax, 1
add eax, eax
mov word [esi + 0xe], ax
movzx eax, ax
push eax
push dword [ebp + 0xc]
push edi
call sub.ntdll.dll_memcpy
movzx eax, word [esi + 0xe]
mov word [esi + 8], ax
mov cx, word [ebp - 0x24]
mov word [esi + 0xa], cx
movzx ecx, word [ebp - 0x24]
push ecx
push dword [ebp - 0x20]
movzx eax, ax
add eax, edi
push eax
call sub.ntdll.dll_memcpy
add esp, 0x18
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
jne 0x7dded702
push 3
jmp 0x7dded54e
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x1c]
neg eax
push ebx
sbb eax, eax
push ebx
and eax, 0xffffffc1
add eax, 0x200060
push eax
push 2
push ebx
push 0x80
push ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0x110100
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x4c], 0x18
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x40], 0x40
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
call dword [sym.imp.ntdll.dll_NtCreateFile]
cmp eax, ebx
jl 0x7dded512
push ebx
push ebx
push dword [ebp - 0x14]
lea eax, [ebp - 0x34]
push esi
push 0x900a4
push eax
push ebx
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtFsControlFile]
cmp eax, ebx
jge 0x7dded554
push eax
call sym.KERNEL32.dll_BaseSetLastNTError
push 0xd
push 1
lea eax, [ebp + 0x13]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 8]
mov byte [ebp + 0x13], 1
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
jmp 0x7dded554