Function at 0x28945
Capabilities:
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x2aa20
push 0x2a536
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call fcn.00029604
mov dword [ebp - 0x50], eax
cmp eax, ebx
jne 0x28ae1
push 0x546b6c42
mov edi, dword [esi + 0x34]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x1d
push ecx
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0x50], eax
cmp eax, ebx
jne 0x289c7
mov dword [ebp - 0x34], 1
jmp 0x28d7b
push 2
push 0x288ee
push dword [esi + 0x34]
mov edi, dword [sym.imp.ntoskrnl.exe__strnicmp]
call edi
add esp, 0xc
test eax, eax
jne 0x28a94
push 5
push 0x288f2
push dword [esi + 0x34]
call edi
add esp, 0xc
test eax, eax
jne 0x28a00
mov edi, dword [esi + 0x34]
inc edi
jmp 0x28ac0
mov edx, dword [esi + 0x34]
mov edi, 0x288fa
mov esi, edx
push 5
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x28a18
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x289bb
mov edi, 0x28902
mov esi, edx
push 4
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x28a31
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x289bb
mov edi, 0x28906
mov esi, edx
push 2
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x28a4a
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x289bb
mov eax, dword [0x2890a]
mov edx, dword [ebp - 0x50]
mov dword [edx], eax
mov eax, dword [0x2890e]
mov dword [edx + 4], eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x34]
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 - 0x88], eax
xor eax, eax
repne scasb al, byte es:[edi]
dec edi
mov eax, dword [ebp - 0x88]
mov ecx, eax
jmp 0x28ad2
push 1
push 0x28912
push dword [esi + 0x34]
call edi
add esp, 0xc
test eax, eax
je 0x28abd
push dword [esi + 0x34]
push 0x28916
push dword [ebp - 0x50]
call dword [sym.imp.ntoskrnl.exe_sprintf]
add esp, 0xc
jmp 0x28ae1
mov edi, dword [esi + 0x34]
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 - 0x50]
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 [ebp + 8]
cmp dword [esi], ebx
mov edx, dword [ebp - 0x50]
mov edi, edx
jne 0x28afd
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
dec edi
mov esi, 0x2891e
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x28b33
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + edx - 1], 0x5c
je 0x28b1d
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov esi, 0x2892e
movsw word es:[edi], word [esi]
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
dec edi
mov esi, 0x28932
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 - 0x84]
push eax
push edx
call fcn.0001f3ec
mov dword [ebp - 0x4c], eax
cmp eax, ebx
jge 0x28b61
cmp eax, 0xc0000034
je 0x28b68
mov dword [ebp - 0x34], 0x1001
jmp 0x28d7b
cmp eax, 0xc0000034
jne 0x28bdf
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x50]
call fcn.0001ff28
mov dword [ebp - 0x4c], eax
cmp eax, ebx
jl 0x28b55
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
push 0xe
push 8
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x84]
mov esi, dword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
call esi
mov dword [ebp - 0x4c], eax
cmp eax, ebx
jl 0x289bb
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2e], bl
push ebx
push ebx
push 0x10
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x48]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x84]
call dword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov dword [ebp - 0x4c], eax
cmp eax, ebx
jge 0x28be5
jmp 0x289bb
mov esi, dword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
push 0xe
push 8
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x84]
call esi
mov dword [ebp - 0x4c], eax
cmp eax, ebx
jl 0x289bb
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
push ebx
push 0x10
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x48]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x84]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [ebp - 0x4c], eax
cmp eax, ebx
jl 0x289bb
mov byte [ebp - 0x40], bl
mov al, byte [ebp - 0x30]
cmp byte [ebp - 0x40], al
jae 0x28cd3
push ebx
push ebx
push 0x30
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x48]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x84]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [ebp - 0x4c], eax
cmp eax, ebx
jl 0x289bb
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x14]
cmp eax, dword [ebp - 0x70]
jne 0x28ccb
movzx eax, byte [ebp - 0x40]
lea eax, [eax + eax*2]
shl eax, 4
add eax, 0x10
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ebx
push 0xe
push 8
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x84]
call esi
mov dword [ebp - 0x4c], eax
cmp eax, ebx
jl 0x289bb
push ebx
push ebx
push 0x30
add edi, 4
push edi
lea eax, [ebp - 0x48]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x84]
call dword [sym.imp.ntoskrnl.exe_ZwWriteFile]
jmp 0x28d6e
inc byte [ebp - 0x40]
jmp 0x28c3c
movzx eax, al
lea eax, [eax + eax*2]
shl eax, 4
add eax, 0x10
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ebx
push 0xe
push 8
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x84]
call esi
mov dword [ebp - 0x4c], eax
cmp eax, ebx
jl 0x289bb
push ebx
push ebx
push 0x30
mov eax, dword [ebp + 8]
add eax, 4
push eax
lea eax, [ebp - 0x48]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x84]
mov edi, dword [sym.imp.ntoskrnl.exe_ZwWriteFile]
call edi
mov dword [ebp - 0x4c], eax
cmp eax, ebx
jl 0x289bb
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
push 0xe
push 8
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x84]
call esi
mov dword [ebp - 0x4c], eax
cmp eax, ebx
jl 0x289bb
inc byte [ebp - 0x30]
push ebx
push ebx
push 0x10
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x48]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x84]
call edi
mov dword [ebp - 0x4c], eax
xor ecx, ecx
cmp eax, ebx
setl cl
mov dword [ebp - 0x34], ecx
or dword [ebp - 4], 0xffffffff
call 0x28d86
xor ebx, ebx
cmp dword [ebp - 0x84], ebx
je 0x28d9a
push dword [ebp - 0x84]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [ebp - 0x1c], ebx
je 0x28da8
push dword [ebp - 0x1c]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [ebp - 0x50], ebx
je 0x28db6
push dword [ebp - 0x50]
call dword [sym.imp.ntoskrnl.exe_ExFreePool]
cmp dword [ebp - 0x20], ebx
je 0x28dc4
push dword [ebp - 0x20]
call dword [sym.imp.ntoskrnl.exe_ExFreePool]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x34]
mov dword [ecx], eax
mov esp, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 8