Function at 0x1406b7be0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x20], r9d
sub ax, di
clc
movsx ax, bh
mov dword [rsp + 0x18], r8d
btr ax, 0x81
sar ax, 0x25
btc ax, 0x18
mov qword [rsp + 0x10], rdx
sal ah, cl
sal eax, 0xa1
setl al
mov qword [rsp + 8], rcx
rcr rax, 8
dec ah
lahf
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
inc ch
mov qword [rsp + 0x18], rax
cmp r10w, 0x5da5
rol rax, cl
mov eax, dword [rsp + 0x48]
sal rcx, cl
sub cl, r12b
mov ecx, dword [rsp + 0x40]
cmc
test r9b, spl
add ecx, eax
sub rax, rax
mov eax, ecx
cmc
mov dword [rsp + 0x10], eax
sub eax, eax
test r14b, 0xb9
clc
test eax, eax
jmp 0x1406b7c5e
jne 0x1406b7c50
xor eax, eax
jmp 0x1406b7c6e
test eax, eax
jmp 0x1406b7c75
jne 0x1406b7c64
sub eax, eax
test r10w, 0x8a94
clc
test eax, eax
jmp 0x1406b7c8b
jne 0x1406b7c7b
mov dword [rsp + 8], 0
or ax, 0xecb6
or eax, r14d
jmp 0x1406b7ca5
mov dword [rsp + 4], 0
sar rax, 0x91
and ah, bh
bt ax, r14w
mov dword [rsp], 0
movsxd rax, r15d
mov rax, qword [rsp + 0x18]
test rax, 0xffffffffb485618a
jmp 0x1406b7cd2
movzx eax, word [rax]
test si, ax
cmp r13w, cx
clc
cmp eax, dword [rsp + 0x10]
jmp 0x1406b7ce6
jge 0x1406b7f26
mov rax, qword [rsp + 0x18]
clc
cmp sil, 0x18
movzx eax, word [rax + 2]
cmc
jmp 0x1406b7d00
cmp eax, dword [rsp + 8]
jmp 0x1406b7d09
jle 0x1406b7e0e
mov rax, qword [rsp + 0x18]
bsr ecx, r10d
movzx eax, word [rax + 2]
stc
sub eax, dword [rsp + 8]
bt cx, bx
neg ch
mov ecx, dword [rsp]
imul ecx, eax
xadd ax, ax
mov eax, ecx
mov ecx, dword [rsp + 4]
test ax, 0xdb2d
cmp r12d, 0x121d0f3d
add ecx, eax
shr eax, cl
xadd ah, al
rcr ah, cl
mov eax, ecx
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0x18]
movzx eax, word [rax + 2]
mov dword [rsp + 8], eax
mov rax, qword [rsp + 0x18]
movzx eax, word [rax]
test r14d, esi
cmc
cmp bpl, 0xb5
cmp eax, dword [rsp + 0x40]
jmp 0x1406b7d77
jge 0x1406b7db3
mov rax, qword [rsp + 0x18]
cmc
rcr cl, 0x1e
mov rax, qword [rax + 8]
movzx eax, word [rax]
sub eax, dword [rsp + 0x40]
mov ecx, dword [rsp]
cmp eax, 0x652f519a
stc
add ecx, eax
setnp al
mov eax, ecx
jmp 0x1406b7da6
mov dword [rsp], eax
jmp 0x1406b7dae
jmp 0x1406b7e09
mov rax, qword [rsp + 0x18]
clc
and rcx, r10
sal cl, cl
mov rax, qword [rax + 8]
test r8w, 0x2e90
adc cl, cl
inc cl
movzx eax, word [rax]
or cl, 0x1b
ror ch, cl
mov rcx, qword [rsp + 0x18]
clc
cmp rax, 0x58a30600
movzx ecx, word [rcx]
stc
cmp sil, 0x16
sub eax, ecx
sbb cl, sil
mov ecx, dword [rsp]
test r13b, 0x9b
add ecx, eax
sets ah
mov eax, ecx
jmp 0x1406b7e01
mov dword [rsp], eax
jmp 0x1406b7e09
jmp 0x1406b7f0e
mov rax, qword [rsp + 0x18]
or ch, 0x8a
mov rax, qword [rax + 8]
movsxd rcx, esp
setno cl
or ch, 0x2f
movzx eax, word [rax]
movsx ecx, r10w
mov rcx, qword [rsp + 0x18]
jmp 0x1406b7e34
movzx ecx, word [rcx]
test bpl, 0x82
sub eax, ecx
xadd cl, cl
movsx rcx, di
and cl, 0x39
mov dword [rsp + 0xc], eax
test al, 0x9d
inc cx
cmc
mov eax, dword [rsp]
sub ch, 0xf
mov ecx, dword [rsp + 0xc]
clc
cmc
add ecx, eax
mov eax, ecx
cmp eax, dword [rsp + 0x48]
jle 0x1406b7e87
mov eax, dword [rsp]
bt rcx, rax
xchg cx, cx
mov ecx, dword [rsp + 0x48]
test r10, r11
sub ecx, eax
mov eax, ecx
rcl ch, 3
mov dword [rsp + 0xc], eax
mov rax, qword [rsp + 0x18]
movzx eax, word [rax + 2]
cmp r13w, r15w
movsx rcx, bp
mov ecx, dword [rsp + 8]
test r9w, r14w
sub ecx, eax
sar ah, 0xbd
cmovno ax, ax
test r13, 0xdb4a01a
mov eax, ecx
bswap cx
shl cl, 0x93
rol cx, 7
mov ecx, dword [rsp + 0xc]
imul ecx, eax
bsf rax, r15
shl al, cl
btr ax, r10w
mov eax, ecx
xor cl, ah
cmp r15b, r9b
mov ecx, dword [rsp + 4]
cmp r14w, 0x46a3
cmp r11d, esp
add ecx, eax
mov eax, ecx
stc
mov dword [rsp + 4], eax
mov eax, dword [rsp + 0xc]
mov ecx, dword [rsp]
add ecx, eax
cmovl ax, dx
cdqe
mov eax, ecx
jmp 0x1406b7f01
mov dword [rsp], eax
movzx ax, dil
cbw
bswap ax
mov rax, qword [rsp + 0x18]
mov rax, qword [rax + 8]
jmp 0x1406b7f1c
mov qword [rsp + 0x18], rax
jmp 0x1406b7cc2
mov rax, qword [rsp + 0x50]
movzx cx, r14b
cmp ecx, edi
mov ecx, dword [rsp + 4]
mov dword [rax], ecx
mov eax, dword [rsp + 8]
add rsp, 0x28
jmp 0x1406b7f45
ret