Function at 0x14003270c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xf0
mov rax, qword [rsp + 0x100]
movzx eax, byte [rax + 0xa0]
test eax, eax
jne 0x140032736
jmp 0x140032add
call fcn.14002a0e8
mov rcx, rax
call fcn.140027720
mov rcx, rax
call fcn.14002682c
cmp qword [rax + 0x110], 0
jne 0x140032763
mov qword [rsp + 0x88], 0
jmp 0x14003278a
call fcn.14002a0e8
mov rcx, rax
call fcn.140027720
mov rcx, rax
call fcn.14002682c
mov rax, qword [rax + 0x110]
mov rax, qword [rax]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x140032add
mov rax, qword [rsp + 0x100]
add rax, 0x80
mov rcx, rax
call fcn.140033178
movzx eax, al
test eax, eax
je 0x140032add
mov rax, cr3
and rax, 0xfffffffffffffffd
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140049ab0
imul rax, rax, 0x30
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x60]
call fcn.140049ab0
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x20], rax
lea r9, [0x140059250]
lea r8, [0x140059280]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov r8d, 0x53414645
mov edx, 0x1000
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140032add
mov r8d, 0x1000
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
call fcn.1400495a0
mov dword [rsp + 0x40], 0
jmp 0x140032889
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x14
jge 0x1400329d4
mov r8d, 0x53414645
mov edx, 0x1000
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x1400329cf
mov r8d, 0x1000
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call fcn.1400588c0
mov rcx, qword [rsp + 0x48]
call fcn.140049a8c
mov rcx, rax
call fcn.140049ab0
imul rax, rax, 0x30
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xb0], rax
mov r8d, 0x30
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0xb8]
call fcn.1400588c0
mov rax, qword [rsp + 0x100]
add rax, 0x80
mov qword [rsp + 0x90], rax
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x90]
call fcn.14003320c
mov r8d, 0x30
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call fcn.1400588c0
movabs rax, 0xffffffffffff
mov rcx, qword [rsp + 0x108]
and rcx, rax
mov rax, rcx
shl rax, 0xd
movabs rcx, 0xfffffffffffffff
and rax, rcx
mov rcx, qword [rsp + 0x68]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x48]
call fcn.140049a8c
mov rcx, rax
call fcn.140049ab0
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [0x140059250]
lea r8, [0x1400592d0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x14003287f
mov edx, 0x53414645
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov qword [rsp + 0x78], 0
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x30], rax
lea rax, [0x140032ba4]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1fffff
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
jl 0x140032a94
lea rax, [rsp + 0x98]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x100]
add rax, 0x98
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov rax, qword [sym.imp.ntoskrnl.exe_PsThreadType]
mov r8, qword [rax]
mov edx, 0x1fffff
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov dword [rsp + 0x58], eax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov r8d, 0x1000
mov rdx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x50]
call fcn.1400588c0
movabs rax, 0xffffffffffff
mov rcx, qword [rsp + 0x50]
and rcx, rax
mov rax, rcx
shl rax, 0xd
movabs rcx, 0xfffffffffffffff
and rax, rcx
mov rcx, qword [rsp + 0x80]
mov qword [rcx], rax
add rsp, 0xf0
pop rdi
ret