Function at 0x14003a8b0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x30
mov rsi, rcx
xor edi, edi
mov rcx, qword [rcx]
mov r14, rdx
mov dword [rsp], edi
cmp dword [rsi + 0x14], edi
jle 0x14003aff6
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x18], r13
mov qword [rsp + 0x10], r15
nop dword [rax]
movsxd rax, dword [rsi + 0x1c]
mov r15, rcx
mov r13d, dword [r15]
lea rcx, [rcx + rax*4]
dec r13d
mov qword [rsp + 8], rcx
test r13d, r13d
jle 0x14003afcf
mov edx, dword [rsi + 0xc]
add r15, 4
mov r10, qword [r14 + 8]
add edx, edi
mov r11, qword [r14]
xor r8d, r8d
movsxd rax, edx
sub edx, dword [r14 + 0x18]
mov r9d, dword [r15]
movsxd rcx, dword [r11 + 0x14]
imul rcx, rax
mov eax, edx
add rcx, qword [r11]
cdq
mov qword [r14 + 0x20], rcx
idiv dword [r10 + 0x20]
movsxd rax, dword [r10 + 0x14]
movsxd rcx, edx
imul rcx, rax
add rcx, qword [r10]
sub r13d, 1
mov qword [r14 + 0x28], rcx
mov dword [rsp + 0x68], r13d
js 0x14003adad
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [r15 + 4]
lea r15, [r15 + 8]
mov r12d, dword [r15]
mov eax, r12d
cdq
movzx esi, dl
add esi, eax
mov eax, r9d
cdq
sar esi, 8
movzx edx, dl
add eax, edx
sar eax, 8
mov ecx, eax
cmp esi, eax
jne 0x14003a9aa
mov eax, r12d
sub eax, r9d
imul eax, ebp
add r8d, eax
jmp 0x14003ad8c
movzx eax, r9b
mov edx, 0x100
sub edx, eax
imul edx, ebp
lea eax, [r8 + rdx]
cdq
movzx edx, dl
add eax, edx
sar eax, 8
mov edi, eax
test eax, eax
jle 0x14003abd4
mov r8, qword [r14 + 8]
mov eax, ecx
sub eax, dword [r14 + 0x14]
cdq
idiv dword [r8 + 0x1c]
mov rax, qword [r14]
imul edx, dword [r8 + 0x18]
movsxd r8, edx
mov edx, ecx
imul edx, dword [rax + 0x18]
add r8, qword [r14 + 0x28]
cmp edi, 0xff
jl 0x14003aae6
movzx ebx, byte [r8 + 1]
mov r9d, 0x100
movzx r11d, byte [r8 + 2]
or ebx, 0xff0000
imul ebx, dword [r14 + 0x10]
movsxd rdi, edx
mov edx, 0x100
add rdi, qword [r14 + 0x20]
shl r11d, 0x10
shr ebx, 8
mov r10d, dword [rdi]
and ebx, 0xff00ff
mov eax, ebx
shr eax, 0x10
sub r9d, eax
movzx eax, byte [r8]
or r11d, eax
mov r8d, 0x100
imul r11d, dword [r14 + 0x10]
mov eax, r10d
and eax, 0xff00ff
shr r10d, 8
imul eax, r9d
and r10d, 0xff00ff
imul r10d, r9d
shr r11d, 8
and r11d, 0xff00ff
shr eax, 8
and eax, 0xff00ff
shr r10d, 8
add r11d, eax
and r10d, 0xff00ff
add ebx, r10d
mov eax, ebx
shr eax, 8
and eax, 0xff00ff
sub r8d, eax
mov eax, ebx
shl eax, 8
shl r8d, 8
or r8d, eax
mov eax, r11d
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, ebx
or edx, r11d
shr eax, 8
xor r8d, edx
shl ebx, 8
and eax, 0xff00ff
mov edx, 0x100
sub edx, eax
and r8d, 0xff00ff
shl edx, 8
or edx, ebx
xor r8d, edx
mov dword [rdi], r8d
jmp 0x14003abd4
movzx r11d, byte [r8 + 1]
movzx r10d, byte [r8 + 2]
or r11d, 0xff0000
imul edi, dword [r14 + 0x10]
movsxd rbx, edx
mov edx, 0x100
add rbx, qword [r14 + 0x20]
shl r10d, 0x10
sar edi, 8
mov r9d, dword [rbx]
imul r11d, edi
shr r11d, 8
and r11d, 0xff00ff
mov eax, r11d
shr eax, 0x10
sub edx, eax
movzx eax, byte [r8]
or r10d, eax
mov r8d, 0x100
mov eax, r9d
imul r10d, edi
and eax, 0xff00ff
shr r9d, 8
imul eax, edx
and r9d, 0xff00ff
imul r9d, edx
mov edx, 0x100
shr r10d, 8
and r10d, 0xff00ff
shr eax, 8
and eax, 0xff00ff
shr r9d, 8
add r10d, eax
and r9d, 0xff00ff
add r11d, r9d
mov eax, r11d
shr eax, 8
and eax, 0xff00ff
sub r8d, eax
mov eax, r11d
shl eax, 8
shl r8d, 8
or r8d, eax
mov eax, r10d
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, r11d
or edx, r10d
shr eax, 8
xor r8d, edx
shl r11d, 8
and eax, 0xff00ff
mov edx, 0x100
sub edx, eax
and r8d, 0xff00ff
shl edx, 8
or edx, r11d
xor r8d, edx
mov dword [rbx], r8d
test ebp, ebp
jle 0x14003ad84
inc ecx
sub esi, ecx
test esi, esi
jle 0x14003ad84
mov rax, qword [r14]
mov edi, ebp
imul edi, dword [r14 + 0x10]
movsxd rdx, dword [rax + 0x18]
mov eax, edx
imul eax, ecx
sub ecx, dword [r14 + 0x14]
sar edi, 8
movsxd rbx, eax
add rbx, qword [r14 + 0x20]
cmp edi, 0xfe
jge 0x14003ad2c
mov r13, rdx
nop dword [rax + rax]
mov r8, qword [r14 + 8]
mov eax, ecx
mov r9d, dword [rbx]
cdq
inc ecx
dec esi
idiv dword [r8 + 0x1c]
imul edx, dword [r8 + 0x18]
movsxd r8, edx
mov edx, 0x100
add r8, qword [r14 + 0x28]
movzx r11d, byte [r8 + 1]
movzx r10d, byte [r8 + 2]
or r11d, 0xff0000
shl r10d, 0x10
imul r11d, edi
shr r11d, 8
and r11d, 0xff00ff
mov eax, r11d
shr eax, 0x10
sub edx, eax
movzx eax, byte [r8]
or r10d, eax
mov r8d, 0x100
mov eax, r9d
imul r10d, edi
and eax, 0xff00ff
shr r9d, 8
imul eax, edx
and r9d, 0xff00ff
imul r9d, edx
mov edx, 0x100
shr r10d, 8
and r10d, 0xff00ff
shr eax, 8
and eax, 0xff00ff
shr r9d, 8
add r10d, eax
and r9d, 0xff00ff
add r11d, r9d
mov eax, r11d
shr eax, 8
and eax, 0xff00ff
sub r8d, eax
mov eax, r11d
shl eax, 8
shl r8d, 8
or r8d, eax
mov eax, r10d
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, r11d
or edx, r10d
shr eax, 8
xor r8d, edx
shl r11d, 8
and eax, 0xff00ff
and r8d, 0xff00ff
mov edx, 0x100
sub edx, eax
shl edx, 8
or edx, r11d
xor r8d, edx
mov dword [rbx], r8d
add rbx, r13
test esi, esi
jg 0x14003ac20
mov r13d, dword [rsp + 0x68]
jmp 0x14003ad84
mov r10, rdx
nop
mov r8, qword [r14 + 8]
mov eax, ecx
cdq
inc ecx
dec esi
idiv dword [r8 + 0x1c]
mov rax, qword [r14 + 0x28]
imul edx, dword [r8 + 0x18]
movsxd rdx, edx
movzx r8d, byte [rdx + rax + 2]
movzx r9d, word [rdx + rax]
or r8d, 0xffffff00
shl r8d, 8
mov word [rsp + 0x60], r9w
movzx eax, byte [rsp + 0x61]
or r8d, eax
movzx eax, r9b
shl r8d, 8
or r8d, eax
mov dword [rbx], r8d
add rbx, r10
test esi, esi
jg 0x14003ad30
movzx r8d, r12b
imul r8d, ebp
sub r13d, 1
mov r9d, r12d
mov dword [rsp + 0x68], r13d
jns 0x14003a970
mov r11, qword [r14]
mov r10, qword [r14 + 8]
mov edi, dword [rsp]
mov rsi, qword [rsp + 0x50]
mov eax, r8d
cdq
movzx edx, dl
add eax, edx
sar eax, 8
mov ebx, eax
test eax, eax
jle 0x14003afca
mov eax, r9d
cdq
movzx edx, dl
add eax, edx
sar eax, 8
mov r9d, eax
sub eax, dword [r14 + 0x14]
imul r9d, dword [r11 + 0x18]
cdq
idiv dword [r10 + 0x1c]
imul edx, dword [r10 + 0x18]
cmp ebx, 0xff
jl 0x14003aedd
movsxd r8, edx
mov ecx, 0x100
add r8, qword [r14 + 0x28]
mov edx, 0x100
movsxd rbx, r9d
add rbx, qword [r14 + 0x20]
movzx r11d, byte [r8 + 1]
movzx r10d, byte [r8 + 2]
or r11d, 0xff0000
imul r11d, dword [r14 + 0x10]
mov r9d, dword [rbx]
shl r10d, 0x10
shr r11d, 8
and r11d, 0xff00ff
mov eax, r11d
shr eax, 0x10
sub edx, eax
movzx eax, byte [r8]
or r10d, eax
mov eax, r9d
imul r10d, dword [r14 + 0x10]
and eax, 0xff00ff
imul eax, edx
shr r9d, 8
and r9d, 0xff00ff
imul r9d, edx
mov edx, 0x100
shr r10d, 8
shr eax, 8
and r10d, 0xff00ff
and eax, 0xff00ff
add r10d, eax
shr r9d, 8
and r9d, 0xff00ff
add r11d, r9d
mov eax, r11d
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, r11d
shl eax, 8
shl edx, 8
or edx, eax
mov eax, r10d
shr eax, 8
and eax, 0xff00ff
sub ecx, eax
mov eax, r11d
or ecx, r10d
shr eax, 8
xor edx, ecx
shl r11d, 8
and eax, 0xff00ff
mov ecx, 0x100
sub ecx, eax
and edx, 0xff00ff
shl ecx, 8
or ecx, r11d
xor edx, ecx
mov dword [rbx], edx
jmp 0x14003afca
imul ebx, dword [r14 + 0x10]
movsxd rcx, edx
mov edx, 0x100
add rcx, qword [r14 + 0x28]
movsxd r11, r9d
add r11, qword [r14 + 0x20]
sar ebx, 8
movzx r10d, byte [rcx + 1]
movzx r9d, byte [rcx + 2]
or r10d, 0xff0000
mov r8d, dword [r11]
shl r9d, 0x10
imul r10d, ebx
shr r10d, 8
and r10d, 0xff00ff
mov eax, r10d
shr eax, 0x10
sub edx, eax
movzx eax, byte [rcx]
or r9d, eax
mov ecx, 0x100
mov eax, r8d
imul r9d, ebx
and eax, 0xff00ff
shr r8d, 8
imul eax, edx
and r8d, 0xff00ff
imul r8d, edx
mov edx, 0x100
shr r9d, 8
and r9d, 0xff00ff
shr eax, 8
and eax, 0xff00ff
shr r8d, 8
add r9d, eax
and r8d, 0xff00ff
add r10d, r8d
mov eax, r10d
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, r10d
shl eax, 8
shl edx, 8
or edx, eax
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
sub ecx, eax
mov eax, r10d
or ecx, r9d
shr eax, 8
xor edx, ecx
shl r10d, 8
and eax, 0xff00ff
mov ecx, 0x100
sub ecx, eax
and edx, 0xff00ff
shl ecx, 8
or ecx, r10d
xor edx, ecx
mov dword [r11], edx
mov rcx, qword [rsp + 8]
inc edi
mov dword [rsp], edi
cmp edi, dword [rsi + 0x14]
jl 0x14003a8f0
mov r15, qword [rsp + 0x10]
mov r13, qword [rsp + 0x18]
mov r12, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret