Function at 0x471de0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov r8, qword [rcx]
mov rdx, qword [rcx + 0x18]
inc r8
je 0x471e53
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rdx]
por xmm0, xmmword [0x0063d8c0]
movdqa xmmword [rdx], xmm0
cmp r8, 0x11
jb 0x471e4d
mov eax, 0x10
movdqa xmm0, xmmword [0x0063d8c0]
nop dword [rax]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rdx + rax]
por xmm1, xmm0
movdqa xmmword [rdx + rax], xmm1
add rax, 0x10
jb 0x471e4d
cmp rax, r8
jb 0x471e30
cmp r8, 0x10
jae 0x471e5e
lea rcx, [rdx + 0x10]
call sub.msvcrt.dll_memmove
jmp 0x471e68
movdqu xmm0, xmmword [rdx]
movdqu xmmword [rdx + r8], xmm0
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0x10
mov qword [rsp + 0x30], rsi
mov r15, qword [rsi]
cmp r15, 0xffffffffffffffff
je 0x47212c
xor r14d, r14d
jmp 0x471ec3
shr rax, 0x39
lea r8, [r14 - 0x10]
and rdx, r8
mov byte [rcx + r14], al
mov byte [rdx + rcx + 0x10], al
lea rax, [r14 + 1]
cmp r14, r15
mov r14, rax
je 0x472115
mov r12, qword [rsi + 0x18]
cmp byte [r12 + r14], 0x80
jne 0x471eb3
mov rax, r14
shl rax, 4
sub r12, rax
add r12, 0xfffffffffffffff0
nop dword [rax]
mov rcx, rbx
mov rdx, rsi
mov r8, r14
call rdi
mov rdx, qword [rsi]
mov rcx, qword [rsi + 0x18]
mov r8, rdx
and r8, rax
movdqu xmm0, xmmword [rcx + r8]
pmovmskb r9d, xmm0
mov r10, r8
test r9d, r9d
jne 0x471f3a
mov r11d, 0x10
mov r10, r8
nop word cs:[rax + rax]
add r10, r11
and r10, rdx
movdqu xmm0, xmmword [rcx + r10]
pmovmskb r9d, xmm0
add r11, 0x10
test r9d, r9d
je 0x471f20
tzcnt r9d, r9d
add r9, r10
and r9, rdx
cmp byte [rcx + r9], 0
js 0x471f5a
movdqa xmm0, xmmword [rcx]
pmovmskb r9d, xmm0
tzcnt r9d, r9d
mov r10, r14
sub r10, r8
mov r11, r9
sub r11, r8
xor r11, r10
and r11, rdx
cmp r11, 0xf
jbe 0x471ea0
mov r10, r9
shl r10, 4
mov r8, rcx
sub r8, r10
add r8, 0xfffffffffffffff0
movzx r10d, byte [rcx + r9]
shr rax, 0x39
lea r11, [r9 - 0x10]
and r11, rdx
mov byte [rcx + r9], al
mov byte [r11 + rcx + 0x10], al
cmp r10b, 0xff
je 0x4720f0
movzx eax, byte [r12]
movzx ecx, byte [r8]
mov byte [r12], cl
mov byte [r8], al
movzx eax, byte [r12 + 1]
movzx ecx, byte [r8 + 1]
mov byte [r12 + 1], cl
mov byte [r8 + 1], al
movzx eax, byte [r12 + 2]
movzx ecx, byte [r8 + 2]
mov byte [r12 + 2], cl
mov byte [r8 + 2], al
movzx eax, byte [r12 + 3]
movzx ecx, byte [r8 + 3]
mov byte [r12 + 3], cl
mov byte [r8 + 3], al
movzx eax, byte [r12 + 4]
movzx ecx, byte [r8 + 4]
mov byte [r12 + 4], cl
mov byte [r8 + 4], al
movzx eax, byte [r12 + 5]
movzx ecx, byte [r8 + 5]
mov byte [r12 + 5], cl
mov byte [r8 + 5], al
movzx eax, byte [r12 + 6]
movzx ecx, byte [r8 + 6]
mov byte [r12 + 6], cl
mov byte [r8 + 6], al
movzx eax, byte [r12 + 7]
movzx ecx, byte [r8 + 7]
mov byte [r12 + 7], cl
mov byte [r8 + 7], al
movzx eax, byte [r12 + 8]
movzx ecx, byte [r8 + 8]
mov byte [r12 + 8], cl
mov byte [r8 + 8], al
movzx eax, byte [r12 + 9]
movzx ecx, byte [r8 + 9]
mov byte [r12 + 9], cl
mov byte [r8 + 9], al
movzx eax, byte [r12 + 0xa]
movzx ecx, byte [r8 + 0xa]
mov byte [r12 + 0xa], cl
mov byte [r8 + 0xa], al
movzx eax, byte [r12 + 0xb]
movzx ecx, byte [r8 + 0xb]
mov byte [r12 + 0xb], cl
mov byte [r8 + 0xb], al
movzx eax, byte [r12 + 0xc]
movzx ecx, byte [r8 + 0xc]
mov byte [r12 + 0xc], cl
mov byte [r8 + 0xc], al
movzx eax, byte [r12 + 0xd]
movzx ecx, byte [r8 + 0xd]
mov byte [r12 + 0xd], cl
mov byte [r8 + 0xd], al
movzx eax, byte [r12 + 0xe]
movzx ecx, byte [r8 + 0xe]
mov byte [r12 + 0xe], cl
mov byte [r8 + 0xe], al
movzx eax, byte [r12 + 0xf]
movzx ecx, byte [r8 + 0xf]
mov byte [r12 + 0xf], cl
mov byte [r8 + 0xf], al
jmp 0x471ee0
mov rax, qword [rsi + 0x18]
lea rcx, [r14 - 0x10]
and rcx, qword [rsi]
mov byte [rax + r14], 0xff
mov byte [rcx + rax + 0x10], 0xff
movdqu xmm0, xmmword [r12]
movdqu xmmword [r8], xmm0
jmp 0x471eb3
mov rcx, qword [rsi]
lea rax, [rcx + 1]
mov rdx, rax
shr rdx, 3
and rax, 0xfffffffffffffff8
sub rax, rdx
jmp 0x472135
mov rcx, 0xffffffffffffffff
xor eax, eax
cmp rcx, 8
cmovb rax, rcx
sub rax, qword [rsi + 0x10]
mov qword [rsi + 8], rax
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret