Function at 0x4010c0
Capabilities:
Create device object
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
push 0x4d6c7431
xor edi, edi
push 0x218
push edi
mov dword [esp + 0x18], edi
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
cmp eax, edi
je 0x4010f1
mov dword [eax], 0x40c41c
mov ecx, eax
jmp 0x4010f3
xor ecx, ecx
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push str.SystemRoot_system32driversUSBDriver
mov dword [0x41007c], ecx
call edx
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push str.DeviceUSBMonitorProtect
lea eax, [esp + 0x14]
push eax
mov dword [0x410048], 1
call esi
push str.DosDevicesUSBMonitorProtect
lea ecx, [esp + 0x1c]
push ecx
call esi
mov ebx, dword [ebp + 8]
mov eax, 0x401c00
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x4c], eax
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], eax
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x64], eax
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x78], eax
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x88], eax
mov dword [ebx + 0x8c], eax
mov dword [ebx + 0x90], eax
mov dword [ebx + 0x94], eax
mov dword [ebx + 0x98], eax
mov dword [ebx + 0x9c], eax
mov dword [ebx + 0xa0], eax
mov dword [ebx + 0xa4], eax
lea edx, [esp + 0xc]
push edx
push edi
push edi
mov eax, 0x401bb0
push 0x22
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x40], eax
lea eax, [esp + 0x20]
push eax
push 0x4c
push ebx
mov dword [ebx + 0x70], 0x401000
mov dword [ebx + 0x34], 0x401aa0
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov esi, eax
cmp esi, edi
jge 0x4011f6
cmp dword [0x410048], 4
jg 0x4011eb
push esi
push str.Failed_to_Create_the_DeviceObject__exceptionCode0x_08x._n
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esp + 0xc]
cmp eax, edi
jne 0x401222
cmp dword [0x410048], 4
jg 0x401214
push str.we_try_to_create_the_DeviceObject__return_success__but_the_DeviceObject_is_null._n
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov eax, 0xc00000e9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [eax + 0x28]
mov ecx, dword [0x410048]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [esi + 8], edi
lea eax, [esi + 0xc]
mov dword [eax + 4], eax
mov dword [eax], eax
lea eax, [esi + 0x34]
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [eax + 4], eax
mov dword [eax], eax
mov dword [esi + 0x30], edi
call fcn.00401e20
mov edx, dword [esi]
push esi
push 0x4045b0
push edx
call dword [sym.imp.ntoskrnl.exe_IoInitializeTimer]
push 1
push edi
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
mov dword [esi + 0x3c], edi
mov eax, dword [esp + 0xc]
or dword [eax + 0x1c], 0x10
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
mov dword [ecx + 0x5c], 1
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov eax, dword [esp + 0xc]
and dword [eax + 0x1c], 0xffffff7f
mov eax, esi
call fcn.00402090
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ntoskrnl.exe_IoStartTimer]
push 0x4d6c7431
push 0x9e0
push edi
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
cmp eax, edi
je 0x4012d7
mov edi, dword [ebp + 0xc]
push ebx
mov esi, eax
call fcn.00406330
mov dword [0x410078], eax
jmp 0x4012dd
mov dword [0x410078], edi
call fcn.00405ec0
mov esi, ebx
call fcn.00409cf0
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0x28]
lea esi, [eax + 0x40]
push esi
call fcn.00402f70
test eax, eax
jge 0x401319
cmp dword [0x410048], 4
jg 0x401313
push str.Failed_to_query_the_FileObjectType__set_the_default_value_28._n
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov dword [esi], 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8