Function at 0x14004ca39
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp rcx, rdx
je 0x14004cdcd
mov r11, rsp
push r12
push r15
sub rsp, 0x468
mov rax, qword [0x14016ca00]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov qword [r11 + 0x18], rbp
lea rbp, [rcx + 0x414]
mov r12, rdx
mov r15, rcx
cmp rbp, rdx
je 0x14004cdaa
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x18], rsi
mov qword [r11 - 0x20], rdi
mov qword [r11 - 0x28], r14
mov rdx, rbp
mov rax, rbp
lea rcx, [rsp + 0x20]
mov r8d, 8
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
sub rcx, 0xffffffffffffff80
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
dec r8
jne 0x14004ca94
movups xmm0, xmmword [rax]
mov eax, dword [rax + 0x10]
movups xmmword [rcx], xmm0
mov dword [rcx + 0x10], eax
mov eax, dword [r15]
mov ebx, dword [rsp + 0x20]
cmp ebx, eax
jl 0x14004cce6
jne 0x14004cb77
xor r9d, r9d
test ebx, ebx
jle 0x14004cb77
lea rcx, [rsp + 0x24]
mov rax, r15
lea r8, [rsp + 0x24]
sub rax, rcx
lea rdi, [rax + 4]
nop dword [rax + rax]
movzx r10d, word [rdi + r8]
movzx r11d, word [r8]
movzx eax, r10w
movzx ecx, r11w
and ax, 0x1f
and cx, 0x1f
cmp cx, ax
jb 0x14004cce6
ja 0x14004cb65
movzx ecx, r10w
movzx eax, r11w
shr cx, 5
shr ax, 5
and cx, 0x3f
and ax, 0x3f
cmp ax, cx
jb 0x14004cce6
cmp r11w, r10w
jne 0x14004cb77
inc r9d
add r8, 2
cmp r9d, ebx
jl 0x14004cb20
lea r14, [rsp + 0x20]
mov rdi, rbp
neg r14
sub rdi, 0x414
mov eax, dword [rdi]
cmp ebx, eax
jl 0x14004cc74
jne 0x14004cc07
xor r9d, r9d
test ebx, ebx
jle 0x14004cc07
lea r8, [rsp + 0x24]
lea rsi, [r14 + rdi]
nop word [rax + rax]
movzx r10d, word [r8]
movzx r11d, word [rsi + r8]
movzx eax, r10w
movzx ecx, r11w
and ax, 0x1f
and cx, 0x1f
cmp ax, cx
jb 0x14004cc74
ja 0x14004cbf5
movzx ecx, r10w
movzx eax, r11w
shr cx, 5
shr ax, 5
and cx, 0x3f
and ax, 0x3f
cmp cx, ax
jb 0x14004cc74
cmp r10w, r11w
jne 0x14004cc07
inc r9d
add r8, 2
cmp r9d, ebx
jl 0x14004cbb0
lea rax, [rsp + 0x20]
mov ecx, 8
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rdx, [rdx + 0x80]
lea rax, [rax + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rdx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rdx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rdx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rdx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rdx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rdx - 0x20], xmm0
movups xmmword [rdx - 0x10], xmm1
dec rcx
jne 0x14004cc11
movups xmm0, xmmword [rax]
mov eax, dword [rax + 0x10]
movups xmmword [rdx], xmm0
mov dword [rdx + 0x10], eax
jmp 0x14004cd60
mov rax, rdi
mov ecx, 8
nop dword [rax]
movups xmm0, xmmword [rax]
lea rdx, [rdx + 0x80]
lea rax, [rax + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm1, xmmword [rax - 0x70]
movups xmmword [rdx - 0x70], xmm1
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rdx - 0x60], xmm0
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rdx - 0x50], xmm1
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rdx - 0x40], xmm0
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rdx - 0x30], xmm1
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rdx - 0x20], xmm0
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rdx - 0x10], xmm1
dec rcx
jne 0x14004cc80
movups xmm0, xmmword [rax]
movups xmmword [rdx], xmm0
mov ecx, dword [rax + 0x10]
mov dword [rdx + 0x10], ecx
mov rdx, rdi
jmp 0x14004cb82
lea r8, [rbp + 0x414]
mov rcx, r15
call fcn.14004d5b0
mov rcx, r15
lea rax, [rsp + 0x20]
mov edx, 8
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rcx, [rcx + 0x80]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
dec rdx
jne 0x14004cd02
movups xmm0, xmmword [rax]
mov eax, dword [rax + 0x10]
movups xmmword [rcx], xmm0
mov dword [rcx + 0x10], eax
mov edx, 2
lea r9, [fcn.140005f60]
lea rcx, [rsp + 0x24]
lea r8d, [rdx + 0x3e]
call fcn.1400bd52c
add rbp, 0x414
cmp rbp, r12
jne 0x14004ca83
mov r14, qword [rsp + 0x450]
mov rdi, qword [rsp + 0x458]
mov rsi, qword [rsp + 0x460]
mov rbx, qword [rsp + 0x488]
mov rbp, qword [rsp + 0x490]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1400bcae0
add rsp, 0x468
pop r15
pop r12
ret