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

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
xor edi, edi
mov rcx, qword [rcx]
mov rbx, rdx
mov dword [rsp + 0x50], edi
cmp dword [rsi + 0x14], edi
jle 0x14003bce5
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x18], r12
mov qword [rsp + 0x10], r13
mov qword [rsp + 8], r14
mov qword [rsp], r15
nop dword [rax]
movsxd rax, dword [rsi + 0x1c]
mov r14, rcx
mov r13d, dword [r14]
lea rcx, [rcx + rax*4]
dec r13d
mov qword [rsp + 0x58], rcx
test r13d, r13d
jle 0x14003bcbe
mov edx, dword [rsi + 0xc]
add r14, 4
mov r11, qword [rbx + 8]
add edx, edi
mov r10, qword [rbx]
xor r8d, r8d
movsxd rax, edx
sub edx, dword [rbx + 0x18]
mov r9d, dword [r14]
movsxd rcx, dword [r10 + 0x14]
imul rcx, rax
mov eax, edx
add rcx, qword [r10]
cdq
mov qword [rbx + 0x20], rcx
idiv dword [r11 + 0x20]
movsxd rax, dword [r11 + 0x14]
movsxd rcx, edx
imul rcx, rax
add rcx, qword [r11]
sub r13d, 1
mov qword [rbx + 0x28], rcx
js 0x14003bba2
nop dword [rax]
mov ebp, dword [r14 + 4]
lea r14, [r14 + 8]
mov r15d, dword [r14]
mov eax, r15d
cdq
movzx edi, dl
add edi, eax
mov eax, r9d
cdq
sar edi, 8
movzx edx, dl
add eax, edx
sar eax, 8
mov ecx, eax
cmp edi, eax
jne 0x14003b84a
mov eax, r15d
sub eax, r9d
imul eax, ebp
add r8d, eax
jmp 0x14003bb85
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 r9d, eax
test eax, eax
jle 0x14003b972
mov r8, qword [rbx + 8]
mov eax, ecx
mov rdx, qword [rbx]
imul eax, dword [rdx + 0x18]
movsxd r11, eax
mov eax, ecx
sub eax, dword [rbx + 0x14]
add r11, qword [rbx + 0x20]
cdq
idiv dword [r8 + 0x1c]
mov rax, qword [rbx + 0x28]
imul edx, dword [r8 + 0x18]
movsxd r8, edx
movzx edx, byte [r8 + rax]
mov r10d, edx
shl r10d, 0x10
or r10d, edx
mov edx, 0x100
mov r8d, edx
cmp r9d, 0xff
jl 0x14003b8c1
imul r10d, dword [rbx + 0x10]
jmp 0x14003b8ce
imul r9d, dword [rbx + 0x10]
sar r9d, 8
imul r10d, r9d
shr r10d, 8
and r10d, 0xff00ff
mov eax, r10d
shr eax, 0x10
sub edx, eax
mov eax, dword [r11]
mov r9d, eax
shr eax, 8
and eax, 0xff00ff
and r9d, 0xff00ff
imul eax, edx
imul r9d, edx
mov edx, 0x100
shr eax, 8
and eax, 0xff00ff
shr r9d, 8
and r9d, 0xff00ff
add r9d, r10d
add r10d, eax
mov eax, r10d
shr eax, 8
and eax, 0xff00ff
sub r8d, eax
mov eax, r10d
shl eax, 8
shl r8d, 8
or r8d, eax
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, r10d
or edx, r9d
shr eax, 8
xor r8d, edx
shl r10d, 8
and eax, 0xff00ff
mov edx, 0x100
sub edx, eax
and r8d, 0xff00ff
shl edx, 8
or edx, r10d
xor r8d, edx
mov dword [r11], r8d
test ebp, ebp
jle 0x14003bb7d
inc ecx
sub edi, ecx
test edi, edi
jle 0x14003bb7d
mov rax, qword [rbx]
mov esi, ebp
imul esi, dword [rbx + 0x10]
movsxd rdx, dword [rax + 0x18]
mov eax, edx
imul eax, ecx
sub ecx, dword [rbx + 0x14]
sar esi, 8
movsxd r11, eax
add r11, qword [rbx + 0x20]
cmp esi, 0xfe
jge 0x14003baa1
mov r12, rdx
mov r8, qword [rbx + 8]
mov eax, ecx
cdq
inc ecx
dec edi
idiv dword [r8 + 0x1c]
mov rax, qword [rbx + 0x28]
imul edx, dword [r8 + 0x18]
movsxd rdx, edx
movzx r8d, byte [rdx + rax]
mov edx, 0x100
mov r10d, r8d
shl r10d, 0x10
or r10d, r8d
mov r8d, 0x100
imul r10d, esi
shr r10d, 8
and r10d, 0xff00ff
mov eax, r10d
shr eax, 0x10
sub edx, eax
mov eax, dword [r11]
mov r9d, eax
shr eax, 8
and eax, 0xff00ff
and r9d, 0xff00ff
imul eax, edx
imul r9d, edx
mov edx, 0x100
shr eax, 8
and eax, 0xff00ff
shr r9d, 8
and r9d, 0xff00ff
add r9d, r10d
add r10d, eax
mov eax, r10d
shr eax, 8
and eax, 0xff00ff
sub r8d, eax
mov eax, r10d
shl eax, 8
shl r8d, 8
or r8d, eax
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, r10d
or edx, r9d
shr eax, 8
xor r8d, edx
shl r10d, 8
and eax, 0xff00ff
and r8d, 0xff00ff
mov edx, 0x100
sub edx, eax
shl edx, 8
or edx, r10d
xor r8d, edx
mov dword [r11], r8d
add r11, r12
test edi, edi
jg 0x14003b9b4
jmp 0x14003bb7d
mov rsi, rdx
mov r8, qword [rbx + 8]
mov eax, ecx
cdq
inc ecx
dec edi
idiv dword [r8 + 0x1c]
mov rax, qword [rbx + 0x28]
imul edx, dword [r8 + 0x18]
movsxd rdx, edx
movzx r8d, byte [rdx + rax]
mov edx, 0x100
mov r10d, r8d
shl r10d, 0x10
or r10d, r8d
mov r8d, 0x100
mov eax, r10d
shr eax, 0x10
sub edx, eax
mov eax, dword [r11]
mov r9d, eax
shr eax, 8
and eax, 0xff00ff
and r9d, 0xff00ff
imul eax, edx
imul r9d, edx
mov edx, 0x100
shr eax, 8
and eax, 0xff00ff
shr r9d, 8
and r9d, 0xff00ff
add r9d, r10d
add r10d, eax
mov eax, r10d
shr eax, 8
and eax, 0xff00ff
sub r8d, eax
mov eax, r10d
shl eax, 8
shl r8d, 8
or r8d, eax
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, r10d
or edx, r9d
shr eax, 8
xor r8d, edx
shl r10d, 8
and eax, 0xff00ff
and r8d, 0xff00ff
mov edx, 0x100
sub edx, eax
shl edx, 8
or edx, r10d
xor r8d, edx
mov dword [r11], r8d
add r11, rsi
test edi, edi
jg 0x14003baa4
movzx r8d, r15b
imul r8d, ebp
sub r13d, 1
mov r9d, r15d
jns 0x14003b810
mov r10, qword [rbx]
mov r11, qword [rbx + 8]
mov edi, dword [rsp + 0x50]
mov rsi, qword [rsp + 0x40]
mov eax, r8d
cdq
movzx edx, dl
add eax, edx
sar eax, 8
mov r8d, eax
test eax, eax
jle 0x14003bcb9
mov ecx, dword [r10 + 0x18]
mov eax, r9d
cdq
movzx edx, dl
add eax, edx
mov edx, dword [rbx + 0x14]
sar eax, 8
imul ecx, eax
sub eax, edx
cdq
idiv dword [r11 + 0x1c]
mov rax, qword [rbx + 0x28]
imul edx, dword [r11 + 0x18]
movsxd r10, ecx
add r10, qword [rbx + 0x20]
movsxd rcx, edx
movzx edx, byte [rcx + rax]
mov ecx, 0x100
mov r9d, edx
shl r9d, 0x10
or r9d, edx
mov edx, ecx
cmp r8d, 0xff
jl 0x14003bc0e
imul r9d, dword [rbx + 0x10]
jmp 0x14003bc1b
imul r8d, dword [rbx + 0x10]
sar r8d, 8
imul r9d, r8d
shr r9d, 8
and r9d, 0xff00ff
mov eax, r9d
shr eax, 0x10
sub ecx, eax
mov eax, dword [r10]
mov r8d, eax
shr eax, 8
and eax, 0xff00ff
and r8d, 0xff00ff
imul eax, ecx
imul r8d, ecx
mov ecx, 0x100
shr eax, 8
and eax, 0xff00ff
shr r8d, 8
and r8d, 0xff00ff
add r8d, r9d
add r9d, eax
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, r9d
shl eax, 8
shl edx, 8
or edx, eax
mov eax, r8d
shr eax, 8
and eax, 0xff00ff
sub ecx, eax
mov eax, r9d
or ecx, r8d
shr eax, 8
xor edx, ecx
shl r9d, 8
and eax, 0xff00ff
mov ecx, 0x100
sub ecx, eax
and edx, 0xff00ff
shl ecx, 8
or ecx, r9d
xor edx, ecx
mov dword [r10], edx
mov rcx, qword [rsp + 0x58]
inc edi
mov dword [rsp + 0x50], edi
cmp edi, dword [rsi + 0x14]
jl 0x14003b7a0
mov r15, qword [rsp]
mov r14, qword [rsp + 8]
mov r13, qword [rsp + 0x10]
mov r12, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret