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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
cmp dword [ecx + 0x8874], 0
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
jne 0x41f966
mov edi, dword [ecx + 0x8870]
test edi, edi
je 0x41f966
mov eax, dword [edi + 0x855c]
mov esi, dword [ecx + 4]
neg eax
mov edx, dword [ecx + 0x80ac]
mov edi, dword [edi + 0x879c]
sbb eax, eax
and eax, 3
mov dword [ebp - 0x34], edx
mov edx, dword [ecx + 0x80a8]
lea ebx, [esi - 1]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x18], eax
xor eax, eax
cmp dword [ecx + 0xc], 4
mov dword [ebp - 0x3c], esi
sete al
mov dword [ebp - 8], edx
add eax, 3
mov dword [ebp - 0x20], edi
add eax, dword [ecx + 0x18]
and ebx, 0xf
mov dword [ebp - 0x38], ebx
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x28], 0
cmp dword [ebp - 0x18], 1
jne 0x41f96f
mov eax, dword [ecx + 0x14]
xor edi, edi
shr eax, 3
mov dword [ebp - 0x1c], eax
test esi, esi
je 0x41fc10
mov eax, dword [ebp - 0x10]
add eax, edx
mov dword [ebp - 0x24], eax
movzx edx, byte [eax]
mov eax, edi
mov ecx, dword [ebp - 0x14]
and eax, 0xf
add edx, 0xffffff80
shl edx, cl
movzx ecx, byte [eax + ebx + 0x629b70]
mov eax, edi
and eax, 0xfffffff0
inc edi
shl eax, 4
add ecx, eax
mov eax, dword [ebp - 0x20]
mov dword [eax + ecx*4], edx
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
cmp edi, esi
jb 0x41f897
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp eax, dword [ebp - 0x34]
jae 0x41f8eb
add edx, dword [ecx + 0x80b0]
mov dword [ebp - 8], edx
mov eax, dword [ecx + 0x861c]
mov edx, esi
shl eax, 4
cmp esi, eax
jae 0x41f951
mov eax, dword [ebp - 0x38]
mov ecx, esi
shl ecx, 4
dec ecx
and ecx, 0xffffff00
mov al, byte [eax + ebx + 0x629b70]
movzx eax, al
add ecx, eax
mov dword [ebp - 0x30], ecx
mov esi, ecx
lea ebx, [ebx]
mov eax, edx
and eax, 0xf
movzx ecx, byte [eax + ebx + 0x629b70]
mov eax, edx
and eax, 0xfffffff0
inc edx
shl eax, 4
add ecx, eax
mov eax, dword [edi + esi*4]
mov dword [edi + ecx*4], eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x861c]
shl eax, 4
cmp edx, eax
jb 0x41f920
mov esi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x10]
add ebx, 0x10
mov edx, dword [ebp - 8]
cmp ebx, 0x100
jb 0x41f872
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x18], 2
jne 0x41f9f9
mov eax, dword [ecx + 0x14]
shr eax, 4
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], eax
test esi, esi
je 0x41f8d3
mov eax, dword [ecx + 0x8870]
movzx eax, byte [eax + 0x808c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
add eax, eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
lea ecx, [ecx]
mov ecx, dword [ebp - 0x10]
and eax, 0xf
movzx edx, word [edx + ecx*2]
mov ecx, dword [ebp - 0x30]
sub edx, 0x8000
sar edx, cl
mov ecx, dword [ebp - 0x14]
shl edx, cl
movzx ecx, byte [eax + ebx + 0x629b70]
mov eax, dword [ebp - 0x1c]
and eax, 0xfffffff0
shl eax, 4
add ecx, eax
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
mov dword [edi + ecx*4], edx
mov edx, dword [ebp - 0x24]
add edx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], edx
cmp eax, esi
jb 0x41f9b0
jmp 0x41f8d0
cmp dword [ebp - 0x18], 3
jne 0x41fa77
mov eax, dword [ecx + 0x14]
shr eax, 4
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], eax
test esi, esi
je 0x41f8d3
mov eax, dword [ecx + 0x8870]
movzx eax, byte [eax + 0x808c]
cwde
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x30]
add eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
and eax, 0xf
movsx edx, word [edx + ecx*2]
mov cl, byte [ebp - 0x2c]
sar edx, cl
mov ecx, dword [ebp - 0x14]
shl edx, cl
movzx ecx, byte [eax + ebx + 0x629b70]
mov eax, dword [ebp - 0x1c]
and eax, 0xfffffff0
shl eax, 4
add ecx, eax
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
mov dword [edi + ecx*4], edx
mov edx, dword [ebp - 0x24]
add edx, dword [ebp - 0x30]
mov dword [ebp - 0x24], edx
cmp eax, esi
jb 0x41fa34
jmp 0x41f8d0
cmp dword [ebp - 0x18], 4
jne 0x41faf3
mov edx, dword [ecx + 0x14]
shr edx, 4
mov dword [ebp - 0x30], edx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], 0
test esi, esi
je 0x41f8d3
mov ecx, dword [ebp - 0x30]
add ecx, ecx
mov dword [ebp - 0x30], ecx
movsx edx, word [edx + eax*2]
mov ecx, dword [ebp - 0x14]
mov eax, edx
sar eax, 0x1f
and edx, 0x7fff
xor edx, eax
sub edx, eax
mov eax, dword [ebp - 0x1c]
and eax, 0xf
shl edx, cl
movzx ecx, byte [eax + ebx + 0x629b70]
mov eax, dword [ebp - 0x1c]
and eax, 0xfffffff0
shl eax, 4
add ecx, eax
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
mov dword [edi + ecx*4], edx
mov edx, dword [ebp - 0x24]
add edx, dword [ebp - 0x30]
cmp eax, esi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], edx
jb 0x41faa3
jmp 0x41f8d0
mov eax, dword [ebp - 0x18]
cmp eax, 6
jne 0x41fb72
mov eax, dword [ecx + 0x14]
shr eax, 5
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], eax
test esi, esi
je 0x41f8d3
mov eax, dword [ecx + 0x8870]
movzx eax, byte [eax + 0x808c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x30]
shl eax, 2
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
and eax, 0xf
mov edx, dword [edx + ecx*4]
mov ecx, dword [ebp - 0x2c]
sar edx, cl
mov ecx, dword [ebp - 0x14]
shl edx, cl
movzx ecx, byte [eax + ebx + 0x629b70]
mov eax, dword [ebp - 0x1c]
and eax, 0xfffffff0
shl eax, 4
add ecx, eax
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
mov dword [edi + ecx*4], edx
mov edx, dword [ebp - 0x24]
add edx, dword [ebp - 0x30]
mov dword [ebp - 0x24], edx
cmp eax, esi
jb 0x41fb30
jmp 0x41f8d0
cmp eax, 7
jne 0x41fc18
mov eax, dword [ecx + 0x8870]
mov edx, dword [ecx + 0x14]
shr edx, 5
mov dword [ebp - 0x1c], 0
mov cl, byte [eax + 0x808c]
mov al, byte [eax + 0x808d]
mov byte [ebp - 2], al
mov eax, dword [ebp - 8]
mov byte [ebp - 1], cl
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
test esi, esi
je 0x41f8d3
lea eax, [edx*4]
mov dword [ebp - 0x30], eax
jmp 0x41fbc0
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x24]
mov dl, byte [ebp - 1]
mov cl, byte [ebp - 2]
movss xmm0, dword [edi + eax*4]
call fcn.0041c480
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
shl eax, cl
mov ecx, dword [ebp - 0x1c]
and ecx, 0xf
movzx edx, byte [ecx + ebx + 0x629b70]
mov ecx, dword [ebp - 0x1c]
and ecx, 0xfffffff0
shl ecx, 4
add edx, ecx
mov ecx, dword [ebp - 0x30]
add dword [ebp - 0x24], ecx
mov dword [edi + edx*4], eax
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, esi
jb 0x41fbc0
jmp 0x41f8d0
mov edi, dword [ebp - 0x20]
jmp 0x41f8d6
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret