Function at 0x18002cdd0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xba0
movsxd rdi, dword [rcx + 0x70]
lea rdx, [0x180069690]
mov rbx, rcx
shl rdi, 5
add rdi, qword [rcx + 0x58]
mov r8d, 0xb65
lea rcx, [rsp + 0x20]
call fcn.1800520c0
xor r8d, r8d
movabs r9, 0xa0a0a0a0a0a0a0a1
nop
mov rax, r9
mul r8
shr rdx, 5
movsx eax, dl
imul ecx, eax, 0x33
movzx eax, r8b
sub al, cl
add al, 0x31
xor byte [rsp + r8 + 0x20], al
inc r8
cmp r8, 0xb65
jb 0x18002ce10
test byte [rbx + 4], 2
mov esi, dword [rbx + 0x28]
jne 0x18002d256
mov qword [rsp + 0xbc0], rbp
xor r10d, r10d
mov qword [rsp + 0xbc8], r12
xor ebp, ebp
mov qword [rsp + 0xbd0], r13
lea r12, [rsp + 0x22]
mov qword [rsp + 0xb98], r14
lea r13, [rsp + 0x23]
mov qword [rsp + 0xb90], r15
mov r14d, 0xff
lea r15, [rsp + 0x20]
nop dword [rax + rax]
xor r11d, r11d
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rdi + 6]
movzx ecx, word [rdi + 4]
add eax, r10d
imul eax, esi
movzx r8d, byte [rsp + rbp + 0x21]
add eax, r11d
add ecx, eax
mov rax, qword [rbx + 0x18]
movsxd rdx, ecx
xor ecx, ecx
cmp byte [r15 + rbp], 0x2e
cmove ecx, r14d
mov byte [rdx + rax], cl
xor ecx, ecx
mov rax, qword [rbx + 0x18]
cmp byte [r15 + rbp], 0x58
cmove ecx, r14d
mov byte [rdx + rax + 0x6d], cl
xor edx, edx
movzx eax, word [rdi + 6]
movzx r9d, word [rdi + 4]
add eax, r10d
imul eax, esi
add eax, r11d
add r9d, eax
mov rax, qword [rbx + 0x18]
movsxd rcx, r9d
cmp r8b, 0x2e
cmove edx, r14d
mov byte [rcx + rax + 1], dl
xor edx, edx
lea eax, [r9 + 0x6e]
cmp r8b, 0x58
movsxd rcx, eax
mov rax, qword [rbx + 0x18]
cmove edx, r14d
mov byte [rcx + rax], dl
xor edx, edx
movzx eax, word [rdi + 6]
movzx r9d, word [rdi + 4]
add eax, r10d
imul eax, esi
add eax, r11d
add r9d, eax
mov rax, qword [rbx + 0x18]
cmp byte [r12 + rbp], 0x2e
movsxd rcx, r9d
cmove edx, r14d
mov byte [rcx + rax + 2], dl
xor edx, edx
cmp byte [r12 + rbp], 0x58
lea eax, [r9 + 0x6f]
movsxd rcx, eax
mov rax, qword [rbx + 0x18]
cmove edx, r14d
mov byte [rcx + rax], dl
xor edx, edx
movzx eax, word [rdi + 6]
movzx r9d, word [rdi + 4]
add eax, r10d
imul eax, esi
add eax, r11d
add r9d, eax
mov rax, qword [rbx + 0x18]
cmp byte [rbp + r13], 0x2e
movsxd rcx, r9d
cmove edx, r14d
mov byte [rcx + rax + 3], dl
lea eax, [r9 + 0x70]
movsxd rcx, eax
xor edx, edx
mov rax, qword [rbx + 0x18]
cmp byte [rbp + r13], 0x58
cmove edx, r14d
mov byte [rcx + rax], dl
movzx eax, word [rdi + 6]
movzx r9d, word [rdi + 4]
add eax, r10d
imul eax, esi
add eax, r11d
add r9d, eax
xor edx, edx
movsxd rcx, r9d
lea rax, [rsp + 0x24]
movzx r8d, byte [rax + rbp]
mov rax, qword [rbx + 0x18]
cmp r8b, 0x2e
cmove edx, r14d
mov byte [rcx + rax + 4], dl
xor edx, edx
cmp r8b, 0x58
lea eax, [r9 + 0x71]
movsxd rcx, eax
mov rax, qword [rbx + 0x18]
cmove edx, r14d
mov byte [rcx + rax], dl
xor edx, edx
movzx eax, word [rdi + 6]
movzx r9d, word [rdi + 4]
add eax, r10d
imul eax, esi
add eax, r11d
add r9d, eax
lea rax, [rsp + 0x25]
movzx r8d, byte [rax + rbp]
mov rax, qword [rbx + 0x18]
cmp r8b, 0x2e
movsxd rcx, r9d
cmove edx, r14d
mov byte [rcx + rax + 5], dl
xor edx, edx
cmp r8b, 0x58
lea eax, [r9 + 0x72]
movsxd rcx, eax
mov rax, qword [rbx + 0x18]
cmove edx, r14d
mov byte [rcx + rax], dl
xor edx, edx
movzx eax, word [rdi + 6]
movzx r9d, word [rdi + 4]
add eax, r10d
imul eax, esi
add eax, r11d
add r9d, eax
lea rax, [rsp + 0x26]
movzx r8d, byte [rax + rbp]
mov rax, qword [rbx + 0x18]
cmp r8b, 0x2e
movsxd rcx, r9d
cmove edx, r14d
mov byte [rcx + rax + 6], dl
xor edx, edx
cmp r8b, 0x58
lea eax, [r9 + 0x73]
movsxd rcx, eax
mov rax, qword [rbx + 0x18]
cmove edx, r14d
mov byte [rcx + rax], dl
xor edx, edx
movzx eax, word [rdi + 6]
movzx r9d, word [rdi + 4]
add eax, r10d
imul eax, esi
add eax, r11d
add r9d, eax
lea rax, [rsp + 0x27]
movzx r8d, byte [rax + rbp]
mov rax, qword [rbx + 0x18]
cmp r8b, 0x2e
movsxd rcx, r9d
cmove edx, r14d
mov byte [rcx + rax + 7], dl
xor edx, edx
lea eax, [r9 + 0x74]
cmp r8b, 0x58
movsxd rcx, eax
mov rax, qword [rbx + 0x18]
cmove edx, r14d
mov byte [rcx + rax], dl
movzx eax, word [rdi + 6]
add eax, r10d
imul eax, esi
movzx r9d, word [rdi + 4]
add eax, r11d
add r9d, eax
xor edx, edx
movsxd rcx, r9d
lea rax, [rsp + 0x28]
movzx r8d, byte [rax + rbp]
mov rax, qword [rbx + 0x18]
cmp r8b, 0x2e
cmove edx, r14d
mov byte [rcx + rax + 8], dl
xor edx, edx
cmp r8b, 0x58
lea eax, [r9 + 0x75]
movsxd rcx, eax
mov rax, qword [rbx + 0x18]
cmove edx, r14d
mov byte [rcx + rax], dl
xor edx, edx
movzx eax, word [rdi + 6]
movzx r9d, word [rdi + 4]
add eax, r10d
imul eax, esi
add eax, r11d
add r9d, eax
lea rax, [rsp + 0x29]
movzx r8d, byte [rax + rbp]
mov rax, qword [rbx + 0x18]
cmp r8b, 0x2e
movsxd rcx, r9d
cmove edx, r14d
mov byte [rcx + rax + 9], dl
xor edx, edx
cmp r8b, 0x58
lea eax, [r9 + 0x76]
movsxd rcx, eax
mov rax, qword [rbx + 0x18]
cmove edx, r14d
mov byte [rcx + rax], dl
xor edx, edx
movzx eax, word [rdi + 6]
movzx r9d, word [rdi + 4]
add eax, r10d
imul eax, esi
add eax, r11d
add r9d, eax
lea rax, [rsp + 0x2a]
movzx r8d, byte [rax + rbp]
mov rax, qword [rbx + 0x18]
cmp r8b, 0x2e
movsxd rcx, r9d
cmove edx, r14d
mov byte [rcx + rax + 0xa], dl
xor edx, edx
lea eax, [r9 + 0x77]
cmp r8b, 0x58
movsxd rcx, eax
mov rax, qword [rbx + 0x18]
cmove edx, r14d
mov byte [rcx + rax], dl
xor edx, edx
movzx eax, word [rdi + 6]
movzx r9d, word [rdi + 4]
add eax, r10d
imul eax, esi
add eax, r11d
add r9d, eax
lea rax, [rsp + 0x2b]
movzx r8d, byte [rax + rbp]
mov rax, qword [rbx + 0x18]
cmp r8b, 0x2e
movsxd rcx, r9d
cmove edx, r14d
mov byte [rcx + rax + 0xb], dl
lea eax, [r9 + 0x78]
xor edx, edx
movsxd rcx, eax
mov rax, qword [rbx + 0x18]
cmp r8b, 0x58
cmove edx, r14d
mov byte [rcx + rax], dl
add rbp, 0xc
add r11d, 0xc
cmp r11d, 0x6c
jl 0x18002cea0
inc r10d
cmp r10d, 0x1b
jl 0x18002ce90
mov r15, qword [rsp + 0xb90]
mov r14, qword [rsp + 0xb98]
mov r13, qword [rsp + 0xbd0]
mov r12, qword [rsp + 0xbc8]
mov rbp, qword [rsp + 0xbc0]
jmp 0x18002d28e
movzx eax, word [rdi + 4]
movzx edx, word [rdi + 6]
imul edx, esi
add edx, eax
lea eax, [rdx + rsi]
movsxd rcx, eax
mov rax, qword [rbx + 0x18]
mov byte [rcx + rax + 1], 0xff
mov rax, qword [rbx + 0x18]
mov byte [rcx + rax], 0xff
mov rax, qword [rbx + 0x18]
movsxd rcx, edx
mov byte [rax + rcx + 1], 0xff
mov rax, qword [rbx + 0x18]
mov byte [rcx + rax], 0xff
movzx eax, word [rdi + 4]
movd xmm2, eax
movzx eax, word [rdi + 6]
cvtdq2ps xmm2, xmm2
movd xmm1, eax
addss xmm2, dword [0x180064ca4]
cvtdq2ps xmm1, xmm1
mulss xmm2, dword [rbx + 0x30]
addss xmm1, dword [0x180064ca4]
movss dword [rbx + 0x38], xmm2
mulss xmm1, dword [rbx + 0x34]
movss dword [rbx + 0x3c], xmm1
add rsp, 0xba0
pop rdi
pop rsi
pop rbx
ret