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

Disassembly:
sub esp, 0xc
movdqu xmm0, xmmword [0x644e38]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x10], 0
push edi
push 0x1000
push 0x64b2c0
mov eax, dword [esi + 0x64]
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], 0
movdqu xmmword [eax], xmm0
movdqu xmm0, xmmword [0x644e48]
movdqu xmmword [eax + 0x10], xmm0
movdqu xmm0, xmmword [0x644e58]
movdqu xmmword [eax + 0x20], xmm0
movdqu xmm0, xmmword [0x644e68]
movdqu xmmword [eax + 0x30], xmm0
movq xmm0, qword [0x644e78]
movq qword [eax + 0x40], xmm0
push dword [esi + 0x1074]
call fcn.005cda00
mov ebp, dword [esp + 0x30]
add esp, 0xc
xor ebx, ebx
mov edi, 2
xor edx, edx
mov esi, dword [esp + 0x20]
lea eax, [edi - 2]
div ebp
mov eax, dword [esp + 0x20]
movzx ecx, byte [edx + eax]
xor edx, edx
lea eax, [edi - 1]
shl ecx, 8
div ebp
movzx eax, byte [edx + esi]
xor edx, edx
or ecx, eax
mov eax, edi
div ebp
shl ecx, 8
movzx eax, byte [edx + esi]
xor edx, edx
or ecx, eax
lea eax, [edi + 1]
div ebp
shl ecx, 8
add edi, 4
movzx eax, byte [edx + esi]
mov esi, dword [esp + 0x10]
or ecx, eax
mov eax, dword [esi + 0x64]
xor dword [ebx + eax], ecx
add ebx, 4
cmp ebx, 0x48
jb 0x516a43
push dword [esi + 0x64]
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.00516bb0
xor edx, edx
jmp 0x516ab0
mov ecx, dword [esi + 0x64]
lea edi, [edx + 8]
lea eax, [edi + ecx]
push eax
lea eax, [edx + ecx]
mov ecx, esi
push eax
call fcn.00516bb0
mov edx, edi
cmp edx, 0x40
jb 0x516ab0
mov eax, dword [esi + 0x64]
mov ecx, esi
push dword [esi + 0x1074]
add eax, 0x40
push eax
call fcn.00516bb0
xor edx, edx
mov ecx, dword [esi + 0x1074]
lea edi, [edx + 8]
lea eax, [edi + ecx]
push eax
lea eax, [edx + ecx]
mov ecx, esi
push eax
call fcn.00516bb0
mov edx, edi
cmp edx, 0xff8
jb 0x516ae2
mov eax, dword [esi + 4]
lea ecx, [esi + 4]
mov eax, dword [eax + 0x1c]
call eax
test al, al
jne 0x516b9c
mov edx, dword [esi + 0x64]
mov ecx, dword [edx]
mov eax, dword [edx + 0x44]
mov dword [edx], eax
mov dword [edx + 0x44], ecx
mov edx, dword [esi + 0x64]
mov ecx, dword [edx + 4]
mov eax, dword [edx + 0x40]
mov dword [edx + 4], eax
mov dword [edx + 0x40], ecx
mov edx, dword [esi + 0x64]
mov ecx, dword [edx + 8]
mov eax, dword [edx + 0x3c]
mov dword [edx + 8], eax
mov dword [edx + 0x3c], ecx
mov edx, dword [esi + 0x64]
mov ecx, dword [edx + 0xc]
mov eax, dword [edx + 0x38]
mov dword [edx + 0xc], eax
mov dword [edx + 0x38], ecx
mov edx, dword [esi + 0x64]
mov ecx, dword [edx + 0x10]
mov eax, dword [edx + 0x34]
mov dword [edx + 0x10], eax
mov dword [edx + 0x34], ecx
mov edx, dword [esi + 0x64]
mov ecx, dword [edx + 0x14]
mov eax, dword [edx + 0x30]
mov dword [edx + 0x14], eax
mov dword [edx + 0x30], ecx
mov edx, dword [esi + 0x64]
mov ecx, dword [edx + 0x18]
mov eax, dword [edx + 0x2c]
mov dword [edx + 0x18], eax
mov dword [edx + 0x2c], ecx
mov edx, dword [esi + 0x64]
mov ecx, dword [edx + 0x1c]
mov eax, dword [edx + 0x28]
mov dword [edx + 0x1c], eax
mov dword [edx + 0x28], ecx
mov edx, dword [esi + 0x64]
mov ecx, dword [edx + 0x20]
mov eax, dword [edx + 0x24]
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc