Function at 0x106d620
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x1082334]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x200]
mov edx, dword [eax + 0x1f4]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x84], ecx
mov ecx, dword [eax + 0x23c]
mov dword [ebp - 0xac], edx
mov edx, dword [eax + 0x240]
push esi
mov esi, dword [ebx]
mov dword [ebp - 0xbc], ecx
mov ecx, dword [ebx + 0x107bc]
mov dword [ebp - 0x9c], edx
or edx, 0xffffffff
push edi
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0x80], 0x10
lea edi, [edx + 2]
test ecx, ecx
jne 0x106dfcd
cmp dword [ebx + 0x1073c], 8
jg 0x106d6bf
mov ecx, dword [eax + 0x218]
xor edx, edx
mov dword [ecx + 0xdc], edx
mov eax, dword [eax + 0x218]
mov dword [eax + 0x2ac], edx
jmp 0x106e024
cmp dword [esi + 0x48], 4
mov eax, dword [esi + 0x100]
mov dword [ebp - 0xb0], eax
jne 0x106d6d9
xor eax, eax
mov dword [ebp - 0xb0], eax
xorps xmm0, xmm0
xor edi, edi
movaps xmm1, xmm0
movaps xmm2, xmm0
movss dword [ebp - 0xa0], xmm0
movss dword [ebp - 0x98], xmm0
movss dword [ebp - 0x90], xmm1
movss dword [ebp - 0x8c], xmm2
test eax, eax
jle 0x106d81c
lea esp, [esp]
movzx ecx, word [esi + 0x6e]
mov edx, dword [esi + 0x58]
lea eax, [edi + edi]
push eax
mov eax, dword [ebp - 0xac]
push ecx
mov ecx, dword [esi + 0x20c]
push edx
push eax
call ecx
mov ecx, dword [esi + 0x58]
mov ebx, eax
movzx eax, word [esi + 0x6e]
lea edx, [edi + edi + 1]
push edx
mov edx, dword [ebp - 0xac]
push eax
mov eax, dword [esi + 0x20c]
push ecx
push edx
call eax
mov ecx, eax
lea eax, [ecx + ebx]
cdq
sub eax, edx
mov edx, dword [ebp - 0x84]
sar eax, 1
mov dword [edx + edi*8], eax
mov dword [ebp - 0xa8], eax
mov eax, ebx
sub eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0x84]
sar eax, 1
mov dword [edx + edi*8 + 4], eax
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0xa8]
cdq
xor eax, edx
sub eax, edx
xorps xmm0, xmm0
cvtsi2ss xmm0, eax
mov eax, dword [ebp - 0x94]
addss xmm0, dword [ebp - 0xa0]
cdq
xor eax, edx
sub eax, edx
movss dword [ebp - 0xa0], xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, eax
addss xmm0, dword [ebp - 0x98]
mov eax, ebx
cdq
xor eax, edx
sub eax, edx
xorps xmm1, xmm1
cvtsi2ss xmm1, eax
addss xmm1, dword [ebp - 0x90]
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
xorps xmm2, xmm2
inc edi
cvtsi2ss xmm2, eax
addss xmm2, dword [ebp - 0x8c]
movss dword [ebp - 0x98], xmm0
movss dword [ebp - 0x90], xmm1
movss dword [ebp - 0x8c], xmm2
cmp edi, dword [ebp - 0xb0]
jl 0x106d710
comiss xmm2, xmm1
xorps xmm0, xmm0
jbe 0x106d81c
movss dword [ebp - 0xa4], xmm1
jmp 0x106d824
movss dword [ebp - 0xa4], xmm2
comiss xmm1, xmm2
jbe 0x106d82e
movaps xmm7, xmm1
jmp 0x106d831
movaps xmm7, xmm2
movss xmm3, dword [0x1006af4]
movss xmm4, dword [0x1007198]
movss xmm5, dword [0x10072e4]
movss xmm6, dword [0x1007178]
movss xmm2, dword [0x1007114]
mov ebx, dword [ebp - 0xb4]
xor edi, edi
movss dword [ebp - 0xa8], xmm7
lea eax, [edi + 0xf]
cmp dword [ebp - 0x9c], edi
je 0x106dc06
movss xmm1, dword [ebx + 0x75f8]
movss dword [ebp - 0x94], xmm1
movss xmm1, dword [ebx + 0x75f4]
comiss xmm1, xmm0
jbe 0x106d89f
movss dword [ebp - 0x9c], xmm1
jmp 0x106d8a7
movss dword [ebp - 0x9c], xmm0
movss xmm1, dword [ebp - 0xa4]
mulss xmm1, dword [0x1007250]
comiss xmm1, xmm7
jbe 0x106d9c9
movss xmm1, dword [0x10071c4]
movss dword [ebp - 0x74], xmm1
movss xmm1, dword [0x1002fd4]
movss dword [ebp - 0x68], xmm1
movss xmm1, dword [0x100341c]
movss dword [ebp - 0x60], xmm1
movss xmm1, dword [0x1007118]
movss dword [ebp - 0x78], xmm3
movss xmm3, dword [0x10072e8]
movss dword [ebp - 0x58], xmm1
movss dword [ebp - 0x50], xmm1
movss dword [ebp - 0x4c], xmm1
movss xmm1, dword [0x1007254]
movss dword [ebp - 0x5c], xmm3
movss dword [ebp - 0x48], xmm1
movss dword [ebp - 0x44], xmm1
movss dword [ebp - 0x40], xmm1
movss xmm1, dword [ebp - 0x9c]
movss dword [ebp - 0x38], xmm3
movss xmm3, dword [ebp - 0x94]
movss dword [ebp - 0x70], xmm4
movss dword [ebp - 0x6c], xmm5
movss dword [ebp - 0x64], xmm6
movss dword [ebp - 0x3c], xmm2
movss dword [ebp - 0x34], xmm0
movss dword [ebp - 0x30], xmm0
mov dword [ebp - 0x28], 6
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x20], 8
mov dword [ebp - 0x1c], 9
mov dword [ebp - 0x18], 0xa
mov dword [ebp - 0x14], 0xb
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 0xc], 0xd
mov dword [ebp - 8], 0xe
xor eax, eax
jmp 0x106d9a0
comiss xmm3, dword [ebp + eax*4 - 0x78]
ja 0x106d9bd
movss xmm4, dword [ebp + eax*4 - 0x50]
comiss xmm4, xmm1
ja 0x106d9bd
inc eax
cmp eax, 9
jl 0x106d9a0
jmp 0x106dc06
mov eax, dword [ebp + eax*4 - 0x28]
mov dword [ebp - 0x80], eax
jmp 0x106dc01
movss xmm1, dword [ebp - 0xa4]
mulss xmm1, dword [0x1007694]
comiss xmm1, xmm7
movss xmm1, dword [0x10072b0]
jbe 0x106db08
movss dword [ebp - 0x2c], xmm1
movss xmm1, dword [0x1007698]
movss dword [ebp - 0x28], xmm1
movss xmm1, dword [0x10071c4]
movss dword [ebp - 0x20], xmm1
movss xmm1, dword [0x1002fd4]
movss dword [ebp - 0x14], xmm1
movss xmm1, dword [0x100341c]
movss dword [ebp - 0xc], xmm1
movss xmm1, dword [0x1007120]
movss dword [ebp - 0x54], xmm1
movss xmm1, dword [0x1007118]
movss dword [ebp - 0x24], xmm3
movss xmm3, dword [0x10072e8]
movss dword [ebp - 0x50], xmm1
movss dword [ebp - 0x4c], xmm1
movss xmm1, dword [0x1007254]
mov edx, 0xa
mov ecx, 0xb
movss dword [ebp - 8], xmm3
movss dword [ebp - 0x48], xmm1
movss dword [ebp - 0x44], xmm1
movss dword [ebp - 0x40], xmm1
movss xmm1, dword [ebp - 0x9c]
movss dword [ebp - 0x38], xmm3
movss xmm3, dword [ebp - 0x94]
mov dword [ebp - 0x58], eax
movss dword [ebp - 0x1c], xmm4
movss dword [ebp - 0x18], xmm5
movss dword [ebp - 0x10], xmm6
movss dword [ebp - 0x3c], xmm2
movss dword [ebp - 0x34], xmm0
movss dword [ebp - 0x30], xmm0
mov dword [ebp - 0x7c], 8
mov dword [ebp - 0x78], 9
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], 0xc
mov dword [ebp - 0x60], 0xd
mov dword [ebp - 0x5c], 0xe
xor eax, eax
lea esp, [esp]
comiss xmm3, dword [ebp + eax*4 - 0x2c]
ja 0x106dafc
movss xmm4, dword [ebp + eax*4 - 0x54]
comiss xmm4, xmm1
ja 0x106dafc
inc eax
cmp eax, edx
jl 0x106dae0
jmp 0x106dc06
mov ecx, dword [ebp + eax*4 - 0x7c]
mov dword [ebp - 0x80], ecx
jmp 0x106dc01
movss dword [ebp - 0x28], xmm1
movss xmm1, dword [0x1007698]
movss dword [ebp - 0x24], xmm1
movss xmm1, dword [0x10071c4]
movss dword [ebp - 0x1c], xmm1
movss xmm1, dword [0x1002fd4]
movss dword [ebp - 0x10], xmm1
movss xmm1, dword [0x100341c]
movss dword [ebp - 8], xmm1
movss xmm1, dword [0x1007120]
movss dword [ebp - 0x50], xmm1
movss xmm1, dword [0x1007118]
mov ecx, 0xc
movss dword [ebp - 0x4c], xmm1
movss dword [ebp - 0x48], xmm1
movss dword [ebp - 0x44], xmm1
movss xmm1, dword [0x1007254]
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], ecx
mov ecx, 0xd
movss dword [ebp - 0x40], xmm1
movss dword [ebp - 0x3c], xmm1
movss dword [ebp - 0x38], xmm1
movss xmm1, dword [0x10072e8]
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x6c], ecx
mov ecx, 0xe
movss dword [ebp - 0x20], xmm3
movss xmm3, dword [ebp - 0x94]
movss dword [ebp - 0x30], xmm1
movss xmm1, dword [ebp - 0x9c]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
movss dword [ebp - 0x18], xmm4
movss dword [ebp - 0x14], xmm5
movss dword [ebp - 0xc], xmm6
movss dword [ebp - 0x34], xmm2
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], ecx
xor eax, eax
mov edi, edi
comiss xmm3, dword [ebp + eax*4 - 0x28]
ja 0x106dbfa
movss xmm4, dword [ebp + eax*4 - 0x50]
comiss xmm4, xmm1
ja 0x106dbfa
inc eax
cmp eax, 9
jl 0x106dbe0
jmp 0x106dc06
mov edx, dword [ebp + eax*4 - 0x78]
mov dword [ebp - 0x80], edx
mov edi, 1
cmp dword [ebx + 0x75d0], 0x30
jle 0x106dc2c
test edi, edi
je 0x106dd35
mov eax, 0x10
sub eax, dword [ebp - 0x80]
mov ecx, 0x10
sar eax, 2
sub ecx, eax
mov dword [ebp - 0x80], ecx
test edi, edi
je 0x106dd35
movd xmm1, dword [ebp - 0x80]
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [ebp - 0x98]
mulss xmm1, dword [0x1007638]
xor ebx, ebx
movss dword [ebp - 0x90], xmm0
movss dword [ebp - 0x8c], xmm0
movss dword [ebp - 0x98], xmm1
cmp dword [ebp - 0xb0], ebx
jle 0x106dd35
mov edi, dword [ebp - 0x84]
add edi, 4
jmp 0x106dc80
mov eax, dword [edi]
imul eax, dword [ebp - 0x80]
mov ecx, dword [edi - 4]
cdq
and edx, 0xf
add eax, edx
sar eax, 4
lea edx, [eax + ecx]
sub ecx, eax
mov dword [edi], eax
lea eax, [ebx + ebx]
push eax
mov eax, dword [ebp - 0xac]
push esi
push eax
mov dword [ebp - 0x84], ecx
mov ecx, dword [esi + 0x208]
push edx
mov dword [ebp - 0x94], edx
call ecx
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0x84]
lea edx, [ebx + ebx + 1]
push edx
mov edx, dword [esi + 0x208]
push esi
push eax
push ecx
call edx
mov eax, dword [ebp - 0x94]
cdq
xor eax, edx
sub eax, edx
xorps xmm0, xmm0
cvtsi2ss xmm0, eax
mov eax, dword [ebp - 0x84]
addss xmm0, dword [ebp - 0x90]
cdq
xor eax, edx
movss dword [ebp - 0x90], xmm0
sub eax, edx
xorps xmm0, xmm0
inc ebx
cvtsi2ss xmm0, eax
addss xmm0, dword [ebp - 0x8c]
add edi, 8
movss dword [ebp - 0x8c], xmm0
cmp ebx, dword [ebp - 0xb0]
jl 0x106dc80
movss xmm2, dword [0x1007114]
xorps xmm0, xmm0
fld dword [ebp - 0xa0]
mov ecx, dword [ebp - 0xb8]
fnstcw word [ebp - 0x7e]
movzx eax, word [ebp - 0x7e]
fld st(0)
or eax, 0xc00
mov dword [ebp - 0x84], eax
fldcw word [ebp - 0x84]
fistp qword [ebp - 0x88]
mov eax, dword [ebp - 0x88]
mov dword [ecx + 0x204], eax
fldcw word [ebp - 0x7e]
fld dword [ebp - 0x98]
fnstcw word [ebp - 0x7e]
fld st(0)
movzx eax, word [ebp - 0x7e]
or eax, 0xc00
mov dword [ebp - 0x84], eax
fldcw word [ebp - 0x84]
fistp qword [ebp - 0x88]
mov edx, dword [ebp - 0x88]
mov dword [ecx + 0x208], edx
fldcw word [ebp - 0x7e]
fld dword [ebp - 0x90]
fnstcw word [ebp - 0x7e]
fld st(0)
movzx eax, word [ebp - 0x7e]
or eax, 0xc00
mov dword [ebp - 0x84], eax
fldcw word [ebp - 0x84]
fistp qword [ebp - 0x88]
mov eax, dword [ebp - 0x88]
mov dword [ecx + 0x20c], eax
fldcw word [ebp - 0x7e]
fld dword [ebp - 0x8c]
fnstcw word [ebp - 0x7e]
fld st(0)
movzx eax, word [ebp - 0x7e]
or eax, 0xc00
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x10]
fldcw word [ebp - 0x84]
fistp qword [ebp - 0x88]
mov edx, dword [ebp - 0x88]
mov dword [ecx + 0x210], edx
mov edx, dword [eax + 0x204]
fldcw word [ebp - 0x7e]
fild dword [eax + 0x204]
test edx, edx
jns 0x106de28
fadd dword [0x100344c]
mov edx, dword [eax + 0x208]
faddp st(4)
fxch st(3)
fst dword [ebp - 0xa0]
fild dword [eax + 0x208]
test edx, edx
jns 0x106de48
fadd dword [0x100344c]
mov edx, dword [eax + 0x20c]
faddp st(3)
fxch st(2)
fstp dword [ebp - 0x98]
fild dword [eax + 0x20c]
test edx, edx
jns 0x106de68
fadd dword [0x100344c]
mov eax, dword [eax + 0x210]
faddp st(1)
mov dword [ebp - 0x84], eax
fstp dword [ebp - 0x90]
fild dword [ebp - 0x84]
test eax, eax
jns 0x106de8c
fadd dword [0x100344c]
faddp st(2)
fxch st(1)
fstp dword [ebp - 0x8c]
fldz
fxch st(1)
fucompi st(1)
fstp st(0)
lahf
test ah, 0x44
jnp 0x106dfa2
movss xmm4, dword [ebp - 0x98]
ucomiss xmm4, xmm0
lahf
test ah, 0x44
jnp 0x106dfa2
movss xmm6, dword [ebp - 0x90]
ucomiss xmm6, xmm0
lahf
test ah, 0x44
jnp 0x106df9a
movss xmm1, dword [ebp - 0x8c]
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jnp 0x106df9a
mov edx, dword [ebp - 0xb4]
movss xmm3, dword [ebp - 0xa0]
comiss xmm3, xmm4
movss xmm7, dword [edx + 0x75f8]
jbe 0x106df07
movaps xmm5, xmm3
jmp 0x106df0a
movaps xmm5, xmm4
comiss xmm1, xmm6
jbe 0x106df14
movaps xmm0, xmm6
jmp 0x106df17
movaps xmm0, xmm1
comiss xmm4, xmm3
mulss xmm0, xmm5
ja 0x106df23
movaps xmm3, xmm4
comiss xmm6, xmm1
jbe 0x106df2b
movaps xmm1, xmm6
comiss xmm7, xmm2
mulss xmm1, xmm3
jb 0x106df3e
mulss xmm0, dword [0x1007198]
jmp 0x106df66
comiss xmm7, dword [0x100711c]
jb 0x106df51
mulss xmm0, dword [0x10072e4]
jmp 0x106df66
movss xmm2, dword [0x1007258]
comiss xmm2, xmm7
jb 0x106df66
mulss xmm0, dword [0x1007178]
comiss xmm0, xmm1
jbe 0x106df72
mov eax, 1
jmp 0x106df74
xor eax, eax
cmp dword [ebp - 0xbc], 0
je 0x106df9e
test eax, eax
jne 0x106dfa2
movss xmm0, dword [ebp - 0xa4]
mulss xmm0, dword [0x1006af4]
comiss xmm0, dword [ebp - 0xa8]
ja 0x106dfa2
xor edx, edx
jmp 0x106dfa7
test eax, eax
je 0x106df9a
mov edx, 1
mov eax, dword [ecx + 0x218]
mov edi, dword [ecx + 0x20c]
mov dword [eax + 0xdc], edi
mov eax, dword [ecx + 0x218]
mov ecx, dword [ecx + 0x210]
mov dword [eax + 0x2ac], ecx
jmp 0x106e024
cmp ecx, edi
jne 0x106dff9
mov ecx, dword [eax + 0x218]
mov dword [ecx + 0xdc], edi
mov ecx, dword [eax + 0x218]
mov dword [ecx + 0x2ac], edi
xor edx, edx
mov dword [eax + 0x20c], edi
mov dword [eax + 0x210], edi
jmp 0x106e024
cmp ecx, 2
jne 0x106e024
mov ecx, dword [eax + 0x218]
mov edx, edi
mov dword [ecx + 0xdc], edx
mov ecx, dword [eax + 0x218]
mov dword [ecx + 0x2ac], edx
mov dword [eax + 0x20c], edx
mov dword [eax + 0x210], edx
xor eax, eax
xor ecx, ecx
cmp ax, word [esi + 0x22]
jae 0x106e05c
mov edi, dword [ebp - 0xb8]
jmp 0x106e040
mov ebx, dword [edi + 0x214]
imul eax, eax, 0x6f0
inc ecx
mov dword [eax + ebx + 0x44], edx
movzx ebx, word [esi + 0x22]
movsx eax, cx
cmp eax, ebx
jl 0x106e040
mov eax, dword [ebp - 0xb4]
mov ecx, dword [eax]
push eax
mov dword [ecx + 0x11c], edx
call fcn.0102ff10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010225fd
mov esp, ebp
pop ebp
ret 0xc