Function at 0x1400365f0
Capabilities:
Encode data using xor
Get thread local storage value

Disassembly:
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 0x28], rdx
mov qword [rbp - 0x18], rcx
mov eax, 0x10
call fcn.140271bb0
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x20], rax
mov ecx, dword [0x1402980b0]
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [rbp - 0x18]
add rsp, 0x20
add rax, 0x60
mov qword [rbp - 0x10], rax
mov rax, qword [rcx]
mov qword [rbp - 8], rax
cmp rax, 0
je 0x1400368a0
mov rax, qword [rbp - 8]
mov rcx, rax
add rcx, 0xfffffffffffffff0
mov qword [rbp - 0x38], rcx
mov rax, qword [rax - 0x10]
mov qword [rbp - 0x30], rax
movabs rcx, 0x3e5217a7a98802d8
movabs rdx, 0x3e5217a7a98802c8
xor rcx, rdx
cmp rax, rcx
jb 0x1400366e5
mov rdx, qword [rbp - 0x30]
mov rcx, 0xffffffffffffffff
xor rcx, 0xfffffffffffffff0
xor eax, eax
sub rax, 1
sub rcx, rax
mov rax, rdx
sub rax, rcx
mov qword [rbp - 0x40], rax
mov rcx, rax
xor rcx, rdx
cmp rcx, 0
setl cl
cmp rax, 0xffffffffffffffff
setg al
and al, cl
test al, 1
jne 0x1400366c3
jmp 0x1400366d5
sub rsp, 0x20
call fcn.14000f24b
add rsp, 0x20
jmp 0x1400368a0
mov rax, qword [rbp - 0x38]
mov rcx, qword [rbp - 0x40]
mov qword [rax], rcx
jmp 0x1400368a0
mov rcx, qword [rbp - 0x20]
mov rax, qword [rbp - 8]
mov rdx, qword [rax]
mov qword [rcx], rdx
mov rax, qword [rax + 8]
mov qword [rcx + 8], rax
sub rsp, 0x20
call fcn.140124f00
mov rax, qword [rbp - 0x10]
add rsp, 0x20
cmp byte [rax], 0
jne 0x1400368ab
mov eax, dword [0x140273aa8]
xor edx, edx
div dword [0x140273aac]
mov ecx, eax
mov edx, 0xa19421b0
xor edx, 0xf007375b
mov eax, ecx
xor eax, edx
mov edx, 0x563a334a
xor edx, 0x7a925a1
mov r8d, 0x7426f5da
xor r8d, 0x8bd90a25
xor edx, r8d
and ecx, edx
shl ecx, 1
sub ecx, eax
mov edx, ecx
xor edx, 0xffffffff
and edx, 0x39d1e5f3
mov r8d, 0xffffffff
xor r8d, 0x39d1e5f3
mov eax, ecx
and eax, r8d
imul eax, edx
mov edx, ecx
and edx, 0x39d1e5f3
or ecx, 0x39d1e5f3
imul ecx, edx
add ecx, eax
mov eax, ecx
and eax, 0xb1a4efa2
mov edx, 0xe3ca596b
xor edx, 0x526eb6c9
xor ecx, edx
or eax, ecx
cmp eax, 0xfa92018e
jae 0x1400369aa
mov eax, dword [0x140273ab0]
mov ecx, 0x53d2dcff
xor ecx, 0x5744756f
xor eax, ecx
mov edx, dword [0x140273ab4]
mov ecx, 0x4453346d
xor ecx, 0x5005a7f9
xor edx, ecx
mov ecx, eax
add ecx, 1
mov r8d, 0x910561a6
xor r8d, 0x6efa9e59
xor eax, r8d
or eax, edx
add eax, ecx
mov ecx, 0xaf4230f5
xor ecx, 0xf7a8f230
xor edx, edx
div ecx
mov ecx, eax
and ecx, 0x6dbe1812
shl ecx, 1
xor eax, 0x6dbe1812
add eax, ecx
mov ecx, 0xdf51d4ff
xor edx, edx
div ecx
mov ecx, eax
mov rax, qword [rbp - 0x18]
mov dword [rbp - 0x44], ecx
mov rax, qword [rax]
xor ecx, ecx
sub rcx, rax
movabs rax, 0x8bf8dd0e8a5caa21
movabs rdx, 0x8bf8dd0e8a5caa21
xor rax, rdx
movabs rdx, 0x4cef40f637d6873e
movabs r8, 0xb310bf09c82978ce
xor rdx, r8
sub rax, rdx
add rcx, rax
xor eax, eax
sub rax, rcx
mov qword [rbp - 0x50], rax
mov ecx, dword [0x1402980b0]
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, qword [rbp - 0x50]
add rsp, 0x20
mov rcx, rax
add rcx, 0x68
sub rsp, 0x20
call fcn.1400190f0
mov eax, dword [rbp - 0x44]
add rsp, 0x20
cmp eax, 0x5552d591
je 0x1400367aa
jmp 0x1400368a0
mov rax, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x28]
mov qword [rax], rcx
mov ecx, dword [0x140273ab8]
mov edx, dword [0x140273abc]
mov eax, ecx
xor eax, 0xffffffff
mov r8d, edx
xor r8d, 0xffffffff
and eax, r8d
or ecx, edx
xor ecx, 0xffffffff
or eax, ecx
xor eax, 0xffffffff
mov ecx, 0xd27f5a75
xor edx, edx
div ecx
mov ecx, eax
mov eax, 0xbf31a061
xor eax, 0x2e2cf359
imul ecx, eax
mov edx, 0x626be109
xor edx, 0x9d941ef6
mov eax, ecx
xor eax, edx
and eax, 0xce76ff04
mov edx, 0x8e9440cd
xor edx, 0x40e2bfc9
mov r8d, 0x3747ac4c
xor r8d, 0xc8b853b3
xor edx, r8d
and ecx, edx
or eax, ecx
cmp eax, 0x4a037f3c
je 0x1400369b3
mov ecx, dword [0x140273ac0]
mov eax, 0x9e1a0f86
xor eax, 0xf14a5983
xor ecx, eax
mov eax, dword [0x140273ac4]
or ecx, ecx
xor ecx, 0xffffffff
or eax, eax
xor eax, 0xffffffff
xor ecx, 0xffffffff
xor eax, 0xffffffff
and ecx, eax
mov eax, 0xbcfb6449
xor eax, 0x8febc296
xor ecx, eax
mov eax, ecx
xor eax, 0xffffffff
mov edx, 0xc395269c
xor edx, 0x3c6ad963
xor ecx, edx
or eax, ecx
mov ecx, 0x38278f3e
and ecx, 0x38278f3e
mov edx, 0xf2f24233
xor edx, 0xd0dbdcc
xor ecx, edx
and eax, ecx
xor eax, 0xffffffff
mov ecx, 0xc47e88e6
xor ecx, 0x52b12097
and eax, ecx
cmp eax, 0x3a7429c3
jb 0x1400369b3
mov rsp, rbp
pop rbp
ret
out dx, eax
pop rbp
jae 0x140036998
idiv ebp
invalid
retf