Function at 0x401129
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x34
push ebx
push ebp
mov ebp, dword [esp + 0x40]
push esi
mov esi, ecx
imul esi, ebp
xor edx, edx
cmp ebp, 4
mov dword [esp + 0x2c], esi
mov dword [esp + 0xc], edx
jl 0x4011ce
add ebp, 0xfffffffc
shr ebp, 2
inc ebp
mov dword [esp + 0x24], ebp
add ebp, ebp
lea ebx, [ecx + ecx]
add ebp, ebp
lea ebx, [edi + ebx*4 - 4]
mov dword [esp + 0xc], ebp
lea esp, [esp]
fld dword [eax + edx*4]
lea ebp, [ecx*8]
fadd dword [eax + esi*4]
fstp dword [edi + edx*8]
fld dword [eax + edx*4]
add edx, ecx
fsub dword [eax + esi*4]
add esi, ecx
fstp dword [ebx]
add ebx, ebp
fld dword [eax + edx*4]
fadd dword [eax + esi*4]
fstp dword [edi + edx*8]
fld dword [eax + edx*4]
add edx, ecx
fsub dword [eax + esi*4]
add esi, ecx
fstp dword [ebx]
add ebx, ebp
fld dword [eax + edx*4]
fadd dword [eax + esi*4]
fstp dword [edi + edx*8]
fld dword [eax + edx*4]
add edx, ecx
fsub dword [eax + esi*4]
add esi, ecx
fstp dword [ebx]
add ebx, ebp
fld dword [eax + edx*4]
fadd dword [eax + esi*4]
fstp dword [edi + edx*8]
fld dword [eax + edx*4]
add edx, ecx
fsub dword [eax + esi*4]
add esi, ecx
fstp dword [ebx]
add ebx, ebp
sub dword [esp + 0x24], 1
jne 0x401160
mov ebp, dword [esp + 0x44]
cmp dword [esp + 0xc], ebp
jge 0x401243
lea ebp, [edi + edx*8]
lea ebx, [eax + edx*4]
mov dword [esp + 0x24], ebp
lea ebp, [ecx + ecx]
lea edx, [ebp + edx*2]
lea edx, [edi + edx*4 - 4]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x44]
sub edx, dword [esp + 0xc]
lea esi, [eax + esi*4]
mov dword [esp + 0x20], edx
lea esp, [esp]
fld dword [ebx]
mov ebp, dword [esp + 0x24]
fadd dword [esi]
mov edx, dword [esp + 0x10]
fstp dword [ebp]
fld dword [ebx]
fsub dword [esi]
fstp dword [edx]
lea edx, [ecx*8]
add dword [esp + 0x10], edx
add ebp, edx
mov dword [esp + 0x24], ebp
lea ebp, [ecx*4]
lea edx, [ecx*4]
add ebx, ebp
add esi, edx
sub dword [esp + 0x20], 1
jne 0x401200
mov ebp, dword [esp + 0x44]
cmp ecx, 2
jl 0x40148b
je 0x401398
test ebp, ebp
jle 0x401380
mov edx, dword [esp + 0x2c]
lea edx, [eax + edx*4]
mov dword [esp + 0x20], edx
lea edx, [edi + ecx*8]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x28], ebp
jmp 0x401280
cmp ecx, 2
jle 0x401357
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x48]
add esi, 4
mov dword [esp + 0x10], esi
lea esi, [ecx - 3]
shr esi, 1
inc esi
mov ebp, dword [esp + 0x10]
fld dword [ebp - 4]
add dword [esp + 0xc], 8
fstp dword [esp + 0x30]
mov ebp, dword [esp + 0xc]
fld dword [ebp - 4]
mov ebp, dword [esp + 0x10]
fstp dword [esp + 0x34]
add dword [esp + 0x14], 8
fld dword [ebp]
mov ebp, dword [esp + 0xc]
fstp dword [esp + 0x3c]
add edx, 8
fld dword [ebp]
mov ebp, dword [esp + 0x14]
fstp dword [esp + 0x38]
add dword [esp + 0x10], 8
fld dword [esp + 0x30]
sub ebx, 8
sub esi, 1
fld st(0)
fld dword [esp + 0x34]
fld st(0)
fmulp st(2)
fld dword [esp + 0x38]
fld st(0)
fld dword [esp + 0x3c]
fld st(0)
fmulp st(2)
fxch st(4)
faddp st(1)
fstp dword [esp + 0x38]
fmulp st(3)
fmulp st(1)
fsubp st(1)
fstp dword [esp + 0x3c]
fld dword [esp + 0x3c]
fld st(0)
fadd dword [edx]
fstp dword [ebp]
fsub dword [edx]
fstp dword [ebx]
fld dword [edx - 4]
fld dword [esp + 0x38]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [ebp - 4]
fsubr dword [edx - 4]
fstp dword [ebx - 4]
jne 0x4012b2
mov ebp, dword [esp + 0x44]
lea edx, [ecx*8]
add dword [esp + 0x18], edx
add dword [esp + 0x24], edx
lea esi, [ecx*4]
add dword [esp + 0x1c], esi
add dword [esp + 0x20], esi
sub dword [esp + 0x28], 1
jne 0x401280
mov edx, ecx
and edx, 0x80000001
jns 0x40138f
dec edx
or edx, 0xfffffffe
inc edx
cmp edx, 1
je 0x40148b
movss xmm0, dword [0x6676c0]
lea esi, [ecx - 1]
mov ebx, esi
add esi, dword [esp + 0x2c]
cmp ebp, 4
mov edx, ecx
mov dword [esp + 0xc], 0
jl 0x401449
mov ebp, dword [esp + 0x44]
add ebp, 0xfffffffc
shr ebp, 2
inc ebp
mov dword [esp + 0x2c], ebp
add ebp, ebp
add ebp, ebp
mov dword [esp + 0xc], ebp
movss xmm1, dword [eax + esi*4]
xorps xmm1, xmm0
movss dword [edi + edx*4], xmm1
fld dword [eax + ebx*4]
fstp dword [edi + edx*4 - 4]
add esi, ecx
movss xmm1, dword [eax + esi*4]
lea ebp, [ecx + ecx]
add edx, ebp
add ebx, ecx
xorps xmm1, xmm0
movss dword [edi + edx*4], xmm1
fld dword [eax + ebx*4]
fstp dword [edi + edx*4 - 4]
add esi, ecx
movss xmm1, dword [eax + esi*4]
add edx, ebp
add ebx, ecx
xorps xmm1, xmm0
movss dword [edi + edx*4], xmm1
fld dword [eax + ebx*4]
fstp dword [edi + edx*4 - 4]
add esi, ecx
movss xmm1, dword [eax + esi*4]
add edx, ebp
add ebx, ecx
xorps xmm1, xmm0
movss dword [edi + edx*4], xmm1
fld dword [eax + ebx*4]
fstp dword [edi + edx*4 - 4]
add edx, ebp
add esi, ecx
add ebx, ecx
sub dword [esp + 0x2c], 1
jne 0x4013d3
mov ebp, dword [esp + 0x44]
cmp dword [esp + 0xc], ebp
jge 0x40148b
lea ebp, [ecx*4]
add ecx, ecx
lea ebx, [eax + ebx*4]
lea eax, [eax + esi*4]
mov esi, dword [esp + 0x44]
add ecx, ecx
add ecx, ecx
sub esi, dword [esp + 0xc]
lea edx, [edi + edx*4]
lea ecx, [ecx]
movss xmm1, dword [eax]
xorps xmm1, xmm0
movss dword [edx], xmm1
fld dword [ebx]
fstp dword [edx - 4]
add edx, ecx
add eax, ebp
add ebx, ebp
sub esi, 1
jne 0x401470
pop esi
pop ebp
pop ebx
add esp, 0x34
ret