Function at 0x140006ee0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x638
mov rax, qword [0x140012738]
mov qword [rsp + 0x628], rax
mov qword [rsp + 0x5a0], 0
mov word [rsp + 0x40], 0
lea rax, [rsp + 0x42]
mov rdi, rax
xor eax, eax
mov ecx, 0xe
rep stosb byte [rdi], al
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x598], 0
mov dword [rsp + 0x98], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0xc0], 0
lea rax, [rsp + 0xc8]
mov rdi, rax
xor eax, eax
mov ecx, 0x4c8
rep stosb byte [rdi], al
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0x590], 0
mov word [rsp + 0xa0], 0
lea rax, [rsp + 0xa2]
mov rdi, rax
xor eax, eax
mov ecx, 0xe
rep stosb byte [rdi], al
mov qword [rsp + 0x88], 0
lea rax, [rsp + 0x5b0]
lea rcx, [0x14000ebe0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x66
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x60]
lea rcx, [0x14000ebb0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x24
rep movsb byte [rdi], byte [rsi]
mov rax, qword [0x1400166c8]
mov byte [rax + 0x89], 0x33
mov rax, qword [0x1400166c8]
mov byte [rax + 0x8a], 0xc0
mov rax, qword [0x1400166c8]
mov byte [rax + 0x8b], 0xc3
mov rax, qword [0x1400166c8]
add rax, 0x8c
xor r9d, r9d
mov r8, rax
xor edx, edx
xor ecx, ecx
call sub.ntoskrnl.exe_PsGetVersion
lea rdx, [0x14000eb80]
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov qword [rsp + 0x88], rax
mov rax, qword [0x1400166c8]
add rax, 8
mov r8d, 8
mov rdx, qword [rsp + 0x88]
mov rcx, rax
call fcn.14000e0c0
lea rdx, [0x14000eb50]
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov qword [rsp + 0x88], rax
mov rax, qword [0x1400166c8]
add rax, 0x88
mov r8d, 1
mov rdx, qword [rsp + 0x88]
mov rcx, rax
call fcn.14000e0c0
lea rdx, [0x14000eb20]
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov rcx, qword [0x1400166c8]
mov qword [rcx + 0x118], rax
lea rdx, [0x14000eaf0]
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov rcx, qword [0x1400166c8]
mov qword [rcx + 0x120], rax
lea rdx, [0x14000eac0]
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov rcx, qword [0x1400166c8]
mov qword [rcx + 0x148], rax
lea rdx, [0x14000ea90]
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov rcx, qword [0x1400166c8]
mov qword [rcx + 0x150], rax
lea rdx, [0x14000ea70]
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov rcx, qword [0x1400166c8]
mov qword [rcx + 0x158], rax
lea rdx, [0x14000ea40]
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov rcx, qword [0x1400166c8]
mov qword [rcx + 0x160], rax
lea rdx, [0x14000ea10]
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov rcx, qword [0x1400166c8]
mov qword [rcx + 0x168], rax
lea rdx, [0x14000e410]
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov rcx, qword [0x1400166c8]
mov qword [rcx + 0x170], rax
lea rdx, [0x14000e9e0]
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov rcx, qword [0x1400166c8]
mov qword [rcx + 0x178], rax
lea rdx, [0x14000e9c0]
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov rcx, qword [0x1400166c8]
mov qword [rcx + 0x188], rax
lea rdx, [0x14000e990]
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov rcx, qword [0x1400166c8]
mov qword [rcx + 0x90], rax
lea rdx, [0x14000e960]
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov rcx, qword [0x1400166c8]
mov qword [rcx + 0x98], rax
lea rdx, [0x14000e930]
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov rcx, qword [0x1400166c8]
mov qword [rcx + 0xa0], rax
lea rdx, [0x14000e8f0]
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov rcx, qword [0x1400166c8]
mov qword [rcx + 0x190], rax
lea rdx, [0x14000e8b0]
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov rcx, qword [rsp + 0x650]
mov qword [rcx + 0x130], rax
lea rdx, [0x14000e870]
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov rcx, qword [rsp + 0x650]
mov qword [rcx + 0x138], rax
lea rdx, [0x14000e820]
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov rcx, qword [rsp + 0x650]
mov qword [rcx + 0x140], rax
mov rax, qword [0x1400166c8]
add rax, 0x526
mov rcx, qword [0x1400166c8]
mov qword [rcx + 0x110], rax
mov rax, qword [0x1400166c8]
add rax, 0x526
mov r8d, 0x200
lea rdx, [0x1400089f0]
mov rcx, rax
call fcn.14000e0c0
mov dword [rsp + 0xf0], 0x10000b
lea rcx, [rsp + 0xc0]
call sub.ntoskrnl.exe_RtlCaptureContext
mov edx, 0x40000
xor ecx, ecx
call sub.ntoskrnl.exe_ExAllocatePool
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xb8], 0
je 0x140007554
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xc0]
call sub.ntoskrnl.exe_KeCapturePersistentThreadState
mov rax, qword [rsp + 0xb8]
add rax, 0x2080
mov qword [rsp + 0xb0], rax
mov rax, qword [0x1400166c8]
add rax, 0x1a0
mov r8d, 0x318
mov rdx, qword [rsp + 0xb0]
mov rcx, rax
call fcn.14000e0c0
mov rax, qword [rsp + 0xb0]
add rax, 0x318
mov qword [rsp + 0x590], rax
mov rax, qword [0x1400166c8]
add rax, 0x4b8
mov r8d, 0x68
mov rdx, qword [rsp + 0x590]
mov rcx, rax
call fcn.14000e0c0
mov rax, qword [0x1400166c8]
mov rcx, qword [0x1400166c8]
mov rcx, qword [rcx + 0x1e8]
mov qword [rax], rcx
mov rax, qword [0x1400166c8]
mov rax, qword [rax]
mov rcx, qword [0x1400166c8]
mov rax, qword [rax]
mov qword [rcx + 0x30], rax
xor edx, edx
mov rcx, qword [rsp + 0xb8]
call sub.ntoskrnl.exe_ExFreePoolWithTag
mov rax, qword [0x1400166c8]
mov word [rax + 0x520], 0x30
mov rax, qword [0x1400166c8]
mov word [rax + 0x522], 0x2f8
lea rdx, [0x14000e7e0]
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
add rax, 0x1000
lea r8, [rsp + 0x60]
mov rdx, rax
mov rcx, qword [rsp + 0x90]
call fcn.140008060
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x1400075f8
mov rax, qword [rsp + 0x90]
movsxd rax, dword [rax + 3]
mov rcx, qword [rsp + 0x90]
lea rax, [rcx + rax + 7]
mov rcx, qword [rsp + 0x650]
mov qword [rcx + 0x10], rax
lea rdx, [0x14000e510]
mov rax, qword [rsp + 0x650]
mov rcx, qword [rax + 0x1b8]
call fcn.1400078b0
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14000770d
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x650]
add rax, qword [rcx + 0x1b8]
mov qword [rsp + 0x598], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 8]
cmp dword [rax + 0x10], ecx
jbe 0x140007666
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x620], eax
jmp 0x140007675
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 8]
mov dword [rsp + 0x620], eax
mov eax, dword [rsp + 0x620]
mov dword [rsp + 0x98], eax
mov eax, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x598]
add rcx, rax
mov rax, rcx
lea r8, [rsp + 0x5b0]
mov rdx, rax
mov rcx, qword [rsp + 0x598]
call fcn.140008060
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x14000770d
mov rax, qword [rsp + 0x90]
movsxd rax, dword [rax + 0x17]
mov rcx, qword [rsp + 0x90]
lea rax, [rcx + rax + 0x1b]
mov rcx, qword [rsp + 0x650]
mov qword [rcx + 0x20], rax
mov rax, qword [rsp + 0x90]
movsxd rax, dword [rax + 0x1e]
mov rcx, qword [rsp + 0x90]
lea rax, [rcx + rax + 0x22]
mov rcx, qword [rsp + 0x650]
mov qword [rcx + 0x28], rax
mov rax, qword [rsp + 0x650]
add rax, 0x60
mov rcx, rax
call fcn.140004330
mov rcx, qword [rsp + 0x628]
call fcn.14000dd80
add rsp, 0x638
pop rdi
pop rsi
ret