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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x49e7c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x1c]
push esi
mov esi, dword [ebx + 8]
push edi
mov edi, dword [ebx + 0x18]
lea edx, [ebp - 0x50]
push edx
mov dword [ebp - 0x3d4], eax
mov dword [ebp - 0x3f0], ecx
call fcn.0041e000
add esp, 4
lea ecx, [ebp - 0x3d0]
call fcn.00409060
mov eax, 0xff
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x41c], eax
mov eax, 0x80
mov dword [ebp - 0x408], eax
mov dword [ebp - 0x404], eax
mov eax, 0x2000
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x434], eax
xor eax, eax
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x40c], eax
mov ecx, dword [ebx + 0x10]
mov eax, 0x4000
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], eax
mov eax, 0x59ba
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x414], eax
mov eax, 0xd24de9fb
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x43c], eax
mov eax, 0x7168
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x42c], eax
mov eax, dword [ebx + 0x14]
add eax, 0xffffffff
imul eax, edi
add esi, eax
lea eax, [ecx + 3]
cdq
and edx, 3
add eax, edx
sar eax, 2
neg edi
sub eax, 1
test byte [ebp - 0x18], 1
mov dword [ebp - 0x3dc], esi
mov dword [ebp - 0x3ec], edi
mov dword [ebp - 0x3f4], eax
je 0x41d107
mov esi, dword [ebx + 0x14]
test esi, esi
jle 0x41d212
lea edx, [eax*4]
mov dword [ebp - 0x3e8], edx
mov dword [ebp - 0x3e4], esi
jmp 0x41ce50
mov eax, dword [ebp - 0x3f4]
mov esi, dword [ebp - 0x3dc]
mov edi, dword [ebp - 0x3d4]
pxor mm7, mm7
cmp eax, 0
jle 0x41cff7
movd mm0, dword [esi]
movd mm1, dword [esi + 3]
punpckldq mm0, mm1
movq mm2, mm0
pand mm0, qword [ebp - 0x420]
psrld mm2, 8
pand mm0, qword [ebp - 0x420]
movq mm3, mm2
psubw mm0, qword [ebp - 0x410]
pand mm2, qword [ebp - 0x420]
pmaddwd mm0, qword [ebp - 0x428]
paddd mm0, qword [ebp - 0x438]
psrld mm3, 8
pand mm3, qword [ebp - 0x420]
psubw mm2, qword [ebp - 0x408]
psubw mm3, qword [ebp - 0x408]
movq mm4, mm2
movq mm5, mm3
pslld mm3, 0x10
por mm2, mm3
pmaddwd mm2, qword [ebp - 0x440]
paddd mm2, mm0
psrad mm2, 0xe
pmaddwd mm4, qword [ebp - 0x430]
paddd mm4, mm0
psrad mm4, 0xe
pmaddwd mm5, qword [ebp - 0x418]
paddd mm5, mm0
psrad mm5, 0xe
packssdw mm4, mm7
packssdw mm2, mm7
packssdw mm5, mm7
punpcklwd mm4, mm5
movq mm0, mm4
punpcklwd mm2, mm7
punpcklwd mm4, mm2
psllq mm4, 0x10
punpckhwd mm0, mm2
packuswb mm4, mm0
psrlq mm4, 8
movd dword [edi], mm4
psrlq mm4, 0x20
movq mm6, mm4
movd mm0, dword [esi + 6]
movd mm1, dword [esi + 9]
punpckldq mm0, mm1
movq mm2, mm0
pand mm0, qword [ebp - 0x420]
psrld mm2, 8
pand mm0, qword [ebp - 0x420]
movq mm3, mm2
psubw mm0, qword [ebp - 0x410]
pand mm2, qword [ebp - 0x420]
pmaddwd mm0, qword [ebp - 0x428]
paddd mm0, qword [ebp - 0x438]
psrld mm3, 8
pand mm3, qword [ebp - 0x420]
psubw mm2, qword [ebp - 0x408]
psubw mm3, qword [ebp - 0x408]
movq mm4, mm2
movq mm5, mm3
pslld mm3, 0x10
por mm2, mm3
pmaddwd mm2, qword [ebp - 0x440]
paddd mm2, mm0
psrad mm2, 0xe
pmaddwd mm4, qword [ebp - 0x430]
paddd mm4, mm0
psrad mm4, 0xe
pmaddwd mm5, qword [ebp - 0x418]
paddd mm5, mm0
psrad mm5, 0xe
packssdw mm4, mm7
packssdw mm2, mm7
packssdw mm5, mm7
punpcklwd mm4, mm5
movq mm0, mm4
punpcklwd mm2, mm7
punpcklwd mm4, mm2
psllq mm4, 0x10
punpckhwd mm0, mm2
packuswb mm4, mm0
psllq mm4, 8
pxor mm6, mm4
movd dword [edi + 4], mm6
psrlq mm6, 0x20
movd dword [edi + 8], mm6
add esi, 0xc
add edi, 0xc
dec eax
jne 0x41ce6e
cmp edx, ecx
jge 0x41d0dd
mov edi, dword [ebp - 0x3d4]
lea esi, [edx + edx*2]
lea eax, [esi + edi]
mov dword [ebp - 0x3d8], eax
mov eax, dword [ebp - 0x3dc]
sub edi, eax
lea esi, [esi + eax + 2]
mov eax, ecx
sub eax, edx
mov dword [ebp - 0x3fc], edi
mov dword [ebp - 0x3e0], eax
lea ecx, [ecx]
movzx edi, byte [esi - 1]
movzx ecx, byte [esi]
movzx eax, byte [esi - 2]
add edi, 0xffffff80
mov edx, edi
imul edi, edi, 0x5819
imul edx, edx, 0x1c5a2
mov dword [ebp - 0x3f8], ecx
shl eax, 0x10
lea ecx, [edx + eax + 0x8000]
sar ecx, 0x10
movzx edx, byte [ebp + ecx - 0x290]
mov ecx, dword [ebp - 0x3d8]
mov byte [ecx], dl
mov ecx, dword [ebp - 0x3f8]
add ecx, 0xffffff80
mov edx, ecx
imul ecx, ecx, 0x166e9
imul edx, edx, 0xffff492e
sub edx, edi
mov edi, dword [ebp - 0x3d8]
add dword [ebp - 0x3d8], 3
lea edx, [edx + eax + 0x8000]
sar edx, 0x10
movzx edx, byte [ebp + edx - 0x290]
lea eax, [ecx + eax + 0x8000]
sar eax, 0x10
mov cl, byte [ebp + eax - 0x290]
mov byte [edi + 1], dl
mov edx, dword [ebp - 0x3fc]
mov byte [edx + esi], cl
add esi, 3
sub dword [ebp - 0x3e0], 1
jne 0x41d030
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebp - 0x3e8]
mov eax, dword [ebp - 0x3ec]
add dword [ebp - 0x3dc], eax
mov eax, dword [ebp - 0x3f0]
add dword [ebp - 0x3d4], eax
sub dword [ebp - 0x3e4], 1
jne 0x41ce50
jmp 0x41d212
mov eax, dword [ebx + 0x14]
test eax, eax
jle 0x41d212
mov dword [ebp - 0x3d8], eax
test ecx, ecx
mov eax, esi
mov dword [ebp - 0x3e4], eax
jle 0x41d1ed
mov edi, dword [ebp - 0x3d4]
mov edx, esi
add edi, 2
sub edx, dword [ebp - 0x3d4]
mov dword [ebp - 0x3e0], ecx
mov dword [ebp - 0x3e8], edx
jmp 0x41d156
mov edx, dword [ebp - 0x3e8]
movzx esi, byte [eax + 1]
movzx eax, byte [eax]
movzx edx, byte [edx + edi]
add esi, 0xffffff80
mov ecx, esi
imul esi, esi, 0xffffa7e7
imul ecx, ecx, 0x1c5a2
shl eax, 0x10
lea ecx, [ecx + eax + 0x8000]
sar ecx, 0x10
movzx ecx, byte [ebp + ecx - 0x290]
mov byte [edi - 2], cl
add edx, 0xffffff80
mov ecx, edx
imul edx, edx, 0x166e9
imul ecx, ecx, 0xb6d2
sub esi, ecx
lea ecx, [esi + eax + 0x8000]
lea edx, [edx + eax + 0x8000]
sar ecx, 0x10
movzx ecx, byte [ebp + ecx - 0x290]
sar edx, 0x10
mov al, byte [ebp + edx - 0x290]
mov byte [edi], al
mov eax, dword [ebp - 0x3e4]
mov byte [edi - 1], cl
add eax, 3
add edi, 3
sub dword [ebp - 0x3e0], 1
mov dword [ebp - 0x3e4], eax
jne 0x41d150
mov esi, dword [ebp - 0x3dc]
mov ecx, dword [ebx + 0x10]
add esi, dword [ebp - 0x3ec]
mov edx, dword [ebp - 0x3f0]
add dword [ebp - 0x3d4], edx
sub dword [ebp - 0x3d8], 1
mov dword [ebp - 0x3dc], esi
jne 0x41d118
emms
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004777ea
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x1c