Function at 0x1401b7860
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x60
lea rbp, [rsp + 0x60]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rbx, qword [rcx]
test rbx, rbx
je 0x1401b7ab3
mov rsi, rdx
mov r14, rcx
mov eax, dword [0x140508b68]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0x168]
cmp eax, 1
je 0x1401b78d9
test eax, eax
jne 0x1401b7928
mov eax, dword [0x140508b68]
mov rcx, qword gs:[0x58]
mov rdi, qword [rcx + rax*8]
lea rcx, [rdi + 0x118]
lea rdx, [0x1401cca20]
call fcn.1402d49c0
mov byte [rdi + 0x168], 1
mov eax, dword [0x140508b68]
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx + rax*8]
movzx eax, byte [rcx + 0x164]
movzx ecx, byte [rcx + 0x165]
mov edx, ecx
test al, al
je 0x1401b790b
test cl, cl
je 0x1401b7a4a
lea edx, [rcx - 1]
mov r8d, dword [0x140508b68]
mov r9, qword gs:[0x58]
mov r8, qword [r9 + r8*8]
mov byte [r8 + 0x165], dl
jmp 0x1401b792c
xor eax, eax
xor ecx, ecx
mov byte [rbp - 0x40], al
mov byte [rbp - 0x3f], cl
mov rax, qword [rbx + 0x30]
test al, 2
jne 0x1401b7a5f
mov dil, 1
test al, 4
jne 0x1401b7a6b
test al, 1
je 0x1401b7992
mov rax, qword [rsi + 8]
cmp rax, qword [rbx + 0x28]
jne 0x1401b7960
mov rax, qword [rsi]
cmp rax, qword [rbx + 0x20]
je 0x1401b79c7
mov rax, qword [rbx + 0x30]
nop word cs:[rax + rax]
mov rcx, rax
and rcx, 0xfffffffffffffffe
lock cmpxchg qword [rbx + 0x30], rcx
jne 0x1401b7970
test al, 2
jne 0x1401b7a59
mov rax, qword [rbx + 0x20]
mov rcx, qword [rbx + 0x28]
call qword [rax + 0x18]
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
call qword [rax]
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x28], rdx
mov rax, qword [rbx + 0x30]
nop word [rax + rax]
mov rcx, rax
or rcx, 1
lock cmpxchg qword [rbx + 0x30], rcx
jne 0x1401b79b0
test al, 2
jne 0x1401b7a5f
mov dil, 2
cmp byte [rbp - 0x40], 0
je 0x1401b7a6b
movzx ebx, byte [rbp - 0x3f]
mov eax, dword [0x140508b68]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0x168]
cmp eax, 1
je 0x1401b7a28
test eax, eax
jne 0x1401b7a6b
mov eax, dword [0x140508b68]
mov rcx, qword gs:[0x58]
mov rsi, qword [rcx + rax*8]
lea rcx, [rsi + 0x118]
lea rdx, [0x1401cca20]
call fcn.1402d49c0
mov byte [rsi + 0x168], 1
mov eax, dword [0x140508b68]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov byte [rax + 0x164], 1
mov byte [rax + 0x165], bl
jmp 0x1401b7a6b
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
call qword [rax + 0x10]
mov dil, 2
jmp 0x1401b7a6b
lock or qword [rbx + 0x30], 1
movzx edi, byte [rbx + 0x38]
mov byte [rbx + 0x38], 0
xor dil, 1
cmp dil, 2
je 0x1401b7aa6
movzx eax, dil
test eax, eax
jne 0x1401b7aa3
mov rax, qword [r14]
test rax, rax
mov qword [rbp - 0x10], r14
je 0x1401b7a94
lock dec qword [rax]
jne 0x1401b7a94
mov rcx, qword [rbp - 0x10]
call fcn.1401c2b70
mov rax, qword [rbp - 0x10]
mov qword [rax], 0
xor edi, edi
jmp 0x1401b7aa6
mov dil, 1
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rax, [0x1403eeab8]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
lea rax, str.there_is_no_such_thing_as_a_release_load_
mov qword [rbp - 0x30], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
lea rdx, str.C:UsersTony_Stark.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.29.1_src_synconeshot.rscalled_after_complete
lea rcx, [rbp - 0x40]
call fcn.140364eb0
int3