Function at 0x1400789d5
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov dword [rsp + 0x74], r8d
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0x68], rcx
mov rax, qword [0x1401a1928]
mov ecx, dword [rax]
call fcn.14000a414
mov r8d, dword [rsp + 0x74]
mov rcx, rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x78], rcx
movabs rcx, 0x37a589bc148df606
movabs rdx, 0x37a589bc148df60e
xor rcx, rdx
cqo
idiv rcx
mov rdx, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
movabs rcx, 0xf946445095ccc26e
movabs rax, 0xf946445095ccc269
xor rcx, rax
xor eax, eax
cmp rdx, rcx
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x9c], r8d
jle 0x140078a9e
mov ecx, dword [rsp + 0x74]
mov rax, qword [rsp + 0x78]
cmp byte [rax + 0x60], 0
sete al
mov byte [rsp + 0x53], al
xor eax, eax
mov dword [rsp + 0x54], ecx
mov rcx, rax
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rax
jmp 0x140078ad2
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x90]
mov eax, dword [rsp + 0x9c]
cmp rcx, rdx
mov qword [rsp + 0x40], rcx
mov ecx, eax
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x4c], eax
jl 0x140078f47
jmp 0x14007905c
mov eax, dword [rsp + 0x74]
mov cl, byte [rsp + 0x53]
mov edx, dword [rsp + 0x54]
mov r8, qword [rsp + 0x58]
mov r9, qword [rsp + 0x60]
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x30], r8
mov dword [rsp + 0x3c], edx
test cl, 1
mov dword [rsp + 0x4c], eax
jne 0x140078b08
jmp 0x14007905c
mov r8, qword [rsp + 0x88]
mov rax, qword [rsp + 0x28]
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x68]
mov r11d, dword [rcx + rax]
movabs r10, 0xc27be033f2d4b149
movabs r9, 0xc27be033f2d4b14d
xor r10, r9
mov r9, rax
or r9, r10
movabs r10, 0xeb38eea2579fed38
movabs rsi, 0x14c7115da86012c7
xor r10, rsi
xor r9, r10
movabs rsi, 0x27c595b42fe65f51
movabs r10, 0xd83a6a4bd019a0ae
xor rsi, r10
mov r10, rax
xor r10, rsi
movabs rsi, 0x76f6bfb1e7604d0b
movabs rdi, 0x76f6bfb1e7604d0f
xor rsi, rdi
movabs rdi, 0x232c8c0c9bf72905
movabs rbx, 0xdcd373f36408d6fa
xor rdi, rbx
xor rsi, rdi
and r10, rsi
or r9, r10
movabs r10, 0xd8ad27d3981fbd21
movabs rsi, 0x2752d82c67e042de
xor r10, rsi
xor r9, r10
mov r9d, dword [rcx + r9]
mov ecx, 0xa6e050be
xor ecx, 0x591faf41
mov r10d, r11d
xor r10d, ecx
and r10d, 0xdff1722e
mov esi, 0xb2c1204c
xor esi, 0x6d305262
mov ecx, 0x31f8da7d
xor ecx, 0xce072582
xor esi, ecx
and r11d, esi
mov ecx, edx
xor ecx, 0xffffffff
mov edi, 0xf87366d3
xor edi, 0x278214fd
and ecx, edi
and edx, esi
or r10d, r11d
or ecx, edx
xor r10d, ecx
mov edx, 0x2b54df4f
xor edx, 0xd4ab20b0
mov ecx, r10d
xor ecx, edx
mov edx, 0x1c2ce457
xor edx, 0x1c2ce4a8
mov r11d, 0x6d16d206
xor r11d, 0x92e92df9
xor edx, r11d
or ecx, edx
mov r11d, 0x55bbcec5
xor r11d, 0xaa44313a
mov edx, r10d
xor edx, r11d
mov r11d, 0xffffffff
xor r11d, 0xff
or edx, r11d
and ecx, edx
xor ecx, 0xffffffff
mov ecx, ecx
mov edx, ecx
lea rcx, [0x1401af020]
mov esi, dword [rcx + rdx*4 + 0x1c00]
mov ecx, 0x1fed3a6b
xor ecx, 0x1fed3a63
mov edx, r10d
shr edx, cl
mov ecx, edx
mov edx, ecx
xor edx, 0xff
mov r11d, 0xa0e49fd3
xor r11d, 0x5f1b602c
xor edx, r11d
mov r11d, 0x73a6e987
xor r11d, 0x73a6e978
or ecx, r11d
and ecx, edx
mov ecx, ecx
mov edx, ecx
lea rcx, [0x1401af020]
xor esi, dword [rcx + rdx*4 + 0x1800]
mov ecx, 0x292b33e9
xor ecx, 0x292b33f9
mov edx, r10d
shr edx, cl
mov ecx, edx
xor ecx, 0xffffffff
mov r11d, 0x693d341a
xor r11d, 0x693d34e5
mov edi, 0xd8dc457a
xor edi, 0x2723ba85
xor r11d, edi
or ecx, r11d
mov r11d, 0xd3afde99
xor r11d, 0xd3afde66
and edx, r11d
xor edx, 0xffffffff
and ecx, edx
xor ecx, 0xffffffff
mov ecx, ecx
mov edx, ecx
lea rcx, [0x1401af020]
mov r11d, dword [rcx + rdx*4 + 0x1400]
mov edx, esi
xor edx, 0xffffffff
and edx, 0x9b9244d6
mov edi, 0x682f3bb5
xor edi, 0xf3bd7f63
mov ecx, 0xaff25aea
xor ecx, 0x500da515
xor edi, ecx
and esi, edi
mov ecx, r11d
xor ecx, 0xffffffff
and ecx, 0x9b9244d6
and r11d, edi
or edx, esi
or ecx, r11d
xor edx, ecx
mov ecx, 0xdcf47148
xor ecx, 0xdcf47150
shr r10d, cl
mov ecx, r10d
mov ecx, ecx
mov r10d, ecx
lea rcx, [0x1401af020]
xor edx, dword [rcx + r10*4 + 0x1000]
mov r10d, 0x7782cc8f
xor r10d, 0x7782cc70
mov ecx, r9d
and ecx, r10d
mov r10d, 0x4fd6f08c
xor r10d, 0xb0290f73
xor ecx, r10d
mov r10d, r9d
xor r10d, 0xffffffff
mov r11d, 0xffffffff
xor r11d, 0xff
or r10d, r11d
mov r11d, 0x286b0251
xor r11d, 0xd794fdae
xor ecx, r11d
mov r11d, 0x1394f826
xor r11d, 0xec6b07d9
xor r10d, r11d
or ecx, r10d
mov ecx, ecx
mov r10d, ecx
lea rcx, [0x1401af020]
mov r10d, dword [rcx + r10*4 + 0xc00]
mov ecx, 0x400c51c0
xor ecx, 0xbff3ae3f
mov r11d, edx
xor r11d, ecx
mov ecx, r10d
and ecx, r11d
xor r10d, 0xffffffff
and edx, r10d
or ecx, edx
mov dword [rsp + 0x24], ecx
mov ecx, 0xcc8427bf
xor ecx, 0xcc8427b7
mov edx, r9d
shr edx, cl
mov ecx, dword [rsp + 0x24]
and edx, 0xff
mov edx, edx
mov r10d, edx
lea rdx, [0x1401af020]
mov r10d, dword [rdx + r10*4 + 0x800]
mov edx, 0xc12ca1a9
xor edx, 0x3ed35e56
mov r11d, ecx
xor r11d, edx
mov edx, r10d
and edx, r11d
mov r11d, 0x50b47205
xor r11d, 0xaf4b8dfa
xor r10d, r11d
and ecx, r10d
or edx, ecx
mov ecx, r9d
shr ecx, 0x10
mov r11d, 0xd9fc6041
xor r11d, 0xd9fc6040
mov r10d, ecx
add r10d, r11d
xor ecx, 0xffffffff
or ecx, 0xff
add ecx, r10d
mov ecx, ecx
mov r10d, ecx
lea rcx, [0x1401af020]
xor edx, dword [rcx + r10*4 + 0x400]
mov ecx, 0x23849e19
xor ecx, 0x23849e01
shr r9d, cl
mov rcx, qword [rsp + 0x30]
mov r9d, r9d
mov r10d, r9d
lea r9, [0x1401af020]
mov r10d, dword [r9 + r10*4]
mov r9d, edx
and r9d, r10d
shl r9d, 1
add edx, r10d
sub edx, r9d
movabs r10, 0x677202e8667d247e
movabs r9, 0x677202e8667d2476
xor r10, r9
mov r9, rax
and r9, r10
shl r9, 1
xor rax, 8
add rax, r9
add rcx, 1
cmp rcx, r8
mov r8, rax
mov qword [rsp + 0x90], r8
mov r8d, edx
mov dword [rsp + 0x9c], r8d
mov dword [rsp + 0x54], edx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rax
je 0x140078a9e
jmp 0x140078ad2
mov r9d, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x80]
mov rax, qword [rsp + 0x68]
mov r8b, byte [rax + rcx]
mov r10b, r9b
mov al, r8b
xor al, 0xff
mov r11b, r8b
xor r11b, 0xff
or al, r11b
and al, r10b
mov r11b, 0x95
xor r11b, 0x6a
xor al, r11b
and r10b, r10b
xor r10b, 0xff
mov r11b, 0xe8
xor r11b, 0x17
xor r8b, r11b
xor r10b, 0xff
or r8b, r10b
and al, r8b
mov r8b, 0xf8
xor r8b, 7
xor al, r8b
movzx eax, al
mov r8d, eax
lea rax, [0x1401af020]
mov r8d, dword [rax + r8*4]
shr r9d, 8
mov eax, r8d
xor eax, 0xffffffff
mov r10d, r8d
xor r10d, 0xffffffff
and eax, r10d
mov r11d, 0xc487c724
xor r11d, 0x3b7838db
mov r10d, r9d
xor r10d, r11d
mov r11d, r9d
xor r11d, 0xffffffff
and r10d, r11d
or eax, r10d
mov r10d, 0xcd5f510d
xor r10d, 0x32a0aef2
xor eax, r10d
or r8d, r9d
xor r8d, 0xffffffff
mov r9d, 0x6b3b8575
xor r9d, 0x94c47a8a
xor eax, r9d
xor r8d, 0xffffffff
and eax, r8d
movabs r8, 0xa490a0be22da5eb1
movabs r9, 0xca5af050b900db32
xor r8, r9
sub rcx, r8
add rcx, 1
movabs r8, 0x6eca50ee9bda8583
add rcx, r8
cmp rcx, rdx
mov qword [rsp + 0x40], rcx
mov ecx, eax
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x4c], eax
jne 0x140078f47
mov eax, dword [rsp + 0x4c]
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret