Function at 0x12c48
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x270
mov rax, qword [0x0001a100]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbp, rcx
mov rsi, rdx
lea rcx, [rsp + 0x52]
xor r12d, r12d
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x50], r12w
call fcn.00018340
lea rax, [0x0001ab50]
mov qword [0x0001ab58], rax
mov qword [0x0001ab50], rax
lea rax, [0x0001ab40]
lea rdx, [0x00015698]
lea rcx, [0x0001a520]
xor r8d, r8d
mov qword [0x0001ab48], rax
mov qword [0x0001ab40], rax
mov edi, r12d
mov qword [0x0001a768], r12
mov byte [0x0001a3b8], r12b
mov byte [0x0001ad13], r12b
mov qword [0x0001a978], r12
call qword [sym.imp.ntoskrnl.exe_KeInitializeDpc]
lea r11, [0x0001aa80]
lea rdx, [0x000157a8]
lea rcx, [0x0001a440]
xor r8d, r8d
mov qword [0x0001aa88], r11
mov qword [0x0001aa80], r11
call qword [sym.imp.ntoskrnl.exe_KeInitializeDpc]
mov word [rsp + 0x30], r12w
mov ebx, 0x51544c46
lea rcx, [0x0001a480]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], 0x20
call qword [sym.imp.ntoskrnl.exe_ExInitializeNPagedLookasideList]
mov word [rsp + 0x30], r12w
mov dword [rsp + 0x28], ebx
lea ebx, [r12 + 0x28]
lea rcx, [0x0001a980]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ntoskrnl.exe_ExInitializeNPagedLookasideList]
mov word [rsp + 0x30], r12w
lea rcx, [0x0001aa00]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], 0x49544c46
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ntoskrnl.exe_ExInitializeNPagedLookasideList]
mov word [rsp + 0x30], r12w
lea rcx, [0x0001aac0]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], 0x49554c46
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ntoskrnl.exe_ExInitializeNPagedLookasideList]
xor eax, eax
mov ebx, 0x33544c46
xor r8d, r8d
mov rcx, rbp
mov edx, ebx
mov byte [rsp + 0x40], r12b
mov qword [rsp + 0x41], rax
mov dword [rsp + 0x49], eax
mov word [rsp + 0x4d], ax
mov byte [rsp + 0x4f], al
call qword [sym.imp.NDIS.SYS_NdisAllocateGenericObject]
mov qword [0x0001ad28], rax
cmp rax, r12
jne 0x12e0a
mov ebx, 0xc0000017
jmp 0x12eae
lea rdx, [rsp + 0x40]
mov r13d, 0x10
mov rcx, rax
mov byte [rsp + 0x40], 0x80
mov byte [rsp + 0x41], 1
mov byte [rsp + 0x45], 1
mov word [rsp + 0x42], r13w
mov dword [rsp + 0x4c], r12d
mov dword [rsp + 0x48], ebx
call qword [sym.imp.NDIS.SYS_NdisAllocateNetBufferListPool]
mov qword [0x0001ad30], rax
cmp rax, r12
je 0x12e00
xor ecx, ecx
lea r8, [0x0001ad18]
lea edx, [rcx + 1]
call sub.fwpkclnt.sys_FwpsInjectionHandleCreate0
cmp eax, r12d
mov ebx, eax
jl 0x12eae
xor ecx, ecx
lea r8, [0x0001ad20]
lea edx, [rcx + 2]
call sub.fwpkclnt.sys_FwpsInjectionHandleCreate0
cmp eax, r12d
mov ebx, eax
jl 0x12eae
movzx eax, word [rsi]
shr eax, 1
dec eax
movsxd rcx, eax
cmp rcx, r12
jl 0x12ea9
mov r8, qword [rsi + 8]
lea rdx, [r8 + rcx*2]
cmp word [rdx], 0x5c
je 0x12eee
cmp word [rdx], 0x2f
je 0x12eee
dec rcx
dec eax
sub rdx, 2
cmp rcx, r12
jge 0x12e8f
mov ebx, 0xc0000001
cmp ebx, r12d
mov byte [0x0001ad13], 1
jge 0x12ebf
call fcn.00013168
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.00018060
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
inc eax
mov rcx, r12
movsxd r9, eax
lea rdx, [r8 + r9*2]
cmp word [rdx], r12w
je 0x12f2b
movzx eax, word [r8 + r9*2]
cmp ax, 0x2e
je 0x12f2b
cmp rcx, 0x104
jge 0x12f2b
add rdx, 2
mov word [rsp + rcx*2 + 0x50], ax
inc edi
mov ax, word [rdx]
inc rcx
cmp ax, r12w
jne 0x12f05
movsxd rax, edi
mov word [rsp + rax*2 + 0x50], r12w
cmp edi, r12d
je 0x12ea9
lea rax, [0x0001a560]
lea rdi, [0x0001a3a0]
lea rdx, [0x00018870]
mov ebx, 0x208
mov rcx, rdi
mov word [0x0001a560], r12w
mov qword [0x0001a3a8], rax
mov word [0x0001a3a0], r12w
mov word [0x0001a3a2], bx
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
lea rax, [0x0001a770]
lea rsi, [0x0001aa90]
lea rdx, [0x00018890]
mov rcx, rsi
mov word [0x0001a770], r12w
mov qword [0x0001aa98], rax
mov word [0x0001aa90], r12w
mov word [0x0001aa92], bx
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
lea r11, [0x0001a768]
mov r9d, 0x22
mov qword [rsp + 0x30], r11
mov r8, rdi
xor edx, edx
mov rcx, rbp
mov byte [rsp + 0x28], r12b
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
cmp eax, r12d
mov ebx, eax
jl 0x12eae
mov rax, qword [0x0001a768]
mov rdx, rdi
mov rcx, rsi
btr dword [rax + 0x30], 7
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
cmp eax, r12d
mov ebx, eax
jge 0x13046
mov rcx, qword [0x0001a768]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov qword [0x0001a768], r12
jmp 0x12eae
mov rax, qword [0x0001a768]
btr dword [rax + 0x30], 7
mov rax, qword [0x0001a768]
or dword [rax + 0x30], r13d
jmp 0x12eae