Function at 0x10789
Capabilities:
Print debug messages
Read file on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x14c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x14c]
push eax
call fcn.0001052a
mov edi, eax
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + edi + 0x34]
push eax
push 0x10624
mov dword [ebp - 0x14], eax
call sub.ntoskrnl.exe_DbgPrint
push edi
push 0x10640
call sub.ntoskrnl.exe_DbgPrint
lea eax, [ebp - 0x14c]
push eax
push 0x10658
call sub.ntoskrnl.exe_DbgPrint
mov eax, dword [sym.imp.ntoskrnl.exe_KeServiceDescriptorTable]
mov ebx, dword [eax + 8]
mov esi, dword [eax]
push ebx
push esi
push 0x10670
mov dword [0x114e0], esi
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x24
mov eax, ebx
push 0x206b6444
shl eax, 2
push eax
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
test eax, eax
mov dword [ebp - 8], eax
jne 0x1082f
push 0x1069c
call sub.ntoskrnl.exe_DbgPrint
pop ecx
push 0
push 0
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push esi
push edi
call fcn.000105c0
push eax
push 0x106b4
mov dword [ebp - 0xc], eax
call sub.ntoskrnl.exe_DbgPrint
xor esi, esi
cmp dword [ebp - 0xc], esi
pop ecx
pop ecx
jne 0x1085d
push 0x106c8
call sub.ntoskrnl.exe_DbgPrint
pop ecx
jmp 0x109a8
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
push 1
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
cmp eax, esi
mov dword [ebp - 0x10], eax
jge 0x10898
push 0x106d8
call sub.ntoskrnl.exe_DbgPrint
mov edi, dword [ebp - 0x10]
pop ecx
jmp 0x109aa
push 0x20
lea eax, [ebp - 0x24]
mov dword [ebp - 0x3c], eax
push 7
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
push 1
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x44], 0x18
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x38], 0x240
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
call dword [sym.imp.ntoskrnl.exe_ZwOpenFile]
test eax, eax
jl 0x10993
cmp dword [ebp - 4], esi
je 0x10993
mov eax, dword [ebp - 0xc]
push 0xe
mov dword [ebp - 0x1c], eax
push 8
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x18], esi
call dword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
test eax, eax
jl 0x10976
push esi
push esi
mov eax, ebx
shl eax, 2
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x2c]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
test eax, eax
jl 0x10986
test ebx, ebx
jbe 0x10974
mov eax, dword [ebp - 8]
mov eax, dword [eax + esi*4]
sub eax, dword [ebp - 0x14]
add eax, edi
cmp esi, 0x7a
jne 0x10940
push eax
mov dword [0x1149c], eax
push 0x106fc
jmp 0x10968
cmp esi, 0xba
jne 0x10955
push eax
mov dword [0x114a4], eax
push 0x1071c
jmp 0x10968
cmp esi, 0x115
jne 0x1096f
push eax
mov dword [0x114a0], eax
push 0x10740
call sub.ntoskrnl.exe_DbgPrint
pop ecx
pop ecx
inc esi
cmp esi, ebx
jb 0x10923
xor esi, esi
cmp dword [ebp - 4], esi
je 0x1099e
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x1099e
push 0x10764
call sub.ntoskrnl.exe_DbgPrint
pop ecx
jmp 0x10976
push 0x10778
call sub.ntoskrnl.exe_DbgPrint
pop ecx
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
xor edi, edi
push esi
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret