Function at 0x1400030d0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xe8
call fcn.140004430
mov qword [rsp + 0x98], rax
lea rcx, [rsp + 0x60]
call fcn.140002120
mov byte [rsp + 0x41], 1
mov byte [rsp + 0x40], 0
cmp dword [rsp + 0x100], 0
jge 0x14000312f
mov qword [rsp + 0x108], 0
mov eax, dword [rsp + 0x100]
mov dword [rsp + 0x44], eax
jmp 0x140003137
mov dword [rsp + 0x44], 0
cmp dword [rsp + 0x44], 0
jl 0x14000328d
xor eax, eax
cmp eax, 1
je 0x14000328d
mov rcx, qword [rsp + 0xf0]
call fcn.1400035d0
mov qword [0x140015348], rax
mov rax, qword [0x140015348]
mov rax, qword [rax]
mov qword [0x140015350], rax
mov rax, qword [0x140015348]
mov rcx, qword [rsp + 0xf8]
mov qword [rax], rcx
mov rcx, qword [0x140015368]
call qword [sym.imp.ntoskrnl.exe_ExAcquireFastMutex]
mov byte [rsp + 0x40], 1
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.ntoskrnl.exe_ObfReferenceObject]
mov rax, qword [0x1400153c8]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rax
mov rdx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0xf0]
mov rax, qword [rsp + 0x78]
call qword [0x140010238]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140003286
mov rcx, qword [0x140015368]
call qword [sym.imp.ntoskrnl.exe_ExReleaseFastMutex]
mov byte [rsp + 0x40], 0
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, qword [0x1400153e0]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x108]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x90]
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xf0]
mov rax, qword [rsp + 0x88]
call qword [0x140010238]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jge 0x140003276
mov qword [rsp + 0x108], 0
jmp 0x14000328d
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x140003288
jmp 0x14000328d
jmp 0x140003142
mov rax, qword [rsp + 0xf8]
add rax, 0x18
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_ExAcquireFastMutex]
cmp dword [rsp + 0x44], 0
jl 0x1400032d3
mov rax, qword [rsp + 0xf8]
mov eax, dword [rax + 0x60]
and eax, 1
test eax, eax
jne 0x1400032cb
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.ntoskrnl.exe_ObfReferenceObject]
jmp 0x1400032d3
mov dword [rsp + 0x44], 0xc0000354
mov rax, qword [rsp + 0xf8]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xf8]
add rax, 0x50
cmp qword [rsp + 0x58], rax
je 0x140003473
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x4c]
and eax, 4
test eax, eax
je 0x14000346e
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x98]
cmp qword [rax + 0x50], rcx
jne 0x14000346e
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x50], rax
cmp dword [rsp + 0x44], 0
jl 0x14000340d
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x4c]
and eax, 0x10
test eax, eax
je 0x1400033a6
mov rcx, qword [rsp + 0x50]
call fcn.140003670
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
lock or dword [rax], 0x100
mov rax, qword [rsp + 0x48]
mov rcx, rax
call fcn.140004440
mov rax, qword [rsp + 0x48]
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140004360
jmp 0x14000340b
movzx eax, byte [rsp + 0x41]
test eax, eax
je 0x1400033dd
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x4c]
and eax, 0xfffffffb
mov rcx, qword [rsp + 0x48]
mov dword [rcx + 0x4c], eax
mov rax, qword [rsp + 0xf8]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_KeSetEvent]
mov byte [rsp + 0x41], 0
mov rax, qword [rsp + 0x48]
mov qword [rax + 0x50], 0
mov rcx, qword [rsp + 0x50]
call fcn.140003670
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
lock or dword [rax], 0x80
jmp 0x14000342c
mov rax, qword [rsp + 0x48]
mov rcx, rax
call fcn.140004440
mov rax, qword [rsp + 0x48]
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140004360
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x4c]
and eax, 8
test eax, eax
je 0x14000346e
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x4c]
and eax, 0xfffffff7
mov rcx, qword [rsp + 0x48]
mov dword [rcx + 0x4c], eax
mov rcx, qword [rsp + 0x50]
call fcn.140003690
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ntoskrnl.exe_ExReleaseRundownProtection]
jmp 0x1400032e4
mov rax, qword [rsp + 0xf8]
add rax, 0x18
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_ExReleaseFastMutex]
movzx eax, byte [rsp + 0x40]
test eax, eax
je 0x14000349e
mov rcx, qword [0x140015368]
call qword [sym.imp.ntoskrnl.exe_ExReleaseFastMutex]
cmp qword [rsp + 0x108], 0
je 0x1400034b7
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
lea rcx, [rsp + 0x60]
call fcn.1400043f0
movzx eax, al
test eax, eax
jne 0x140003515
lea rcx, [rsp + 0x60]
call fcn.1400044e0
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x48], rax
mov rax, qword [0x140015370]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0x48]
mov rax, qword [rsp + 0xc0]
call qword [0x140010238]
jmp 0x1400034b7
cmp dword [rsp + 0x44], 0
jl 0x140003551
mov rax, qword [0x140015388]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xd0], rax
mov rcx, qword [rsp + 0xf0]
mov rax, qword [rsp + 0xd0]
call qword [0x140010238]
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessId]
mov qword [0x140015360], rax
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
mov qword [0x140015358], rax
mov qword [rsp + 0x30], 0
lea rax, [0x140004210]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1fffff
lea rcx, [rsp + 0xd8]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov dword [rsp + 0x44], eax
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [rsp + 0x44]
add rsp, 0xe8
ret