Function at 0x140170500
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jne 0x1401552eb
ret
je 0x14011d971
mov r10d, dword [rdx + 8]
sal dx, 0xbb
movzx ecx, byte [r8]
and ecx, 0xf
movsx rax, byte [rcx + r11 + 0xc1a30]
mov cl, byte [rcx + r11 + 0xc1a40]
bsr dx, r9w
cmp r10b, spl
cmc
sub r8, rax
ror edx, 0x44
or dl, 0x40
mov eax, dword [r8 - 4]
ror rdx, 0xa3
mov qword [r9 + 8], r8
movzx dx, bpl
adc dl, 0x47
movsx rdx, sp
shr eax, cl
xchg rdx, rcx
mov dword [r9 + 0x18], eax
dec ch
movzx ecx, byte [r8]
sub dh, 0x4e
and ecx, 0xf
cmovb ax, si
bsf ax, bx
movsx rax, byte [rcx + r11 + 0xc1a30]
mov cl, byte [rcx + r11 + 0xc1a40]
sub r8, rax
shld edx, esi, 0x75
cdqe
cwde
mov eax, dword [r8 - 4]
sal dx, cl
xchg dh, dh
bt edx, r15d
mov qword [r9 + 8], r8
shr eax, cl
mov dword [r9 + 0x1c], eax
setl dh
movzx ecx, byte [r8]
sbb dl, r8b
cmc
add al, 0x8c
and ecx, 0xf
movsx rax, byte [rcx + r11 + 0xc1a30]
mov dh, 0x49
mov cl, byte [rcx + r11 + 0xc1a40]
not dh
rol dx, 5
sub r8, rax
mov eax, dword [r8 - 4]
not dx
add dl, 0xa
setbe dl
lea rdx, [r8 + 4]
test r14b, 0x9e
test r11b, cl
mov qword [r9 + 8], r8
shr eax, cl
cmc
mov dword [r9 + 0x20], eax
mov al, r10b
bsr ax, bp
shr cl, 0x1f
mov eax, dword [r8]
mov cx, 0x60b
mov qword [r9 + 8], rdx
mov dword [r9 + 0x24], eax
shl cx, 0xc
movzx ecx, byte [rdx]
and ecx, 0xf
adc r8b, 0x52
movsx rax, byte [rcx + r11 + 0xc1a30]
sar r8b, 0x19
mov cl, byte [rcx + r11 + 0xc1a40]
sar r8b, cl
sub rdx, rax
bt r8, 0xfa
shl r8b, 0x1c
test cx, ax
mov eax, dword [rdx - 4]
shr eax, cl
mov qword [r9 + 8], rdx
mov r8w, r12w
mov dword [r9 + 0x18], eax
movzx ecx, byte [rdx]
rol r8w, 0x3b
rcr rax, 0xd6
shld r8w, r11w, 0xac
and ecx, 0xf
cmovae r8w, cx
jmp 0x14023ae30
mov r8, qword [rcx + 0x10]
sub r11d, ebx
cmovbe ax, r12w
lea r11, [0x140000000]
mov qword [rcx + 8], r8
xchg r9b, al
clc
mov r9, rcx
movzx ecx, byte [r8]
and ecx, 0xf
btc ax, 0x32
movsx rax, byte [rcx + r11 + 0xc1a30]
stc
cmc
mov cl, byte [rcx + r11 + 0xc1a40]
test r11, rax
cmc
cmp r13, rsp
sub r8, rax
btc eax, r11d
movzx rax, bx
clc
mov eax, dword [r8 - 4]
cmp esi, 0x16da3655
shr eax, cl
neg ch
sbb cl, r10b
mov qword [r9 + 8], r8
mov rcx, 0x75f51265
mov dword [r9 + 0x18], eax
bts ax, si
test r10w, 0x10dd
movzx ecx, byte [r8]
and ecx, 0xf
movzx rax, r12w
movsx rax, byte [rcx + r11 + 0xc1a30]
mov cl, byte [rcx + r11 + 0xc1a40]
test cl, bl
cmp r15w, r11w
sub r8, rax
mov eax, dword [r8 - 4]
cmp r14, r11
test sil, 0xfc
mov qword [r9 + 8], r8
shr eax, cl
shl ch, 0x3b
sub ch, 0xd9
mov dword [r9 + 0x1c], eax
movzx ecx, byte [r8]
and ax, di
inc al
and ecx, 0xf
rcr ah, cl
movsx rax, byte [rcx + r11 + 0xc1a30]
clc
cmp r10b, 0x6e
mov cl, byte [rcx + r11 + 0xc1a40]
sub r8, rax
xadd al, ah
rcl ax, 0xf
mov eax, dword [r8 - 4]
jmp 0x1401fb575
mov qword [r9 + 8], r8
cmp r11b, 0x6d
shr eax, cl
cmc
mov dword [r9 + 0x20], eax
mov eax, dword [r8]
add r8, 4
cmc
cmp r9b, r9b
cmp dword [rdx + 8], 0
mov qword [r9 + 8], r8
mov dword [r9 + 0x24], eax
jmp 0x1401552dd
mov qword [r9 + 8], r8
clc
mov dword [r9 + 0x24], eax
sub r10, 1
jmp 0x14011d96b
movsx rax, byte [rcx + r11 + 0xc1a30]
mov r8b, r8b
bt r8, 0x5f
mov cl, byte [rcx + r11 + 0xc1a40]
xor r8b, dil
xadd r8w, r8w
stc
sub rdx, rax
bts r8w, bp
movzx ax, dil
mov eax, dword [rdx - 4]
xadd r8, r8
sal r8w, cl
rcr r8b, cl
shr eax, cl
jmp 0x1402633e1
mov qword [r9 + 8], rdx
mov dword [r9 + 0x1c], eax
rol r8b, 0x22
movzx ecx, byte [rdx]
sar r8b, 0xfa
bswap ax
clc
and ecx, 0xf
shl ah, cl
cmp dil, r14b
movsx rax, byte [rcx + r11 + 0xc1a30]
sbb r8b, 0x10
sal r8b, cl
movsx r8, di
mov cl, byte [rcx + r11 + 0xc1a40]
xchg r8d, r8d
shl r8b, 7
sub rdx, rax
mov eax, dword [rdx - 4]
ror r8d, 0xf6
lea r8, [rdx + 4]
shr eax, cl
stc
cmp r13b, dil
mov qword [r9 + 8], rdx
cmp cx, sp
mov dword [r9 + 0x20], eax
bt rax, rcx
mov eax, dword [rdx]
test sil, spl
jmp 0x1402304c0