Function at 0x14008bd00
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xcd8
mov rax, qword [0x14049f410]
xor rax, rsp
mov qword [rsp + 0xcc0], rax
mov ebp, dword [rsp + 0xd40]
mov rbx, r9
mov qword [rsp + 0x70], rdx
mov r11, r8
mov qword [rsp + 0xa0], rcx
mov r14, rdx
mov rax, rcx
test rcx, rcx
je 0x14008c445
mov r8d, dword [rcx + 4]
test r8d, r8d
je 0x14008c445
mov r10d, dword [rcx + 8]
test r10d, r10d
je 0x14008c445
mov ecx, dword [rcx]
test ecx, ecx
je 0x14008c445
cmp qword [rax + 0x18], 0
je 0x14008bd7c
cmp dword [rax + 0x10], 0
jne 0x14008bdab
cmp qword [rax + 0x28], 0
je 0x14008bd89
cmp dword [rax + 0x20], 0
jne 0x14008bdab
cmp qword [rax + 0x38], 0
je 0x14008bd96
cmp dword [rax + 0x30], 0
jne 0x14008bdab
cmp qword [rax + 0x48], 0
je 0x14008c445
cmp dword [rax + 0x40], 0
je 0x14008c445
test r14, r14
je 0x14008c445
mov r15d, dword [rdx]
test r15d, r15d
js 0x14008c445
mov edx, dword [rdx + 4]
test edx, edx
js 0x14008c445
mov r9d, dword [r14 + 8]
test r9d, r9d
jle 0x14008c445
mov edi, dword [r14 + 0xc]
mov dword [rsp + 0x20], edi
test edi, edi
jle 0x14008c445
lea eax, [r9 + r15]
cmp eax, r8d
jg 0x14008c445
lea eax, [rdi + rdx]
cmp eax, r10d
jg 0x14008c445
mov rsi, qword [rsp + 0xd38]
test rsi, rsi
je 0x14008c445
test r11, r11
je 0x14008c445
test rbx, rbx
je 0x14008c445
mov r10, qword [rsp + 0xd30]
test r10, r10
je 0x14008c445
mov qword [rsp + 0xd20], r12
mov qword [rsp + 0xcd0], r13
sub ecx, 0x20000001
je 0x14008be9e
cmp ecx, 1
je 0x14008be87
mov eax, 0xfffffffc
mov r12, qword [rsp + 0xd20]
mov r13, qword [rsp + 0xcd0]
mov rcx, qword [rsp + 0xcc0]
xor rcx, rsp
call fcn.1400fc4b0
add rsp, 0xcd8
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov edi, 1
mov qword [rsp + 0x28], 3
xor r13d, r13d
lea r12d, [rdi + 1]
jmp 0x14008beb3
xor edi, edi
mov qword [rsp + 0x28], 2
mov r13d, 1
lea r12d, [rdi + 3]
and r15d, 0xfffffffe
mov qword [rsp + 0x40], r13
and r9d, 0xfffffffe
mov dword [r14], r15d
xor r8d, r8d
mov dword [r14 + 8], r9d
sub r11, rbx
mov qword [rsp + 0x38], rdi
sub r10, rbx
lea rdx, [rbx + 0xff]
mov ecx, 0xff
movzx eax, byte [r11 + rdx]
lea rdx, [rdx - 1]
sub eax, ecx
mov dword [rsp + r8 + 0x4bc], eax
lea r8, [r8 - 4]
movzx eax, byte [rdx + 1]
sub eax, ecx
mov dword [rsp + r8 + 0x8c0], eax
movzx eax, byte [r10 + rdx + 1]
sub eax, ecx
mov dword [rsp + r8 + 0xcc0], eax
mov eax, ecx
dec ecx
test eax, eax
jne 0x14008bee1
mov r10, qword [rsp + 0xa0]
xor edx, edx
mov eax, dword [r10 + 4]
div ebp
mov ecx, eax
mov dword [rsp + 0x24], eax
mov ebx, eax
call fcn.14006a030
mov edx, eax
mov dword [rsp + 0x30], eax
mov ecx, edx
movsxd r11, r15d
mov eax, r9d
sar eax, cl
mov dword [rsp + 0x58], eax
cmp ebx, 1
jne 0x14008c0b0
mov edi, dword [r14 + 4]
sub r12, r13
mov edx, dword [r10 + 0x10]
mov eax, edx
imul eax, dword [r14 + 4]
sub qword [rsp + 0x38], r13
imul edi, ebp
sub ebp, r9d
mov qword [rsp + 0x78], r12
mov r12d, ebp
add rdi, r11
add rdi, rsi
movsxd rsi, eax
lea eax, [r15 + r15]
movsxd rcx, eax
lea eax, [r9 + r9]
sub edx, eax
add rsi, rcx
add rsi, qword [r10 + 0x18]
sub qword [rsp + 0x28], r13
mov r15d, edx
mov qword [rsp + 0x80], r15
nop word [rax + rax]
mov ebp, dword [r14 + 8]
lea rbx, [rsi + r13]
mov r13, qword [rsp + 0x78]
mov r14, qword [rsp + 0x38]
mov r15, qword [rsp + 0x28]
nop word [rax + rax]
movzx edx, byte [r14 + rbx]
mov r8d, 0xff
movzx r11d, byte [r15 + rbx]
movzx r9d, byte [rbx]
movzx r10d, byte [rbx + r13]
lea rbx, [rbx + 4]
mov ecx, dword [rsp + rdx*4 + 0xc0]
lea eax, [rdx + 0x32]
cmp eax, r8d
cmovb r8d, eax
movzx eax, byte [rdi]
imul r8d, eax
lea eax, [r11 + 0x32]
shr r8d, 8
imul ecx, r8d
sar ecx, 8
add cl, dl
mov byte [r14 + rbx - 4], cl
mov ecx, dword [rsp + r9*4 + 0x4c0]
imul ecx, r8d
sar ecx, 8
add cl, r9b
mov byte [rbx - 4], cl
mov ecx, dword [rsp + r10*4 + 0x8c0]
imul ecx, r8d
sar ecx, 8
add cl, r10b
mov byte [rbx + r13 - 4], cl
mov ecx, 0xff
cmp eax, ecx
cmovb ecx, eax
movzx eax, byte [rdi + 1]
imul ecx, eax
add rdi, 2
add rsi, 4
sub ebp, 2
shr ecx, 8
imul ecx, dword [rsp + r11*4 + 0xc0]
sar ecx, 8
add cl, r11b
mov byte [r15 + rbx - 4], cl
test ebp, ebp
jg 0x14008bfd0
mov eax, dword [rsp + 0x20]
add rdi, r12
add rsi, qword [rsp + 0x80]
dec eax
mov r13, qword [rsp + 0x40]
mov r14, qword [rsp + 0x70]
mov dword [rsp + 0x20], eax
test eax, eax
jg 0x14008bfb0
xor eax, eax
jmp 0x14008be57
mov r8d, dword [r10 + 0x10]
lea ecx, [rdx + 1]
sub qword [rsp + 0x28], r13
mov r9d, r8d
mov eax, ebx
sub rdi, r13
shr eax, 1
sub r12, r13
mov dword [rsp + 0x8c], eax
mov eax, 1
shl eax, cl
mov ecx, edx
mov edx, dword [r14 + 4]
mov r10d, edx
mov r14d, dword [rsp + 0x58]
mov qword [rsp + 0xa8], rax
mov eax, ebx
imul eax, ebx
imul edx, r8d
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x78], r12
mov dword [rsp + 0x88], eax
lea eax, [rbx + rbx]
sub r9d, eax
movsxd r8, edx
mov eax, dword [rsp + 0x20]
lea edx, [r14 - 1]
sar eax, cl
dec eax
sar r10d, cl
mov dword [rsp + 0x20], eax
mov eax, ebp
sub eax, r14d
sar r11, cl
imul r10d, ebp
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x5c], edx
add r10, r11
sub r10, rax
lea eax, [r15 + r15]
movsxd rcx, eax
add r10, rsi
mov rax, qword [rsp + 0xa0]
add r8, rcx
mov rcx, qword [rsp + 0xa8]
lea r11, [r10 + rbp]
add r8, qword [rax + 0x18]
mov eax, r9d
mov qword [rsp + 0xb0], rax
mov eax, ecx
imul ecx, r14d
mov qword [rsp + 0x70], r8
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xa8], rcx
nop dword [rax]
add r10, qword [rsp + 0x80]
add r11, qword [rsp + 0x80]
mov dword [rsp + 0x50], edx
nop dword [rax]
nop dword [rax + rax]
movzx ecx, byte [r10]
inc r10
movzx edx, byte [r11]
inc r11
movzx r15d, byte [r10]
movzx r12d, byte [r11]
sub r15d, ecx
sub r12d, edx
mov qword [rsp + 0x68], r11
mov dword [rsp + 0x54], r15d
mov qword [rsp + 0x60], r10
nop dword [rax + rax]
mov r14d, ecx
imul edx, ebx
imul r14d, dword [rsp + 0x88]
mov ebp, r15d
imul ebp, ebx
mov rsi, r8
imul ecx, ebx
mov dword [rsp + 0x4c], ebx
mov dword [rsp + 0x90], edx
mov edi, ebp
mov eax, ebp
imul edi, ebx
neg eax
mov dword [rsp + 0x94], ecx
mov ecx, r12d
mov dword [rsp + 0x98], eax
neg edi
imul ecx, ebx
mov dword [rsp + 0x9c], ecx
nop dword [rax]
mov ecx, dword [rsp + 0x8c]
add r13, rsi
mov dword [rsp + 0x48], ecx
nop
movzx r10d, byte [r13]
lea r13, [r13 + 4]
mov r15d, dword [rsp + 0x30]
mov edx, r14d
mov rcx, qword [rsp + 0x38]
mov r9d, 0xff
movzx r8d, byte [rcx + r13 - 4]
mov rcx, qword [rsp + 0x28]
movzx ebx, byte [rcx + r13 - 4]
mov rcx, qword [rsp + 0x78]
movzx r11d, byte [rcx + r13 - 4]
lea ecx, [r8 + 0x32]
cmp ecx, r9d
cmovb r9d, ecx
add r14d, ebp
lea ecx, [r15 + r15]
sar edx, cl
mov rcx, qword [rsp + 0x38]
imul r9d, edx
mov edx, dword [rsp + r8*4 + 0xc0]
sar r9d, 8
imul edx, r9d
sar edx, 8
add dl, r8b
mov r8d, 0xff
mov byte [rcx + r13 - 4], dl
mov rcx, qword [rsp + 0x78]
mov edx, dword [rsp + r10*4 + 0x4c0]
imul edx, r9d
sar edx, 8
add dl, r10b
mov byte [r13 - 4], dl
mov edx, dword [rsp + r11*4 + 0x8c0]
imul edx, r9d
mov r9d, r15d
sar edx, 8
add dl, r11b
mov byte [rcx + r13 - 4], dl
lea ecx, [rbx + 0x32]
cmp ecx, r8d
mov edx, r14d
cmovb r8d, ecx
lea ecx, [r15 + r15]
sar edx, cl
add r14d, ebp
mov rcx, qword [rsp + 0x28]
add rsi, 4
imul r8d, edx
sar r8d, 8
imul r8d, dword [rsp + rbx*4 + 0xc0]
sar r8d, 8
add r8b, bl
sub dword [rsp + 0x48], 1
mov byte [rcx + r13 - 4], r8b
jne 0x14008c240
mov ecx, dword [rsp + 0x90]
sub eax, r12d
add rsi, qword [rsp + 0xb0]
add ecx, edi
sub ecx, dword [rsp + 0x94]
add eax, dword [rsp + 0x54]
add r14d, ecx
mov r13, qword [rsp + 0x40]
mov ecx, r12d
sub ecx, dword [rsp + 0x54]
add ebp, ecx
mov ecx, dword [rsp + 0x98]
add ecx, dword [rsp + 0x9c]
sub edi, ecx
sub dword [rsp + 0x4c], 1
jne 0x14008c230
mov r8, qword [rsp + 0x70]
mov eax, dword [rsp + 0x50]
add r8, qword [rsp + 0xb8]
dec eax
mov qword [rsp + 0x70], r8
mov dword [rsp + 0x50], eax
test eax, eax
jg 0x14008c3c6
jne 0x14008c3d9
mov r10, qword [rsp + 0x60]
xor r12d, r12d
mov r11, qword [rsp + 0x68]
mov ebx, dword [rsp + 0x24]
movzx ecx, byte [r10]
inc r10
movzx edx, byte [r11]
inc r11
xor r15d, r15d
jmp 0x14008c1cc
mov r10, qword [rsp + 0x60]
mov r11, qword [rsp + 0x68]
mov ebx, dword [rsp + 0x24]
jmp 0x14008c1b0
mov rax, qword [rsp + 0xa0]
mov ecx, r9d
mov eax, dword [rax + 0x10]
shl eax, cl
sub eax, dword [rsp + 0xa8]
add r8, rax
mov eax, dword [rsp + 0x20]
dec eax
mov qword [rsp + 0x70], r8
mov dword [rsp + 0x20], eax
test eax, eax
jg 0x14008c42e
jne 0x14008c0a9
movsxd rax, dword [rsp + 0x58]
mov r10, qword [rsp + 0x60]
mov r11, qword [rsp + 0x68]
sub r10, rax
mov ebx, dword [rsp + 0x24]
sub r11, rax
mov edx, dword [rsp + 0x5c]
jmp 0x14008c1a0
mov r10, qword [rsp + 0x60]
mov r11, qword [rsp + 0x68]
mov ebx, dword [rsp + 0x24]
mov edx, dword [rsp + 0x5c]
jmp 0x14008c190
mov eax, 0xfffffffc
jmp 0x14008be67