Function at 0x101295b3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], eax
push esi
mov esi, dword [ecx + 4]
mov edx, dword [ecx + 8]
push edi
mov edi, eax
mov dword [ebp - 0x18], edx
mov eax, dword [ecx]
mov dword [ebp - 8], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x20]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x38]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x24], esi
movsx ecx, word [eax + edx*2]
mov eax, dword [ebp + 0x28]
lea edx, [ecx + eax*8]
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x28], edx
test ecx, ecx
je 0x10129611
cmp eax, 2
jne 0x10129611
push 0x10
jmp 0x10129613
push 4
pop esi
sar edx, 1
sub edx, esi
lea esi, [eax*2 - 1]
test ecx, ecx
je 0x10129629
cmp eax, 2
jne 0x10129629
dec esi
mov eax, esi
imul eax, edx
mov edx, dword [ebp + 0x1c]
push 0x40
mov ecx, dword [edx]
add eax, ecx
cdq
idiv esi
sub ecx, dword [ebp + 0x28]
mov edx, eax
add ecx, 0xffffffe0
cmp ecx, edx
pop eax
cmovl edx, ecx
cmp edx, eax
cmovg edx, eax
xor eax, eax
inc eax
cmp edx, 4
jge 0x10129659
mov esi, eax
jmp 0x10129677
mov eax, edx
and edx, 7
sar eax, 3
push 0xe
pop ecx
movsx esi, word [edx*2 + 0x101aa4a0]
sub cl, al
sar esi, cl
xor eax, eax
inc esi
and esi, 0xfffffffe
inc eax
mov dword [ebp + 0x28], esi
cmp dword [ebp + 0x2c], edi
je 0x1012968b
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x14]
cmovge esi, eax
mov dword [ebp + 0x28], esi
cmp dword [ebp - 8], edi
je 0x101296af
mov eax, dword [ebp + 8]
push dword [eax + 0x28]
push dword [ebp + 0x18]
push dword [ebp + 0x2c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.1012c3ca
add esp, 0x14
mov dword [ebp - 0xc], eax
mov edi, eax
push dword [ebp - 4]
call fcn.10128180
xor edx, edx
mov dword [ebp - 0x2c], eax
inc edx
pop ecx
cmp esi, edx
je 0x1012992f
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x101296dc
imul edi, esi
add edi, 0x2000
sar edi, 0xe
mov dword [ebp - 0xc], edi
mov eax, dword [ebp + 0x2c]
test eax, eax
je 0x10129790
cmp dword [ebp + 0x18], 2
jle 0x10129790
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov dword [ebp + 8], eax
lea ecx, [eax + 1]
imul ecx, ecx, 3
mov dword [ebp - 0x14], ecx
add ecx, eax
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], ecx
push ecx
je 0x1012973d
lea edx, [edi + eax*2]
lea eax, [edi + 1]
imul ecx, eax, 3
lea eax, [edx + 3]
cmp edi, dword [ebp + 8]
cmovle eax, ecx
imul ecx, edi, 3
cmp edi, dword [ebp + 8]
push eax
lea eax, [edx + 2]
cmovle eax, ecx
push eax
push dword [ebp - 4]
call fcn.1012e0c4
jmp 0x10129879
push dword [ebp - 4]
call fcn.101273dc
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x14]
cmp ecx, eax
jge 0x1012975f
mov eax, ecx
push 3
cdq
pop ecx
idiv ecx
mov edi, eax
mov eax, dword [ebp + 8]
jmp 0x10129769
sub ecx, eax
mov eax, dword [ebp + 8]
lea edi, [eax + 1]
add edi, ecx
push dword [ebp - 0xc]
imul esi, edi, 3
lea edx, [edi + eax*2]
cmp edi, dword [ebp + 8]
lea eax, [edx + 3]
lea ecx, [esi + 3]
cmovle eax, ecx
push eax
lea eax, [edx + 2]
cmovle eax, esi
push eax
push dword [ebp - 4]
call fcn.101273a7
jmp 0x101297f3
cmp dword [ebp + 0x24], edx
jg 0x1012987e
test eax, eax
jne 0x1012987e
mov eax, esi
sar eax, 1
mov dword [ebp - 0x14], eax
inc eax
mov edx, eax
mov dword [ebp - 0x28], eax
imul edx, eax
mov dword [ebp + 8], edx
test ecx, ecx
je 0x101297fe
mov eax, dword [ebp + 0x28]
lea esi, [edi + 1]
push dword [ebp + 8]
sub eax, edi
mov ecx, esi
imul ecx, dword [ebp - 0xc]
lea edi, [eax + 1]
add eax, 2
imul eax, edi
sar ecx, 1
sar eax, 1
sub edx, eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
cmovle edx, ecx
cmovle edi, esi
add edi, edx
push edi
push edx
push dword [ebp - 4]
call fcn.1012e0c4
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp + 0x28]
add esp, 0x10
jmp 0x101298a0
push edx
push dword [ebp - 4]
call fcn.101273dc
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x28]
sar eax, 1
cmp ecx, eax
jge 0x10129837
lea eax, [ecx*8 + 1]
push eax
call fcn.1012e168
pop ecx
lea edi, [eax - 1]
shr edi, 1
lea edx, [edi + 1]
mov ecx, edx
imul ecx, edi
sar ecx, 1
jmp 0x10129869
mov eax, dword [ebp + 8]
sub eax, ecx
lea eax, [eax*8 - 7]
push eax
call fcn.1012e168
lea edi, [esi*2 + 2]
sub edi, eax
mov eax, esi
shr edi, 1
sub eax, edi
pop ecx
mov ecx, dword [ebp + 8]
lea edx, [eax + 1]
add eax, 2
imul eax, edx
sar eax, 1
sub ecx, eax
push dword [ebp + 8]
lea eax, [ecx + edx]
push eax
push ecx
push dword [ebp - 4]
call fcn.101273a7
add esp, 0x10
jmp 0x101298a0
lea eax, [esi + 1]
push eax
test ecx, ecx
je 0x10129894
push edi
push dword [ebp - 4]
call fcn.1012e05e
add esp, 0xc
jmp 0x101298a0
push dword [ebp - 4]
call fcn.1012731f
pop ecx
pop ecx
mov edi, eax
shl edi, 0xe
xor edx, edx
mov eax, edi
mov edi, dword [ebp + 0x18]
div esi
cmp dword [ebp - 8], 0
mov esi, eax
je 0x101299d6
cmp dword [ebp + 0x2c], 0
je 0x101299d6
test esi, esi
jne 0x101298e3
push edi
push dword [ebp - 0x18]
push dword [ebp - 0x20]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x24]
call fcn.10129d82
add esp, 0x18
jmp 0x101299d6
test edi, edi
jle 0x101299d6
mov ecx, dword [ebp + 0x10]
mov edx, edi
mov eax, dword [ebp + 0x14]
sub ecx, eax
movss xmm3, dword [0x1015d8f0]
movss xmm1, dword [eax]
movss xmm2, dword [ecx + eax]
mulss xmm1, xmm3
mulss xmm2, xmm3
movaps xmm0, xmm1
addss xmm0, xmm2
subss xmm1, xmm2
movss dword [ecx + eax], xmm0
movss dword [eax], xmm1
add eax, 4
sub edx, 1
jne 0x101298fd
jmp 0x101299d6
cmp dword [ebp + 0x2c], 0
je 0x101299d0
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x1012998f
xor eax, eax
cmp edi, 0x2000
mov edi, dword [ebp + 0x18]
setg al
mov dword [ebp - 0x10], eax
test eax, eax
mov eax, dword [ebp + 0x14]
je 0x10129974
xor ecx, ecx
test edi, edi
jle 0x10129974
movss xmm0, dword [eax + ecx*4]
xorps xmm0, xmmword [0x1015d900]
movss dword [eax + ecx*4], xmm0
inc ecx
cmp ecx, edi
jl 0x1012995e
push edi
push dword [ebp - 0x18]
push dword [ebp - 0x20]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x24]
call fcn.10129d82
mov ecx, dword [ebp - 8]
add esp, 0x18
jmp 0x10129992
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp + 0x1c]
cmp dword [eax], 0x10
jle 0x101299c8
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 0x10
jle 0x101299c8
push 2
test ecx, ecx
je 0x101299b9
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.1012df43
add esp, 0xc
jmp 0x101299cc
push dword [ebp - 4]
call fcn.1012718d
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
jmp 0x101299cc
and dword [ebp - 0x10], 0
xor esi, esi
jmp 0x101299d6
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp + 0x18]
push dword [ebp - 4]
call fcn.10128180
sub eax, dword [ebp - 0x2c]
pop ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp + 8], eax
sub dword [ecx], eax
test esi, esi
jne 0x10129a0c
mov ecx, dword [ebp + 0x20]
xor edx, edx
mov eax, dword [ebp + 0x30]
inc edx
shl edx, cl
dec edx
mov dword [ebp + 0x18], 0x7fff
mov dword [ebp + 0x2c], 0xffffc000
and dword [eax], edx
jmp 0x10129a79
mov eax, 0x4000
mov dword [ebp + 0x2c], eax
cmp esi, eax
jne 0x10129a37
mov ecx, dword [ebp + 0x20]
xor eax, eax
xor edx, edx
mov dword [ebp + 0x18], eax
inc edx
mov eax, 0x7fff
shl edx, cl
mov dword [ebp - 0x1c], eax
dec edx
mov eax, dword [ebp + 0x30]
shl edx, cl
and dword [eax], edx
jmp 0x10129a79
push esi
call fcn.1012945a
cwde
mov dword [ebp + 0x18], eax
mov eax, 0x4000
sub eax, esi
push eax
call fcn.1012945a
push dword [ebp + 0x18]
cwde
push eax
mov dword [ebp - 0x1c], eax
call fcn.101294b0
shl edi, 7
add esp, 0x10
add edi, 0xffffff80
movsx ecx, ax
movsx eax, di
imul ecx, eax
add ecx, 0x4000
sar ecx, 0xf
mov dword [ebp + 0x2c], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
pop edi
mov dword [eax], ecx
mov ecx, dword [ebp + 0x18]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 0x2c]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], ecx
pop esi
mov esp, ebp
pop ebp
ret