Function at 0x180136fc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov rsi, rcx
movzx eax, byte [r9]
test r8b, 1
jne 0x180137057
test al, al
je 0x18013705b
mov rax, qword [rdx]
mov r8, qword [rdx + 8]
mov rcx, qword [rdx + 0x10]
mov r9, qword [rdx + 0x18]
mov rdx, rax
cmp r8, r9
je 0x1801370d1
mov rdx, rax
jmp 0x18013701d
add r8, 0x20
cmp r8, r9
je 0x1801370d1
movzx r10d, word [r8]
movups xmm0, xmmword [r8 + 2]
movups xmm1, xmmword [r8 + 0x10]
movups xmmword [rsp + 0x5e], xmm1
movaps xmmword [rsp + 0x50], xmm0
test r10w, r10w
je 0x180137010
mov word [rdx], r10w
movaps xmm0, xmmword [rsp + 0x50]
movups xmmword [rdx + 2], xmm0
movups xmm0, xmmword [rsp + 0x5e]
movups xmmword [rdx + 0x10], xmm0
add rdx, 0x20
jmp 0x180137010
test al, al
je 0x18013706e
mov r14, qword [rdx + 8]
mov r15, qword [rdx + 0x18]
cmp r15, r14
je 0x1801370e5
movzx ebp, byte [r14]
jmp 0x1801370e7
mov rax, qword [rdx]
mov r8, qword [rdx + 8]
mov rcx, qword [rdx + 0x10]
mov r9, qword [rdx + 0x18]
mov rdx, rax
cmp r8, r9
je 0x1801370d1
mov rdx, rax
jmp 0x180137099
add r8, 0x20
cmp r8, r9
je 0x1801370d1
cmp word [r8], 0
movups xmm0, xmmword [r8 + 2]
movups xmm1, xmmword [r8 + 0x10]
movups xmmword [rsp + 0x5e], xmm1
movaps xmmword [rsp + 0x50], xmm0
jne 0x180137090
mov word [rdx], 0
movaps xmm0, xmmword [rsp + 0x50]
movups xmmword [rdx + 2], xmm0
movups xmm0, xmmword [rsp + 0x5e]
movups xmmword [rdx + 0x10], xmm0
add rdx, 0x20
jmp 0x180137090
mov r8d, 4
xor r9d, r9d
mov r10d, 4
jmp 0x180137187
xor ebp, ebp
mov rax, qword [rdx]
mov qword [rsp + 0x78], rax
mov rax, qword [rdx + 0x10]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 4
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 4
mov qword [rsp + 0x48], 0
cmp r15, r14
jne 0x1801371fc
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x18013715b
shl rdx, 5
mov r8d, 4
mov rcx, qword [rsp + 0x78]
call fcn.180057680
mov rcx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov r9, qword [rsp + 0x38]
mov r8, qword [rsp + 0x40]
mov r10, qword [rsp + 0x48]
shl rdx, 5
add rdx, rax
shl r10, 5
add r10, r8
mov qword [rsi], rax
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
mov qword [rsi + 0x20], r8
mov qword [rsi + 0x28], r8
mov qword [rsi + 0x30], r9
mov qword [rsi + 0x38], r10
mov rax, rsi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1801359f0
mov rax, qword [r13]
mov rcx, rbx
shl rcx, 5
mov word [rax + rcx], di
movaps xmm0, xmmword [rsp + 0x50]
movups xmmword [rax + rcx + 2], xmm0
movups xmm0, xmmword [rsp + 0x5e]
movups xmmword [rax + rcx + 0x10], xmm0
inc rbx
mov qword [r12], rbx
add r14, 0x20
cmp r14, r15
je 0x18013713a
test bpl, bpl
sete al
movzx edi, word [r14]
movups xmm0, xmmword [r14 + 2]
movups xmm1, xmmword [r14 + 0x10]
movups xmmword [rsp + 0x5e], xmm1
movaps xmmword [rsp + 0x50], xmm0
test di, di
setne cl
xor cl, al
je 0x180137250
mov rbx, qword [rsp + 0x30]
lea rcx, [rsp + 0x20]
lea r13, [rsp + 0x28]
lea r12, [rsp + 0x30]
cmp rbx, qword [rsp + 0x20]
je 0x1801371c0
jmp 0x1801371c5
mov rbx, qword [rsp + 0x48]
lea rcx, [rsp + 0x38]
lea r13, [rsp + 0x40]
lea r12, [rsp + 0x48]
cmp rbx, qword [rsp + 0x38]
je 0x1801371c0
jmp 0x1801371c5