Function at 0x18006c5b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x548
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xea
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x568]
cmp dword [rbp + 0x550], 3
jl 0x18006c603
mov eax, dword [rbp + 0x558]
and eax, 0xff000000
test eax, eax
jne 0x18006c608
jmp 0x18006cf3b
mov rax, qword [rbp + 0x540]
mov rax, qword [rax + 0x38]
mov rax, qword [rax]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x540]
mov eax, dword [rax + 0x30]
and eax, 4
test eax, eax
je 0x18006cd77
mov rax, qword [rbp + 0x540]
movss xmm0, dword [rax + 0xc0]
movss dword [rbp + 0x24], xmm0
mov eax, dword [rbp + 0x558]
and eax, 0xffffff
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 0x550]
sub eax, 2
imul eax, eax, 3
imul ecx, dword [rbp + 0x550], 6
add eax, ecx
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x550]
shl eax, 1
mov dword [rbp + 0x84], eax
mov r8d, dword [rbp + 0x84]
mov edx, dword [rbp + 0x64]
mov rcx, qword [rbp + 0x540]
call fcn.18007bf50
mov rax, qword [rbp + 0x540]
mov eax, dword [rax + 0x34]
mov dword [rbp + 0xa4], eax
mov rax, qword [rbp + 0x540]
mov eax, dword [rax + 0x34]
inc eax
mov dword [rbp + 0xc4], eax
mov dword [rbp + 0xe4], 2
jmp 0x18006c6c9
mov eax, dword [rbp + 0xe4]
inc eax
mov dword [rbp + 0xe4], eax
mov eax, dword [rbp + 0x550]
cmp dword [rbp + 0xe4], eax
jge 0x18006c768
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rbp + 0x540]
mov rcx, qword [rcx + 0x50]
movzx edx, word [rbp + 0xa4]
mov word [rax + rcx], dx
mov eax, dword [rbp + 0xa4]
mov ecx, dword [rbp + 0xe4]
lea eax, [rax + rcx*2 - 2]
mov ecx, 2
imul rcx, rcx, 1
mov rdx, qword [rbp + 0x540]
mov rdx, qword [rdx + 0x50]
mov word [rcx + rdx], ax
mov eax, dword [rbp + 0xa4]
mov ecx, dword [rbp + 0xe4]
lea eax, [rax + rcx*2]
mov ecx, 2
imul rcx, rcx, 2
mov rdx, qword [rbp + 0x540]
mov rdx, qword [rdx + 0x50]
mov word [rcx + rdx], ax
mov rax, qword [rbp + 0x540]
mov rax, qword [rax + 0x50]
add rax, 6
mov rcx, qword [rbp + 0x540]
mov qword [rcx + 0x50], rax
jmp 0x18006c6bb
mov rax, qword [rbp + 0x540]
mov rax, qword [rax + 0x38]
add rax, 0x30
mov qword [rbp + 0x518], rax
mov edx, dword [rbp + 0x550]
mov rcx, qword [rbp + 0x518]
call fcn.180081d50
mov rax, qword [rbp + 0x540]
mov rax, qword [rax + 0x38]
mov rax, qword [rax + 0x38]
mov qword [rbp + 0x108], rax
mov eax, dword [rbp + 0x550]
dec eax
mov dword [rbp + 0x124], eax
mov dword [rbp + 0x144], 0
jmp 0x18006c7e6
mov eax, dword [rbp + 0x144]
mov dword [rbp + 0x514], eax
mov eax, dword [rbp + 0x144]
inc eax
mov dword [rbp + 0x144], eax
mov eax, dword [rbp + 0x514]
mov dword [rbp + 0x124], eax
mov eax, dword [rbp + 0x550]
cmp dword [rbp + 0x144], eax
jge 0x18006c92d
movsxd rax, dword [rbp + 0x124]
mov rcx, qword [rbp + 0x548]
lea rax, [rcx + rax*8]
mov qword [rbp + 0x168], rax
movsxd rax, dword [rbp + 0x144]
mov rcx, qword [rbp + 0x548]
lea rax, [rcx + rax*8]
mov qword [rbp + 0x188], rax
mov rax, qword [rbp + 0x188]
mov rcx, qword [rbp + 0x168]
movss xmm0, dword [rax]
subss xmm0, dword [rcx]
movss dword [rbp + 0x1a4], xmm0
mov rax, qword [rbp + 0x188]
mov rcx, qword [rbp + 0x168]
movss xmm0, dword [rax + 4]
subss xmm0, dword [rcx + 4]
movss dword [rbp + 0x1c4], xmm0
movss xmm0, dword [rbp + 0x1a4]
mulss xmm0, dword [rbp + 0x1a4]
movss xmm1, dword [rbp + 0x1c4]
mulss xmm1, dword [rbp + 0x1c4]
addss xmm0, xmm1
movss dword [rbp + 0x1e4], xmm0
movss xmm0, dword [rbp + 0x1e4]
comiss xmm0, dword [0x18023cb70]
jbe 0x18006c8ea
movss xmm0, dword [rbp + 0x1e4]
call fcn.18007a690
movss dword [rbp + 0x204], xmm0
movss xmm0, dword [rbp + 0x1a4]
mulss xmm0, dword [rbp + 0x204]
movss dword [rbp + 0x1a4], xmm0
movss xmm0, dword [rbp + 0x1c4]
mulss xmm0, dword [rbp + 0x204]
movss dword [rbp + 0x1c4], xmm0
movsxd rax, dword [rbp + 0x124]
mov rcx, qword [rbp + 0x108]
movss xmm0, dword [rbp + 0x1c4]
movss dword [rcx + rax*8], xmm0
movss xmm0, dword [rbp + 0x1a4]
xorps xmm0, xmmword [0x18023cc90]
movsxd rax, dword [rbp + 0x124]
mov rcx, qword [rbp + 0x108]
movss dword [rcx + rax*8 + 4], xmm0
jmp 0x18006c7c0
mov eax, dword [rbp + 0x550]
dec eax
mov dword [rbp + 0x224], eax
mov dword [rbp + 0x244], 0
jmp 0x18006c96d
mov eax, dword [rbp + 0x244]
mov dword [rbp + 0x514], eax
mov eax, dword [rbp + 0x244]
inc eax
mov dword [rbp + 0x244], eax
mov eax, dword [rbp + 0x514]
mov dword [rbp + 0x224], eax
mov eax, dword [rbp + 0x550]
cmp dword [rbp + 0x244], eax
jge 0x18006cd57
movsxd rax, dword [rbp + 0x224]
mov rcx, qword [rbp + 0x108]
lea rax, [rcx + rax*8]
mov qword [rbp + 0x268], rax
movsxd rax, dword [rbp + 0x244]
mov rcx, qword [rbp + 0x108]
lea rax, [rcx + rax*8]
mov qword [rbp + 0x288], rax
mov rax, qword [rbp + 0x268]
mov rcx, qword [rbp + 0x288]
movss xmm0, dword [rax]
addss xmm0, dword [rcx]
mulss xmm0, dword [0x18023cbb0]
movss dword [rbp + 0x2a4], xmm0
mov rax, qword [rbp + 0x268]
mov rcx, qword [rbp + 0x288]
movss xmm0, dword [rax + 4]
addss xmm0, dword [rcx + 4]
mulss xmm0, dword [0x18023cbb0]
movss dword [rbp + 0x2c4], xmm0
movss xmm0, dword [rbp + 0x2a4]
mulss xmm0, dword [rbp + 0x2a4]
movss xmm1, dword [rbp + 0x2c4]
mulss xmm1, dword [rbp + 0x2c4]
addss xmm0, xmm1
movss dword [rbp + 0x2e4], xmm0
movss xmm0, dword [rbp + 0x2e4]
comiss xmm0, dword [0x180242210]
jbe 0x18006caa5
movss xmm0, dword [0x18023cbd8]
divss xmm0, dword [rbp + 0x2e4]
movss dword [rbp + 0x304], xmm0
movss xmm0, dword [rbp + 0x304]
comiss xmm0, dword [0x18023cc50]
jbe 0x18006ca75
movss xmm0, dword [0x18023cc50]
movss dword [rbp + 0x304], xmm0
movss xmm0, dword [rbp + 0x2a4]
mulss xmm0, dword [rbp + 0x304]
movss dword [rbp + 0x2a4], xmm0
movss xmm0, dword [rbp + 0x2c4]
mulss xmm0, dword [rbp + 0x304]
movss dword [rbp + 0x2c4], xmm0
movss xmm0, dword [rbp + 0x24]
mulss xmm0, dword [0x18023cbb0]
movss xmm1, dword [rbp + 0x2a4]
mulss xmm1, xmm0
movaps xmm0, xmm1
movss dword [rbp + 0x2a4], xmm0
movss xmm0, dword [rbp + 0x24]
mulss xmm0, dword [0x18023cbb0]
movss xmm1, dword [rbp + 0x2c4]
mulss xmm1, xmm0
movaps xmm0, xmm1
movss dword [rbp + 0x2c4], xmm0
movsxd rax, dword [rbp + 0x244]
mov rcx, qword [rbp + 0x548]
movss xmm0, dword [rcx + rax*8]
subss xmm0, dword [rbp + 0x2a4]
mov eax, 0x14
imul rax, rax, 0
mov rcx, qword [rbp + 0x540]
mov rcx, qword [rcx + 0x48]
movss dword [rcx + rax], xmm0
movsxd rax, dword [rbp + 0x244]
mov rcx, qword [rbp + 0x548]
movss xmm0, dword [rcx + rax*8 + 4]
subss xmm0, dword [rbp + 0x2c4]
mov eax, 0x14
imul rax, rax, 0
mov rcx, qword [rbp + 0x540]
mov rcx, qword [rcx + 0x48]
movss dword [rcx + rax + 4], xmm0
mov eax, 0x14
imul rax, rax, 0
mov rcx, qword [rbp + 0x540]
mov rcx, qword [rcx + 0x48]
mov rdx, qword [rbp + 8]
mov qword [rcx + rax + 8], rdx
mov eax, 0x14
imul rax, rax, 0
mov rcx, qword [rbp + 0x540]
mov rcx, qword [rcx + 0x48]
mov edx, dword [rbp + 0x558]
mov dword [rcx + rax + 0x10], edx
movsxd rax, dword [rbp + 0x244]
mov rcx, qword [rbp + 0x548]
movss xmm0, dword [rcx + rax*8]
addss xmm0, dword [rbp + 0x2a4]
mov eax, 0x14
imul rax, rax, 1
mov rcx, qword [rbp + 0x540]
mov rcx, qword [rcx + 0x48]
movss dword [rcx + rax], xmm0
movsxd rax, dword [rbp + 0x244]
mov rcx, qword [rbp + 0x548]
movss xmm0, dword [rcx + rax*8 + 4]
addss xmm0, dword [rbp + 0x2c4]
mov eax, 0x14
imul rax, rax, 1
mov rcx, qword [rbp + 0x540]
mov rcx, qword [rcx + 0x48]
movss dword [rcx + rax + 4], xmm0
mov eax, 0x14
imul rax, rax, 1
mov rcx, qword [rbp + 0x540]
mov rcx, qword [rcx + 0x48]
mov rdx, qword [rbp + 8]
mov qword [rcx + rax + 8], rdx
mov eax, 0x14
imul rax, rax, 1
mov rcx, qword [rbp + 0x540]
mov rcx, qword [rcx + 0x48]
mov edx, dword [rbp + 0x44]
mov dword [rcx + rax + 0x10], edx
mov rax, qword [rbp + 0x540]
mov rax, qword [rax + 0x48]
add rax, 0x28
mov rcx, qword [rbp + 0x540]
mov qword [rcx + 0x48], rax
mov eax, dword [rbp + 0xa4]
mov ecx, dword [rbp + 0x244]
lea eax, [rax + rcx*2]
mov ecx, 2
imul rcx, rcx, 0
mov rdx, qword [rbp + 0x540]
mov rdx, qword [rdx + 0x50]
mov word [rcx + rdx], ax
mov eax, dword [rbp + 0xa4]
mov ecx, dword [rbp + 0x224]
lea eax, [rax + rcx*2]
mov ecx, 2
imul rcx, rcx, 1
mov rdx, qword [rbp + 0x540]
mov rdx, qword [rdx + 0x50]
mov word [rcx + rdx], ax
mov eax, dword [rbp + 0xc4]
mov ecx, dword [rbp + 0x224]
lea eax, [rax + rcx*2]
mov ecx, 2
imul rcx, rcx, 2
mov rdx, qword [rbp + 0x540]
mov rdx, qword [rdx + 0x50]
mov word [rcx + rdx], ax
mov eax, dword [rbp + 0xc4]
mov ecx, dword [rbp + 0x224]
lea eax, [rax + rcx*2]
mov ecx, 2
imul rcx, rcx, 3
mov rdx, qword [rbp + 0x540]
mov rdx, qword [rdx + 0x50]
mov word [rcx + rdx], ax
mov eax, dword [rbp + 0xc4]
mov ecx, dword [rbp + 0x244]
lea eax, [rax + rcx*2]
mov ecx, 2
imul rcx, rcx, 4
mov rdx, qword [rbp + 0x540]
mov rdx, qword [rdx + 0x50]
mov word [rcx + rdx], ax
mov eax, dword [rbp + 0xa4]
mov ecx, dword [rbp + 0x244]
lea eax, [rax + rcx*2]
mov ecx, 2
imul rcx, rcx, 5
mov rdx, qword [rbp + 0x540]
mov rdx, qword [rdx + 0x50]
mov word [rcx + rdx], ax
mov rax, qword [rbp + 0x540]
mov rax, qword [rax + 0x50]
add rax, 0xc
mov rcx, qword [rbp + 0x540]
mov qword [rcx + 0x50], rax
jmp 0x18006c947
movzx eax, word [rbp + 0x84]
mov rcx, qword [rbp + 0x540]
add eax, dword [rcx + 0x34]
mov rcx, qword [rbp + 0x540]
mov dword [rcx + 0x34], eax
jmp 0x18006cf3b
mov eax, dword [rbp + 0x550]
sub eax, 2
imul eax, eax, 3
mov dword [rbp + 0x324], eax
mov eax, dword [rbp + 0x550]
mov dword [rbp + 0x344], eax
mov r8d, dword [rbp + 0x344]
mov edx, dword [rbp + 0x324]
mov rcx, qword [rbp + 0x540]
call fcn.18007bf50
mov dword [rbp + 0x364], 0
jmp 0x18006cdc8
mov eax, dword [rbp + 0x364]
inc eax
mov dword [rbp + 0x364], eax
mov eax, dword [rbp + 0x344]
cmp dword [rbp + 0x364], eax
jge 0x18006ce5e
movsxd rax, dword [rbp + 0x364]
mov rcx, qword [rbp + 0x548]
mov rax, qword [rcx + rax*8]
mov ecx, 0x14
imul rcx, rcx, 0
mov rdx, qword [rbp + 0x540]
mov rdx, qword [rdx + 0x48]
mov qword [rdx + rcx], rax
mov eax, 0x14
imul rax, rax, 0
mov rcx, qword [rbp + 0x540]
mov rcx, qword [rcx + 0x48]
mov rdx, qword [rbp + 8]
mov qword [rcx + rax + 8], rdx
mov eax, 0x14
imul rax, rax, 0
mov rcx, qword [rbp + 0x540]
mov rcx, qword [rcx + 0x48]
mov edx, dword [rbp + 0x558]
mov dword [rcx + rax + 0x10], edx
mov rax, qword [rbp + 0x540]
mov rax, qword [rax + 0x48]
add rax, 0x14
mov rcx, qword [rbp + 0x540]
mov qword [rcx + 0x48], rax
jmp 0x18006cdba
mov dword [rbp + 0x384], 2
jmp 0x18006ce78
mov eax, dword [rbp + 0x384]
inc eax
mov dword [rbp + 0x384], eax
mov eax, dword [rbp + 0x550]
cmp dword [rbp + 0x384], eax
jge 0x18006cf20
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rbp + 0x540]
mov rcx, qword [rcx + 0x50]
mov rdx, qword [rbp + 0x540]
movzx edx, word [rdx + 0x34]
mov word [rax + rcx], dx
mov rax, qword [rbp + 0x540]
mov eax, dword [rax + 0x34]
mov ecx, dword [rbp + 0x384]
lea eax, [rax + rcx - 1]
mov ecx, 2
imul rcx, rcx, 1
mov rdx, qword [rbp + 0x540]
mov rdx, qword [rdx + 0x50]
mov word [rcx + rdx], ax
mov rax, qword [rbp + 0x540]
mov eax, dword [rax + 0x34]
add eax, dword [rbp + 0x384]
mov ecx, 2
imul rcx, rcx, 2
mov rdx, qword [rbp + 0x540]
mov rdx, qword [rdx + 0x50]
mov word [rcx + rdx], ax
mov rax, qword [rbp + 0x540]
mov rax, qword [rax + 0x50]
add rax, 6
mov rcx, qword [rbp + 0x540]
mov qword [rcx + 0x50], rax
jmp 0x18006ce6a
movzx eax, word [rbp + 0x344]
mov rcx, qword [rbp + 0x540]
add eax, dword [rcx + 0x34]
mov rcx, qword [rbp + 0x540]
mov dword [rcx + 0x34], eax
lea rcx, [rbp - 0x20]
lea rdx, [0x180248dd0]
call fcn.180225a10
lea rsp, [rbp + 0x528]
pop rdi
pop rbp
ret