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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x2235c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov esi, 0x114
push esi
lea eax, [ebp - 0x118]
push edi
push eax
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x120], edi
call sub.ntoskrnl.exe_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], esi
call dword [sym.imp.ntoskrnl.exe_RtlGetVersion]
push 0x1da26
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x120]
push eax
push 0x80
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.ntoskrnl.exe_IoGetDeviceObjectPointer]
mov esi, eax
cmp esi, edi
jge 0x13193
mov ecx, dword [ebp - 0x120]
cmp ecx, edi
je 0x1318c
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, esi
jmp 0x13388
mov eax, dword [ebp - 0x120]
cmp eax, edi
je 0x131e6
cmp dword [ebp - 0x114], 6
jb 0x131ef
cmp dword [eax + 4], edi
je 0x131e6
mov eax, dword [eax + 4]
mov dword [0x223fc], eax
mov eax, dword [eax + 8]
mov dword [0x22400], eax
cmp eax, edi
je 0x131e6
push 0x38
pop ecx
mov edx, 0x22408
sub edx, ecx
mov eax, dword [0x22400]
add eax, ecx
mov esi, dword [eax]
mov dword [edx + ecx], esi
add ecx, 4
mov dword [eax], fcn.00013016
cmp ecx, 0xa4
jbe 0x131c9
cmp dword [ebp - 0x114], 6
jae 0x1321f
mov eax, dword [ebx + 0x20]
cmp eax, edi
je 0x1321f
movzx ecx, word [ebx + 0x1c]
cmp cx, 0x1c
jb 0x1321f
movzx ecx, cx
push ecx
push edi
push eax
call sub.ntoskrnl.exe_memset
mov edi, dword [ebx + 0x20]
add esp, 0xc
push 6
pop ecx
mov esi, 0x1daa0
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor edi, edi
mov eax, dword [0x22400]
cmp eax, edi
je 0x1322a
mov ebx, eax
lea eax, [ebp - 0x11c]
push eax
mov eax, dword [ebp - 0x124]
push edi
push dword [eax + 0x20]
push dword [eax + 0x2c]
push edi
push 0x14
pop esi
push esi
push ebx
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
cmp eax, edi
mov dword [ebp - 0x128], eax
jge 0x132af
mov ecx, dword [ebp - 0x120]
cmp ecx, edi
je 0x13264
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp dword [0x223fc], edi
je 0x13382
cmp dword [0x22400], edi
je 0x13382
push 0x38
pop edx
sub edx, 0x22408
xor ecx, ecx
mov ebx, dword [0x22400]
lea eax, [ecx + 0x22408]
mov edi, dword [eax]
lea esi, [edx + ecx]
mov dword [esi + ebx + 0x22408], edi
and dword [eax], 0
add ecx, 4
cmp ecx, 0x6c
jbe 0x13287
jmp 0x13382
push dword [ebp - 0x124]
push dword [ebp - 0x11c]
call dword [sym.imp.ntoskrnl.exe_IoAttachDeviceToDeviceStack]
mov edx, eax
cmp edx, edi
jne 0x13331
push dword [ebp - 0x11c]
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0x11c], edi
cmp ecx, edi
je 0x132e9
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp dword [0x223fc], edi
je 0x13382
cmp dword [0x22400], edi
je 0x13382
push 0x38
pop edx
sub edx, 0x22408
xor ecx, ecx
mov ebx, dword [0x22400]
lea eax, [ecx + 0x22408]
mov edi, dword [eax]
lea esi, [ecx + edx]
mov dword [esi + ebx + 0x22408], edi
and dword [eax], 0
add ecx, 4
cmp ecx, 0x6c
jbe 0x1330c
jmp 0x13382
mov eax, dword [ebp - 0x11c]
mov ecx, dword [eax + 0x28]
xor eax, eax
mov edi, ecx
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
mov dword [ecx], esi
mov eax, dword [ebp - 0x11c]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x124]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x120]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov ecx, dword [ebp - 0x124]
mov ecx, dword [ecx + 0x1c]
mov eax, dword [ebp - 0x11c]
and ecx, esi
or dword [eax + 0x1c], ecx
mov eax, dword [ebp - 0x11c]
mov dword [0x223f8], eax
mov eax, dword [ebp - 0x128]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0001c571
leave
ret 4