Function at 0x14010c870
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 [0x14020a008]
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.140163170
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x80], 0x11c
call qword [sym.imp.ntdll.dll_RtlGetVersion]
test eax, eax
js 0x14010ca88
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 0x14010c8e0
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 0x14010c9a8
mov eax, dword [rsp + 0x88]
cmp eax, 1
jne 0x14010c975
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x3d
nop dword [rax]
jmp 0x14010ca92
cmp eax, 2
jne 0x14010c989
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x3e
jmp 0x14010ca92
nop dword [rax]
cmp eax, 3
jne 0x14010ca88
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x3f
jmp 0x14010ca92
nop dword [rax + rax]
cmp eax, 0xa
jne 0x14010ca88
cmp dword [rsp + 0x88], 0
jne 0x14010ca88
mov eax, dword ds:[rsp + 0x8c]
cmp eax, 0x4a61
jb 0x14010c9e6
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x6d
jmp 0x14010ca92
cmp eax, 0x47bb
jb 0x14010c9fc
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x6c
jmp 0x14010ca92
cmp eax, 0x47ba
jb 0x14010ca15
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x6b
nop dword [rax]
jmp 0x14010ca92
cmp eax, 0x4563
jb 0x14010ca28
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x6a
jmp 0x14010ca92
cmp eax, 0x42ee
jb 0x14010ca3b
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x69
jmp 0x14010ca92
cmp eax, 0x3fab
jb 0x14010ca4e
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x68
jmp 0x14010ca92
nop
cmp eax, 0x3ad7
jb 0x14010ca63
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x67
jmp 0x14010ca92
cmp eax, 0x3839
jb 0x14010ca76
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x66
jmp 0x14010ca92
cmp eax, 0x295a
sbb eax, eax
add eax, 0x65
mov dword [sym.ProcessHacker.exe_WindowsVersion], eax
jmp 0x14010ca92
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 0x14010cadf
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 [0x140213cd0], rax
jmp 0x14010cae6
mov rax, qword [0x140213cd0]
mov qword [rsp + 0x1c0], rbx
mov qword [rsp + 0x1c8], rsi
test rax, rax
jne 0x14010cb4c
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 [0x140213cd0], rax
test rax, rax
je 0x14010ccaf
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, [0x140216d20]
xor r8d, r8d
mov edx, 0xf0003
call qword [sym.imp.ntdll.dll_NtCreateKeyedEvent]
test eax, eax
js 0x14010ccaf
cmp byte [0x140213ba8], 1
lea rcx, [0x140213b10]
mov eax, 0xfa0
cmovbe eax, edi
mov dword [0x1402108ec], eax
call qword [sym.imp.ntdll.dll_RtlInitializeSListHead]
lea rcx, [0x140213b20]
call qword [sym.imp.ntdll.dll_RtlInitializeSListHead]
xorps xmm0, xmm0
mov dword [0x140213b30], edi
lea rax, [rsp + 0x40]
mov dword [0x140213b34], 0x200
mov qword [0x140213b00], rax
lea rdx, [rsp + 0x40]
lea rax, [rsp + 0x40]
mov qword [0x140213b38], 0x40
mov ecx, 0x40
mov qword [0x1402178c0], 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 [0x140213acc], ecx
movzx ecx, cl
mov byte [rax + 2], cl
mov dword [rax + 4], edi
mov qword [rax + 8], rdi
lea rax, str.Type
mov qword [rdx + 0x10], rax
cmp ecx, 0x100
jae 0x14010cca3
mov word [rdx - 0x10], cx
lea rsi, [0x1402178c0]
mov qword [rsi + rcx*8], rdx
lea ecx, [rbx + 0x3f]
mov qword [0x140213b00], rdx
mov dword [rdx + 4], ebx
call sym.ProcessHacker.exe_PhCreateObject
mov word [rax], di
lock xadd dword [0x140213acc], ebx
movzx ebx, bl
lea rdx, str.Alloc
mov byte [rax + 2], bl
mov dword [rax + 4], edi
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdx
cmp ebx, 0x100
jae 0x14010cca3
mov qword [rsi + rbx*8], rax
mov qword [0x140213b08], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1402169f0], eax
cmp eax, 0xffffffff
je 0x14010ccaf
call fcn.140106660
test al, al
je 0x14010ccaf
xor eax, eax
jmp 0x14010ccb4
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.140161390
add rsp, 0x1b0
pop rdi
ret