Function at 0x40e000
Capabilities:
Check os version
Create device object

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x168
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x164], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x54], 0x114
call dword [sym.imp.ntoskrnl.exe_RtlGetVersion]
test eax, eax
js 0x40e086
cmp dword [esp + 0x54], 6
ja 0x40e072
jne 0x40e046
cmp dword [esp + 0x58], 2
jae 0x40e072
mov eax, 0x40a1dc
mov dword [0x40b0f8], 0x40b100
mov dword [0x40b0fc], 0x40b100
mov dword [0x40b100], 0
cmp eax, 0x40a1e0
je 0x40e0c8
jmp 0x40e0a4
mov dword [0x40b02c], 0x200
mov dword [0x40b028], 0x40000000
mov dword [0x40b100], 0
mov dword [0x40b0fc], 0x40b100
mov dword [0x40b0f8], 0x40b100
mov esi, 0x40a1dc
lea esp, [esp]
cmp dword [esi], 0
je 0x40e0bd
xor eax, eax
call eax
test eax, eax
jne 0x40e0e8
add esi, 4
cmp esi, 0x40a1e0
jne 0x40e0b0
mov esi, 0x40a1bc
lea ecx, [ecx]
mov eax, dword [esi]
test eax, eax
je 0x40e0d8
call eax
add esi, 4
cmp esi, 0x40a1d8
jne 0x40e0d0
push 0x40b20c
push 0
push 0
push 0x22
push 0x40b020
push 0
push edi
mov dword [edi + 0x34], 0x40c0a0
mov dword [edi + 0x38], 0x40c040
mov dword [edi + 0x80], 0x40c040
mov dword [edi + 0x40], 0x40c040
mov dword [edi + 0x70], 0x409140
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
js 0x40e3d6
push 0x40b020
push 0x40b018
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov esi, eax
test esi, esi
jns 0x40e16b
push dword [0x40b20c]
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.00409218
mov esp, ebp
pop ebp
ret 8
push 0x40b208
push 0x40a2b4
push edi
call dword [sym.imp.FLTMGR.SYS_FltRegisterFilter]
lea esp, [esp]
test eax, eax
js 0x40e1b0
push dword [0x40b208]
call dword [sym.imp.FLTMGR.SYS_FltStartFiltering]
test eax, eax
jns 0x40e1b0
push dword [0x40b208]
lea ebx, [ebx]
call dword [sym.imp.FLTMGR.SYS_FltUnregisterFilter]
mov dword [0x40b208], 0
push 1
lea eax, [esp + 0x14]
mov dword [esp + 0xc], 0
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x24]
push 0
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], 0x2a0028
push eax
mov dword [esp + 0x24], 0x40e434
mov dword [esp + 0x30], 0x18
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], 0x40
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
call dword [sym.imp.ntoskrnl.exe_ExCreateCallback]
test eax, eax
js 0x40e235
push 0
push 0x409200
push dword [esp + 0x10]
call dword [sym.imp.ntoskrnl.exe_ExRegisterCallback]
mov ecx, dword [esp + 8]
mov dword [0x40b204], eax
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov esi, dword [0x40b208]
jmp 0x40e240
test esi, esi
je 0x40e3d4
cmp dword [0x40b04c], 0
je 0x40e25b
mov ecx, 0x40b040
call fcn.00401220
push str.Kernel_Bridge
lea eax, [esp + 0x1c]
mov dword [0x40b040], esi
push eax
mov dword [0x40b0a0], 0x402e40
mov dword [0x40b044], 0x40b040
mov dword [0x40b048], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0x1f0001
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
call dword [sym.imp.FLTMGR.SYS_FltBuildDefaultSecurityDescriptor]
test eax, eax
js 0x40e326
push 0x80
push 0x401460
push 0x4013c0
lea eax, [esp + 0x24]
mov dword [esp + 0x44], 0x18
push 0x4012c0
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x1c]
push 0x40b044
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x4c]
push eax
push 0x40b04c
push dword [0x40b040]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x64], 0x240
mov dword [esp + 0x6c], 0
call dword [sym.imp.FLTMGR.SYS_FltCreateCommunicationPort]
push dword ds:[esp + 0xc]
call dword [sym.imp.FLTMGR.SYS_FltFreeSecurityDescriptor]
sub esp, 0x10
push 0x403140
call fcn.004022a0
mov eax, dword [0x40b0bc]
mov esi, dword [sym.imp.ntoskrnl.exe_PsSetCreateProcessNotifyRoutine]
mov edi, edi
test eax, eax
je 0x40e353
push 1
push eax
call esi
mov dword [0x40b0bc], 0
push 0
push 0x403160
call esi
lea esp, [esp]
test eax, eax
js 0x40e36e
mov dword [0x40b0bc], 0x403160
mov eax, dword [0x40b0b4]
test eax, eax
je 0x40e388
push eax
call dword [sym.imp.ntoskrnl.exe_PsRemoveCreateThreadNotifyRoutine]
mov dword [0x40b0b4], 0
push 0x4032a0
call dword [sym.imp.ntoskrnl.exe_PsSetCreateThreadNotifyRoutine]
test eax, eax
js 0x40e3a1
mov dword [0x40b0b4], 0x4032a0
mov eax, dword [0x40b0b8]
test eax, eax
je 0x40e3bb
push eax
call dword [sym.imp.ntoskrnl.exe_PsRemoveLoadImageNotifyRoutine]
mov dword [0x40b0b8], 0
push 0x4033e0
call dword [sym.imp.ntoskrnl.exe_PsSetLoadImageNotifyRoutine]
test eax, eax
js 0x40e3d4
mov dword [0x40b0b8], 0x4033e0
xor eax, eax
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
xor ecx, esp
call fcn.00409218
mov esp, ebp
pop ebp
ret 8