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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x2aa10
push 0x2a536
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 1
pop esi
mov dword [ebp - 0x34], esi
xor edi, edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x8c], edi
mov dword [ebp - 4], edi
mov eax, dword [0x2b574]
cmp eax, edi
je 0x283ba
cmp dword [eax + 4], 2
mov ebx, dword [ebp + 8]
jne 0x283c4
push dword [ebx + 0xc]
call fcn.0002a18e
test al, al
je 0x283bf
push 0xc
pop ecx
xor eax, eax
lea edi, [ebp - 0xec]
rep stosd dword es:[edi], eax
mov dword [ebp - 0xd4], esi
mov byte [ebp - 0xcc], 0x55
mov byte [ebp - 0xcb], 0x55
mov byte [ebp - 0xca], 0x55
mov dword [ebp - 0xec], esi
mov byte [ebp - 0xc9], 0x55
mov ebx, dword [ebp + 0xc]
lea edi, [ebx + 4]
push 0xc
pop ecx
lea esi, [ebp - 0xec]
rep movsd dword es:[edi], dword [esi]
and dword [ebp - 0x34], 0
or dword [ebp - 4], 0xffffffff
call 0x2837d
mov ebx, dword [ebp + 0xc]
cmp dword [ebp - 0x30], 0
je 0x2838c
push dword [ebp - 0x30]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [ebp - 0x8c], 0
je 0x283a1
push dword [ebp - 0x8c]
call dword [sym.imp.ntoskrnl.exe_ExFreePool]
mov eax, dword [ebp - 0x34]
mov dword [ebx], eax
mov esp, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
mov ebx, dword [ebp + 8]
jmp 0x283c4
mov eax, dword [0x2b574]
cmp dword [ebp + 0x10], 3
jne 0x285dd
cmp eax, edi
je 0x284f5
cmp dword [eax + 4], 2
je 0x284f5
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x38], edi
and byte [ebp - 0x48], 0
push 0x28270
push dword [ebx + 0xc]
mov edi, dword [sym.imp.ntoskrnl.exe_strstr]
call edi
pop ecx
pop ecx
mov dword [ebp - 0x44], eax
test eax, eax
je 0x284f5
push 0x28274
add eax, 2
push eax
call edi
pop ecx
pop ecx
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x284f5
push 0xc
pop ecx
lea edi, [ebp - 0xbc]
rep stosd dword es:[edi], eax
or dword [ebp - 0xac], 0xffffffff
mov byte [ebp - 0x9c], 0x55
mov byte [ebp - 0x9b], 0x55
mov byte [ebp - 0x9a], 0x55
mov dword [ebp - 0xbc], esi
mov byte [ebp - 0x99], 0x55
mov dword [ebp - 0xa4], esi
push 2
pop edx
mov dword [ebp - 0x98], edx
push 0xc
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x6c], 0x1000000
mov byte [ebp - 0x5c], 1
mov byte [ebp - 0x5b], 0x41
mov byte [ebp - 0x5a], 1
mov dword [ebp - 0x7c], esi
mov byte [ebp - 0x59], 0x41
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x34], esi
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x4c], eax
cmp eax, ecx
jae 0x284bf
mov edx, dword [ebx + 8]
mov edi, dword [ebp - 0xac]
cmp dword [edx + eax*4], edi
jne 0x284bc
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp + 0xc]
lea edi, [ebx + 4]
push 0xc
pop ecx
lea esi, [ebp - 0xbc]
jmp 0x284e8
inc eax
jmp 0x28493
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x1c], ecx
xor eax, eax
mov dword [ebp - 0x4c], eax
cmp eax, ecx
jae 0x284f5
mov edx, dword [ebx + 8]
mov edx, dword [edx + eax*4]
cmp edx, dword [ebp - 0x6c]
jne 0x284f2
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp + 0xc]
lea edi, [ebx + 4]
push 0xc
pop ecx
lea esi, [ebp - 0x7c]
rep movsd dword es:[edi], dword [esi]
and dword [ebx], 0
jmp 0x2836d
inc eax
jmp 0x284c7
cmp dword [ebp + 0x10], 3
jne 0x285dd
and dword [ebp - 0x44], 0
and byte [ebp - 0x48], 0
push 0x28278
push dword [ebx + 0xc]
call dword [sym.imp.ntoskrnl.exe_strstr]
pop ecx
pop ecx
mov dword [ebp - 0x44], eax
test eax, eax
je 0x285dd
mov edx, dword [ebx + 0xc]
sub eax, edx
inc eax
inc eax
mov byte [ebp - 0x48], al
movzx eax, al
mov dword [ebp - 0xf0], eax
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, dword [ebp - 0xf0]
cmp eax, ecx
jae 0x285dd
push 0x2827c
add eax, edx
push eax
call dword [sym.imp.ntoskrnl.exe_strstr]
pop ecx
pop ecx
mov dword [ebp - 0x38], eax
test eax, eax
je 0x28578
mov ebx, dword [ebx + 0xc]
sub eax, ebx
mov byte [ebp - 0x48], al
movzx eax, al
and byte [eax + ebx + 1], 0
jmp 0x28585
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0xf0]
and byte [ecx + eax], 0
push 3
mov ebx, dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
call fcn.00027208
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x28371
and byte [ebx + 0x27], al
mov dl, byte [ebx + 0x26]
mov byte [ebp - 0xf1], dl
and dl, 3
mov byte [ebx + 0x27], dl
mov al, byte [ebx + 0x25]
mov cl, al
shr cl, 2
and cl, 0xc
or cl, dl
mov byte [ebx + 0x27], cl
mov dl, byte [ebp - 0xf1]
and dl, 0xc
shl dl, 2
or dl, cl
mov byte [ebx + 0x27], dl
and al, 0xc0
or al, dl
mov byte [ebx + 0x27], al
jmp 0x28371
push dword [ebx + 0xc]
call fcn.00029604
mov dword [ebp - 0x8c], eax
test eax, eax
jne 0x28746
push 0x546b6c42
mov edi, dword [ebx + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x1d
push ecx
push eax
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0x8c], eax
test eax, eax
jne 0x28622
mov dword [ebp - 0x34], esi
mov ebx, dword [ebp + 0xc]
jmp 0x28371
push 2
push 0x28280
push dword [ebx + 0xc]
mov edi, dword [sym.imp.ntoskrnl.exe__strnicmp]
call edi
add esp, 0xc
test eax, eax
jne 0x286f7
push 5
push 0x28284
push dword [ebx + 0xc]
call edi
add esp, 0xc
test eax, eax
jne 0x2865b
mov edi, dword [ebx + 0xc]
inc edi
jmp 0x28725
mov edx, dword [ebx + 0xc]
mov edi, 0x2828c
mov esi, edx
push 5
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x28673
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x287cc
mov edi, 0x28294
mov esi, edx
push 4
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x28690
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x287cc
mov edi, 0x28298
mov esi, edx
push 2
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x286ad
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x287cc
mov eax, dword [0x2829c]
mov edx, dword [ebp - 0x8c]
mov dword [edx], eax
mov eax, dword [0x282a0]
mov dword [edx + 4], eax
mov edi, dword [ebx + 0xc]
inc edi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
or ecx, 0xffffffff
mov dword [ebp - 0xf8], eax
xor eax, eax
repne scasb al, byte es:[edi]
dec edi
mov eax, dword [ebp - 0xf8]
mov ecx, eax
jmp 0x2873a
push esi
push 0x282a4
push dword [ebx + 0xc]
call edi
add esp, 0xc
test eax, eax
je 0x28722
push dword [ebx + 0xc]
push 0x282a8
push dword [ebp - 0x8c]
call dword [sym.imp.ntoskrnl.exe_sprintf]
add esp, 0xc
jmp 0x28746
mov edi, dword [ebx + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebp - 0x8c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x8c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
dec edi
mov esi, 0x282b0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 3
push 0xc0110000
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x8c]
call fcn.0001f3ec
mov dword [ebp - 0x88], eax
xor esi, esi
cmp eax, esi
jl 0x287f1
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
push 0xe
push 8
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
mov dword [ebp - 0x88], eax
cmp eax, esi
jl 0x287cc
push esi
push esi
push 0x10
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
push esi
push esi
push dword [ebp - 0x30]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [ebp - 0x88], eax
cmp eax, esi
jge 0x287d8
mov dword [ebp - 0x34], 1
jmp 0x2861a
cmp byte [ebp - 0x2b], 1
jne 0x2883a
push dword [ebp - 0x30]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov dword [ebp - 0x88], 0xc0000034
mov ebx, dword [ebp + 0xc]
cmp dword [ebp - 0x88], 0
jge 0x28371
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0xc]
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
dec ecx
mov byte [ebp - 0x48], cl
movzx eax, cl
add eax, edx
cmp byte [eax], 0x5c
jne 0x288e7
cmp byte [eax + 1], 0x3a
je 0x288e7
and byte [eax], 0
push dword [ebp + 0x10]
jmp 0x2858a
mov dword [ebp - 0x34], 1
mov eax, dword [ebx + 4]
mov dword [ebp - 0x1c], eax
and byte [ebp - 0x48], 0
mov ebx, dword [ebp + 0xc]
mov al, byte [ebp - 0x48]
cmp al, byte [ebp - 0x2c]
jae 0x288ca
xor esi, esi
push esi
push esi
push 0x30
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
push esi
push esi
push dword [ebp - 0x30]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [ebp - 0x88], eax
cmp eax, esi
jge 0x2888c
mov dword [ebp - 0x34], 1
jmp 0x28371
xor eax, eax
mov dword [ebp - 0x4c], eax
cmp eax, dword [ebp - 0x1c]
jae 0x288bc
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
mov ecx, dword [ecx + eax*4]
cmp ecx, dword [ebp - 0xdc]
jne 0x288c7
mov dword [ebp - 0x1c], eax
lea edi, [ebx + 4]
push 0xc
pop ecx
lea esi, [ebp - 0xec]
rep movsd dword es:[edi], dword [esi]
and dword [ebp - 0x34], 0
cmp dword [ebp - 0x1c], 0
je 0x288ca
inc byte [ebp - 0x48]
jmp 0x2884e
inc eax
jmp 0x2888e
cmp dword [ebp - 0x34], 0
jne 0x288d8
and dword [ebx], 0
jmp 0x28371
mov dword [ebp - 0x88], 0xc0000034
jmp 0x287f4
dec cl
jmp 0x28814