Function at 0x14003d810
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, 0xa8
mov rsi, r9
mov r13, r8
mov r14, rdx
mov rdi, rcx
mov r12, qword [rsp + 0x128]
mov r15, qword [rsp + 0x120]
mov rbp, qword [rsp + 0x118]
mov rax, qword [0x140155cc0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rbx, r8
cmp r8, r9
je 0x14003d882
mov rbx, r13
nop word cs:[rax + rax]
cmp word [rbx], 0
je 0x14003d882
add rbx, 2
cmp rbx, rsi
jne 0x14003d870
mov rbx, rsi
mov qword [r12], rbp
mov rax, qword [rsp + 0x110]
mov qword [rax], r13
cmp r13, rsi
sete al
cmp rbp, r15
sete cl
or cl, al
jne 0x14003db54
nop word cs:[rax + rax]
mov rax, qword [r14]
mov qword [rsp + 0x90], rax
movups xmm0, xmmword [rdi + 0x10]
movaps xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x80], 0
mov r9, r15
sub r9, rbp
mov r8, rbx
sub r8, r13
sar r8, 1
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rcx, rbp
mov rdx, qword [rsp + 0x110]
call fcn.1400451c0
test rax, rax
je 0x14003dac2
cmp rax, 0xffffffffffffffff
je 0x14003dacc
mov rbp, rax
add rbp, qword [r12]
mov qword [r12], rbp
cmp rbp, r15
je 0x14003db49
cmp rbx, rsi
je 0x14003d9e0
mov byte [rsp + 0x9c], 0xaa
mov dword [rsp + 0x98], 0xaaaaaaaa
movups xmm0, xmmword [rdi + 0x10]
movaps xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x98]
xor edx, edx
mov r8, r14
lea r9, [rsp + 0x30]
call fcn.140044e90
cmp rax, 0xffffffffffffffff
je 0x14003db8a
mov rcx, r15
sub rcx, qword [r12]
cmp rax, rcx
ja 0x14003dac2
test rax, rax
je 0x14003da6c
mov rcx, rax
and rcx, 3
je 0x14003d9f3
xor r8d, r8d
nop dword [rax]
movzx edx, byte [rsp + r8 + 0x98]
mov r9, qword [r12]
lea r10, [r9 + 1]
mov qword [r12], r10
mov byte [r9], dl
inc r8
cmp rcx, r8
jne 0x14003d9a0
lea rcx, [rsp + r8]
add rcx, 0x98
mov rdx, rax
sub rdx, r8
cmp rax, 4
jae 0x14003da04
jmp 0x14003da6c
mov rax, qword [rsp + 0x110]
mov r13, qword [rax]
mov rbx, rsi
jmp 0x14003daab
lea rcx, [rsp + 0x98]
mov rdx, rax
cmp rax, 4
jb 0x14003da6c
xor eax, eax
nop word cs:[rax + rax]
movzx r8d, byte [rcx + rax]
mov r9, qword [r12]
lea r10, [r9 + 1]
mov qword [r12], r10
mov byte [r9], r8b
movzx r8d, byte [rcx + rax + 1]
mov r9, qword [r12]
lea r10, [r9 + 1]
mov qword [r12], r10
mov byte [r9], r8b
movzx r8d, byte [rcx + rax + 2]
mov r9, qword [r12]
lea r10, [r9 + 1]
mov qword [r12], r10
mov byte [r9], r8b
movzx r8d, byte [rcx + rax + 3]
mov r9, qword [r12]
lea r10, [r9 + 1]
mov qword [r12], r10
mov byte [r9], r8b
add rax, 4
cmp rdx, rax
jne 0x14003da10
mov rax, qword [rsp + 0x110]
mov r13, qword [rax]
add r13, 2
mov qword [rax], r13
mov rax, r13
mov rbx, rsi
cmp r13, rsi
je 0x14003daa7
nop dword [rax]
cmp word [rax], 0
je 0x14003daa4
add rax, 2
cmp rax, rsi
jne 0x14003da90
mov rbx, rsi
jmp 0x14003daa7
mov rbx, rax
mov rbp, qword [r12]
cmp r13, rsi
je 0x14003db54
cmp rbp, r15
jne 0x14003d8b0
jmp 0x14003db54
mov eax, 1
jmp 0x14003db5c
mov qword [r12], rbp
mov rax, qword [rsp + 0x110]
cmp r13, qword [rax]
je 0x14003db37
lea rbx, [rsp + 0x90]
lea r14, [rsp + 0x50]
nop word [rax + rax]
movups xmm0, xmmword [rdi + 0x10]
movaps xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], 0
movzx edx, word [r13]
mov rcx, rbp
mov r8, rbx
mov r9, r14
call fcn.140044e90
cmp rax, 0xffffffffffffffff
je 0x14003db37
mov rbp, rax
add rbp, qword [r12]
mov qword [r12], rbp
add r13, 2
mov rax, qword [rsp + 0x110]
cmp r13, qword [rax]
jne 0x14003daf0
mov rax, qword [rsp + 0x110]
mov qword [rax], r13
mov eax, 2
jmp 0x14003db5c
mov rax, qword [rsp + 0x110]
mov r13, qword [rax]
xor eax, eax
cmp r13, rsi
setne al
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
cmp rcx, qword [0x140155cc0]
jne 0x14003db84
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400e0180
int3
mov eax, 2
jmp 0x14003db5c