Function at 0x158ae
Capabilities:
Get file attributes
Print debug messages
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x2a770
push 0x2a536
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov byte [ebp - 0x64], bl
mov dword [ebp - 4], ebx
push 0x546b6c42
push 0x1000
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x1591d
push 0x15778
call sub.ntoskrnl.exe_DbgPrint
mov dword [esp], 0x15780
call sub.ntoskrnl.exe_DbgPrint
mov dword [esp], 0x157ac
call sub.ntoskrnl.exe_DbgPrint
pop ecx
jmp 0x15ab4
push 5
push 0x18
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp + 0xc]
mov edi, dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
call edi
mov dword [ebp - 0x50], eax
cmp eax, ebx
jl 0x15ab4
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
push 0xe
push 8
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp + 0xc]
mov esi, dword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
call esi
mov dword [ebp - 0x50], eax
cmp eax, ebx
jl 0x15a47
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
push 0xe
push 8
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp + 8]
call esi
mov dword [ebp - 0x50], eax
cmp eax, ebx
jl 0x15a47
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
push ebx
lea eax, [ebp - 0x74]
push eax
push 0x1000
push dword [ebp - 0x1c]
lea eax, [ebp - 0x6c]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov esi, eax
mov dword [ebp - 0x50], esi
cmp esi, ebx
jge 0x15a4d
cmp esi, 0xc0000011
je 0x15a1e
push 0x157b0
call sub.ntoskrnl.exe_DbgPrint
push dword [ebp - 0x68]
push esi
push 0x157b8
call sub.ntoskrnl.exe_DbgPrint
push 0x157e4
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x14
push 0xe
push 8
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp + 0xc]
call edi
mov dword [ebp - 0x50], eax
push 0x157e8
call sub.ntoskrnl.exe_DbgPrint
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push 0x157f0
call sub.ntoskrnl.exe_DbgPrint
push 0x15820
jmp 0x15aac
push 0x15824
call sub.ntoskrnl.exe_DbgPrint
push dword [ebp - 0x68]
push 0xc0000011
push 0x1582c
call sub.ntoskrnl.exe_DbgPrint
push 0x15864
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x14
mov byte [ebp - 0x64], 1
jmp 0x15ab7
mov esi, dword [ebp - 0x68]
mov dword [ebp - 0x28], esi
push 0xe
push 8
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp + 0xc]
call edi
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x4c]
jb 0x15ab4
push ebx
lea eax, [ebp - 0x74]
push eax
push esi
push dword [ebp - 0x1c]
lea eax, [ebp - 0x6c]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov dword [ebp - 0x50], eax
cmp eax, ebx
jge 0x15ac0
push 0x15868
call sub.ntoskrnl.exe_DbgPrint
push esi
push dword [ebp - 0x50]
push 0x15870
call sub.ntoskrnl.exe_DbgPrint
push 0x158ac
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x14
mov byte [ebp - 0x64], bl
or dword [ebp - 4], 0xffffffff
call fcn.00015acb
mov eax, dword [ebp - 0x68]
add dword [ebp - 0x74], eax
jmp 0x1598c