Function at 0x14001cc70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov eax, 2
imul rax, rax, 3
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
and eax, 0x7ff0
sar eax, 4
mov word [rsp + 0x30], ax
movsx eax, word [rsp + 0x30]
cmp eax, 0x7ff
jne 0x14001cd2e
mov eax, 2
imul rax, rax, 3
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
and eax, 0xf
test eax, eax
jne 0x14001cd1a
mov eax, 2
imul rax, rax, 2
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x14001cd1a
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x14001cd1a
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x14001cd1a
mov dword [rsp + 0x44], 1
jmp 0x14001cd22
mov dword [rsp + 0x44], 2
movzx eax, word [rsp + 0x44]
jmp 0x14001d350
movsx eax, word [rsp + 0x30]
test eax, eax
jne 0x14001cd56
mov rcx, qword [rsp + 0x28]
call fcn.14001fd80
mov word [rsp + 0x30], ax
movsx eax, word [rsp + 0x30]
test eax, eax
jle 0x14001cd56
xor eax, eax
jmp 0x14001d350
cmp dword [rsp + 0x88], 0
jle 0x14001cdd8
movsx eax, word [rsp + 0x30]
mov ecx, 0x7ff
sub ecx, eax
mov eax, ecx
cmp eax, dword [rsp + 0x88]
jg 0x14001cdd8
mov eax, 2
imul rax, rax, 3
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
and eax, 0x8000
test eax, eax
je 0x14001cda9
movsd xmm0, qword [0x14007c108]
xorps xmm0, xmmword [0x1400621e0]
movsd qword [rsp + 0x60], xmm0
jmp 0x14001cdb7
movsd xmm0, qword [0x14007c108]
movsd qword [rsp + 0x60], xmm0
mov rax, qword [rsp + 0x80]
movsd xmm0, qword [rsp + 0x60]
movsd qword [rax], xmm0
mov eax, 1
jmp 0x14001d350
movsx eax, word [rsp + 0x30]
neg eax
cmp eax, dword [rsp + 0x88]
jge 0x14001ce35
mov eax, 2
imul rax, rax, 3
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
and eax, 0xffff800f
movsx ecx, word [rsp + 0x30]
mov edx, dword [rsp + 0x88]
add edx, ecx
mov ecx, edx
shl ecx, 4
or eax, ecx
mov ecx, 2
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x28]
mov word [rdx + rcx], ax
mov eax, 0xffffffff
jmp 0x14001d350
mov eax, 2
imul rax, rax, 3
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
and eax, 0x8000
mov word [rsp + 0x38], ax
mov eax, 2
imul rax, rax, 3
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
and eax, 0xf
or eax, 0x10
mov ecx, 2
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x28]
mov word [rdx + rcx], ax
movsx eax, word [rsp + 0x30]
mov ecx, dword [rsp + 0x88]
lea eax, [rcx + rax - 1]
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x88], 0xffffffcb
jl 0x14001cea6
cmp dword [rsp + 0x88], 0
jl 0x14001cf05
mov eax, 2
imul rax, rax, 3
mov rcx, qword [rsp + 0x28]
movzx edx, word [rsp + 0x38]
mov word [rcx + rax], dx
mov eax, 2
imul rax, rax, 2
xor ecx, ecx
mov rdx, qword [rsp + 0x28]
mov word [rdx + rax], cx
mov eax, 2
imul rax, rax, 1
xor ecx, ecx
mov rdx, qword [rsp + 0x28]
mov word [rdx + rax], cx
mov eax, 2
imul rax, rax, 0
xor ecx, ecx
mov rdx, qword [rsp + 0x28]
mov word [rdx + rax], cx
xor eax, eax
jmp 0x14001d350
movzx eax, word [rsp + 0x88]
mov word [rsp + 0x20], ax
xor eax, eax
mov word [rsp + 0x34], ax
jmp 0x14001cf28
movsx eax, word [rsp + 0x20]
add eax, 0x10
mov word [rsp + 0x20], ax
movsx eax, word [rsp + 0x20]
cmp eax, 0xfffffff0
jg 0x14001cff4
movzx eax, word [rsp + 0x34]
test eax, eax
je 0x14001cf49
mov dword [rsp + 0x48], 1
jmp 0x14001cf51
mov dword [rsp + 0x48], 0
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
or eax, dword [rsp + 0x48]
mov word [rsp + 0x34], ax
mov eax, 2
imul rax, rax, 1
mov ecx, 2
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x28]
movzx eax, word [r8 + rax]
mov word [rdx + rcx], ax
mov eax, 2
imul rax, rax, 2
mov ecx, 2
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x28]
movzx eax, word [r8 + rax]
mov word [rdx + rcx], ax
mov eax, 2
imul rax, rax, 3
mov ecx, 2
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x28]
movzx eax, word [r8 + rax]
mov word [rdx + rcx], ax
mov eax, 2
imul rax, rax, 3
xor ecx, ecx
mov rdx, qword [rsp + 0x28]
mov word [rdx + rax], cx
jmp 0x14001cf1b
movsx eax, word [rsp + 0x20]
neg eax
mov word [rsp + 0x20], ax
movsx eax, word [rsp + 0x20]
test eax, eax
je 0x14001d19c
movzx eax, word [rsp + 0x34]
test eax, eax
je 0x14001d020
mov dword [rsp + 0x4c], 1
jmp 0x14001d028
mov dword [rsp + 0x4c], 0
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
movsx ecx, word [rsp + 0x20]
mov edx, 0x10
sub edx, ecx
mov ecx, edx
shl eax, cl
or eax, dword [rsp + 0x4c]
mov word [rsp + 0x34], ax
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
movsx ecx, word [rsp + 0x20]
sar eax, cl
mov ecx, 2
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x28]
movzx ecx, word [rdx + rcx]
mov dword [rsp + 0x54], ecx
movsx edx, word [rsp + 0x20]
mov r8d, 0x10
sub r8d, edx
mov edx, r8d
movzx ecx, dl
mov edx, dword [rsp + 0x54]
shl edx, cl
mov ecx, edx
or eax, ecx
mov ecx, 2
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x28]
mov word [rdx + rcx], ax
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
movsx ecx, word [rsp + 0x20]
sar eax, cl
mov ecx, 2
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x28]
movzx ecx, word [rdx + rcx]
mov dword [rsp + 0x50], ecx
movsx edx, word [rsp + 0x20]
mov r8d, 0x10
sub r8d, edx
mov edx, r8d
movzx ecx, dl
mov edx, dword [rsp + 0x50]
shl edx, cl
mov ecx, edx
or eax, ecx
mov ecx, 2
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x28]
mov word [rdx + rcx], ax
mov eax, 2
imul rax, rax, 2
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
movsx ecx, word [rsp + 0x20]
sar eax, cl
mov ecx, 2
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x28]
movzx ecx, word [rdx + rcx]
mov dword [rsp + 0x58], ecx
movsx edx, word [rsp + 0x20]
mov r8d, 0x10
sub r8d, edx
mov edx, r8d
movzx ecx, dl
mov edx, dword [rsp + 0x58]
shl edx, cl
mov ecx, edx
or eax, ecx
mov ecx, 2
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x28]
mov word [rdx + rcx], ax
mov eax, 2
imul rax, rax, 3
movsx ecx, word [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
movzx eax, word [rdx + rax]
shr ax, cl
mov ecx, 2
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x28]
mov word [rdx + rcx], ax
mov eax, 2
imul rax, rax, 3
movzx ecx, word [rsp + 0x38]
mov rdx, qword [rsp + 0x28]
movzx eax, word [rdx + rax]
or eax, ecx
mov ecx, 2
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x28]
mov word [rdx + rcx], ax
movzx eax, word [rsp + 0x34]
cmp eax, 0x8000
jg 0x14001d200
movzx eax, word [rsp + 0x34]
cmp eax, 0x8000
jne 0x14001d2ea
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
and eax, 1
test eax, eax
je 0x14001d2ea
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
inc ax
mov word [rsp + 0x40], ax
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
movzx edx, word [rsp + 0x40]
mov word [rcx + rax], dx
movzx eax, word [rsp + 0x40]
and eax, 0xffff
test eax, eax
jne 0x14001d2ea
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
inc ax
mov word [rsp + 0x3e], ax
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x28]
movzx edx, word [rsp + 0x3e]
mov word [rcx + rax], dx
movzx eax, word [rsp + 0x3e]
and eax, 0xffff
test eax, eax
jne 0x14001d2ea
mov eax, 2
imul rax, rax, 2
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
inc ax
mov word [rsp + 0x3c], ax
mov eax, 2
imul rax, rax, 2
mov rcx, qword [rsp + 0x28]
movzx edx, word [rsp + 0x3c]
mov word [rcx + rax], dx
movzx eax, word [rsp + 0x3c]
and eax, 0xffff
test eax, eax
jne 0x14001d2ea
mov eax, 2
imul rax, rax, 3
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
inc ax
mov ecx, 2
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x28]
mov word [rdx + rcx], ax
jmp 0x14001d34b
mov eax, 2
imul rax, rax, 3
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
movzx ecx, word [rsp + 0x38]
cmp eax, ecx
jne 0x14001d34b
mov eax, 2
imul rax, rax, 2
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x14001d34b
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x14001d34b
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x14001d34b
xor eax, eax
jmp 0x14001d350
mov eax, 0xffffffff
add rsp, 0x78
ret