Function at 0x14003de10
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push r15
sub rsp, 0x20
mov r15, rcx
xor esi, esi
mov rcx, qword [rcx]
mov rbx, rdx
mov dword [rsp + 0x50], esi
cmp dword [r15 + 0x14], esi
jle 0x14003e410
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x10], r12
mov qword [rsp + 8], r13
mov qword [rsp], r14
nop
movsxd rax, dword [r15 + 0x1c]
mov r14, rcx
mov r13d, dword [r14]
lea rcx, [rcx + rax*4]
dec r13d
mov qword [rsp + 0x58], rcx
test r13d, r13d
jle 0x14003e3e8
mov edx, dword [r15 + 0xc]
add r14, 4
mov r11, qword [rbx + 8]
add edx, esi
mov rdi, qword [rbx]
xor r8d, r8d
movsxd rax, edx
sub edx, dword [rbx + 0x18]
mov r9d, dword [r14]
movsxd rcx, dword [rdi + 0x14]
imul rcx, rax
mov eax, edx
add rcx, qword [rdi]
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 0x14003e264
nop
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 r11d, eax
cmp edi, eax
jne 0x14003defb
mov eax, r15d
sub eax, r9d
imul eax, ebp
add r8d, eax
jmp 0x14003e247
movzx eax, r9b
mov ecx, 0x100
sub ecx, eax
imul ecx, ebp
lea eax, [r8 + rcx]
cdq
movzx edx, dl
add eax, edx
sar eax, 8
mov r10d, eax
test eax, eax
jle 0x14003e09a
mov rcx, qword [rbx]
mov eax, r11d
mov r8, qword [rbx + 8]
imul eax, dword [rcx + 0x18]
cmp r10d, 0xff
jl 0x14003dfeb
movsxd r10, eax
mov eax, r11d
sub eax, dword [rbx + 0x14]
add r10, qword [rbx + 0x20]
cdq
idiv dword [r8 + 0x1c]
mov rax, qword [rbx + 0x28]
imul edx, dword [r8 + 0x18]
movzx r9d, byte [r10 + 1]
movsxd rcx, edx
movzx edx, byte [rcx + rax]
mov ecx, 0x100
mov r8d, edx
shl r8d, 0x10
or r8d, edx
movzx edx, byte [r10 + 2]
imul r8d, dword [rbx + 0x10]
shl edx, 0x10
shr r8d, 8
and r8d, 0xff00ff
mov eax, r8d
shr eax, 0x10
sub ecx, eax
movzx eax, byte [r10]
or edx, eax
imul r9d, ecx
imul edx, ecx
mov ecx, 0x100
shr r9d, 8
shr edx, 8
add r9d, r8d
and edx, 0xff00ff
add edx, r8d
mov eax, edx
shr eax, 8
and eax, 0xff00ff
sub ecx, eax
mov eax, r9d
shr eax, 8
or ecx, edx
neg al
and ecx, 0xff00ff
or al, r9b
mov byte [r10], cl
mov byte [r10 + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [r10 + 2], al
jmp 0x14003e09a
imul r10d, dword [rbx + 0x10]
movsxd r9, eax
mov eax, r11d
sub eax, dword [rbx + 0x14]
add r9, qword [rbx + 0x20]
cdq
idiv dword [r8 + 0x1c]
mov rax, qword [rbx + 0x28]
imul edx, dword [r8 + 0x18]
movzx r8d, byte [r9 + 1]
sar r10d, 8
movsxd rcx, edx
movzx edx, byte [rcx + rax]
mov ecx, 0x100
mov eax, edx
shl eax, 0x10
or eax, edx
movzx edx, byte [r9 + 2]
imul r10d, eax
shl edx, 0x10
shr r10d, 8
and r10d, 0xff00ff
mov eax, r10d
shr eax, 0x10
sub ecx, eax
movzx eax, byte [r9]
or edx, eax
imul r8d, ecx
imul edx, ecx
mov ecx, 0x100
shr r8d, 8
shr edx, 8
add r8d, r10d
and edx, 0xff00ff
add edx, r10d
mov eax, edx
shr eax, 8
and eax, 0xff00ff
sub ecx, eax
mov eax, r8d
shr eax, 8
or ecx, edx
neg al
and ecx, 0xff00ff
or al, r8b
mov byte [r9], cl
mov byte [r9 + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [r9 + 2], al
test ebp, ebp
jle 0x14003e23f
inc r11d
sub edi, r11d
test edi, edi
jle 0x14003e23f
mov rax, qword [rbx]
mov esi, ebp
imul esi, dword [rbx + 0x10]
movsxd rdx, dword [rax + 0x18]
mov eax, edx
imul eax, r11d
sub r11d, dword [rbx + 0x14]
sar esi, 8
movsxd rcx, eax
add rcx, qword [rbx + 0x20]
cmp esi, 0xfe
jge 0x14003e19c
mov r12, rdx
mov r8, qword [rbx + 8]
mov eax, r11d
movzx r10d, byte [rcx + 1]
cdq
inc r11d
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 r9d, r8d
shl r9d, 0x10
or r9d, r8d
movzx r8d, byte [rcx + 2]
shl r8d, 0x10
imul r9d, esi
shr r9d, 8
and r9d, 0xff00ff
mov eax, r9d
shr eax, 0x10
sub edx, eax
movzx eax, byte [rcx]
or r8d, eax
imul r10d, edx
imul r8d, edx
mov edx, 0x100
shr r10d, 8
shr r8d, 8
add r10d, r9d
and r8d, 0xff00ff
add r8d, r9d
mov eax, r8d
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, r10d
shr eax, 8
or edx, r8d
neg al
and edx, 0xff00ff
or al, r10b
mov byte [rcx], dl
mov byte [rcx + 1], al
mov eax, edx
shr eax, 0x10
mov byte [rcx + 2], al
add rcx, r12
test edi, edi
jg 0x14003e0e0
jmp 0x14003e23f
mov rsi, rdx
nop
mov r8, qword [rbx + 8]
mov eax, r11d
cdq
mov r9d, 0x100
inc r11d
dec edi
idiv dword [r8 + 0x1c]
mov rax, qword [rbx + 0x28]
imul edx, dword [r8 + 0x18]
movsxd rdx, edx
movzx r8d, byte [rdx + rax]
movzx eax, byte [rcx]
sub r9d, r8d
movzx edx, byte [rcx + 2]
mov r10d, r8d
shl edx, 0x10
or edx, eax
shl r10d, 0x10
imul edx, r9d
or r10d, r8d
mov r8d, 0x100
shr edx, 8
and edx, 0xff00ff
add edx, r10d
mov eax, edx
shr eax, 8
and eax, 0xff00ff
sub r8d, eax
or r8d, edx
movzx edx, byte [rcx + 1]
imul edx, r9d
and r8d, 0xff00ff
mov byte [rcx], r8b
shr edx, 8
add edx, r10d
mov eax, edx
shr eax, 8
neg al
or al, dl
mov byte [rcx + 1], al
mov eax, r8d
shr eax, 0x10
mov byte [rcx + 2], al
add rcx, rsi
test edi, edi
jg 0x14003e1a0
movzx r8d, r15b
imul r8d, ebp
sub r13d, 1
mov r9d, r15d
jns 0x14003dec0
mov rdi, qword [rbx]
mov r11, qword [rbx + 8]
mov esi, dword [rsp + 0x50]
mov r15, qword [rsp + 0x40]
mov eax, r8d
cdq
movzx edx, dl
add eax, edx
sar eax, 8
mov r10d, eax
test eax, eax
jle 0x14003e3e3
mov ecx, dword [rdi + 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]
cmp r10d, 0xff
jl 0x14003e348
movsxd r10, ecx
add r10, qword [rbx + 0x20]
movsxd rcx, edx
movzx r9d, byte [r10 + 1]
movzx edx, byte [rcx + rax]
mov ecx, 0x100
mov r8d, edx
shl r8d, 0x10
or r8d, edx
movzx edx, byte [r10 + 2]
imul r8d, dword [rbx + 0x10]
shl edx, 0x10
shr r8d, 8
and r8d, 0xff00ff
mov eax, r8d
shr eax, 0x10
sub ecx, eax
movzx eax, byte [r10]
or edx, eax
imul r9d, ecx
imul edx, ecx
mov ecx, 0x100
shr r9d, 8
shr edx, 8
add r9d, r8d
and edx, 0xff00ff
add edx, r8d
mov eax, edx
shr eax, 8
and eax, 0xff00ff
sub ecx, eax
mov eax, r9d
shr eax, 8
or ecx, edx
neg al
and ecx, 0xff00ff
or al, r9b
mov byte [r10], cl
mov byte [r10 + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [r10 + 2], al
jmp 0x14003e3e3
imul r10d, dword [rbx + 0x10]
movsxd r9, ecx
add r9, qword [rbx + 0x20]
movsxd rcx, edx
sar r10d, 8
movzx r8d, byte [r9 + 1]
movzx edx, byte [rcx + rax]
mov ecx, 0x100
mov eax, edx
shl eax, 0x10
or eax, edx
movzx edx, byte [r9 + 2]
imul r10d, eax
shl edx, 0x10
shr r10d, 8
and r10d, 0xff00ff
mov eax, r10d
shr eax, 0x10
sub ecx, eax
movzx eax, byte [r9]
or edx, eax
imul r8d, ecx
imul edx, ecx
mov ecx, 0x100
shr r8d, 8
shr edx, 8
add r8d, r10d
and edx, 0xff00ff
add edx, r10d
mov eax, edx
shr eax, 8
and eax, 0xff00ff
sub ecx, eax
mov eax, r8d
shr eax, 8
or ecx, edx
neg al
and ecx, 0xff00ff
or al, r8b
mov byte [r9], cl
mov byte [r9 + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [r9 + 2], al
mov rcx, qword [rsp + 0x58]
inc esi
mov dword [rsp + 0x50], esi
cmp esi, dword [r15 + 0x14]
jl 0x14003de50
mov r14, qword [rsp]
mov r13, qword [rsp + 8]
mov r12, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rsi
pop rbx
ret