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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x2aa00
push 0x2a536
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor edx, edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x98], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x60], edx
and byte [ebp - 0x64], dl
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0xc]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x27bff
mov dword [ebp - 0x34], 1
mov ebx, dword [ebp + 0xc]
jmp 0x28219
cmp dword [ebp + 0x10], 4
jne 0x27c49
push 0xc
pop ecx
xor eax, eax
lea edi, [ebp - 0x94]
rep stosd dword es:[edi], eax
push 1
pop eax
mov dword [ebp - 0x7c], eax
mov byte [ebp - 0x74], 0x55
mov byte [ebp - 0x73], 0x55
mov byte [ebp - 0x72], 0x55
mov dword [ebp - 0x94], eax
mov byte [ebp - 0x71], 0x55
mov ebx, dword [ebp + 0xc]
lea edi, [ebx + 4]
push 0xc
pop ecx
lea esi, [ebp - 0x94]
rep movsd dword es:[edi], dword [esi]
mov dword [ebx], edx
mov dword [ebp - 0x34], edx
jmp 0x28219
push esi
call fcn.00029604
mov dword [ebp - 0x60], eax
test eax, eax
jne 0x27d9f
push 0x546b6c42
mov esi, dword [ebp + 8]
mov edi, dword [esi + 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 - 0x60], eax
test eax, eax
je 0x27bf0
push 2
push 0x27b2c
push dword [esi + 0xc]
mov edi, dword [sym.imp.ntoskrnl.exe__strnicmp]
call edi
add esp, 0xc
test eax, eax
jne 0x27d52
push 5
push 0x27b30
push dword [esi + 0xc]
call edi
add esp, 0xc
test eax, eax
jne 0x27cbd
mov eax, esi
mov edi, dword [eax + 0xc]
inc edi
jmp 0x27d81
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0xc]
mov edi, 0x27b38
mov esi, edx
push 5
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x27cd8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x27bf0
mov edi, 0x27b40
mov esi, edx
push 4
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x27cf5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x27bf0
mov edi, 0x27b44
mov esi, edx
push 2
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x27d12
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x27bf0
mov eax, dword [0x27b48]
mov edx, dword [ebp - 0x60]
mov dword [edx], eax
mov eax, dword [0x27b4c]
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 ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
jmp 0x27d9a
push 1
push 0x27b50
push dword [esi + 0xc]
call edi
add esp, 0xc
test eax, eax
je 0x27d7b
push dword [esi + 0xc]
push 0x27b54
push dword [ebp - 0x60]
call dword [sym.imp.ntoskrnl.exe_sprintf]
add esp, 0xc
jmp 0x27d9f
mov eax, dword [ebp + 8]
mov edi, dword [eax + 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 - 0x60]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp - 0x60]
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + edx - 1], 0x5c
je 0x27dc4
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov esi, 0x27b5c
movsw word es:[edi], word [esi]
mov edi, dword [ebp - 0x60]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
dec edi
mov esi, 0x27b60
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
push 3
push 0xc0110000
lea eax, [ebp - 0x98]
push eax
push dword [ebp - 0x60]
call fcn.0001f3ec
mov dword [ebp - 0x5c], eax
xor esi, esi
cmp eax, esi
jge 0x27e15
cmp eax, 0xc0000034
je 0x27e0d
mov dword [ebp - 0x34], 0x1001
jmp 0x27bf7
cmp eax, esi
jl 0x27f61
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
push 0xe
push 8
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x98]
call dword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
mov dword [ebp - 0x5c], eax
cmp eax, esi
jl 0x27bf0
push esi
push esi
push 0x10
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push esi
push dword [ebp - 0x98]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [ebp - 0x5c], eax
cmp eax, esi
jl 0x27bf0
cmp byte [ebp - 0x2f], 1
jne 0x27e6e
mov byte [ebp - 0x64], 1
mov dword [ebp - 0x34], 1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
and byte [ebp - 0x4c], 0
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov al, byte [ebp - 0x4c]
cmp al, byte [ebp - 0x30]
jae 0x27eff
push esi
push esi
push 0x30
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push esi
push dword [ebp - 0x98]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [ebp - 0x5c], eax
cmp eax, esi
jge 0x27ec0
mov dword [ebp - 0x34], 1
jmp 0x28219
xor eax, eax
mov dword [ebp - 0x50], eax
cmp eax, dword [ebp - 0x1c]
jae 0x27ef2
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
mov ecx, dword [ecx + eax*4]
cmp ecx, dword [ebp - 0x84]
jne 0x27efc
mov dword [ebp - 0x1c], eax
lea edi, [ebx + 4]
push 0xc
pop ecx
lea esi, [ebp - 0x94]
rep movsd dword es:[edi], dword [esi]
and dword [ebp - 0x34], 0
xor esi, esi
cmp dword [ebp - 0x1c], esi
je 0x27eff
inc byte [ebp - 0x4c]
jmp 0x27e87
inc eax
jmp 0x27ec2
and byte [ebx + 0x27], 0
mov dl, byte [ebx + 0x26]
mov byte [ebp - 0x9d], 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 - 0x9d]
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
cmp dword [ebp - 0x34], esi
jne 0x27f46
mov dword [ebx], esi
jmp 0x28219
cmp byte [ebp - 0x64], 0
je 0x27f55
mov dword [ebp - 0x5c], 0xc0000034
jmp 0x27f64
push 0xc
pop ecx
xor eax, eax
lea edi, [ebx + 4]
rep stosd dword es:[edi], eax
jmp 0x27f3f
mov ebx, dword [ebp + 0xc]
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
cmp byte [ecx + edx - 1], 0x3a
jne 0x27f89
mov dword [ebp - 0x34], 0x1002
jmp 0x28219
cmp dword [ebp - 0x5c], 0xc0000034
jne 0x28219
mov edx, dword [ebp - 0x60]
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
and byte [ecx + edx - 0x12], al
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
push 6
pop ecx
mov esi, 0x27b74
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 3
push 0xc0110000
lea eax, [ebp - 0x20]
push eax
push edx
call fcn.0001f3ec
mov dword [ebp - 0x5c], eax
test eax, eax
jge 0x28114
push 0x546b6c42
mov edx, dword [ebp + 8]
mov edi, dword [edx + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, dword [edx + 4]
lea eax, [ecx + eax*4 + 0x12]
push eax
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x27f7d
and dword [ebp - 0x9c], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x48]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
lea edi, [edx + 0x10]
mov dword [edx + 8], edi
mov ecx, dword [eax + 4]
shl ecx, 2
mov esi, dword [eax + 8]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
lea eax, [edx + eax*4 + 0x10]
mov dword [ebp - 0xa4], eax
mov dword [edx + 0xc], eax
mov edi, dword [ecx + 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 - 0xa4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [edx + 0xc]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + esi - 1], 0x5c
jne 0x28097
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
and byte [ecx + esi - 1], al
mov esi, dword [edx + 0xc]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x9c], ecx
test ecx, ecx
jbe 0x280bc
lea eax, [esi + ecx - 1]
cmp byte [eax], 0x5c
jne 0x280a5
and byte [eax], 0
mov edx, dword [edx + 0xc]
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x27f7d
push 0x27b90
push edx
mov esi, dword [sym.imp.ntoskrnl.exe__stricmp]
call esi
pop ecx
pop ecx
test eax, eax
je 0x27f7d
push 0x27b98
mov eax, dword [ebp - 0x48]
push dword [eax + 0xc]
call esi
pop ecx
pop ecx
test eax, eax
je 0x27f7d
push dword [ebp + 0x10]
push ebx
push dword [ebp - 0x48]
call fcn.00027208
mov dword [ebp - 0x34], eax
jmp 0x28219
xor esi, esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
push 0xe
push 8
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
mov dword [ebp - 0x5c], eax
cmp eax, esi
jl 0x27eb4
push esi
push esi
push 0x10
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push esi
push dword [ebp - 0x20]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [ebp - 0x5c], eax
cmp eax, esi
jl 0x27eb4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
and byte [ebp - 0x4c], 0
mov al, byte [ebp - 0x4c]
cmp al, byte [ebp - 0x30]
jae 0x281d9
push esi
push esi
push 0x30
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push esi
push dword [ebp - 0x20]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [ebp - 0x5c], eax
cmp eax, esi
jl 0x27eb4
xor eax, eax
mov dword [ebp - 0x50], eax
cmp eax, dword [ebp - 0x1c]
jae 0x281cc
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
mov ecx, dword [ecx + eax*4]
cmp ecx, dword [ebp - 0x84]
jne 0x281d6
mov dword [ebp - 0x1c], eax
lea edi, [ebx + 4]
push 0xc
pop ecx
lea esi, [ebp - 0x94]
rep movsd dword es:[edi], dword [esi]
and dword [ebp - 0x34], 0
xor esi, esi
cmp dword [ebp - 0x1c], esi
je 0x281d9
inc byte [ebp - 0x4c]
jmp 0x2816c
inc eax
jmp 0x2819c
and byte [ebx + 0x27], 0
mov dl, byte [ebx + 0x26]
mov byte [ebp - 0x9d], 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 - 0x9d]
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
mov eax, dword [ebp - 0x34]
mov dword [ebx], eax
or dword [ebp - 4], 0xffffffff
call 0x28225
mov ebx, dword [ebp + 0xc]
xor esi, esi
cmp dword [ebp - 0x98], esi
je 0x2823b
push dword [ebp - 0x98]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [ebp - 0x20], esi
je 0x28249
push dword [ebp - 0x20]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [ebp - 0x60], esi
je 0x28257
push dword [ebp - 0x60]
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