Function at 0x1800a99c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub r8, rax
mov eax, dword [r8 - 4]
clc
shr eax, cl
rcl ecx, 0x1b
cmp dword [rdx + 8], 0
not cl
bswap cx
movsx rcx, bp
mov qword [r9 + 8], r8
mov dword [r9 + 0x20], eax
bswap eax
lea rax, [r8 + 4]
movsxd rcx, r15d
movzx ecx, cx
cmovp cx, r11w
mov ecx, dword [r8]
mov qword [r9 + 8], rax
jmp 0x1800a13e0
shr eax, cl
cmc
mov dword [r9 + 0x18], eax
inc rcx
movsxd rcx, ecx
cmc
movzx ecx, byte [r8]
cbw
inc ax
test r11b, 2
and ecx, 0xf
movzx eax, si
rol ah, 0x9a
movsx rax, byte [rcx + r10 + 0x7d8b0]
mov cl, byte [rcx + r10 + 0x7d8c0]
test r10b, 0xc2
cmp r13b, bpl
sub r8, rax
mov eax, dword [r8 - 4]
stc
mov qword [r9 + 8], r8
cmc
test cx, 0x32b2
cmp r9b, cl
shr eax, cl
bts ecx, esi
mov dword [r9 + 0x1c], eax
movzx ecx, byte [r8]
cdqe
shr ax, 0xb3
sbb ax, 0x109d
and ecx, 0xf
inc ax
movsx rax, byte [rcx + r10 + 0x7d8b0]
cmp bp, cx
mov cl, byte [rcx + r10 + 0x7d8c0]
test r14, 0x63927b1d
jmp 0x18009ca90
mov dword [r9 + 0x24], ecx
je 0x1800a6316
mov r8d, dword [rdx + 8]
shl ch, cl
mov rdx, qword [r9 + 8]
movzx ecx, byte [rdx]
movsx ax, r12b
and ecx, 0xf
sar ax, cl
movsx rax, byte [rcx + r10 + 0x7d8b0]
cmc
mov cl, byte [rcx + r10 + 0x7d8c0]
cmc
sub rdx, rax
or al, sil
sal rax, cl
mov eax, dword [rdx - 4]
stc
test bp, bx
mov qword [r9 + 8], rdx
test ax, r14w
shr eax, cl
setp ch
rcl rcx, cl
clc
mov dword [r9 + 0x18], eax
cmc
rol cl, 0x94
bt cx, r9w
movzx ecx, byte [rdx]
and ecx, 0xf
dec al
movsxd rax, esp
movsx rax, byte [rcx + r10 + 0x7d8b0]
cmp r15b, r9b
cmc
mov cl, byte [rcx + r10 + 0x7d8c0]
test bp, ax
sub rdx, rax
mov eax, dword [rdx - 4]
mov qword [r9 + 8], rdx
shr eax, cl
bt rcx, 0xb9
rcr ch, 5
shl ecx, 0x49
mov dword [r9 + 0x1c], eax
sbb eax, 0x200e15e3
mov eax, r11d
movzx ecx, byte [rdx]
sal ah, 0xba
bt ax, 0xba
and ecx, 0xf
ror rax, cl
bsf ax, r13w
rcr ah, 0xf4
movsx rax, byte [rcx + r10 + 0x7d8b0]
test r12w, bp
cmp dl, dil
test ch, 0x1a
mov cl, byte [rcx + r10 + 0x7d8c0]
jmp 0x1800a302f
mov cl, byte [rcx + r10 + 0x7d8c0]
test rbp, 0x25a34394
sub r8, rax
test r10b, cl
mov eax, dword [r8 - 4]
clc
cmc
mov qword [r9 + 8], r8
jmp 0x18009e6c4
sub rdx, rax
shr rax, cl
mov eax, dword [rdx - 4]
mov qword [r9 + 8], rdx
test bp, 0x113
shr eax, cl
shr ch, 0x3c
and rcx, rsi
mov dword [r9 + 0x20], eax
mov eax, dword [rdx]
sar cx, cl
add rdx, 4
not ch
sal ch, 0x3a
movzx ecx, cx
mov dword [r9 + 0x24], eax
movsx ax, spl
sub rcx, rbp
not al
mov qword [r9 + 8], rdx
rol al, cl
movzx ecx, byte [rdx]
and ecx, 0xf
movsxd rax, edi
movsx rax, byte [rcx + r10 + 0x7d8b0]
mov cl, byte [rcx + r10 + 0x7d8c0]
sub rdx, rax
and eax, 0x3659195a
sal ax, 0xfd
mov eax, dword [rdx - 4]
test r10b, 0x6c
shr eax, cl
movzx rcx, ax
mov cl, r11b
rcl ch, 0xe9
mov qword [r9 + 8], rdx
cmp r15w, 0x6334
mov dword [r9 + 0x18], eax
xor cl, r15b
stc
movzx ecx, byte [rdx]
ror eax, cl
stc
and ecx, 0xf
movsx rax, byte [rcx + r10 + 0x7d8b0]
clc
mov cl, byte [rcx + r10 + 0x7d8c0]
cmc
test cx, r12w
sub rdx, rax
mov eax, dword [rdx - 4]
test r8w, r11w
shr eax, cl
rol rcx, 0x24
mov qword [r9 + 8], rdx
or ch, 0x4e
movzx cx, bh
mov dword [r9 + 0x1c], eax
shr ch, cl
neg al
cmp r15b, bpl
movzx ecx, byte [rdx]
sar eax, 0xd7
jmp 0x1800ab019
mov dword [r9 + 0x24], ecx
cmp r13d, r13d
sub r8, 1
jmp 0x1800a6310
jne 0x1800a13f0
ret
mov r8, qword [rcx + 0x10]
lea r10, [0x180000000]
mov qword [rcx + 8], r8
rcl r9b, 0x7b
mov r9, rcx
bt cx, r14w
btc rax, rdx
bts rcx, r13
movzx ecx, byte [r8]
and ecx, 0xf
test r13w, r9w
movsx rax, byte [rcx + r10 + 0x7d8b0]
jmp 0x1800a1e17
and ecx, 0xf
stc
bsf rax, r10
movsx rax, byte [rcx + r10 + 0x7d8b0]
cmc
test r15b, 0xf7
mov cl, byte [rcx + r10 + 0x7d8c0]
cmp r12w, 0x352c
test r11b, 0x70
sub rdx, rax
mov eax, dword [rdx - 4]
shr eax, cl
cmp bpl, 0x58
sbb cl, r15b
mov dword [r9 + 0x20], eax
bswap ecx
movsx ax, r15b
bsr cx, dx
lea rax, [rdx + 4]
mov qword [r9 + 8], rdx
not ch
mov ecx, dword [rdx]
test rdi, r9
cmp si, ax
clc
mov qword [r9 + 8], rax
jmp 0x1800a5b64