Function at 0x408426
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xc00]
shl eax, 2
push eax
call sub.MFC42.DLL_operatornew
mov edi, eax
mov eax, dword [esi + 0xc00]
shl eax, 2
push eax
mov dword [ebp - 0x14], edi
call sub.MFC42.DLL_operatornew
pop ecx
mov ebx, eax
pop ecx
mov dword [ebp - 0xc], ebx
xor ecx, ecx
cmp dword [esi + 0xc00], ecx
jle 0x40847c
mov edx, edi
sub edx, ebx
and dword [edx + eax], 0
and dword [eax], 0
inc ecx
add eax, 4
cmp ecx, dword [esi + 0xc00]
jl 0x408469
or dword [ebp - 0x20], 0xffffffff
xor edx, edx
inc edx
xor eax, eax
mov dword [edi + 4], edx
mov dword [ebx], edx
cmp dword [esi + 0xc00], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
jle 0x4085fd
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
shl eax, 2
cmp dword [ebp - 0x10], edx
mov ebx, dword [eax + ecx]
mov dword [ebp - 0x18], ebx
mov ebx, edx
jl 0x4084db
lea edi, [eax + ecx - 4]
push dword [edi]
mov eax, dword [ebp - 0xc]
lea ecx, [esi + 4]
push dword [eax + ebx*4]
call fcn.004049b7
xor dword [ebp - 0x18], eax
inc ebx
sub edi, 4
cmp ebx, dword [ebp - 0x10]
jle 0x4084b9
mov edi, dword [ebp - 0x14]
xor edx, edx
inc edx
xor ebx, ebx
cmp dword [ebp - 0x18], ebx
je 0x4085c5
push dword [ebp - 0x18]
lea ecx, [esi + 4]
call fcn.00404996
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0xc00]
shl eax, 2
push eax
call sub.MFC42.DLL_operatornew
pop ecx
mov ecx, eax
xor eax, eax
cmp dword [esi + 0xc00], ebx
mov dword [ebp - 0x28], ecx
jle 0x40851f
mov dword [ecx + eax*4], ebx
inc eax
cmp eax, dword [esi + 0xc00]
jl 0x408513
cmp dword [ebp - 4], ebx
jl 0x40855c
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x14]
mov eax, edi
mov dword [ebp - 0x18], ecx
sub dword [ebp - 0x18], eax
sub ebx, eax
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x24]
lea ecx, [esi + 4]
push dword [edi + ebx]
call fcn.004049e0
xor eax, dword [edi]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + edi], eax
add edi, 4
dec dword [ebp - 0x1c]
jne 0x40853b
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov ecx, eax
sub ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
jle 0x4085ba
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0xc00]
cdq
sub eax, edx
sar eax, 1
cmp ecx, eax
jg 0x408651
mov eax, dword [ebp - 8]
test eax, eax
jl 0x4085b7
mov ebx, dword [ebp - 0xc]
sub ebx, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x24]
lea ecx, [esi + 4]
push dword [ebx + edi]
call fcn.00404a1e
mov dword [edi], eax
add edi, 4
dec dword [ebp - 0x1c]
jne 0x408599
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 0x28]
xor edx, edx
inc edx
mov dword [ebp - 0xc], eax
xor ebx, ebx
mov eax, dword [esi + 0xc00]
dec eax
cmp eax, dword [ebp - 8]
jl 0x4085d4
mov eax, dword [ebp - 8]
dec eax
cmp eax, ebx
jl 0x4085e3
mov ecx, dword [edi + eax*4]
mov dword [edi + eax*4 + 4], ecx
dec eax
jns 0x4085d9
inc dword [ebp - 8]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
mov dword [edi], ebx
cmp eax, dword [esi + 0xc00]
jl 0x40849f
mov ebx, dword [ebp - 0xc]
mov eax, dword [esi + 0xc00]
lea ecx, [esi + 4]
push eax
push eax
cdq
sub eax, edx
sar eax, 1
inc eax
push eax
push dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
call fcn.00404a3b
mov esi, dword [esi + 0xc00]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, 2
cmp esi, eax
jl 0x408631
mov esi, eax
test esi, esi
jle 0x408647
mov eax, dword [ebp + 8]
mov ecx, ebx
sub ecx, eax
mov edx, dword [ecx + eax]
mov dword [eax], edx
add eax, 4
dec esi
jne 0x40863c
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc
or eax, 0xffffffff
jmp 0x40864a