Function at 0x41fa8d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
add eax, 0xa
push 8
cdq
pop ecx
idiv ecx
mov ebx, edx
test ebx, ebx
je 0x41faae
push ecx
pop eax
sub eax, ebx
mov ebx, eax
mov edi, dword [0x49a208]
call edi
and al, 0xf8
push 1
or al, bl
pop esi
mov byte [ebp - 0xc], al
mov eax, ebx
dec ebx
test eax, eax
je 0x41fad2
inc ebx
call edi
mov byte [ebp + esi - 0xc], al
inc esi
dec ebx
jne 0x41fac8
mov ebx, dword [ebp + 0x24]
push dword [ebp + 0x18]
xor eax, eax
lea edi, [ebp - 0x14]
and dword [ebx], 0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], eax
call dword [0x49a308]
mov edi, eax
mov al, byte [ebp + 0x10]
mov byte [ebp - 0x44], al
lea eax, [ebp - 0x44]
push 5
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x43], edi
push eax
call fcn.0041fcf1
lea eax, [ebp - 0x36]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0x14]
push edi
call fcn.00420a72
mov al, byte [ebp + 0x14]
push 5
mov byte [ebp - 0x41], al
lea eax, [ebp - 0x41]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x40], edi
call fcn.0041fcf1
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp - 0x36]
add esp, 0x28
xor edi, edi
sub eax, ecx
lea ecx, [ebp + edi - 0x36]
mov dl, byte [eax + ecx]
xor dl, byte [ecx]
xor byte [ebp + edi - 0x24], dl
inc edi
cmp edi, 0x10
jb 0x41fb3e
lea edi, [ebp - 0x14]
mov dword [ebp + 0x10], 1
sub edi, dword [ebp + 0x20]
mov dword [ebp + 0x14], edi
cmp esi, 8
jge 0x41fb77
call dword [0x49a208]
mov byte [ebp + esi - 0xc], al
inc esi
inc dword [ebp + 0x10]
cmp esi, 8
jne 0x41fbd4
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0xc]
xor esi, esi
sub ecx, eax
lea eax, [ebp + esi - 0xc]
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc esi
cmp esi, 8
jl 0x41fb83
push dword [ebp + 0x20]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.004209ca
mov eax, dword [ebp + 0x20]
add esp, 0xc
mov dword [ebp + 0x24], edi
push 8
pop esi
mov cl, byte [edi + eax]
xor byte [eax], cl
inc eax
dec esi
jne 0x41fbae
lea esi, [ebp - 0xc]
lea edi, [ebp - 0x14]
add dword [ebx], 8
mov ecx, dword [ebp + 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
sub dword [ebp + 0x14], 8
mov edi, dword [ebp + 0x14]
mov dword [ebp - 4], ecx
mov dword [ebp + 0x20], eax
cmp dword [ebp + 0x10], 2
jle 0x41fb61
cmp dword [ebp + 0xc], 0
je 0x41fc68
lea edi, [ebp - 0x14]
sub edi, dword [ebp + 0x20]
mov dword [ebp + 0x10], edi
cmp esi, 8
jge 0x41fc05
mov eax, dword [ebp + 8]
inc esi
inc dword [ebp + 8]
dec dword [ebp + 0xc]
mov al, byte [eax]
cmp esi, 8
mov byte [ebp + esi - 0xd], al
jne 0x41fc62
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0xc]
xor esi, esi
sub ecx, eax
lea eax, [ebp + esi - 0xc]
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc esi
cmp esi, 8
jl 0x41fc11
push dword [ebp + 0x20]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.004209ca
mov eax, dword [ebp + 0x20]
add esp, 0xc
mov dword [ebp + 0x24], edi
push 8
pop esi
mov cl, byte [edi + eax]
xor byte [eax], cl
inc eax
dec esi
jne 0x41fc3c
lea esi, [ebp - 0xc]
lea edi, [ebp - 0x14]
add dword [ebx], 8
mov ecx, dword [ebp + 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
sub dword [ebp + 0x10], 8
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
mov dword [ebp + 0x20], eax
cmp dword [ebp + 0xc], 0
jne 0x41fbed
lea edi, [ebp - 0x14]
mov dword [ebp + 0x10], 1
sub edi, dword [ebp + 0x20]
mov dword [ebp + 0xc], edi
cmp esi, 8
jge 0x41fc89
and byte [ebp + esi - 0xc], 0
inc esi
inc dword [ebp + 0x10]
cmp esi, 8
jne 0x41fce6
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0xc]
xor esi, esi
sub ecx, eax
lea eax, [ebp + esi - 0xc]
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc esi
cmp esi, 8
jl 0x41fc95
push dword [ebp + 0x20]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.004209ca
mov eax, dword [ebp + 0x20]
add esp, 0xc
mov dword [ebp + 0x24], edi
push 8
pop esi
mov cl, byte [edi + eax]
xor byte [eax], cl
inc eax
dec esi
jne 0x41fcc0
lea esi, [ebp - 0xc]
lea edi, [ebp - 0x14]
add dword [ebx], 8
mov ecx, dword [ebp + 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
sub dword [ebp + 0xc], 8
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov dword [ebp + 0x20], eax
cmp dword [ebp + 0x10], 7
jle 0x41fc78
pop edi
pop esi
pop ebx
leave
ret