Function at 0x140677d6e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], r8
cmp r12b, 0xd
stc
mov qword [rsp + 0x10], rdx
cmc
mov qword [rsp + 8], rcx
cmc
jmp 0x140677d89
push rsi
push rdi
cmc
test rbx, rdx
sub rsp, 0x78
test r15, 0xffffffffcd86c115
cmp qword [rsp + 0xa0], 0
je 0x140677dda
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xa0]
test r9, 0x67ba30b0
cmc
sub rcx, rax
mov rax, rcx
jmp 0x140677dcc
mov dword [rsp + 0x2c], eax
jmp 0x140677dd5
jmp 0x140677e24
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x48], rax
bswap ax
movsx eax, cx
mov qword [rsp + 0x40], 0xffffffffffffffff
inc qword [rsp + 0x40]
bt rax, 0xaa
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
test dh, 0xb8
cmp byte [rax + rcx], 0
jne 0x140677df6
mov rax, qword [rsp + 0x40]
stc
clc
mov dword [rsp + 0x2c], eax
adc al, 0xb
mov eax, dword [rsp + 0x2c]
test al, 0xb7
mov dword [rsp + 0x24], eax
or rax, 0x291f1083
mov rax, qword [rsp + 0x90]
cmp dword [rax], 0
jmp 0x140677e45
je 0x140677e68
mov rax, qword [rsp + 0x90]
mov eax, dword [rax]
jmp 0x140677e5a
mov dword [rsp + 0x30], eax
jmp 0x140677e63
jmp 0x140677e76
mov dword [rsp + 0x30], 1
adc al, 0xa6
bt cx, di
mov eax, dword [rsp + 0x30]
shrd cx, si, 0x99
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
cmp r11d, r11d
clc
stc
add ecx, eax
btr ax, r8w
mov eax, ecx
bsr rcx, rbx
movzx ecx, r8w
bts cx, sp
mov dword [rsp + 0x28], eax
rcr ah, cl
adc ch, 0x85
inc ch
mov eax, dword [rsp + 0x24]
cmp r13b, 0x29
mov ecx, dword [rsp + 0x20]
cmp r8, 0x290d9537
add ecx, eax
mov eax, ecx
sar rcx, cl
xor cx, r9w
ror cl, 0x1f
mov rcx, qword [rsp + 0x90]
cmp r10b, r13b
cmp eax, dword [rcx + 4]
jmp 0x140677ee4
jl 0x140677f73
mov rax, qword [rsp + 0x90]
cmp ah, 0xf
mov eax, dword [rax + 4]
clc
shl eax, 1
clc
mov dword [rsp + 0x34], eax
sal al, 0xb4
and ah, 0x3a
mov rax, qword [rsp + 0x90]
cmc
mov qword [rsp + 0x50], rax
rcr ah, 0x23
mov eax, dword [rsp + 0x34]
cmp r8w, r15w
cmp dword [rsp + 0x28], eax
jmp 0x140677f28
jle 0x140677f45
mov eax, dword [rsp + 0x28]
jmp 0x140677f37
mov dword [rsp + 0x38], eax
jmp 0x140677f40
jmp 0x140677f5d
mov eax, dword [rsp + 0x34]
cdq
sete dh
mov dword [rsp + 0x38], eax
movsx dx, r8b
movzx dx, r13b
cqo
mov edx, dword [rsp + 0x38]
setge ch
mov rcx, qword [rsp + 0x50]
jmp 0x140677f6e
call fcn.1406a96ba
mov rax, qword [rsp + 0x90]
bswap cx
mov qword [rsp + 0x58], rax
mov ecx, 0xd81157a9
movzx cx, spl
movzx rcx, r15w
mov edx, dword [rsp + 0x28]
movzx cx, r15b
movsx ecx, dx
mov rcx, qword [rsp + 0x58]
jmp 0x140677fa7
call fcn.1406a97d6
mov rax, qword [rsp + 0x90]
setns ch
movsxd rdx, ebx
mov qword [rsp + 0x60], rax
movsxd rax, dword [rsp + 0x24]
cqo
mov ecx, dword [rsp + 0x20]
movsx di, r14b
movzx rsi, r11w
cwd
dec ecx
add dl, dh
movsxd rcx, ecx
btr dx, r14w
rcr dil, 0xb7
movsx dx, r13b
mov rdx, qword [rsp + 0x60]
movzx esi, r9w
rcl rdi, cl
neg rsi
mov rdx, qword [rdx + 8]
add rdx, rcx
seta ch
movsx rdi, r8w
xchg dil, dil
mov rcx, rdx
jmp 0x140678012
mov rdi, rcx
movsxd rcx, r13d
movsx rsi, di
mov rsi, qword [rsp + 0x98]
mov cx, 0x8398
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
sbb ax, 0xe032
cmc
movsx rcx, di
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x20]
shl ch, cl
setae dil
mov ecx, dword [rsp + 0x24]
lea eax, [rax + rcx - 1]
movzx di, al
cdqe
bts si, r11w
test r11b, 0x1b
mov rcx, qword [rsp + 0x68]
mov rcx, qword [rcx + 8]
sal sil, cl
mov byte [rcx + rax], 0
clc
add rsp, 0x78
mov si, 0x59bd
pop rdi
bswap si
jmp 0x140678086
pop rsi
jmp 0x14067808c
ret