Function at 0x140006506
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x80
mov rsi, rcx
mov word [rsp + 0x4a], 0xe5bf
mov word [rsp + 0x4c], 0xe5d4
mov word [rsp + 0x4e], 0xe5da
mov word [rsp + 0x50], 0xe5cd
mov word [rsp + 0x52], 0xe5d1
mov word [rsp + 0x54], 0xe5da
mov word [rsp + 0x56], 0xe5d3
mov word [rsp + 0x58], 0xe58c
mov word [rsp + 0x5a], 0xe58d
mov word [rsp + 0x5c], 0xe591
mov word [rsp + 0x5e], 0xe5db
mov word [rsp + 0x60], 0xe5d3
mov word [rsp + 0x62], 0xe5d3
mov word [rsp + 0x64], 0
mov ecx, 0x1a
call fcn.1400018f0
mov rdi, rax
mov eax, 1
nop word cs:[rax + rax]
movzx ecx, word [rsp + rax*2 + 0x4a]
xor cx, word [rsp + 0x4a]
mov word [rdi + rax*2 - 2], cx
inc rax
cmp rax, 0xd
jne 0x140006430
mov word [rdi + 0x18], 0
mov word [rsp + 0x66], 0x6e
mov word [rsp + 0x68], 0x68
mov word [rsp + 0x6a], 0x75
mov word [rsp + 0x6c], 0x71
mov word [rsp + 0x6e], 0x68
mov word [rsp + 0x70], 0x6f
mov word [rsp + 0x72], 0x36
mov word [rsp + 0x74], 0x35
mov word [rsp + 0x76], 0x31
mov word [rsp + 0x78], 0x67
mov word [rsp + 0x7a], 0x6f
mov word [rsp + 0x7c], 0x6f
mov word [rsp + 0x7e], 0
mov ecx, 0x1a
call fcn.1400018f0
xor ecx, ecx
nop word cs:[rax + rax]
movzx edx, word [rsp + rcx*2 + 0x66]
add edx, 0xfffffffd
mov word [rax + rcx*2], dx
inc rcx
cmp rcx, 0xc
jne 0x1400064c0
mov word [rax + 0x18], 0
mov byte [rsp + 0x49], 0x69
movzx ecx, byte [rsp + 0x49]
add cl, 0xf7
movzx ecx, cl
mov rcx, qword gs:[rcx]
mov rcx, qword [rcx + 0x18]
add rcx, 0x20
jmp 0x140006506
cmp r9w, r10w
je 0x140006553
mov rcx, qword [rcx]
mov rdx, qword [rcx + 0x50]
xor r8d, r8d
movzx r10d, word [rdx + r8]
lea r11d, [r10 - 0x41]
mov r9d, r10d
or r9d, 0x20
cmp r11w, 0x1a
cmovae r9d, r10d
movzx r11d, word [rax + r8]
lea ebx, [r11 - 0x41]
mov r10d, r11d
or r10d, 0x20
cmp bx, 0x1a
cmovae r10d, r11d
test r9w, r9w
leave
je 0x140006500
add r8, 2
cmp r9w, r10w
je 0x140006510
jmp 0x140006500
mov rdx, qword [rcx + 0x20]
movsxd rcx, dword [rdx + 0x3c]
add rcx, rdx
mov r8d, 0x12337fde
call fcn.140004690
dec dword [rax - 0x77]
stc
call rax
mov rsi, qword [rsi]
mov word [rsp + 0x4a], 0x81e5
mov word [rsp + 0x4c], 0x818e
mov word [rsp + 0x4e], 0x8180
mov word [rsp + 0x50], 0x8197
mov word [rsp + 0x52], 0x818b
mov word [rsp + 0x54], 0x8180
mov word [rsp + 0x56], 0x8189
mov word [rsp + 0x58], 0x81d6
mov word [rsp + 0x5a], 0x81d7
mov word [rsp + 0x5c], 0x81cb
mov word [rsp + 0x5e], 0x8181
mov word [rsp + 0x60], 0x8189
mov word [rsp + 0x62], 0x8189
mov word [rsp + 0x64], 0
mov ecx, 0x1a
call fcn.1400018f0
mov ecx, 1
nop word cs:[rax + rax]
movzx edx, word [rsp + rcx*2 + 0x4a]
xor dx, word [rsp + 0x4a]
mov word [rax + rcx*2 - 2], dx
inc rcx
cmp rcx, 0xd
jne 0x1400065f0
mov word [rax + 0x18], 0
mov byte [rsp + 0x66], 0x69
movzx ecx, byte [rsp + 0x66]
add cl, 0xf7
movzx ecx, cl
mov rcx, qword gs:[rcx]
mov rcx, qword [rcx + 0x18]
add rcx, 0x20
jmp 0x140006636
cmp r9w, r10w
je 0x140006683
mov rcx, qword [rcx]
mov rdx, qword [rcx + 0x50]
xor r8d, r8d
movzx r10d, word [rdx + r8]
lea r11d, [r10 - 0x41]
mov r9d, r10d
or r9d, 0x20
cmp r11w, 0x1a
cmovae r9d, r10d
movzx r11d, word [rax + r8]
lea edi, [r11 - 0x41]
mov r10d, r11d
or r10d, 0x20
cmp di, 0x1a
cmovae r10d, r11d
test r9w, r9w
je 0x140006630
add r8, 2
cmp r9w, r10w
je 0x140006640
jmp 0x140006630
mov rdx, qword [rcx + 0x20]
movsxd rcx, dword [rdx + 0x3c]
add rcx, rdx
mov r8d, 0x6d2fcd7e
call fcn.140004690
mov r8, qword [rsi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov ecx, 0xfde9
xor edx, edx
mov r9d, 0xffffffff
call rax
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
ret