Function at 0x140029220
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
sub rsp, 0x150
lea rbp, [rsp + 0x20]
cmp dword [rbp + 0x150], 3
jge 0x14002924f
jmp 0x140029b15
mov rax, qword [rbp + 0x140]
mov rax, qword [rax + 0x38]
mov rax, qword [rax]
mov qword [rbp + 0xd0], rax
mov rax, qword [rbp + 0x140]
mov eax, dword [rax + 0x30]
and eax, 2
test eax, eax
je 0x14002997b
movss xmm0, dword [0x140087200]
movss dword [rbp + 0x118], xmm0
mov eax, dword [rbp + 0x158]
and eax, 0xffffff
mov dword [rbp + 0xb0], eax
mov eax, dword [rbp + 0x150]
sub eax, 2
imul eax, eax, 3
imul ecx, dword [rbp + 0x150], 6
add eax, ecx
mov dword [rbp + 0xb8], eax
mov eax, dword [rbp + 0x150]
shl eax, 1
mov dword [rbp + 0x50], eax
mov r8d, dword [rbp + 0x50]
mov edx, dword [rbp + 0xb8]
mov rcx, qword [rbp + 0x140]
call fcn.140032d20
mov rax, qword [rbp + 0x140]
mov eax, dword [rax + 0x48]
mov dword [rbp + 0x10], eax
mov rax, qword [rbp + 0x140]
mov eax, dword [rax + 0x48]
inc eax
mov dword [rbp + 0x40], eax
mov dword [rbp + 0x14], 2
jmp 0x140029303
mov eax, dword [rbp + 0x14]
inc eax
mov dword [rbp + 0x14], eax
mov eax, dword [rbp + 0x150]
cmp dword [rbp + 0x14], eax
jge 0x14002938c
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rbp + 0x140]
mov rcx, qword [rcx + 0x58]
movzx edx, word [rbp + 0x10]
mov word [rax + rcx], dx
mov eax, dword [rbp + 0x10]
mov ecx, dword [rbp + 0x14]
lea eax, [rax + rcx*2 - 2]
mov ecx, 2
imul rcx, rcx, 1
mov rdx, qword [rbp + 0x140]
mov rdx, qword [rdx + 0x58]
mov word [rcx + rdx], ax
mov eax, dword [rbp + 0x10]
mov ecx, dword [rbp + 0x14]
lea eax, [rax + rcx*2]
mov ecx, 2
imul rcx, rcx, 2
mov rdx, qword [rbp + 0x140]
mov rdx, qword [rdx + 0x58]
mov word [rcx + rdx], ax
mov rax, qword [rbp + 0x140]
mov rax, qword [rax + 0x58]
add rax, 6
mov rcx, qword [rbp + 0x140]
mov qword [rcx + 0x58], rax
jmp 0x1400292fb
movsxd rax, dword [rbp + 0x150]
shl rax, 3
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x1400293ad
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140083de0
sub rsp, rax
lea rax, [rsp + 0x20]
mov qword [rbp + 0x58], rax
mov eax, dword [rbp + 0x150]
dec eax
mov dword [rbp + 0x30], eax
mov dword [rbp + 0x18], 0
jmp 0x1400293f3
mov eax, dword [rbp + 0x18]
mov dword [rbp + 0xbc], eax
mov eax, dword [rbp + 0x18]
inc eax
mov dword [rbp + 0x18], eax
mov eax, dword [rbp + 0xbc]
mov dword [rbp + 0x30], eax
mov eax, dword [rbp + 0x150]
cmp dword [rbp + 0x18], eax
jge 0x140029528
movsxd rax, dword [rbp + 0x30]
mov rcx, qword [rbp + 0x148]
lea rax, [rcx + rax*8]
mov qword [rbp + 0xe0], rax
movsxd rax, dword [rbp + 0x18]
mov rcx, qword [rbp + 0x148]
lea rax, [rcx + rax*8]
mov qword [rbp + 0xd8], rax
mov rax, qword [rbp + 0xd8]
mov rcx, qword [rbp + 0xe0]
movss xmm0, dword [rax + 4]
subss xmm0, dword [rcx + 4]
movss dword [rbp + 0x60], xmm0
mov rax, qword [rbp + 0xd8]
mov rcx, qword [rbp + 0xe0]
movss xmm0, dword [rax]
subss xmm0, dword [rcx]
movss dword [rbp + 0xc0], xmm0
movss xmm0, dword [rbp + 0xc0]
movss dword [rbp + 0x28], xmm0
movss xmm0, dword [rbp + 0x60]
movss dword [rbp + 0x2c], xmm0
movss xmm0, dword [rbp + 0x28]
mulss xmm0, dword [rbp + 0x28]
movss xmm1, dword [rbp + 0x2c]
mulss xmm1, dword [rbp + 0x2c]
addss xmm0, xmm1
movss dword [rbp + 0x48], xmm0
movss xmm0, dword [rbp + 0x48]
comiss xmm0, dword [0x14008719c]
jbe 0x1400294cc
movss xmm0, dword [rbp + 0x48]
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_sqrtf]
movss xmm1, dword [0x140087200]
divss xmm1, xmm0
movaps xmm0, xmm1
movss dword [rbp + 0x3c], xmm0
jmp 0x1400294d9
movss xmm0, dword [0x140087200]
movss dword [rbp + 0x3c], xmm0
movss xmm0, dword [rbp + 0x28]
mulss xmm0, dword [rbp + 0x3c]
movss dword [rbp + 0x28], xmm0
movss xmm0, dword [rbp + 0x2c]
mulss xmm0, dword [rbp + 0x3c]
movss dword [rbp + 0x2c], xmm0
movsxd rax, dword [rbp + 0x30]
mov rcx, qword [rbp + 0x58]
movss xmm0, dword [rbp + 0x2c]
movss dword [rcx + rax*8], xmm0
movss xmm0, dword [rbp + 0x28]
xorps xmm0, xmmword [0x1400872a0]
movsxd rax, dword [rbp + 0x30]
mov rcx, qword [rbp + 0x58]
movss dword [rcx + rax*8 + 4], xmm0
jmp 0x1400293d9
mov eax, dword [rbp + 0x150]
dec eax
mov dword [rbp + 0x1c], eax
mov dword [rbp], 0
jmp 0x140029550
mov eax, dword [rbp]
mov dword [rbp + 0x68], eax
mov eax, dword [rbp]
inc eax
mov dword [rbp], eax
mov eax, dword [rbp + 0x68]
mov dword [rbp + 0x1c], eax
mov eax, dword [rbp + 0x150]
cmp dword [rbp], eax
jge 0x14002995e
movsxd rax, dword [rbp + 0x1c]
mov rcx, qword [rbp + 0x58]
lea rax, [rcx + rax*8]
mov qword [rbp + 0xe8], rax
movsxd rax, dword [rbp]
mov rcx, qword [rbp + 0x58]
lea rax, [rcx + rax*8]
mov qword [rbp + 0xf0], rax
mov rax, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0xf0]
movss xmm0, dword [rax + 4]
addss xmm0, dword [rcx + 4]
movss dword [rbp + 0x78], xmm0
mov rax, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0xf0]
movss xmm0, dword [rax]
addss xmm0, dword [rcx]
movss dword [rbp + 0x70], xmm0
movss xmm0, dword [rbp + 0x70]
movss dword [rbp + 0xc8], xmm0
movss xmm0, dword [rbp + 0x78]
movss dword [rbp + 0xcc], xmm0
movss xmm0, dword [rbp + 0xcc]
mulss xmm0, dword [0x1400871dc]
movss dword [rbp + 0x88], xmm0
movss xmm0, dword [rbp + 0xc8]
mulss xmm0, dword [0x1400871dc]
movss dword [rbp + 0x80], xmm0
movss xmm0, dword [rbp + 0x80]
movss dword [rbp + 8], xmm0
movss xmm0, dword [rbp + 0x88]
movss dword [rbp + 0xc], xmm0
movss xmm0, dword [rbp + 8]
mulss xmm0, dword [rbp + 8]
movss xmm1, dword [rbp + 0xc]
mulss xmm1, dword [rbp + 0xc]
addss xmm0, xmm1
movss dword [rbp + 0x4c], xmm0
movss xmm0, dword [rbp + 0x4c]
comiss xmm0, dword [0x14008ae40]
jbe 0x140029697
movss xmm0, dword [0x140087200]
divss xmm0, dword [rbp + 0x4c]
movss dword [rbp + 0x34], xmm0
movss xmm0, dword [rbp + 0x34]
comiss xmm0, dword [0x140087250]
jbe 0x140029679
movss xmm0, dword [0x140087250]
movss dword [rbp + 0x34], xmm0
movss xmm0, dword [rbp + 8]
mulss xmm0, dword [rbp + 0x34]
movss dword [rbp + 8], xmm0
movss xmm0, dword [rbp + 0xc]
mulss xmm0, dword [rbp + 0x34]
movss dword [rbp + 0xc], xmm0
movss xmm0, dword [rbp + 8]
mulss xmm0, dword [0x1400871dc]
movss dword [rbp + 8], xmm0
movss xmm0, dword [rbp + 0xc]
mulss xmm0, dword [0x1400871dc]
movss dword [rbp + 0xc], xmm0
movsxd rax, dword [rbp]
mov rcx, qword [rbp + 0x148]
lea rax, [rcx + rax*8]
mov qword [rbp + 0xf8], rax
mov rax, qword [rbp + 0xf8]
movss xmm0, dword [rax + 4]
subss xmm0, dword [rbp + 0xc]
movss dword [rbp + 0x98], xmm0
mov rax, qword [rbp + 0xf8]
movss xmm0, dword [rax]
subss xmm0, dword [rbp + 8]
movss dword [rbp + 0x90], xmm0
movss xmm0, dword [rbp + 0x90]
movss dword [rbp + 0x100], xmm0
movss xmm0, dword [rbp + 0x98]
movss dword [rbp + 0x104], xmm0
mov rax, qword [rbp + 0x100]
mov qword [rbp + 0x120], rax
mov eax, 0x14
imul rax, rax, 0
mov rcx, qword [rbp + 0x140]
mov rcx, qword [rcx + 0x50]
mov rdx, qword [rbp + 0x120]
mov qword [rcx + rax], rdx
mov eax, 0x14
imul rax, rax, 0
mov rcx, qword [rbp + 0x140]
mov rcx, qword [rcx + 0x50]
mov rdx, qword [rbp + 0xd0]
mov qword [rcx + rax + 8], rdx
mov eax, 0x14
imul rax, rax, 0
mov rcx, qword [rbp + 0x140]
mov rcx, qword [rcx + 0x50]
mov edx, dword [rbp + 0x158]
mov dword [rcx + rax + 0x10], edx
movsxd rax, dword [rbp]
mov rcx, qword [rbp + 0x148]
lea rax, [rcx + rax*8]
mov qword [rbp + 0x108], rax
mov rax, qword [rbp + 0x108]
movss xmm0, dword [rax + 4]
addss xmm0, dword [rbp + 0xc]
movss dword [rbp + 0xa8], xmm0
mov rax, qword [rbp + 0x108]
movss xmm0, dword [rax]
addss xmm0, dword [rbp + 8]
movss dword [rbp + 0xa0], xmm0
movss xmm0, dword [rbp + 0xa0]
movss dword [rbp + 0x110], xmm0
movss xmm0, dword [rbp + 0xa8]
movss dword [rbp + 0x114], xmm0
mov rax, qword [rbp + 0x110]
mov qword [rbp + 0x128], rax
mov eax, 0x14
imul rax, rax, 1
mov rcx, qword [rbp + 0x140]
mov rcx, qword [rcx + 0x50]
mov rdx, qword [rbp + 0x128]
mov qword [rcx + rax], rdx
mov eax, 0x14
imul rax, rax, 1
mov rcx, qword [rbp + 0x140]
mov rcx, qword [rcx + 0x50]
mov rdx, qword [rbp + 0xd0]
mov qword [rcx + rax + 8], rdx
mov eax, 0x14
imul rax, rax, 1
mov rcx, qword [rbp + 0x140]
mov rcx, qword [rcx + 0x50]
mov edx, dword [rbp + 0xb0]
mov dword [rcx + rax + 0x10], edx
mov rax, qword [rbp + 0x140]
mov rax, qword [rax + 0x50]
add rax, 0x28
mov rcx, qword [rbp + 0x140]
mov qword [rcx + 0x50], rax
mov eax, dword [rbp + 0x10]
mov ecx, dword [rbp]
lea eax, [rax + rcx*2]
mov ecx, 2
imul rcx, rcx, 0
mov rdx, qword [rbp + 0x140]
mov rdx, qword [rdx + 0x58]
mov word [rcx + rdx], ax
mov eax, dword [rbp + 0x10]
mov ecx, dword [rbp + 0x1c]
lea eax, [rax + rcx*2]
mov ecx, 2
imul rcx, rcx, 1
mov rdx, qword [rbp + 0x140]
mov rdx, qword [rdx + 0x58]
mov word [rcx + rdx], ax
mov eax, dword [rbp + 0x40]
mov ecx, dword [rbp + 0x1c]
lea eax, [rax + rcx*2]
mov ecx, 2
imul rcx, rcx, 2
mov rdx, qword [rbp + 0x140]
mov rdx, qword [rdx + 0x58]
mov word [rcx + rdx], ax
mov eax, dword [rbp + 0x40]
mov ecx, dword [rbp + 0x1c]
lea eax, [rax + rcx*2]
mov ecx, 2
imul rcx, rcx, 3
mov rdx, qword [rbp + 0x140]
mov rdx, qword [rdx + 0x58]
mov word [rcx + rdx], ax
mov eax, dword [rbp + 0x40]
mov ecx, dword [rbp]
lea eax, [rax + rcx*2]
mov ecx, 2
imul rcx, rcx, 4
mov rdx, qword [rbp + 0x140]
mov rdx, qword [rdx + 0x58]
mov word [rcx + rdx], ax
mov eax, dword [rbp + 0x10]
mov ecx, dword [rbp]
lea eax, [rax + rcx*2]
mov ecx, 2
imul rcx, rcx, 5
mov rdx, qword [rbp + 0x140]
mov rdx, qword [rdx + 0x58]
mov word [rcx + rdx], ax
mov rax, qword [rbp + 0x140]
mov rax, qword [rax + 0x58]
add rax, 0xc
mov rcx, qword [rbp + 0x140]
mov qword [rcx + 0x58], rax
jmp 0x14002953c
movzx eax, word [rbp + 0x50]
mov rcx, qword [rbp + 0x140]
add eax, dword [rcx + 0x48]
mov rcx, qword [rbp + 0x140]
mov dword [rcx + 0x48], eax
jmp 0x140029b15
mov eax, dword [rbp + 0x150]
sub eax, 2
imul eax, eax, 3
mov dword [rbp + 0xb4], eax
mov eax, dword [rbp + 0x150]
mov dword [rbp + 0x44], eax
mov r8d, dword [rbp + 0x44]
mov edx, dword [rbp + 0xb4]
mov rcx, qword [rbp + 0x140]
call fcn.140032d20
mov dword [rbp + 0x38], 0
jmp 0x1400299bd
mov eax, dword [rbp + 0x38]
inc eax
mov dword [rbp + 0x38], eax
mov eax, dword [rbp + 0x44]
cmp dword [rbp + 0x38], eax
jge 0x140029a4d
movsxd rax, dword [rbp + 0x38]
mov rcx, qword [rbp + 0x148]
mov rax, qword [rcx + rax*8]
mov ecx, 0x14
imul rcx, rcx, 0
mov rdx, qword [rbp + 0x140]
mov rdx, qword [rdx + 0x50]
mov qword [rdx + rcx], rax
mov eax, 0x14
imul rax, rax, 0
mov rcx, qword [rbp + 0x140]
mov rcx, qword [rcx + 0x50]
mov rdx, qword [rbp + 0xd0]
mov qword [rcx + rax + 8], rdx
mov eax, 0x14
imul rax, rax, 0
mov rcx, qword [rbp + 0x140]
mov rcx, qword [rcx + 0x50]
mov edx, dword [rbp + 0x158]
mov dword [rcx + rax + 0x10], edx
mov rax, qword [rbp + 0x140]
mov rax, qword [rax + 0x50]
add rax, 0x14
mov rcx, qword [rbp + 0x140]
mov qword [rcx + 0x50], rax
jmp 0x1400299b5
mov dword [rbp + 0x20], 2
jmp 0x140029a5e
mov eax, dword [rbp + 0x20]
inc eax
mov dword [rbp + 0x20], eax
mov eax, dword [rbp + 0x150]
cmp dword [rbp + 0x20], eax
jge 0x140029afd
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rbp + 0x140]
mov rcx, qword [rcx + 0x58]
mov rdx, qword [rbp + 0x140]
movzx edx, word [rdx + 0x48]
mov word [rax + rcx], dx
mov rax, qword [rbp + 0x140]
mov eax, dword [rax + 0x48]
mov ecx, dword [rbp + 0x20]
lea eax, [rax + rcx - 1]
mov ecx, 2
imul rcx, rcx, 1
mov rdx, qword [rbp + 0x140]
mov rdx, qword [rdx + 0x58]
mov word [rcx + rdx], ax
mov rax, qword [rbp + 0x140]
mov eax, dword [rax + 0x48]
add eax, dword [rbp + 0x20]
mov ecx, 2
imul rcx, rcx, 2
mov rdx, qword [rbp + 0x140]
mov rdx, qword [rdx + 0x58]
mov word [rcx + rdx], ax
mov rax, qword [rbp + 0x140]
mov rax, qword [rax + 0x58]
add rax, 6
mov rcx, qword [rbp + 0x140]
mov qword [rcx + 0x58], rax
jmp 0x140029a56
movzx eax, word [rbp + 0x44]
mov rcx, qword [rbp + 0x140]
add eax, dword [rcx + 0x48]
mov rcx, qword [rbp + 0x140]
mov dword [rcx + 0x48], eax
lea rsp, [rbp + 0x130]
pop rbp
ret