Function at 0x1400be770
Capabilities:
Encode data using xor

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rsi, rcx
mov rax, qword [rcx]
nop word cs:[rax + rax]
mov rcx, rax
xor rcx, 3
lock cmpxchg qword [rsi], rcx
jne 0x1400be790
test al, 1
je 0x1400be981
test al, 2
jne 0x1400be99b
test al, 8
jne 0x1400be8c8
mov rdi, qword [rsi + 0x28]
mov eax, dword [0x140221400]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0xe0]
cmp eax, 1
je 0x1400be80a
test eax, eax
jne 0x1400be843
mov eax, dword [0x140221400]
mov rcx, qword gs:[0x58]
mov rbx, qword [rcx + rax*8]
lea rcx, [rbx + 0x90]
lea rdx, [0x140150e90]
call fcn.14013b2f0
mov byte [rbx + 0xe0], 1
mov eax, dword [0x140221400]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rbx, qword [rax + 0xb0]
mov r14, qword [rax + 0xb8]
mov qword [rax + 0xb0], 1
mov qword [rax + 0xb8], rdi
cmp rbx, 2
jne 0x1400be845
xor ebx, ebx
lea rcx, [rsi + 0x30]
call fcn.1400be650
mov byte [rsi + 0xa8], 4
mov eax, dword [0x140221400]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0xe0]
cmp eax, 1
je 0x1400be8a5
test eax, eax
jne 0x1400be8e6
mov eax, dword [0x140221400]
mov rcx, qword gs:[0x58]
mov rdi, qword [rcx + rax*8]
lea rcx, [rdi + 0x90]
lea rdx, [0x140150e90]
call fcn.14013b2f0
mov byte [rdi + 0xe0], 1
mov eax, dword [0x140221400]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0xb0], rbx
mov qword [rax + 0xb8], r14
jmp 0x1400be8e6
test al, 0x10
je 0x1400be8e6
mov rax, qword [rsi + 0xc8]
test rax, rax
je 0x1400bea1c
mov rcx, qword [rsi + 0xc0]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rsi + 0x20]
mov rdx, rsi
call fcn.140158e00
cmp rax, 1
mov eax, 2
sbb rax, 0
mov qword [rsp + 0x28], rax
shl rax, 6
neg rax
lock xadd qword [rsi], rax
shr rax, 6
cmp rax, qword [rsp + 0x28]
jb 0x1400be9b5
jne 0x1400be973
mov rax, qword [rsi + 0x20]
lock dec qword [rax]
jne 0x1400be934
mov rcx, qword [rsi + 0x20]
call fcn.1400bea70
lea rcx, [rsi + 0x30]
call fcn.1400be650
mov rax, qword [rsi + 0xc8]
test rax, rax
je 0x1400be953
mov rcx, qword [rsi + 0xc0]
call qword [rax + 0x18]
mov r8, qword [rsi - 8]
mov rcx, qword [0x140221370]
xor edx, edx
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.KERNEL32.dll_HeapFree]
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1401f10d0]
mov edx, 0x23
call fcn.14016f3d0
ud2
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1401f1110]
mov edx, 0x25
call fcn.14016f3d0
ud2
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x68], rax
lea rax, [fcn.14005a1b0]
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x80], rax
lea rax, str.current:___sub:__
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 2
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 2
lea rdx, [0x1401f1158]
jmp 0x1400bea56
lea rax, str.waker_missing
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x30], 0
lea rax, method..virtual_32
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0
lea rdx, str.C:UsersUser.cargo_registry_srcgithub.com_1ecc6299db9ec823_tokio_1.32.0_src_runtime_taskcore.rs
lea rcx, [rsp + 0x30]
call fcn.14016f2f0
ud2