Function at 0x14003c3f0
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 0x14003cac4
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 0x14003ca9d
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 0x14003c8ad
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 0x14003c4ea
mov eax, r12d
sub eax, r9d
imul eax, ebp
add r8d, eax
jmp 0x14003c88c
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 0x14003c6f0
mov rax, qword [r14]
mov r10d, dword [r14 + 0x14]
mov r8, qword [r14 + 8]
mov edx, dword [rax + 0x18]
mov eax, ecx
sub eax, r10d
imul edx, ecx
cmp edi, 0xff
jl 0x14003c60d
movsxd rdi, edx
cdq
idiv dword [r8 + 0x1c]
add rdi, qword [r14 + 0x20]
imul edx, dword [r8 + 0x18]
mov r10d, dword [rdi]
movsxd r8, edx
mov edx, 0x100
add r8, qword [r14 + 0x28]
movzx ebx, byte [r8 + 1]
movzx r11d, byte [r8 + 2]
or ebx, 0xff0000
imul ebx, dword [r14 + 0x10]
shl r11d, 0x10
shr ebx, 8
and ebx, 0xff00ff
mov eax, ebx
shr eax, 0x10
sub edx, 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, edx
and r10d, 0xff00ff
imul r10d, edx
mov edx, 0x100
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
shl ebx, 8
shr eax, 8
and eax, 0xff00ff
sub r8d, eax
mov eax, r11d
shl r8d, 8
shr eax, 8
or r8d, ebx
and eax, 0xff00ff
and r8d, 0xff00ff00
sub edx, eax
or edx, r11d
and edx, 0xff00ff
xor edx, r8d
mov dword [rdi], edx
jmp 0x14003c6f0
imul edi, dword [r14 + 0x10]
movsxd rbx, edx
cdq
idiv dword [r8 + 0x1c]
add rbx, qword [r14 + 0x20]
imul edx, dword [r8 + 0x18]
sar edi, 8
mov r9d, dword [rbx]
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
shl r11d, 8
shr eax, 8
and eax, 0xff00ff
sub r8d, eax
mov eax, r10d
shl r8d, 8
shr eax, 8
or r8d, r11d
and eax, 0xff00ff
and r8d, 0xff00ff00
sub edx, eax
or edx, r10d
and edx, 0xff00ff
xor edx, r8d
mov dword [rbx], edx
test ebp, ebp
jle 0x14003c884
inc ecx
sub esi, ecx
test esi, esi
jle 0x14003c884
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 0x14003c824
mov r13, rdx
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
shl r11d, 8
shr eax, 8
and eax, 0xff00ff
sub r8d, eax
mov eax, r10d
shl r8d, 8
shr eax, 8
or r8d, r11d
and eax, 0xff00ff
and r8d, 0xff00ff00
sub edx, eax
or edx, r10d
and edx, 0xff00ff
xor edx, r8d
mov dword [rbx], edx
add rbx, r13
test esi, esi
jg 0x14003c734
mov r13d, dword [rsp + 0x68]
jmp 0x14003c884
mov r10, rdx
nop word [rax + rax]
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 0x14003c830
movzx r8d, r12b
imul r8d, ebp
sub r13d, 1
mov r9d, r12d
mov dword [rsp + 0x68], r13d
jns 0x14003c4b0
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 0x14003ca98
mov ecx, dword [r11 + 0x18]
mov eax, r9d
cdq
movzx edx, dl
add eax, edx
mov edx, dword [r14 + 0x14]
sar eax, 8
imul ecx, eax
sub eax, edx
cdq
idiv dword [r10 + 0x1c]
imul edx, dword [r10 + 0x18]
cmp ebx, 0xff
jl 0x14003c9c4
movsxd rbx, ecx
add rbx, qword [r14 + 0x20]
movsxd rcx, edx
mov edx, 0x100
add rcx, qword [r14 + 0x28]
mov r9d, dword [rbx]
movzx r11d, byte [rcx + 1]
movzx r10d, byte [rcx + 2]
or r11d, 0xff0000
imul r11d, dword [r14 + 0x10]
shl r10d, 0x10
shr r11d, 8
and r11d, 0xff00ff
mov eax, r11d
shr eax, 0x10
sub edx, eax
movzx eax, byte [rcx]
or r10d, eax
mov ecx, 0x100
imul r10d, dword [r14 + 0x10]
mov eax, r9d
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
shl r11d, 8
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, r10d
shl edx, 8
shr eax, 8
or edx, r11d
and eax, 0xff00ff
and edx, 0xff00ff00
sub ecx, eax
or ecx, r10d
and ecx, 0xff00ff
xor ecx, edx
mov dword [rbx], ecx
jmp 0x14003ca98
imul ebx, dword [r14 + 0x10]
movsxd r11, ecx
add r11, qword [r14 + 0x20]
movsxd rcx, edx
mov edx, 0x100
add rcx, qword [r14 + 0x28]
sar ebx, 8
mov r8d, dword [r11]
movzx r10d, byte [rcx + 1]
movzx r9d, byte [rcx + 2]
or r10d, 0xff0000
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
shl r10d, 8
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, r9d
shl edx, 8
shr eax, 8
or edx, r10d
and eax, 0xff00ff
and edx, 0xff00ff00
sub ecx, eax
or ecx, r9d
and ecx, 0xff00ff
xor ecx, edx
mov dword [r11], ecx
mov rcx, qword [rsp + 8]
inc edi
mov dword [rsp], edi
cmp edi, dword [rsi + 0x14]
jl 0x14003c430
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