Function at 0x140004288
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x14000b100]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov r14, rcx
mov rsi, rdx
lea rcx, [rsp + 0x52]
xor r15d, r15d
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x50], r15w
call fcn.1400086e0
lea rax, [0x14000b768]
mov qword [0x14000b770], rax
mov qword [0x14000b768], rax
lea rax, [0x14000b800]
lea rcx, [0x14000b558]
mov edi, r15d
mov qword [0x14000b338], r15
mov qword [0x14000b808], rax
mov qword [0x14000b800], rax
mov byte [0x14000b778], r15b
mov byte [0x14000b300], r15b
call qword [sym.imp.ntoskrnl.exe_KeInitializeSpinLock]
lea rdx, [0x14000357c]
lea rcx, [0x14000b810]
xor r8d, r8d
call qword [sym.imp.ntoskrnl.exe_KeInitializeDpc]
lea rax, [0x14000ba40]
lea rdx, [0x140004bb4]
lea rcx, [0x14000ba50]
xor r8d, r8d
mov qword [0x14000ba48], rax
mov qword [0x14000ba40], rax
call qword [sym.imp.ntoskrnl.exe_KeInitializeDpc]
mov word [rsp + 0x30], r15w
mov ebx, 0x51544c46
lea rcx, [0x14000b9c0]
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], r15w
mov dword [rsp + 0x28], ebx
lea ebx, [r15 + 0x28]
lea rcx, [0x14000b780]
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], r15w
lea rcx, [0x14000b8c0]
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], r15w
lea rcx, [0x14000b940]
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, r14
mov edx, ebx
mov byte [rsp + 0x40], r15b
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 [0x14000b318], rax
test rax, rax
jne 0x140004454
mov ebx, 0xc0000017
jmp 0x1400044ea
lea rdx, [rsp + 0x40]
mov rcx, rax
mov dword [rsp + 0x40], 0x100180
mov r13d, 0x10
mov byte [rsp + 0x45], 1
mov qword [rsp + 0x48], rbx
call qword [sym.imp.NDIS.SYS_NdisAllocateNetBufferListPool]
mov qword [0x14000b320], rax
test rax, rax
je 0x14000444a
xor ecx, ecx
lea r8, [0x14000b308]
lea edx, [rcx + 1]
call sub.fwpkclnt.sys_FwpsInjectionHandleCreate0
mov ebx, eax
test eax, eax
js 0x1400044ea
xor ecx, ecx
lea r8, [0x14000b310]
lea edx, [rcx + 2]
call sub.fwpkclnt.sys_FwpsInjectionHandleCreate0
mov ebx, eax
test eax, eax
js 0x1400044ea
movzx eax, word [rsi]
shr eax, 1
dec eax
movsxd rcx, eax
js 0x1400044e5
mov r8, qword [rsi + 8]
lea rdx, [r8 + rcx*2]
movzx r9d, word [rdx]
cmp r9w, 0x5c
je 0x140004527
cmp r9w, 0x2f
je 0x140004527
dec eax
sub rdx, 2
dec rcx
jns 0x1400044c8
mov ebx, 0xc0000001
mov byte [0x14000b300], 1
test ebx, ebx
jns 0x1400044fa
call fcn.140004030
mov eax, ebx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140008910
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
inc eax
mov rcx, r15
cdqe
lea rdx, [rax + rax]
movzx eax, word [rdx + r8]
test ax, ax
je 0x14000456f
lea r9, [rsp + 0x50]
sub rdx, r9
lea r9, [rdx + r8]
cmp ax, 0x2e
je 0x14000456f
cmp rcx, 0x104
jge 0x14000456f
mov word [rsp + rcx*2 + 0x50], ax
inc rcx
inc edi
lea rax, [r9 + rcx*2]
movzx eax, word [rsp + rax + 0x50]
test ax, ax
jne 0x140004548
movsxd rax, edi
mov ebx, 0x208
add rax, rax
cmp rax, rbx
jae 0x1400046ab
mov word [rsp + rax + 0x50], r15w
test edi, edi
je 0x1400044e5
lea rax, [0x14000b340]
lea rdi, [0x14000b328]
lea rdx, [0x140009000]
mov rcx, rdi
mov word [0x14000b340], r15w
mov dword [0x14000b328], 0x2080000
mov qword [0x14000b330], rax
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
lea rax, [0x14000b560]
lea rdx, [0x140009020]
lea rcx, [0x14000b548]
mov qword [0x14000b550], rax
mov word [0x14000b560], r15w
mov dword [0x14000b548], 0x2080000
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
lea rdx, [rsp + 0x50]
lea rcx, [0x14000b548]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
lea rax, [0x14000b338]
mov r9d, 0x22
mov qword [rsp + 0x30], rax
mov r8, rdi
xor edx, edx
mov rcx, r14
mov byte [rsp + 0x28], r15b
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov ebx, eax
test eax, eax
js 0x1400044ea
mov rax, qword [0x14000b338]
lea rcx, [0x14000b548]
mov esi, 0xffffff7f
and dword [rax + 0x30], esi
mov rdx, rdi
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov ebx, eax
test eax, eax
jns 0x140004691
mov rcx, qword [0x14000b338]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov qword [0x14000b338], r15
jmp 0x1400044ea
mov rax, qword [0x14000b338]
and dword [rax + 0x30], esi
mov rax, qword [0x14000b338]
or dword [rax + 0x30], r13d
jmp 0x1400044ea
call fcn.140008948
int3