Function at 0x28fb0
Capabilities:
Read file on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x2aa30
push 0x2a536
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], eax
cmp dword [ebp + 8], eax
jne 0x29097
mov dword [ebp - 0x2c], 1
or dword [ebp - 4], 0xffffffff
call 0x2900c
xor esi, esi
cmp dword [ebp - 0x20], esi
je 0x2901c
push dword [ebp - 0x20]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [ebp - 0x40], esi
je 0x2902a
push dword [ebp - 0x40]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [ebp - 0x60], esi
je 0x29038
push dword [ebp - 0x60]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [ebp - 0x24], esi
je 0x29046
push dword [ebp - 0x24]
call dword [sym.imp.ntoskrnl.exe_ExFreePool]
cmp dword [ebp - 0x28], esi
je 0x29054
push dword [ebp - 0x28]
call dword [sym.imp.ntoskrnl.exe_ExFreePool]
cmp dword [ebp - 0x50], esi
je 0x29062
push dword [ebp - 0x50]
call dword [sym.imp.ntoskrnl.exe_ExFreePool]
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x34], esi
je 0x29080
push 0x8000
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
mov esp, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 8
mov ebx, 0x546b6c42
push ebx
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_wcslen]
pop ecx
lea eax, [eax + eax + 0x3c]
push eax
push 1
mov esi, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
call esi
mov edi, eax
mov dword [ebp - 0x28], edi
test edi, edi
jne 0x290cb
mov dword [ebp - 0x2c], 2
jmp 0x29003
or dword [ebp - 0x4c], 0xffffffff
and dword [ebp - 0x30], 0
mov dword [ebp - 0x1c], 0x208
push 4
push 0x1000
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0x30]
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov dword [ebp - 0x5c], eax
test eax, eax
jl 0x290bf
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
add eax, 8
mov dword [ebp - 0x44], eax
push ebx
push 0x10
push 1
call esi
mov dword [ebp - 0x24], eax
test eax, eax
je 0x290bf
cmp byte [ebp + 0xc], 1
je 0x29485
push 4
push 0x28de0
mov ebx, dword [ebp + 8]
push ebx
mov esi, dword [sym.imp.ntoskrnl.exe__wcsnicmp]
call esi
add esp, 0xc
test eax, eax
jne 0x29140
push ebx
push 0x28dec
jmp 0x29162
push 5
push 0x28df4
push ebx
call esi
add esp, 0xc
test eax, eax
jne 0x2915c
add ebx, 2
push ebx
push 0x28e00
jmp 0x29162
push ebx
push 0x28e08
push edi
call dword [sym.imp.ntoskrnl.exe_swprintf]
add esp, 0xc
push edi
call dword [sym.imp.ntoskrnl.exe_wcslen]
pop ecx
dec eax
mov dword [ebp - 0x48], eax
xor ebx, ebx
cmp eax, ebx
jl 0x291a2
cmp word [edi + eax*2], 0x5c
jne 0x2919c
mov word [edi + eax*2 + 2], bx
push 0x28e18
push edi
mov esi, dword [sym.imp.ntoskrnl.exe_wcscat]
call esi
pop ecx
pop ecx
jmp 0x291a8
dec eax
mov dword [ebp - 0x48], eax
jmp 0x2917a
mov esi, dword [sym.imp.ntoskrnl.exe_wcscat]
lea eax, [ebp - 0x60]
push eax
push edi
call fcn.0001f5be
mov dword [ebp - 0x5c], eax
cmp eax, ebx
jge 0x291c8
cmp eax, 0xc0000034
jne 0x28ffc
cmp eax, ebx
jl 0x2922a
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
push 0xe
push 8
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x60]
call dword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
mov dword [ebp - 0x5c], eax
cmp eax, ebx
jl 0x28ffc
push ebx
push ebx
push 0x10
push dword [ebp - 0x24]
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x60]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [ebp - 0x5c], eax
cmp eax, ebx
jl 0x28ffc
mov ecx, dword [ebp - 0x24]
cmp byte [ecx + 1], 1
jne 0x2922a
push dword [ebp - 0x60]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, 0xc0000034
mov dword [ebp - 0x5c], eax
cmp eax, 0xc0000034
jne 0x292df
push 4
push 0x28e40
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x29256
push dword [ebp + 8]
push 0x28e4c
jmp 0x29283
push 5
push 0x28e54
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x2927b
mov eax, dword [ebp + 8]
add eax, 2
push eax
push 0x28e60
jmp 0x29283
push dword [ebp + 8]
push 0x28e68
push edi
call dword [sym.imp.ntoskrnl.exe_swprintf]
add esp, 0xc
push edi
call dword [sym.imp.ntoskrnl.exe_wcslen]
pop ecx
dec eax
mov dword [ebp - 0x48], eax
cmp eax, ebx
jl 0x292b3
cmp word [edi + eax*2], 0x5c
jne 0x29295
mov word [edi + eax*2 + 2], bx
push 0x28e78
push edi
call esi
pop ecx
pop ecx
lea eax, [ebp - 0x60]
push eax
push edi
call fcn.0001f5be
mov dword [ebp - 0x5c], eax
cmp eax, ebx
jge 0x292d4
cmp eax, 0xc0000034
je 0x29487
jmp 0x28ffc
cmp eax, 0xc0000034
je 0x29487
push 4
push 0x28eac
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x29323
push dword [ebp + 8]
push edi
call dword [sym.imp.ntoskrnl.exe_wcscpy]
push edi
call dword [sym.imp.ntoskrnl.exe_wcslen]
add esp, 0xc
cmp word [edi + eax*2 - 2], 0x5c
je 0x2931c
push 0x28eb8
push edi
call esi
pop ecx
pop ecx
push 0x28ebc
jmp 0x2939e
push 5
push 0x28ef0
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x2936b
mov eax, dword [ebp + 8]
add eax, 2
push eax
push edi
call dword [sym.imp.ntoskrnl.exe_wcscpy]
push edi
call dword [sym.imp.ntoskrnl.exe_wcslen]
add esp, 0xc
cmp word [edi + eax*2 - 2], 0x5c
je 0x29364
push 0x28efc
push edi
call esi
pop ecx
pop ecx
push 0x28f00
jmp 0x2939e
push 0x28f34
push edi
call dword [sym.imp.ntoskrnl.exe_wcscpy]
push dword [ebp + 8]
push edi
call esi
push edi
call dword [sym.imp.ntoskrnl.exe_wcslen]
add esp, 0x14
cmp word [edi + eax*2 - 2], 0x5c
je 0x29399
push 0x28f40
push edi
call esi
pop ecx
pop ecx
push 0x28f44
push edi
call esi
pop ecx
pop ecx
lea eax, [ebp - 0x40]
push eax
push edi
call fcn.0001f5be
mov dword [ebp - 0x5c], eax
cmp eax, ebx
jge 0x293c0
cmp eax, 0xc0000034
je 0x293c7
jmp 0x28ffc
cmp eax, 0xc0000034
jne 0x293dc
lea eax, [ebp - 0x40]
push eax
push edi
call fcn.000203ca
mov dword [ebp - 0x5c], eax
cmp eax, ebx
jl 0x28ffc
push dword [ebp - 0x60]
push dword [ebp - 0x40]
call fcn.000158ae
test al, al
je 0x28ffc
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
push 0xe
push 8
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x40]
mov esi, dword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
call esi
mov dword [ebp - 0x5c], eax
cmp eax, ebx
jl 0x28ffc
push ebx
push ebx
push 0x10
push dword [ebp - 0x24]
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x40]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [ebp - 0x5c], eax
cmp eax, ebx
jl 0x28ffc
mov eax, dword [ebp - 0x24]
and byte [eax + 2], 0
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
push 0xe
push 8
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x40]
call esi
mov dword [ebp - 0x5c], eax
cmp eax, ebx
jl 0x28ffc
push ebx
push ebx
push 0x10
push dword [ebp - 0x24]
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x40]
call dword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov dword [ebp - 0x5c], eax
cmp eax, ebx
jge 0x29487
jmp 0x28ffc
xor ebx, ebx
push 4
push 0x28f78
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe__wcsnicmp]
add esp, 0xc
test eax, eax
push dword [ebp + 8]
jne 0x294a8
push 0x28f84
jmp 0x294ad
push 0x28f8c
push edi
call dword [sym.imp.ntoskrnl.exe_swprintf]
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push edi
call fcn.0001f5be
mov dword [ebp - 0x5c], eax
cmp eax, ebx
jl 0x28ffc
mov ebx, dword [sym.imp.ntoskrnl.exe_wcscmp]
mov ecx, 0x80
xor eax, eax
mov edi, dword [ebp - 0x44]
rep stosd dword es:[edi], eax
xor esi, esi
push esi
push esi
push 1
push 1
push 0x200
push dword [ebp - 0x44]
push dword [ebp - 0x34]
push esi
push esi
push esi
push dword [ebp - 0x20]
call fcn.000207e8
mov dword [ebp - 0x5c], eax
cmp eax, esi
jne 0x29003
mov edi, dword [ebp - 0x44]
lea esi, [edi + 0x40]
push 0x28f9c
push esi
call ebx
pop ecx
pop ecx
test eax, eax
je 0x294d2
push 0x28fa0
push esi
call ebx
pop ecx
pop ecx
test eax, eax
je 0x294d2
mov eax, dword [edi + 0x38]
and eax, 0x10
cmp al, 0x10
jne 0x294d2
push 0x546b6c42
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_wcslen]
pop ecx
add eax, dword [edi + 0x3c]
lea eax, [eax + eax + 0xc]
push eax
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0x50], eax
test eax, eax
je 0x290bf
push dword [ebp + 8]
push 0x28fa8
push eax
call dword [sym.imp.ntoskrnl.exe_swprintf]
mov eax, dword [edi + 0x3c]
shr eax, 1
push eax
push esi
push dword [ebp - 0x50]
call dword [sym.imp.ntoskrnl.exe_wcsncat]
add esp, 0x18
push 0
push dword [ebp - 0x50]
call fcn.00028fb0
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x50]
call dword [sym.imp.ntoskrnl.exe_ExFreePool]
and dword [ebp - 0x50], 0
jmp 0x294d2