Function at 0x140035450
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rsi
sub rsp, 0x20
lea rbx, str.Thread
mov rcx, rbx
lea r8, [0x1400f57d8]
lea rdx, fcn.140030c50
call fcn.14003a630
mov esi, 0x58
lea rcx, [0x1400f9db0]
mov r8d, esi
xor edx, edx
call fcn.1400218f0
mov r8d, esi
lea rcx, [0x1400f9e10]
xor edx, edx
call fcn.1400218f0
mov r8d, esi
lea rcx, [0x1400f9e70]
xor edx, edx
call fcn.1400218f0
lea rax, str.PB_LIBRARY_Thread
mov dword [0x1400f9db0], esi
lea rcx, str.Kernel32.dll
mov qword [0x1400f9db8], rax
mov dword [0x1400f9db4], 1
mov qword [0x1400f9dc0], rbx
mov qword [0x1400f9dc8], rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.GetThreadTimes
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.Thread_t100_tPriority_t80_tStatus_t80
mov dword [0x1400f9e10], esi
test rax, rax
mov qword [0x1400f9d90], rax
lea rax, [0x1400308fc]
mov dword [0x1400f9e14], 1
mov qword [0x1400f9dd8], rax
lea rcx, str.Thread_t100_tPriority_t80_tStatus_t80_tCreation_Time_t120_tUsed_CPUTime_t120
lea rax, [0x140030928]
mov dword [0x1400f9e70], esi
mov qword [0x1400f9de0], rax
cmove rcx, rdx
lea rax, str.PB_LIBRARY_ThreadMutex
mov qword [0x1400f9dd0], rcx
mov qword [0x1400f9e18], rax
lea rcx, [0x1400f9db0]
lea rax, str.Thread___Mutex_List
mov dword [0x1400f9e74], 1
mov qword [0x1400f9e20], rax
lea rax, str.Mutex
mov qword [0x1400f9e28], rax
lea rax, str.Mutex_t100_tStatus_t200
mov qword [0x1400f9e30], rax
lea rax, [0x14003045c]
mov qword [0x1400f9e38], rax
lea rax, [0x140030488]
mov qword [0x1400f9e40], rax
lea rax, str.PB_LIBRARY_ThreadSemaphore
mov qword [0x1400f9e78], rax
lea rax, str.Thread___Semaphore_List
mov qword [0x1400f9e80], rax
lea rax, str.Semaphore
mov qword [0x1400f9e88], rax
lea rax, str.Semaphore_t100_tCount_t200
mov qword [0x1400f9e90], rax
lea rax, [0x140030828]
mov qword [0x1400f9e98], rax
lea rax, [0x140030854]
mov qword [0x1400f9ea0], rax
call 0x140035450
lea rcx, [0x1400f9e10]
call 0x140035450
lea rcx, [0x1400f9e70]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rsi
jmp 0x140035450
movsxd rdx, dword [0x1400fa8a0]
lea r8, [0x14010f7a0]
mov qword [r8 + rdx*8], rcx
inc edx
cmp dword [0x1400f9fb8], 0
mov dword [0x1400fa8a0], edx
jne 0x140043970
ret
sub rsp, 0x48
mov rax, qword [0x1400f4d48]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov eax, dword [0x1400fa8a0]
mov dword [rsp + 0x20], 0x1d
mov dword [rsp + 0x28], eax
test eax, eax
jne 0x1400439e7
call fcn.140055b50
xor r11d, r11d
mov dword [rsp + 0x30], eax
lea rcx, [0x140110160]
mov dword [rsp + 0x24], r11d
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1400fa8b8]
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [rax + 0x18]
lea rcx, [0x140110160]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14005a2f0
add rsp, 0x48
ret
mov qword [rsp + 0x40], rbx
xor r11d, r11d
mov rbx, qword [0x1400ffca0]
mov r8, rbx
test eax, eax
jle 0x140043b30
lea r10, [0x14010f7a0]
nop dword [rax + rax]
mov rax, qword [r10]
mov rdx, r8
mov rcx, qword [rax + 8]
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140043a20
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp byte [r8 + rax + 1], 0
lea rax, [rax + 1]
jne 0x140043a40
lea r9, [rax + 1]
mov rax, qword [r10]
add r9, r8
mov rdx, r9
mov rcx, qword [rax + 0x10]
nop dword [rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140043a60
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp byte [r9 + rax + 1], 0
lea rax, [rax + 1]
jne 0x140043a80
mov rcx, qword [r10]
lea r8, [rax + 1]
add r8, r9
test byte [rcx + 4], 1
je 0x140043adf
mov rcx, qword [rcx + 0x20]
mov rdx, r8
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140043ab0
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [r8 + rax], 0
jne 0x140043ad0
add rax, r8
jmp 0x140043ae6
mov byte [r8], 0
mov rax, r8
mov rcx, qword [r10]
mov edx, dword [rcx + 4]
mov dword [rax + 1], edx
cmp dword [0x1400fa890], 0
je 0x140043b11
mov ecx, edx
mov byte [rax + 4], dl
movzx edx, byte [rax + 2]
shr ecx, 0x18
mov byte [rax + 1], cl
movzx ecx, byte [rax + 3]
mov byte [rax + 2], cl
mov byte [rax + 3], dl
inc r11d
lea r8, [rax + 5]
add r10, 8
cmp r11d, dword [0x1400fa8a0]
jl 0x140043a10
mov rbx, qword [0x1400ffca0]
sub r8d, ebx
mov dword [rsp + 0x24], r8d
call fcn.140055b50
lea rcx, [0x140110160]
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1400fa8b8]
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [rax + 0x18]
lea rcx, [0x140110160]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14005a2f0
add rsp, 0x48
ret