Function at 0x140001000
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r13d, r9d
mov r10, rcx
mov esi, 1
mov ecx, r13d
shl esi, cl
mov r9d, 1
shl r9, cl
mov rax, 0xffffffffffffffd2
cmp r8d, 0xff
ja 0x1400013a1
lea ecx, [r8 + 1]
mov qword [rsp], rcx
lea rcx, [r9 + rcx*2]
add rcx, 8
cmp rcx, qword [rsp + 0x98]
ja 0x1400013a1
mov rax, 0xffffffffffffffd4
cmp r13d, 0xc
ja 0x1400013a1
mov rdi, qword [rsp + 0x90]
mov ebp, 0x8000
mov ecx, r13d
shl ebp, cl
lea eax, [rsi - 1]
sar ebp, 0x10
xor r15d, r15d
test r8d, r8d
je 0x140001119
mov r12, qword [rsp]
and r12d, 0xfffffffe
mov bx, 1
xor r14d, r14d
mov ecx, eax
jmp 0x1400010d2
mov r9d, ecx
dec ecx
lea r11d, [r14 + 1]
mov byte [r10 + r9*4 + 6], r11b
mov r9w, 1
mov word [rdi + r14*2 + 2], r9w
add r14, 2
cmp r12, r14
je 0x140001122
movsx r9d, word [rdx + r14*2]
cmp r9d, 0xffffffff
je 0x1400010f0
cmp ebp, r9d
cmovle ebx, r15d
jmp 0x1400010ff
mov r9d, ecx
dec ecx
mov byte [r10 + r9*4 + 6], r14b
mov r9w, 1
mov word [rdi + r14*2], r9w
movsx r9d, word [rdx + r14*2 + 2]
cmp r9d, 0xffffffff
je 0x1400010b0
cmp ebp, r9d
cmovle ebx, r15d
jmp 0x1400010c3
mov bx, 1
xor r14d, r14d
mov ecx, eax
test byte [rsp], 1
mov r15, rsi
je 0x140001156
movsx r9d, word [rdx + r14*2]
cmp r9d, 0xffffffff
je 0x140001142
xor r11d, r11d
cmp ebp, r9d
cmovle ebx, r11d
jmp 0x140001151
mov r9d, ecx
dec ecx
mov byte [r10 + r9*4 + 6], r14b
mov r9w, 1
mov word [rdi + r14*2], r9w
mov word [r10], r13w
mov word [r10 + 2], bx
mov r9d, r15d
shr r9d, 1
mov ebx, r15d
cmp ecx, eax
jne 0x140001282
mov dword [rsp + 0xc], r13d
mov r8d, r8d
lea r14, [rdi + r8*2]
add r14, 2
mov eax, eax
mov qword [rsp + 0x18], r15
mov ecx, r15d
shr ecx, 3
add ecx, r9d
add ecx, 3
mov qword [rsp + 0x10], r8
lea r8, [rdi + r8*2]
add r8, 0x1a
mov qword [rsp + 0x20], r8
xor r12d, r12d
xor ebp, ebp
xor r8d, r8d
mov rsi, qword [rsp]
jmp 0x1400011e0
movsx r9, r15w
add rbp, r9
inc r12
movabs r9, 0x101010101010101
add r8, r9
cmp r12, rsi
je 0x1400012e8
movzx r15d, word [rdx + r12*2]
mov qword [r14 + rbp], r8
cmp r15w, 9
jl 0x1400011c0
cmp r15, 0x11
mov r11d, 0x10
cmovae r11, r15
add r11, 0xfffffffffffffff7
mov r13d, 8
cmp r11, 0x18
jb 0x140001269
shr r11, 3
inc r11
mov r9, r11
and r9, 0xfffffffffffffffc
lea r13, [r9*8 + 8]
movq xmm0, r8
pshufd xmm0, xmm0, 0x44
mov rsi, qword [rsp + 0x20]
add rsi, rbp
xor edi, edi
nop dword [rax + rax]
movdqu xmmword [rsi + rdi*8 - 0x10], xmm0
movdqu xmmword [rsi + rdi*8], xmm0
add rdi, 4
cmp r9, rdi
jne 0x140001240
cmp r11, r9
mov rdi, qword [rsp + 0x90]
mov rsi, qword [rsp]
je 0x1400011c0
lea r9, [r14 + rbp]
nop dword [rax]
mov qword [r9 + r13], r8
add r13, 8
cmp r13, r15
jb 0x140001270
jmp 0x1400011c0
mov r8d, r15d
shr r8d, 3
add r8d, r9d
add r8d, 3
xor r14d, r14d
xor ebp, ebp
mov rsi, qword [rsp]
jmp 0x1400012ac
inc r14
cmp r14, rsi
je 0x140001343
cmp word [rdx + r14*2], 0
jle 0x1400012a0
xor r9d, r9d
nop word [rax + rax]
mov r11d, ebp
mov byte [r10 + r11*4 + 6], r14b
nop dword [rax + rax]
add ebp, r8d
and ebp, eax
cmp ebp, ecx
ja 0x1400012d0
inc r9d
movsx r11d, word [rdx + r14*2]
cmp r9d, r11d
jl 0x1400012c0
jmp 0x1400012a0
lea rdx, [rcx + rcx]
mov r8, qword [rsp + 0x10]
lea r8, [rdi + r8*2]
add r8, 3
xor edi, edi
xor r9d, r9d
mov r13d, dword [rsp + 0xc]
mov r15, qword [rsp + 0x18]
nop dword [rax + rax]
mov r11d, r9d
and r11d, eax
movzx esi, byte [r8 + rdi - 1]
mov byte [r10 + r11*4 + 6], sil
lea r11d, [rcx + r9]
and r11d, eax
movzx esi, byte [r8 + rdi]
mov byte [r10 + r11*4 + 6], sil
add r9d, edx
and r9d, eax
add rdi, 2
cmp rdi, rbx
jb 0x140001310
jmp 0x14000134e
mov rax, 0xffffffffffffffff
test ebp, ebp
jne 0x1400013a1
xor eax, eax
xor edx, edx
mov rsi, qword [rsp + 0x90]
nop word [rax + rax]
movzx r8d, byte [r10 + rdx*4 + 6]
movzx r9d, word [rsi + r8*2]
lea r11d, [r9 + 1]
bsr ecx, r9d
xor ecx, 0x1f
add ecx, 0xffffffe1
test r9d, r9d
mov word [rsi + r8*2], r11w
cmove ecx, r9d
add ecx, r13d
mov byte [r10 + rdx*4 + 7], cl
shl r9d, cl
sub r9d, r15d
mov word [r10 + rdx*4 + 4], r9w
inc rdx
cmp rbx, rdx
jne 0x140001360
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret