Function at 0x7ff7c00cc870
Capabilities:
Allocate thread local storage
Check os version
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rdi
sub rsp, 0x1b0
mov rax, qword [0x7ff7c01ca008]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov qword [sym.ProcessHacker.exe_PhInstanceHandle], r8
lea rcx, [rsp + 0x84]
mov r8d, 0x118
xor edx, edx
call fcn.7ff7c0123170
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x80], 0x11c
call qword [sym.imp.ntdll.dll_RtlGetVersion]
test eax, eax
js 0x7ff7c00cca88
lea rcx, [sym.ProcessHacker.exe_PhOsVersion]
mov eax, 2
lea rdx, [rsp + 0x80]
nop dword [rax]
lea rcx, ds:[rcx + 0x80]
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
lea rdx, [rdx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rdx - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rdx - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rdx - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rdx - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rdx - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rdx - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rax, 1
jne 0x7ff7c00cc8e0
mov rax, qword [rdx + 0x10]
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rax
mov eax, dword [rdx + 0x18]
mov dword [rcx + 0x18], eax
mov eax, dword [rsp + 0x84]
cmp eax, 6
jne 0x7ff7c00cc9a8
mov eax, dword [rsp + 0x88]
cmp eax, 1
jne 0x7ff7c00cc975
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x3d
nop dword [rax]
jmp 0x7ff7c00cca92
cmp eax, 2
jne 0x7ff7c00cc989
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x3e
jmp 0x7ff7c00cca92
nop dword [rax]
cmp eax, 3
jne 0x7ff7c00cca88
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x3f
jmp 0x7ff7c00cca92
nop dword [rax + rax]
cmp eax, 0xa
jne 0x7ff7c00cca88
cmp dword [rsp + 0x88], 0
jne 0x7ff7c00cca88
mov eax, dword ds:[rsp + 0x8c]
cmp eax, 0x4a61
jb 0x7ff7c00cc9e6
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x6d
jmp 0x7ff7c00cca92
cmp eax, 0x47bb
jb 0x7ff7c00cc9fc
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x6c
jmp 0x7ff7c00cca92
cmp eax, 0x47ba
jb 0x7ff7c00cca15
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x6b
nop dword [rax]
jmp 0x7ff7c00cca92
cmp eax, 0x4563
jb 0x7ff7c00cca28
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x6a
jmp 0x7ff7c00cca92
cmp eax, 0x42ee
jb 0x7ff7c00cca3b
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x69
jmp 0x7ff7c00cca92
cmp eax, 0x3fab
jb 0x7ff7c00cca4e
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x68
jmp 0x7ff7c00cca92
nop
cmp eax, 0x3ad7
jb 0x7ff7c00cca63
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x67
jmp 0x7ff7c00cca92
cmp eax, 0x3839
jb 0x7ff7c00cca76
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x66
jmp 0x7ff7c00cca92
cmp eax, 0x295a
sbb eax, eax
add eax, 0x65
mov dword [sym.ProcessHacker.exe_WindowsVersion], eax
jmp 0x7ff7c00cca92
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0xffffffff
xor r9d, r9d
lea rdx, [sym.ProcessHacker.exe_PhSystemBasicInformation]
xor ecx, ecx
lea r8d, [r9 + 0x40]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
xor edi, edi
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3e
jb 0x7ff7c00ccadf
mov qword ss:[rsp + 0x28], rdi
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
xor edx, edx
mov ecx, 0x1102
call qword [sym.imp.ntdll.dll_RtlCreateHeap]
mov qword [0x7ff7c01d3cd0], rax
jmp 0x7ff7c00ccae6
mov rax, qword [0x7ff7c01d3cd0]
mov qword [rsp + 0x1c0], rbx
mov qword [rsp + 0x1c8], rsi
test rax, rax
jne 0x7ff7c00ccb4c
mov qword [rsp + 0x28], rdi
xor edx, edx
mov ecx, 0x1002
mov qword [rsp + 0x20], rdi
mov r9d, 0x100000
mov r8d, 0x200000
call qword [sym.imp.ntdll.dll_RtlCreateHeap]
mov qword [0x7ff7c01d3cd0], rax
test rax, rax
je 0x7ff7c00cccaf
mov r9d, 4
mov dword [rsp + 0x30], 2
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, rax
call qword [sym.imp.ntdll.dll_RtlSetHeapInformation]
xor r9d, r9d
lea rcx, [0x7ff7c01d6d20]
xor r8d, r8d
mov edx, 0xf0003
call qword [sym.imp.ntdll.dll_NtCreateKeyedEvent]
test eax, eax
js 0x7ff7c00cccaf
cmp byte [0x7ff7c01d3ba8], 1
lea rcx, [0x7ff7c01d3b10]
mov eax, 0xfa0
cmovbe eax, edi
mov dword [0x7ff7c01d08ec], eax
call qword [sym.imp.kernel32.dll_InitializeSListHead_1]
lea rcx, [0x7ff7c01d3b20]
call qword [sym.imp.kernel32.dll_InitializeSListHead_1]
xorps xmm0, xmm0
mov dword [0x7ff7c01d3b30], edi
lea rax, [rsp + 0x40]
mov dword [0x7ff7c01d3b34], 0x200
mov qword [0x7ff7c01d3b00], rax
lea rdx, [rsp + 0x40]
lea rax, [rsp + 0x40]
mov qword [0x7ff7c01d3b38], 0x40
mov ecx, 0x40
mov qword [0x7ff7c01d78c0], rax
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x70], xmm0
call sym.ProcessHacker.exe_PhCreateObject
mov ebx, 1
mov rdx, rax
mov ecx, ebx
mov word [rax], di
lock xadd dword [0x7ff7c01d3acc], ecx
movzx ecx, cl
mov byte [rax + 2], cl
mov dword [rax + 4], edi
mov qword [rax + 8], rdi
lea rax, [0x7ff7c0175ce0]
mov qword [rdx + 0x10], rax
cmp ecx, 0x100
jae 0x7ff7c00ccca3
mov word [rdx - 0x10], cx
lea rsi, [0x7ff7c01d78c0]
mov qword [rsi + rcx*8], rdx
lea ecx, [rbx + 0x3f]
mov qword [0x7ff7c01d3b00], rdx
mov dword [rdx + 4], ebx
call sym.ProcessHacker.exe_PhCreateObject
mov word [rax], di
lock xadd dword [0x7ff7c01d3acc], ebx
movzx ebx, bl
lea rdx, [0x7ff7c0188760]
mov byte [rax + 2], bl
mov dword [rax + 4], edi
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdx
cmp ebx, 0x100
jae 0x7ff7c00ccca3
mov qword [rsi + rbx*8], rax
mov qword [0x7ff7c01d3b08], rax
call qword [sym.imp.kernel32.dll_TlsAlloc]
mov dword [0x7ff7c01d69f0], eax
cmp eax, 0xffffffff
je 0x7ff7c00cccaf
call fcn.7ff7c00c6660
test al, al
je 0x7ff7c00cccaf
xor eax, eax
jmp 0x7ff7c00cccb4
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
mov eax, 0xc0000001
mov rsi, qword [rsp + 0x1c8]
mov rbx, qword [rsp + 0x1c0]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
nop
call fcn.7ff7c0121390
add rsp, 0x1b0
pop rdi
ret