Function at 0x140008c70
Capabilities:
Check os version
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x580
mov rax, qword [0x1400358b0]
xor rax, rsp
mov qword [rsp + 0x570], rax
mov rax, qword [rsp + 0x590]
mov qword [0x140035d40], rax
mov rax, qword [rsp + 0x598]
movzx eax, word [rax]
mov word [0x140044170], ax
mov rax, qword [rsp + 0x598]
movzx eax, word [rax + 2]
mov word [0x140044172], ax
mov rax, qword [rsp + 0x598]
movzx eax, word [rax]
xor edx, edx
mov ecx, eax
call fcn.140022730
mov qword [0x140044178], rax
mov rdx, qword [rsp + 0x598]
lea rcx, [0x140044170]
call qword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
xor edx, edx
mov ecx, 0x104
call fcn.140022730
mov qword [0x140044168], rax
xor eax, eax
mov word [0x140044160], ax
mov eax, 0x104
mov word [0x140044162], ax
mov rdi, qword [0x140044168]
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
xor edx, edx
mov ecx, 0x104
call fcn.140022730
mov qword [rsp + 0x58], rax
xor eax, eax
mov word [rsp + 0x50], ax
mov eax, 0x104
mov word [rsp + 0x52], ax
mov rdi, qword [rsp + 0x58]
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
lea rdx, [0x14002dcd0]
lea rcx, [rsp + 0x2c8]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
xor r8d, r8d
lea rdx, [rsp + 0x2c8]
lea rcx, [0x140044160]
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x50]
call fcn.140009840
lea rdx, [rsp + 0x50]
lea rcx, [0x140044160]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
lea rcx, [rsp + 0x450]
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jl 0x140008e02
cmp dword [rsp + 0x454], 6
ja 0x140008de4
cmp dword [rsp + 0x454], 6
jne 0x140008e02
cmp dword [rsp + 0x458], 2
jb 0x140008e02
mov dword [0x140035cf0], 0x200
mov dword [0x140035cf8], 0x40000000
mov dword [0x140035cf4], 0x80000000
lea rcx, [rsp + 0x70]
call qword [sym.imp.HAL.dll_KeQueryPerformanceCounter]
mov rax, qword [rsp + 0x70]
cqo
mov ecx, 0x3e8
idiv rcx
mov qword [0x140035ce8], rax
cmp qword [0x140035ce8], 0
jne 0x140008e38
mov qword [rsp + 0x60], 1
jmp 0x140008e44
mov rax, qword [0x140035ce8]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [0x140035ce8], rax
xor edx, edx
lea rcx, [rsp + 0xf8]
call fcn.1400122a0
mov eax, dword [rsp + 0x110]
or eax, 1
mov dword [rsp + 0x110], eax
lea rax, [0x1400263a0]
mov qword [rsp + 0x108], rax
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xf8]
xor r8d, r8d
lea rdx, [0x140044170]
mov rcx, qword [0x140035d40]
call fcn.140012850
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x140008eba
jmp 0x140009700
lea rdx, [0x140034200]
mov rcx, qword [rsp + 0xb8]
call fcn.1400124c0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140008ee8
mov dword [rsp + 0x40], 0xc000009a
jmp 0x140009700
mov edx, 0x12
mov rcx, qword [rsp + 0x48]
call fcn.1400126d0
mov edx, 3
mov rcx, qword [rsp + 0x48]
call fcn.1400127c0
lea rdx, [0x140044160]
mov rcx, qword [rsp + 0x48]
call fcn.140012640
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x140008f31
mov rcx, qword [rsp + 0x48]
call fcn.140012690
jmp 0x140009700
lea r9, [0x14001b940]
lea r8, [0x14001be30]
lea rdx, [0x14001bfb0]
lea rcx, [rsp + 0x420]
call fcn.1400122e0
lea rcx, [rsp + 0xc0]
call fcn.140012410
mov rax, qword [0x140035210]
mov qword [rsp + 0xf0], rax
mov dword [rsp + 0xd8], 2
mov dword [rsp + 0xdc], 4
lea rax, [0x14001c490]
mov qword [rsp + 0xd0], rax
lea r8, [rsp + 0xc0]
lea rdx, [rsp + 0x420]
mov rcx, qword [rsp + 0x48]
call fcn.140012720
lea rdx, [0x14001b640]
mov rcx, qword [rsp + 0x48]
call fcn.140012770
lea rcx, [rsp + 0xc0]
call fcn.140012410
lea r8, [0x140044128]
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x48]
call fcn.140012550
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x140008fff
mov rcx, qword [rsp + 0x48]
call fcn.140012690
jmp 0x140009700
mov edx, 2
lea rcx, [rsp + 0x3c0]
call fcn.1400123b0
mov qword [rsp + 0x3d8], 0
mov qword [rsp + 0x3e0], 0
lea rax, [0x140021af0]
mov qword [rsp + 0x3e8], rax
lea rcx, [rsp + 0xc0]
call fcn.140012410
mov dword [rsp + 0xd8], 2
mov dword [rsp + 0xdc], 4
lea r9, [rsp + 0x380]
lea r8, [rsp + 0xc0]
lea rdx, [rsp + 0x3c0]
mov rcx, qword [0x140044128]
call fcn.1400128c0
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x14000908f
jmp 0x140009700
mov rcx, qword [rsp + 0x598]
call fcn.140009cd0
call fcn.140009c80
call fcn.140009b90
mov qword [rsp + 0xb0], 0
mov dword [rsp + 0x268], 0x30
mov qword [rsp + 0x270], 0
mov dword [rsp + 0x280], 0
mov qword [rsp + 0x278], 0
mov qword [rsp + 0x288], 0
mov qword [rsp + 0x290], 0
mov qword [rsp + 0x30], 0
lea rax, [0x14000eca0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x268]
mov edx, 0x1fffff
lea rcx, [rsp + 0xb0]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov qword [rsp + 0x80], 0
mov dword [rsp + 0x208], 0x30
mov qword [rsp + 0x210], 0
mov dword [rsp + 0x220], 0
mov qword [rsp + 0x218], 0
mov qword [rsp + 0x228], 0
mov qword [rsp + 0x230], 0
mov qword [rsp + 0x30], 0
lea rax, [0x14000fd10]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x208]
mov edx, 0x1fffff
lea rcx, [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov qword [rsp + 0xa0], 0
mov dword [rsp + 0x1a8], 0x30
mov qword [rsp + 0x1b0], 0
mov dword [rsp + 0x1c0], 0
mov qword [rsp + 0x1b8], 0
mov qword [rsp + 0x1c8], 0
mov qword [rsp + 0x1d0], 0
mov qword [rsp + 0x30], 0
lea rax, [0x140010050]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x1a8]
mov edx, 0x1fffff
lea rcx, [rsp + 0xa0]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov qword [rsp + 0x90], 0
mov dword [rsp + 0x118], 0x30
mov qword [rsp + 0x120], 0
mov dword [rsp + 0x130], 0
mov qword [rsp + 0x128], 0
mov qword [rsp + 0x138], 0
mov qword [rsp + 0x140], 0
mov qword [rsp + 0x30], 0
lea rax, [0x140010fc0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x118]
mov edx, 0x1fffff
lea rcx, [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x148], 0x30
mov qword [rsp + 0x150], 0
mov dword [rsp + 0x160], 0
mov qword [rsp + 0x158], 0
mov qword [rsp + 0x168], 0
mov qword [rsp + 0x170], 0
mov qword [rsp + 0x30], 0
lea rax, [0x140011180]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x148]
mov edx, 0x1fffff
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
cmp qword [0x140035d70], 0
jne 0x140009383
mov rcx, qword [0x140044128]
call fcn.140012810
mov qword [0x140035d70], rax
mov qword [rsp + 0x388], 0
mov dword [rsp + 0x2d8], 0x30
mov qword [rsp + 0x2e0], 0
mov dword [rsp + 0x2f0], 0
mov qword [rsp + 0x2e8], 0
mov qword [rsp + 0x2f8], 0
mov qword [rsp + 0x300], 0
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x178], 0x30
mov qword [rsp + 0x180], 0
mov dword [rsp + 0x190], 0
mov qword [rsp + 0x188], 0
mov qword [rsp + 0x198], 0
mov qword [rsp + 0x1a0], 0
mov rax, qword [0x140035d40]
mov qword [rsp + 0x30], rax
lea rax, [0x1400111a0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x178]
mov edx, 0x1fffff
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov qword [rsp + 0x338], 0
mov dword [rsp + 0x308], 0x30
mov qword [rsp + 0x310], 0
mov dword [rsp + 0x320], 0
mov qword [rsp + 0x318], 0
mov qword [rsp + 0x328], 0
mov qword [rsp + 0x330], 0
mov qword [rsp + 0x88], 0
mov dword [rsp + 0x1d8], 0x30
mov qword [rsp + 0x1e0], 0
mov dword [rsp + 0x1f0], 0
mov qword [rsp + 0x1e8], 0
mov qword [rsp + 0x1f8], 0
mov qword [rsp + 0x200], 0
mov qword [rsp + 0x30], 0
lea rax, [0x14000fee0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x1d8]
mov edx, 0x1fffff
lea rcx, [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov qword [rsp + 0x98], 0
mov dword [rsp + 0x238], 0x30
mov qword [rsp + 0x240], 0
mov dword [rsp + 0x250], 0
mov qword [rsp + 0x248], 0
mov qword [rsp + 0x258], 0
mov qword [rsp + 0x260], 0
mov qword [rsp + 0x30], 0
lea rax, [0x14000f1b0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x238]
mov edx, 0x1fffff
lea rcx, [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov qword [rsp + 0x340], 0
mov dword [rsp + 0x350], 0x30
mov qword [rsp + 0x358], 0
mov dword [rsp + 0x368], 0
mov qword [rsp + 0x360], 0
mov qword [rsp + 0x370], 0
mov qword [rsp + 0x378], 0
mov qword [rsp + 0xa8], 0
mov dword [rsp + 0x298], 0x30
mov qword [rsp + 0x2a0], 0
mov dword [rsp + 0x2b0], 0
mov qword [rsp + 0x2a8], 0
mov qword [rsp + 0x2b8], 0
mov qword [rsp + 0x2c0], 0
mov qword [rsp + 0x30], 0
lea rax, [0x14000fb90]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x298]
mov edx, 0x1fffff
lea rcx, [rsp + 0xa8]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov qword [rsp + 0x348], 0
mov dword [rsp + 0x390], 0x30
mov qword [rsp + 0x398], 0
mov dword [rsp + 0x3a8], 0
mov qword [rsp + 0x3a0], 0
mov qword [rsp + 0x3b0], 0
mov qword [rsp + 0x3b8], 0
xor eax, eax
mov rcx, qword [rsp + 0x570]
xor rcx, rsp
call fcn.14002cd90
add rsp, 0x580
pop rdi
ret