Function at 0x140078380
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
sub rsp, 0x10
movzx edx, byte [rcx + 0x91]
mov r10, rcx
movzx esi, byte [rcx + 0x92]
movzx eax, dl
and al, 0xc
neg al
movzx eax, dl
sbb r9b, r9b
sar al, 7
and al, 0x44
and r9b, 4
or r9b, al
mov eax, dword [rcx + 0x3c4]
neg eax
movzx eax, byte [r10 + 0x380]
sbb cl, cl
and al, 1
and cl, 0x25
shl al, 4
or r9b, cl
and dl, 3
or r9b, al
or r9b, dl
cmp sil, r9b
je 0x14007873d
mov qword [rsp + 0x20], rbx
lea rdx, [r10 + 0xf80]
mov qword [rsp + 0x28], rbp
movzx eax, r9b
mov qword [rsp + 0x30], rdi
and al, 0x30
mov qword [rsp + 8], r14
mov qword [rsp], r15
lea r15, [0x140002bfc]
mov byte [r10 + 0x92], r9b
cmp al, 0x10
jne 0x140078439
lea rcx, [0x1400029a6]
mov eax, 0x1b6c
lea r8, [0x140002a49]
lea r11, [0x14000252b]
lea rbx, [0x140002aac]
jmp 0x14007845a
mov rcx, qword [rdx + 0x750]
lea r11, [0x14000253e]
mov r8, qword [rdx + 0x768]
mov eax, 0x1b7f
mov rbx, qword [rdx + 0x780]
lea r14, section..text
mov qword [rdx + 0x748], rcx
lea rbp, [rax + r14]
mov qword [rdx + 0x760], r8
movzx eax, r9b
mov qword [rdx + 0x700], r11
movzx edi, r9b
mov qword [rdx + 0x778], rbx
and al, 4
xor dil, sil
test dil, 0x64
je 0x1400785be
test al, al
jne 0x140078554
mov rcx, rdx
lea rax, [rdx + 0x4d0]
mov r8d, 5
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub r8, 1
jne 0x1400784b0
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
mov rax, qword [rax + 0x40]
movups xmmword [rcx + 0x20], xmm0
movups xmmword [rcx + 0x30], xmm1
mov qword [rcx + 0x40], rax
test r9b, 2
je 0x140078620
lea rax, [0x140004a37]
mov qword [rdx + 0x248], rax
mov qword [rdx + 0x250], rax
mov qword [rdx + 0x258], rax
jmp 0x140078619
test r9b, 0x40
je 0x140078563
lea rcx, [0x140004bd8]
jmp 0x140078579
test r9b, 0x20
lea rcx, [0x140004a44]
lea rax, [0x140004a1c]
cmovne rcx, rax
mov rax, rdx
mov r8d, listen
nop dword [rax]
nop word [rax + rax]
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
lea rax, [rax + 0x40]
mov qword [rax - 0x28], rcx
mov qword [rax - 0x20], rcx
mov qword [rax - 0x18], rcx
mov qword [rax - 0x10], rcx
mov qword [rax - 8], rcx
sub r8, 1
jne 0x140078590
mov qword [rax], rcx
jmp 0x140078620
test al, al
jne 0x140078620
mov qword [rdx + 0x278], rcx
mov qword [rdx + 0x290], r8
mov qword [rdx + 0x230], r11
mov qword [rdx + 0x2a8], rbx
test r9b, 2
jne 0x140078533
mov rax, qword [rdx + 0x718]
mov qword [rdx + 0x248], rax
mov rax, qword [rdx + 0x720]
mov qword [rdx + 0x250], rax
mov rax, qword [rdx + 0x728]
mov qword [rdx + 0x258], rax
mov rax, qword [rdx + 0x730]
mov qword [rdx + 0x260], rax
mov rbx, qword [rsp + 0x20]
test dil, 1
mov rdi, qword [rsp + 0x30]
je 0x1400786ae
lea rax, [rdx + 0x2c8]
test r9b, 1
jne 0x14007866b
lea r8, [0x140110782]
mov r11d, 0x41
nop
movzx ecx, word [r8]
lea rax, [rax + 8]
add rcx, r14
lea r8, [r8 + 2]
mov qword [rax - 8], rcx
sub r11, 1
jne 0x140078650
jmp 0x1400786b4
lea rdx, [0x140004ada]
mov ecx, 8
nop word [rax + rax]
mov qword [rax], rdx
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rdx
lea rax, [rax + 0x40]
mov qword [rax - 0x28], rdx
mov qword [rax - 0x20], rdx
mov qword [rax - 0x18], rdx
mov qword [rax - 0x10], rdx
mov qword [rax - 8], rdx
sub rcx, 1
jne 0x140078680
mov qword [rax], rdx
jmp 0x1400786c2
test r9b, 1
jne 0x1400786c2
mov qword [rdx + 0x2c8], rbp
mov qword [rdx + 0x2e0], r15
mov r15, qword [rsp]
mov r14, qword [rsp + 8]
mov rbp, qword [rsp + 0x28]
test r9b, 0x10
je 0x14007873d
test sil, 0x10
jne 0x14007873d
movzx eax, word [r10 + 0x950]
add ax, ax
dec ax
movzx ecx, ax
mov eax, ecx
shl ecx, 0x10
or ecx, eax
movd xmm0, ecx
pshufd xmm0, xmm0, 0
movups xmmword [r10 + 0xf00], xmm0
movups xmmword [r10 + 0xf10], xmm0
movups xmmword [r10 + 0xf20], xmm0
movups xmmword [r10 + 0xf30], xmm0
movups xmmword [r10 + 0xf40], xmm0
movups xmmword [r10 + 0xf50], xmm0
movups xmmword [r10 + 0xf60], xmm0
movups xmmword [r10 + 0xf70], xmm0
add rsp, 0x10
pop rsi
ret