Function at 0x140107100
Capabilities:
Allocate thread local storage
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rdi
sub rsp, 0x90
mov rax, qword [0x140237008]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rax, [0x1401df1e8]
mov qword [0x140241948], r8
mov qword [0x140241990], rax
call fcn.1401073a0
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 [0x140237d34], 0x3e
jb 0x14010717c
mov qword [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 [0x140241998], rax
jmp 0x140107183
mov rax, qword [0x140241998]
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0xa8], rsi
test rax, rax
jne 0x1401071f2
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 [0x140241998], rax
test rax, rax
je 0x14010735e
cmp dword [0x140237d34], 0x3c
jb 0x1401071f2
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, [0x140244db0]
xor r8d, r8d
mov edx, 0xf0003
call qword [sym.imp.ntdll.dll_NtCreateKeyedEvent]
test eax, eax
js 0x14010735e
cmp byte [0x140241988], 1
lea rcx, [0x1402418a0]
mov eax, 0xfa0
cmovbe eax, edi
mov dword [0x14023e34c], eax
call qword [sym.imp.ntdll.dll_RtlInitializeSListHead]
lea rcx, [0x1402418b0]
nop dword [rax + rax]
call qword [sym.imp.ntdll.dll_RtlInitializeSListHead]
xorps xmm0, xmm0
mov dword [0x1402418c0], edi
lea rax, [rsp + 0x40]
mov dword [0x1402418c4], 0x200
mov qword [0x140241890], rax
lea rdx, [rsp + 0x40]
lea rax, [rsp + 0x40]
mov qword [0x1402418c8], 0x40
mov ecx, 0x40
mov qword [0x140245840], 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 [0x14024185c], 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 0x140107352
mov word [rdx - 0x10], cx
lea rsi, [0x140245840]
mov qword [rsi + rcx*8], rdx
lea ecx, [rbx + 0x3f]
mov qword [0x140241890], rdx
mov dword [rdx + 4], ebx
call sym.ProcessHacker.exe_PhCreateObject
mov word ds:[rax], di
lock xadd dword [0x14024185c], 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 0x140107352
mov qword [rsi + rbx*8], rax
mov qword [0x140241898], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140244804], eax
nop
cmp eax, 0xffffffff
je 0x14010735e
call fcn.1400fc260
test al, al
je 0x14010735e
xor eax, eax
jmp 0x140107363
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
mov eax, 0xc0000001
mov rsi, qword ss:[rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401848a0
add rsp, 0x90
pop rdi
ret