Function at 0x140003340
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x800]
sub rsp, 0x900
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x7f0], rax
xor eax, eax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x72], rax
xor esi, esi
mov dword [rsp + 0x7a], eax
mov r14d, 0x400
mov word [rsp + 0x70], si
mov r8d, r14d
mov word [rsp + 0x7e], ax
xor edx, edx
mov word [rsp + 0x60], si
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x62], rax
mov dword [rsp + 0x6a], eax
mov word [rsp + 0x6e], ax
call fcn.140001720
mov r8d, r14d
lea rcx, [rbp + 0x3f0]
xor edx, edx
call fcn.140001720
mov qword [rbp - 0x70], rsi
xorps xmm0, xmm0
mov qword [rbp - 0x78], rsi
movdqu xmmword [rbp - 0x58], xmm0
test rdi, rdi
je 0x1400035d3
test rbx, rbx
je 0x1400035d3
mov rax, qword [sym.imp.ntoskrnl.exe_MmHighestUserAddress]
mov rcx, qword [rax]
cmp qword [rbx + 8], rcx
jb 0x1400035d3
test dword [rbx], 0x100
je 0x1400035d3
lea rax, [rbp - 0x10]
mov dword [rsp + 0x70], 0x4000000
mov rdx, rdi
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
lea rax, [rbp + 0x3f0]
mov dword [rsp + 0x60], 0x4000000
lea rdx, str.___
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
lea rdx, [0x140015770]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
mov dword [rsp + 0x50], esi
lea r9, [rbp - 0x68]
mov qword [rsp + 0x48], rsi
lea r8, [rbp - 0x48]
xor eax, eax
mov dword [rsp + 0x40], 1
mov qword [rbp - 0x30], rax
lea rcx, [rbp - 0x80]
mov dword [rsp + 0x38], 3
xorps xmm0, xmm0
mov qword [rbp - 0x60], rax
mov edx, 0x180
lea rax, [rsp + 0x60]
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 0x80
mov qword [rbp - 0x38], rax
mov qword [rsp + 0x20], rsi
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x68], rsi
mov dword [rbp - 0x48], 0x30
mov qword [rbp - 0x40], rsi
mov dword [rbp - 0x30], 0x40
movdqu xmmword [rbp - 0x28], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
js 0x1400035d3
cmp qword [rbp - 0x80], rsi
je 0x1400035d3
movzx ecx, word [rsp + 0x70]
mov r8d, esi
mov rdx, qword [rsp + 0x78]
sub ecx, 1
movsxd rax, ecx
js 0x140003514
nop dword [rax]
cmp word [rdx + rax*2], 0x5c
je 0x140003511
dec ecx
sub rax, 1
jns 0x140003500
jmp 0x140003514
mov r8d, ecx
movsxd rax, r8d
lea rcx, [rsp + 0x60]
lea rdx, [rdx + rax*2]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140003535
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rbp - 0x58], rax
lea rcx, [rbp - 0x70]
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rbp - 0x50], rax
mov edx, 0x1fffff
lea rax, [rbp - 0x58]
mov qword [rsp + 0x30], rax
lea rax, [0x1400032f0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
js 0x1400035d3
mov r8, qword [sym.imp.ntoskrnl.exe_PsThreadType]
lea rax, [rbp - 0x78]
mov rcx, qword [rbp - 0x70]
xor r9d, r9d
mov qword [rsp + 0x28], rsi
mov edx, 0x1fffff
mov qword [rsp + 0x20], rax
mov r8, qword [r8]
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
test eax, eax
js 0x1400035d3
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rbp - 0x78]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rbp + 0x7f0]
xor rcx, rsp
call fcn.140001360
lea r11, [rsp + 0x900]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret