Function at 0x140006360
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
imul r10d, ecx, 0x9a209
lea r9, [0x140037a00]
mov edi, ecx
mov eax, 0x1f
sub r10d, 0x3fe1f
sar r10d, 0x15
sub eax, r10d
imul r11d, r10d, 0xffe56cb1
movsxd rdx, eax
mov r9, qword [r9 + rdx*8]
sar r11d, 0x13
mov rax, r9
shr rax, 0x19
add r11d, ecx
mov ecx, 0x28
mov r8, r9
sub r8, rax
sub ecx, r11d
shr r8, cl
lea eax, [rdi - 2]
mov rdx, r9
shr rdx, 0x18
add rdx, r9
shr rdx, cl
lea ebx, [r8 + 1]
cmp eax, 1
mov eax, 0xcccccccd
cmovbe ebx, r8d
mul edx
shr edx, 3
lea eax, [rdx + rdx*4]
add eax, eax
cmp eax, ebx
jb 0x140005f0e
imul eax, edx, 0xc28f5c29
inc r10d
xor r8d, r8d
ror eax, 2
cmp eax, 0x28f5c28
ja 0x140005ed6
nop
mov edx, eax
add r8d, 2
imul eax, eax, 0xc28f5c29
ror eax, 2
cmp eax, 0x28f5c28
jbe 0x140005ec0
imul ecx, edx, 0xcccccccd
mov eax, r8d
ror ecx, 1
cmp ecx, 0x19999999
cmovbe edx, ecx
or eax, 1
cmp ecx, 0x19999999
mov ecx, edx
cmova eax, r8d
add eax, r10d
shl rax, 0x20
or rax, rcx
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
mov ecx, 0x27
lea eax, [rdi + 0x23]
sub ecx, r11d
shr r9, cl
inc r9d
shr r9d, 1
test eax, eax
jne 0x140005f34
test r9b, 1
lea ecx, [r9 - 1]
cmove ecx, r9d
jmp 0x140005f40
mov ecx, r9d
cmp r9d, ebx
jae 0x140005f40
lea ecx, [r9 + 1]
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
mov eax, r10d
shl rax, 0x20
or rax, rcx
ret
movss dword [rsp + 8], xmm0
sub rsp, 0x58
mov eax, dword [rsp + 0x60]
mov edx, eax
shr eax, 0x17
and edx, 0x7fffff
movzx r8d, al
test al, al
je 0x14000639e
add r8d, 0xffffff6a
test edx, edx
jne 0x140006398
mov ecx, r8d
add rsp, 0x58
jmp 0x140005e20
bts edx, 0x17
jmp 0x1400063b3
test edx, edx
jne 0x1400063ad
xor r9d, r9d
mov eax, r9d
add rsp, 0x58
ret
mov r8d, 0xffffff6b
mov qword [rsp + 0x70], rbx
mov ecx, 1
mov qword [rsp + 0x50], rbp
movzx ebx, dl
mov qword [rsp + 0x48], rsi
not bl
mov qword [rsp + 0x40], rdi
and bl, 1
mov qword [rsp + 0x38], r12
lea r12, [0x140037af8]
imul esi, r8d, 0x4d105
mov qword [rsp + 0x30], r13
lea r13d, [rdx + rdx]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
sar esi, 0x14
sub ecx, esi
imul edi, ecx, 0x1a934f
movsxd rax, ecx
mov ecx, 0x3f
mov r12, qword [r12 + rax*8]
mov eax, r13d
or eax, 1
sar edi, 0x13
add edi, r8d
mov rbp, r12
sub ecx, edi
shr rbp, cl
mov ecx, edi
shl eax, cl
mov ecx, eax
mov rax, r12
shl rcx, 0x20
mul rcx
mov r11, rdx
shr r11, 0x20
test edx, edx
mov dword [rsp + 0x68], r11d
sete byte [rsp + 0x6c]
xor r9d, r9d
imul r10, r11, 0x51eb851f
lea r14d, [r9 + 0x40]
shr r10, 0x25
lea r15d, [r9 + 0x20]
imul eax, r10d, 0x64
sub r11d, eax
cmp r11d, ebp
jae 0x14000652c
test r11d, r11d
jne 0x140006564
mov rax, qword [rsp + 0x68]
xor bl, 1
shr rax, 0x20
test bl, al
je 0x140006564
dec r10d
mov r11d, 0x64
shr ebp, 1
lea eax, [r10 + r10*4]
sub r11d, ebp
add r11d, 5
imul edx, r11d, 0x199a
movzx ebx, r11b
not bl
and bl, 1
mov ecx, edx
shr ecx, 0x10
lea r8d, [rcx + rax*2]
cmp dx, 0x199a
jae 0x1400064f3
sub r14d, edi
mov edx, r13d
imul rdx, r12
movzx ecx, r14b
sub r15d, edi
mov rax, rdx
shr rax, cl
movzx ecx, r15b
shr rdx, cl
and al, 1
cmp al, bl
jne 0x1400064f0
test edx, edx
sete r9b
test r8d, r9d
je 0x1400064f3
dec r8d
mov eax, esi
shl rax, 0x20
mov ecx, r8d
or rax, rcx
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x70]
mov r15, qword [rsp + 0x20]
add rsp, 0x58
ret
ja 0x140006494
lea r8d, [r13 - 1]
movzx eax, bl
imul r8, r12
mov ecx, r14d
sub ecx, edi
mov rdx, r8
shr rdx, cl
mov ecx, r15d
sub ecx, edi
and dl, 1
shr r8, cl
mov ecx, r9d
test r8d, r8d
cmove ecx, eax
or cl, dl
je 0x140006494
imul eax, r10d, 0xc28f5c29
ror eax, 2
cmp eax, 0x28f5c28
ja 0x140006597
nop word [rax + rax]
mov r10d, eax
add r9d, 2
imul eax, eax, 0xc28f5c29
ror eax, 2
cmp eax, 0x28f5c28
jbe 0x140006580
imul ecx, r10d, 0xcccccccd
mov eax, r9d
ror ecx, 1
cmp ecx, 0x19999999
cmovbe r10d, ecx
or eax, 1
cmp ecx, 0x19999999
mov dword [rsp + 0x68], r10d
cmova eax, r9d
inc eax
add eax, esi
mov dword [rsp + 0x6c], eax
mov rax, qword [rsp + 0x68]
jmp 0x1400064ff