Function at 0x1400c4140
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 0x1400c4160
test al, 1
je 0x1400c4352
test al, 2
jne 0x1400c436c
test al, 8
jne 0x1400c4299
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 0x1400c41da
test eax, eax
jne 0x1400c4213
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 0x1400c4215
xor ebx, ebx
lea rcx, [rsi + 0x30]
call fcn.1400c4070
mov qword [rsi + 0x30], 6
mov eax, dword [0x140221400]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0xe0]
cmp eax, 1
je 0x1400c4276
test eax, eax
jne 0x1400c42b7
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 0x1400c42b7
test al, 0x10
je 0x1400c42b7
mov rax, qword [rsi + 0x208]
test rax, rax
je 0x1400c43ed
mov rcx, qword [rsi + 0x200]
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 0x1400c4386
jne 0x1400c4344
mov rax, qword [rsi + 0x20]
lock dec qword [rax]
jne 0x1400c4305
mov rcx, qword [rsi + 0x20]
call fcn.1400bea70
lea rcx, [rsi + 0x30]
call fcn.1400c4070
mov rax, qword [rsi + 0x208]
test rax, rax
je 0x1400c4324
mov rcx, qword [rsi + 0x200]
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 0x1400c4427
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