Function at 0x140135200
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push r13
push r14
lea rbp, [rsp - 0x2c8]
sub rsp, 0x3c8
mov rax, qword [0x140237008]
xor rax, rsp
mov qword [rbp + 0x2b0], rax
xor r13d, r13d
mov qword [rsp + 0x38], rcx
mov r14, rcx
mov dword [rbp - 0x70], r13d
mov ecx, dword [0x140244804]
mov qword [rbp + 0x198], r13
mov qword [rbp + 0x1a0], r13
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x140244804]
lea rdx, [rbp - 0x70]
mov qword [rbp + 0x1a8], rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140135b47
mov qword [rsp + 0x3f8], rbx
lea rax, [rbp + 0x1b0]
mov qword [rsp + 0x400], rsi
mov ebx, r13d
mov qword [rsp + 0x408], r12
mov esi, r13d
mov qword [rsp + 0x3c0], r15
mov dword [rsp + 0x50], 0x24
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], 0x80
nop dword [rax]
nop word [rax + rax]
movsxd r8, ebx
lea r9, [rsp + 0x50]
mov edx, 0x105f
mov rcx, r14
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x1401352e5
inc esi
inc ebx
cmp ebx, 0x64
jb 0x1401352c0
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor r8d, r8d
mov edx, 0x1004
mov rcx, r14
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdx, qword [0x1402418e8]
mov ebx, 0x100
mov r15, rax
mov qword [rsp + 0x40], rax
lea ecx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov dword ds:[rsp + 0x28], r13d
mov rdi, rax
mov r12d, r13d
lea rcx, [rax + 0x10]
mov qword [rax + 8], rcx
mov word [rcx + 0x100], r13w
mov qword [rax], r13
mov rax, qword [rax + 8]
mov word [rax], r13w
test r15d, r15d
je 0x140135a09
lfence
mov rax, r13
mov qword [rsp + 0x48], rax
nop dword [rax]
nop dword [rax + rax]
mov r9d, 2
mov r8, rax
mov edx, 0x102c
mov rcx, r14
call qword [sym.imp.USER32.dll_SendMessageW]
test al, 2
je 0x1401359de
nop
test esi, esi
je 0x14013576e
nop dword [rax + rax]
mov r8d, r13d
mov edx, r12d
mov rcx, r14
call fcn.140135100
mov r14, qword [rax]
mov r12, qword [rax + 8]
test r14, r14
je 0x14013552e
mov rsi, qword [rdi]
add rsi, r14
cmp rbx, rsi
jae 0x1401354ff
mov r15, qword [0x1402418e8]
lea rax, [rbx + rbx]
cmp rax, rsi
cmovae rsi, rax
test byte [r15], 1
lea r8, [rsi + 0x12]
je 0x140135422
lea rcx, ds:[r15 + 0x20]
call qword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
test rax, rax
je 0x1401353fd
lock dec dword [r15 + 0x30]
add rax, 0x10
mov byte [rax + 2], 2
jmp 0x14013548f
mov r8, qword [r15 + 0x38]
mov edx, 4
mov rcx, qword [0x140241998]
add r8, 0x10
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
add rax, 0x10
mov byte [rax + 2], 2
jmp 0x14013548f
cmp r8, 0x30
ja 0x140135472
lea rcx, [0x1402418b0]
call qword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
test rax, rax
je 0x14013544b
lock dec dword [0x1402418c0]
add rax, 0x10
mov byte [rax + 2], 1
jmp 0x14013548f
mov r8, qword [0x1402418c8]
mov edx, 4
mov rcx, qword [0x140241998]
add r8, 0x10
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
add rax, 0x10
mov byte [rax + 2], 1
jmp 0x14013548f
lfence
mov rcx, qword [0x140241998]
add r8, 0x10
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov byte [rax + 2], 0
lock inc dword [r15 + 4]
mov dword [rax + 8], 1
lea rbx, [rax + 0x10]
movzx ecx, byte [r15 + 2]
xor r15d, r15d
mov word [rax], cx
lea rax, [rbx + 0x10]
mov qword [rbx + 8], rax
mov qword [rbx], rsi
mov word [rsi + rax], r15w
mov r8, qword [rdi]
mov rdx, qword [rdi + 8]
add r8, 2
mov rcx, qword [rbx + 8]
call fcn.140188690
mov rax, qword ds:[rdi]
mov rcx, rdi
mov qword [rbx], rax
mov rdi, rbx
mov rbx, rsi
test rcx, rcx
je 0x140135502
add rcx, 0xfffffffffffffff0
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140135502
call fcn.1400fbcc0
jmp 0x140135502
xor r15d, r15d
test r12, r12
je 0x140135519
mov rcx, qword [rdi + 8]
mov r8, r14
add rcx, qword [rdi]
mov rdx, r12
call fcn.140188690
add qword [rdi], r14
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
mov esi, dword [rsp + 0x20]
mov word [rcx + rax], r15w
jmp 0x140135531
xor r15d, r15d
cmp byte [0x140244611], 1
lea r12, [0x1401dabc0]
nop
jb 0x1401355cb
mov rax, r12
mov rcx, r12
and rax, 0xfffffffffffffff1
xorps xmm1, xmm1
and ecx, 0xf
je 0x140135579
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rax]
pmovmskb edx, xmm0
sar edx, cl
bsf ecx, edx
mov dword [rsp + 0x2c], ecx
je 0x140135575
mov eax, ecx
shr rax, 1
jmp 0x1401355b7
add rax, 0x10
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rax]
pmovmskb ecx, xmm0
bsf edx, ecx
mov dword [rsp + 0x2c], edx
jne 0x1401355a9
nop dword [rax]
add rax, 0x10
movdqa xmm0, xmm1
pcmpeqw xmm0, xmmword [rax]
pmovmskb ecx, xmm0
bsf edx, ecx
mov dword [rsp + 0x2c], edx
je 0x140135590
sub rax, r12
mov ecx, edx
sar rax, 1
shr rcx, 1
add rax, rcx
lea r14, ds:[rax + rax]
test r14, r14
je 0x140135750
jmp 0x1401355d1
mov r14d, 4
mov rsi, qword ds:[rdi]
add rsi, r14
cmp rbx, rsi
jae 0x14013572b
mov r15, qword [0x1402418e8]
lea rax, [rbx + rbx]
cmp rax, rsi
cmovae rsi, rax
test byte [r15], 1
lea r8, [rsi + 0x12]
je 0x140135650
lea rcx, [r15 + 0x20]
call qword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
test rax, rax
je 0x140135626
lock dec dword [r15 + 0x30]
add rax, 0x10
mov byte [rax + 2], 2
jmp 0x1401356c0
mov r8, qword ds:[r15 + 0x38]
mov edx, 4
mov rcx, qword [0x140241998]
add r8, 0x10
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
add rax, 0x10
mov byte [rax + 2], 2
jmp 0x1401356c0
cmp r8, 0x30
ja 0x1401356a3
lea rcx, [0x1402418b0]
nop dword [rax]
call qword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
test rax, rax
je 0x14013567c
lock dec dword [0x1402418c0]
add rax, 0x10
mov byte [rax + 2], 1
jmp 0x1401356c0
mov r8, qword [0x1402418c8]
mov edx, 4
mov rcx, qword [0x140241998]
add r8, 0x10
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
add rax, 0x10
mov byte [rax + 2], 1
jmp 0x1401356c0
lfence
mov rcx, qword [0x140241998]
add r8, 0x10
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov byte [rax + 2], 0
lock inc dword [r15 + 4]
mov dword [rax + 8], 1
lea rbx, [rax + 0x10]
movzx ecx, byte [r15 + 2]
xor r15d, r15d
mov word [rax], cx
lea rax, [rbx + 0x10]
mov qword [rbx + 8], rax
mov qword [rbx], rsi
mov word [rsi + rax], r15w
mov r8, qword [rdi]
mov rdx, qword [rdi + 8]
add r8, 2
mov rcx, qword [rbx + 8]
call fcn.140188690
mov rax, qword [rdi]
mov rcx, rdi
mov qword [rbx], rax
mov rdi, rbx
mov rbx, rsi
test rcx, rcx
je 0x14013572b
add rcx, 0xfffffffffffffff0
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14013572b
call fcn.1400fbcc0
mov rcx, qword [rdi]
mov r8, r14
add rcx, qword [rdi + 8]
mov rdx, r12
call fcn.140188690
add qword [rdi], r14
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
mov esi, dword [rsp + 0x20]
mov word [rcx + rax], r15w
mov r12d, dword ds:[rsp + 0x28]
inc r13d
mov r14, qword [rsp + 0x38]
cmp r13d, esi
jb 0x140135390
mov r15, qword [rsp + 0x40]
mov rdx, qword [rdi]
test rdx, rdx
je 0x1401357b3
mov rax, qword [rdi + 8]
mov rcx, rdx
mov r8, rdx
and rcx, 0xfffffffffffffffe
sub rcx, 4
shr rdx, 1
sub r8, rcx
add rcx, rax
sub r8, 4
lea rdx, [rax + rdx*2]
call fcn.140188690
add qword [rdi], 0xfffffffffffffffc
mov rcx, qword [rdi]
xor r13d, r13d
mov rax, qword [rdi + 8]
mov word [rcx + rax], r13w
jmp 0x1401357b6
xor r13d, r13d
cmp byte [0x140244611], 1
nop dword [rax]
jb 0x140135856
lea r8, [0x1401d9288]
xorps xmm1, xmm1
mov rdx, r8
mov rcx, r8
and rdx, 0xfffffffffffffff1
and ecx, 0xf
je 0x140135800
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rdx]
pmovmskb eax, xmm0
sar eax, cl
bsf ecx, eax
mov dword [rsp + 0x30], ecx
je 0x1401357fc
mov edx, ecx
shr rdx, 1
jmp 0x140135847
add rdx, 0x10
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rdx]
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rsp + 0x30], ecx
jne 0x140135839
nop dword [rax]
nop dword [rax + rax]
add rdx, 0x10
movdqa xmm0, xmm1
pcmpeqw xmm0, xmmword [rdx]
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rsp + 0x30], ecx
je 0x140135820
sub rdx, r8
mov eax, ecx
sar rdx, 1
shr rax, 1
add rdx, rax
lea r14, [rdx + rdx]
test r14, r14
je 0x1401359d9
jmp 0x14013585c
mov r14d, 4
mov rsi, qword [rdi]
add rsi, r14
cmp rbx, rsi
jae 0x1401359aa
mov r15, qword [0x1402418e8]
lea rax, [rbx + rbx]
cmp rax, rsi
cmovae rsi, rax
test byte [r15], 1
lea r8, [rsi + 0x12]
je 0x1401358d0
lea rcx, [r15 + 0x20]
call qword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
test rax, rax
je 0x1401358a8
lock dec dword [r15 + 0x30]
add rax, 0x10
mov byte [rax + 2], 2
jmp 0x140135940
mov r8, qword ds:[r15 + 0x38]
mov edx, 4
mov rcx, qword [0x140241998]
add r8, 0x10
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
add rax, 0x10
mov byte [rax + 2], 2
jmp 0x140135940
cmp r8, 0x30
ja 0x140135923
lea rcx, [0x1402418b0]
nop dword [rax]
call qword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
test rax, rax
je 0x1401358fc
lock dec dword [0x1402418c0]
add rax, 0x10
mov byte [rax + 2], 1
jmp 0x140135940
mov r8, qword [0x1402418c8]
mov edx, 4
mov rcx, qword [0x140241998]
add r8, 0x10
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
add rax, 0x10
mov byte [rax + 2], 1
jmp 0x140135940
lfence
mov rcx, qword [0x140241998]
add r8, 0x10
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov byte [rax + 2], 0
lock inc dword [r15 + 4]
mov dword [rax + 8], 1
lea rbx, [rax + 0x10]
movzx ecx, byte [r15 + 2]
mov word [rax], cx
lea rax, [rbx + 0x10]
mov qword [rbx + 8], rax
mov qword [rbx], rsi
mov word [rsi + rax], r13w
mov r8, qword [rdi]
mov rdx, qword [rdi + 8]
add r8, 2
mov rcx, qword [rbx + 8]
call fcn.140188690
mov rax, qword [rdi]
mov rcx, rdi
mov qword [rbx], rax
mov rdi, rbx
mov rbx, rsi
test rcx, rcx
je 0x1401359aa
add rcx, 0xfffffffffffffff0
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1401359aa
call fcn.1400fbcc0
mov rcx, qword ds:[rdi]
lea rdx, [0x1401d9288]
add rcx, qword [rdi + 8]
mov r8, r14
call fcn.140188690
add qword [rdi], r14
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
mov r15, qword [rsp + 0x40]
mov word [rcx + rax], r13w
mov r14, qword [rsp + 0x38]
mov rax, qword ds:[rsp + 0x48]
inc r12d
mov esi, dword [rsp + 0x20]
inc rax
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x48], rax
cmp r12d, r15d
jb 0x140135360
mov eax, dword ds:[rbp - 0x70]
mov r15, qword [rsp + 0x3c0]
mov r12, qword [rsp + 0x408]
test eax, eax
je 0x140135a55
lea rbx, [rbp - 0x68]
mov esi, eax
nop word [rax + rax]
mov rcx, qword [rbx]
mov eax, 0xffffffff
add rcx, 0xfffffffffffffff0
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140135a4b
call fcn.1400fbcc0
add rbx, 8
sub rsi, 1
jne 0x140135a30
mov rbx, qword [rbp + 0x1a0]
mov dword [rbp - 0x70], r13d
test rbx, rbx
je 0x140135ad0
mov eax, dword [rbp + 0x198]
test eax, eax
je 0x140135a9d
mov esi, eax
mov rcx, qword [rbx]
mov eax, 0xffffffff
add rcx, 0xfffffffffffffff0
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140135a8c
call fcn.1400fbcc0
add rbx, 8
sub rsi, 1
jne 0x140135a71
mov rbx, qword [rbp + 0x1a0]
cmp dword [rbp + 0x19c], 0x100
mov dword [rbp + 0x198], r13d
jbe 0x140135ad0
mov rcx, qword [0x140241998]
mov r8, rbx
xor edx, edx
mov dword [rbp + 0x19c], r13d
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov qword [rbp + 0x1a0], r13
mov ecx, dword [0x140244804]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [rsp + 0x400]
lea rcx, [rbp - 0x70]
mov rbx, qword [rsp + 0x3f8]
cmp rax, rcx
jne 0x140135b47
mov rdx, qword [rbp + 0x1a8]
mov ecx, dword [0x140244804]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140135b47
mov r8, qword [rbp + 0x1a0]
test r8, r8
je 0x140135b27
mov rcx, qword [0x140241998]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, rdi
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.1401848a0
add rsp, 0x3c8
pop r14
pop r13
pop rdi
pop rbp
ret
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3