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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x2a9f0
push 0x2a536
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf4
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor edx, edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0xf8], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x90], edx
and byte [ebp - 0xc4], 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 0x27271
mov dword [ebp - 0x34], 1
mov ebx, dword [ebp + 0xc]
jmp 0x27ace
cmp dword [ebp + 0x10], 4
jne 0x272ca
push 0xc
pop ecx
xor eax, eax
lea edi, [ebp - 0xf4]
rep stosd dword es:[edi], eax
push 1
pop eax
mov dword [ebp - 0xdc], eax
mov byte [ebp - 0xd4], 0x55
mov byte [ebp - 0xd3], 0x55
mov byte [ebp - 0xd2], 0x55
mov dword [ebp - 0xf4], eax
mov byte [ebp - 0xd1], 0x55
mov ebx, dword [ebp + 0xc]
lea edi, [ebx + 4]
push 0xc
pop ecx
lea esi, [ebp - 0xf4]
rep movsd dword es:[edi], dword [esi]
mov dword [ebx], edx
mov dword [ebp - 0x34], edx
jmp 0x27ace
mov eax, dword [0x2b574]
cmp eax, edx
je 0x2733d
cmp dword [eax + 4], 2
jne 0x2733d
push esi
call fcn.0002a18e
test al, al
je 0x27338
push 0xc
pop ecx
xor eax, eax
lea edi, [ebp - 0xf4]
rep stosd dword es:[edi], eax
push 1
pop eax
mov dword [ebp - 0xdc], eax
mov byte [ebp - 0xd4], 0x55
mov byte [ebp - 0xd3], 0x55
mov byte [ebp - 0xd2], 0x55
mov dword [ebp - 0xf4], eax
mov byte [ebp - 0xd1], 0x55
mov ebx, dword [ebp + 0xc]
lea edi, [ebx + 4]
push 0xc
pop ecx
lea esi, [ebp - 0xf4]
rep movsd dword es:[edi], dword [esi]
and dword [ebx], 0
and dword [ebp - 0x34], 0
jmp 0x27ace
mov eax, dword [0x2b574]
cmp dword [ebp + 0x10], 3
jne 0x27469
test eax, eax
je 0x27469
cmp dword [eax + 4], 2
je 0x27469
and dword [ebp - 0x44], 0
and dword [ebp - 0x38], 0
and byte [ebp - 0x4c], 0
push 0x2718c
mov esi, dword [ebp + 8]
push dword [esi + 0xc]
call dword [sym.imp.ntoskrnl.exe_strstr]
pop ecx
pop ecx
mov dword [ebp - 0x44], eax
test eax, eax
je 0x27464
cmp byte [eax + 3], 0
jne 0x27464
push 0xc
pop ecx
xor eax, eax
lea edi, [ebp - 0xc0]
rep stosd dword es:[edi], eax
or dword [ebp - 0xb0], 0xffffffff
mov byte [ebp - 0xa0], 0x55
mov byte [ebp - 0x9f], 0x55
mov byte [ebp - 0x9e], 0x55
push 1
pop ebx
mov dword [ebp - 0xc0], ebx
mov byte [ebp - 0x9d], 0x55
mov dword [ebp - 0xa8], ebx
push 2
pop edx
mov dword [ebp - 0x9c], edx
push 0xc
pop ecx
lea edi, [ebp - 0x80]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x70], 0x1000000
mov byte [ebp - 0x60], bl
mov byte [ebp - 0x5f], 0x41
mov byte [ebp - 0x5e], bl
mov dword [ebp - 0x80], ebx
mov byte [ebp - 0x5d], 0x41
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x34], ebx
mov ecx, dword [esi + 4]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x50], eax
cmp eax, ecx
jae 0x27433
mov edx, dword [esi + 8]
mov edi, dword [ebp - 0xb0]
cmp dword [edx + eax*4], edi
jne 0x27430
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp + 0xc]
lea edi, [ebx + 4]
push 0xc
pop ecx
lea esi, [ebp - 0xc0]
jmp 0x2732a
inc eax
jmp 0x27404
mov ecx, dword [esi + 4]
mov dword [ebp - 0x1c], ecx
xor eax, eax
mov dword [ebp - 0x50], eax
cmp eax, ecx
jae 0x2746f
mov edx, dword [esi + 8]
mov edx, dword [edx + eax*4]
cmp edx, dword [ebp - 0x70]
jne 0x27461
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp + 0xc]
lea edi, [ebx + 4]
push 0xc
pop ecx
lea esi, [ebp - 0x80]
jmp 0x2732a
inc eax
jmp 0x2743b
push 1
pop ebx
jmp 0x2746f
push 1
pop ebx
mov esi, dword [ebp + 8]
cmp dword [ebp + 0x10], 3
jne 0x274c5
and dword [ebp - 0x44], 0
and byte [ebp - 0x4c], 0
push 0x27190
push dword [esi + 0xc]
mov edi, dword [sym.imp.ntoskrnl.exe_strstr]
call edi
pop ecx
pop ecx
mov dword [ebp - 0x44], eax
test eax, eax
je 0x274c5
mov ecx, dword [esi + 0xc]
sub eax, ecx
inc eax
inc eax
mov byte [ebp - 0x4c], al
push 0x27194
movzx eax, al
add eax, ecx
push eax
call edi
pop ecx
pop ecx
mov dword [ebp - 0x38], eax
test eax, eax
je 0x274c5
mov ecx, dword [esi + 0xc]
sub eax, ecx
mov byte [ebp - 0x4c], al
movzx eax, al
and byte [eax + ecx], 0
push dword [esi + 0xc]
call fcn.00029604
mov dword [ebp - 0x90], eax
test eax, eax
jne 0x2762d
push 0x546b6c42
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 - 0x90], eax
test eax, eax
jne 0x27507
mov dword [ebp - 0x34], ebx
jmp 0x27269
push 2
push 0x27198
push dword [esi + 0xc]
mov edi, dword [sym.imp.ntoskrnl.exe__strnicmp]
call edi
add esp, 0xc
test eax, eax
jne 0x275db
push 5
push 0x2719c
push dword [esi + 0xc]
call edi
add esp, 0xc
test eax, eax
jne 0x27543
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0xc]
inc edi
jmp 0x2760c
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0xc]
mov edi, 0x271a4
mov esi, edx
push 5
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x2755e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x27262
mov edi, 0x271ac
mov esi, edx
push 4
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x2757b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x27262
mov edi, 0x271b0
mov esi, edx
push 2
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x27598
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x27262
mov eax, dword [0x271b4]
mov edx, dword [ebp - 0x90]
mov dword [edx], eax
mov eax, dword [0x271b8]
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 0x27628
push ebx
push 0x271bc
push dword [esi + 0xc]
call edi
add esp, 0xc
test eax, eax
je 0x27606
push dword [esi + 0xc]
push 0x271c0
push dword [ebp - 0x90]
call dword [sym.imp.ntoskrnl.exe_sprintf]
add esp, 0xc
jmp 0x2762d
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 - 0x90]
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 - 0x90]
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 0x27655
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov esi, 0x271c8
movsw word es:[edi], word [esi]
mov edi, dword [ebp - 0x90]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
dec edi
mov esi, 0x271cc
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 - 0xf8]
push eax
push dword [ebp - 0x90]
call fcn.0001f3ec
mov dword [ebp - 0x8c], eax
xor esi, esi
cmp eax, esi
jl 0x277fe
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
push 0xe
push 8
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0xf8]
call fcn.000228b4
mov dword [ebp - 0x8c], eax
cmp eax, esi
jl 0x27262
push esi
push esi
push 0x10
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x88]
push eax
push esi
push esi
push esi
push dword [ebp - 0xf8]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [ebp - 0x8c], eax
cmp eax, esi
jl 0x27262
cmp byte [ebp - 0x2f], 1
jne 0x276ff
mov byte [ebp - 0xc4], 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 0x27796
push esi
push esi
push 0x30
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x88]
push eax
push esi
push esi
push esi
push dword [ebp - 0xf8]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [ebp - 0x8c], eax
cmp eax, esi
jge 0x27757
mov dword [ebp - 0x34], 1
jmp 0x27ace
xor eax, eax
mov dword [ebp - 0x50], eax
cmp eax, dword [ebp - 0x1c]
jae 0x27789
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
mov ecx, dword [ecx + eax*4]
cmp ecx, dword [ebp - 0xe4]
jne 0x27793
mov dword [ebp - 0x1c], eax
lea edi, [ebx + 4]
push 0xc
pop ecx
lea esi, [ebp - 0xf4]
rep movsd dword es:[edi], dword [esi]
and dword [ebp - 0x34], 0
xor esi, esi
cmp dword [ebp - 0x1c], esi
je 0x27796
inc byte [ebp - 0x4c]
jmp 0x27718
inc eax
jmp 0x27759
and byte [ebx + 0x27], 0
mov dl, byte [ebx + 0x26]
mov byte [ebp - 0xfd], 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 - 0xfd]
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 0x277dd
mov dword [ebx], esi
jmp 0x27ace
cmp byte [ebp - 0xc4], 0
je 0x277f2
mov dword [ebp - 0x8c], 0xc0000034
jmp 0x27801
push 0xc
pop ecx
xor eax, eax
lea edi, [ebx + 4]
rep stosd dword es:[edi], eax
jmp 0x277d6
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 0x27826
mov dword [ebp - 0x34], 0x1002
jmp 0x27ace
cmp dword [ebp - 0x8c], 0
jge 0x27ace
mov edx, dword [ebp - 0x90]
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, 0x271e0
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 - 0x8c], eax
test eax, eax
jge 0x279b7
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 0x2781a
and dword [ebp - 0xfc], 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 - 0x104], 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 - 0x104]
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 0x2793a
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 - 0xfc], ecx
test ecx, ecx
jbe 0x2795f
lea eax, [esi + ecx - 1]
cmp byte [eax], 0x5c
jne 0x27948
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 0x2781a
push 0x271fc
push edx
mov esi, dword [sym.imp.ntoskrnl.exe__stricmp]
call esi
pop ecx
pop ecx
test eax, eax
je 0x2781a
push 0x27204
mov eax, dword [ebp - 0x48]
push dword [eax + 0xc]
call esi
pop ecx
pop ecx
test eax, eax
je 0x2781a
push dword [ebp + 0x10]
push ebx
push dword [ebp - 0x48]
call fcn.00027208
mov dword [ebp - 0x34], eax
jmp 0x27ace
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 - 0x88]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
mov dword [ebp - 0x8c], eax
cmp eax, esi
jl 0x2774b
push esi
push esi
push 0x10
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x88]
push eax
push esi
push esi
push esi
push dword [ebp - 0x20]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [ebp - 0x8c], eax
cmp eax, esi
jl 0x2774b
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 0x27a8e
push esi
push esi
push 0x30
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x88]
push eax
push esi
push esi
push esi
push dword [ebp - 0x20]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [ebp - 0x8c], eax
cmp eax, esi
jl 0x2774b
xor eax, eax
mov dword [ebp - 0x50], eax
cmp eax, dword [ebp - 0x1c]
jae 0x27a81
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
mov ecx, dword [ecx + eax*4]
cmp ecx, dword [ebp - 0xe4]
jne 0x27a8b
mov dword [ebp - 0x1c], eax
lea edi, [ebx + 4]
push 0xc
pop ecx
lea esi, [ebp - 0xf4]
rep movsd dword es:[edi], dword [esi]
and dword [ebp - 0x34], 0
xor esi, esi
cmp dword [ebp - 0x1c], esi
je 0x27a8e
inc byte [ebp - 0x4c]
jmp 0x27a1b
inc eax
jmp 0x27a51
and byte [ebx + 0x27], 0
mov dl, byte [ebx + 0x26]
mov byte [ebp - 0xfd], 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 - 0xfd]
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 0x27ada
mov ebx, dword [ebp + 0xc]
xor esi, esi
cmp dword [ebp - 0xf8], esi
je 0x27af0
push dword [ebp - 0xf8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [ebp - 0x20], esi
je 0x27afe
push dword [ebp - 0x20]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [ebp - 0x90], esi
je 0x27b12
push dword [ebp - 0x90]
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