Function at 0x19048
Capabilities:
Check os version
Find process by pid

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0x1bde0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x138], eax
xor eax, eax
push ebx
mov word [ebp - 0x154], ax
push esi
push edi
xor esi, esi
lea edi, [ebp - 0x152]
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
lea edi, [ebp - 0x144]
mov dword [ebp - 0x174], esi
mov dword [ebp - 0x148], esi
stosd dword es:[edi], eax
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x170]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x158]
mov dword [ebp - 0x15c], esi
stosd dword es:[edi], eax
mov word [ebp - 0x140], ax
lea edi, [ebp - 0x13e]
stosd dword es:[edi], eax
push 0x110
stosw word es:[edi], ax
lea eax, [ebp - 0x114]
push esi
push eax
mov dword [ebp - 0x130], esi
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x14c], esi
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x12c], esi
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x118], esi
call sub.ntoskrnl.exe_memset
add esp, 0xc
cmp dword [0x1c98c], esi
jne 0x19176
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.ntoskrnl.exe_RtlGetVersion]
cmp eax, esi
jl 0x19367
cmp dword [ebp - 0x114], 5
jne 0x19144
cmp dword [ebp - 0x110], 1
jne 0x19144
call fcn.00018d4c
jmp 0x19163
push 0x1b73a
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov dword [0x1c98c], eax
cmp eax, esi
jne 0x19176
mov eax, 0xc0000001
jmp 0x19367
lea eax, [ebp - 0x130]
push eax
push ebx
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp eax, esi
jl 0x19367
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x130]
call dword [0x1c98c]
cmp eax, esi
mov dword [ebp - 0x11c], eax
jl 0x19300
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x148]
push eax
push 8
push 6
push dword [ebp - 0x124]
call dword [sym.imp.ntoskrnl.exe_IoQueryFileInformation]
cmp eax, esi
mov dword [ebp - 0x11c], eax
jl 0x19300
lea eax, [ebp - 0x128]
push eax
mov eax, dword [ebp - 0x124]
push esi
push esi
mov edi, 0x80000000
push edi
push esi
mov ebx, 0x200
push ebx
push dword [eax + 4]
call dword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
cmp eax, esi
mov dword [ebp - 0x11c], eax
jl 0x19300
push 8
pop eax
mov word [ebp - 0x140], ax
mov word [ebp - 0x13e], ax
lea eax, [ebp - 0x148]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x170], eax
push 0x2060
lea eax, [ebp - 0x140]
mov dword [ebp - 0x16c], eax
push 3
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x174]
push eax
push edi
lea eax, [ebp - 0x12c]
push eax
mov dword [ebp - 0x174], 0x18
mov dword [ebp - 0x168], ebx
mov dword [ebp - 0x164], esi
mov dword [ebp - 0x160], esi
call dword [sym.imp.ntoskrnl.exe_ZwOpenFile]
test eax, eax
jge 0x19293
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
jmp 0x192c7
push esi
lea eax, [ebp - 0x134]
push eax
mov eax, dword [sym.imp.ntoskrnl.exe_IoFileObjectType]
push esi
push dword [eax]
push edi
push dword [ebp - 0x12c]
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
cmp eax, esi
mov dword [ebp - 0x11c], eax
jl 0x19300
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x134]
call dword [sym.imp.ntoskrnl.exe_IoQueryFileDosDeviceName]
cmp eax, esi
mov dword [ebp - 0x11c], eax
jl 0x19300
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x120]
mov dx, word [eax + 2]
cmp dx, word [ecx]
jb 0x192f6
push ecx
push eax
call dword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
jmp 0x19300
mov dword [ebp - 0x11c], 0xc0000023
mov ecx, dword [ebp - 0x134]
mov ebx, dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp ecx, esi
je 0x19312
call ebx
cmp dword [ebp - 0x120], esi
je 0x19327
push esi
push dword [ebp - 0x120]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov ecx, dword [ebp - 0x124]
cmp ecx, esi
je 0x19333
call ebx
mov edi, dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [ebp - 0x128], esi
je 0x19349
push dword [ebp - 0x128]
call edi
cmp dword [ebp - 0x12c], esi
je 0x19359
push dword [ebp - 0x12c]
call edi
mov ecx, dword [ebp - 0x130]
call ebx
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00019dff
leave
ret 8