Function at 0x100c7990
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x128
mov eax, dword [0x102090c0]
xor eax, esp
mov dword [esp + 0x124], eax
mov eax, dword [0x10450be0]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], edi
mov al, byte [edi + 0x20e]
mov byte [esp + 0x13], al
mov al, byte [edi + 0x210]
mov byte [esp + 0x1f], al
xor eax, eax
mov dword [esp + 0x14], eax
lea ecx, [eax + 4]
lea eax, [esp + 0x8c]
nop
mov dword [eax - 4], 0
lea eax, [eax + 0x28]
mov dword [eax - 0x28], 0
mov dword [eax - 0x24], 0
mov dword [eax - 0x20], 0
sub ecx, 1
jne 0x100c79e0
push 0xa0
push ecx
lea eax, [esp + 0x90]
push eax
call fcn.1019d810
xor eax, eax
add esp, 0xc
mov dword [esp + 0x38], eax
cmp dword [edi + 0x54], eax
jle 0x100c800c
xor esi, esi
mov dword [esp + 0x20], esi
nop
xor edx, edx
xor ecx, ecx
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, dword [edi + 0x38]
and ecx, dword [edi + 0x3c]
or edx, ecx
je 0x100c7c12
mov esi, dword [edi + 0xc]
xor eax, eax
add esi, dword [esp + 0x20]
cmp byte [esp + 0x13], al
mov dword [esp + 0x58], esi
setg al
inc eax
xor ecx, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], ecx
test ecx, ecx
jne 0x100c7a7b
mov al, byte [esi + 0x58]
jmp 0x100c7a7e
mov al, byte [esi + 0x59]
mov edx, dword [edi + 0x1d4]
movzx eax, al
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], edx
lea eax, [eax + eax*2]
mov edx, dword [edx + eax*8]
mov edi, edx
mov dword [esp + 0x2c], eax
test edx, edx
jle 0x100c7ac3
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + eax*8 + 8]
lea ecx, [edx + edx*4]
cmp dword [eax + ecx*8 - 0xc], 0
jne 0x100c7abf
mov eax, dword [esp + 0x2c]
lea edi, [edx - 1]
mov ecx, dword [esp + 0x18]
mov dword [ecx + eax*8], edi
mov ecx, dword [esp + 0x24]
cmp edi, 1
jne 0x100c7bf7
test byte [esi], 0x80
jne 0x100c7b03
cmp byte [esp + 0x13], 0
jg 0x100c7ae4
movss xmm0, dword [esi + 0x44]
maxss xmm0, dword [esi + 0x48]
jmp 0x100c7af9
test ecx, ecx
jne 0x100c7af4
movss xmm0, dword [esi + 0x40]
maxss xmm0, dword [esi + 0x48]
jmp 0x100c7af9
movss xmm0, dword [esi + 0x44]
comiss xmm0, dword [esi + 0x28]
ja 0x100c7bf7
cmp byte [esp + 0x1f], 0
jle 0x100c7b1f
mov eax, dword [esp + 0x30]
movsx eax, byte [eax + 0x210]
cmp dword [esp + 0x38], eax
jge 0x100c7b1f
xor edx, edx
jmp 0x100c7b24
mov edx, 1
cmp byte [esp + 0x13], 0
jle 0x100c7b33
test ecx, ecx
jne 0x100c7b33
xor eax, eax
jmp 0x100c7b38
mov eax, 2
add eax, edx
lea edx, [esp + 0x88]
mov dword [esp + 0x5c], eax
lea eax, [eax + eax*4]
cmp dword [edx + eax*8 + 0x10], 0
lea edx, [edx + eax*8]
jne 0x100c7b6d
mov dword [edx], 0x7f7fffff
mov dword [edx + 4], 0x7f7fffff
mov dword [edx + 8], 0xff7fffff
mov dword [edx + 0xc], 0xff7fffff
mov eax, dword [esp + 0x28]
mov ecx, eax
shr ecx, 5
and eax, 0x1f
mov dword [esp + 0x28], eax
mov esi, dword [esp + 0x28]
mov eax, dword [edx + ecx*4 + 0x14]
bts eax, esi
mov esi, dword [esp + 0x58]
mov dword [edx + ecx*4 + 0x14], eax
inc dword [edx + 0x10]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
movss xmm0, dword [edx]
mov eax, dword [ecx + eax*8 + 8]
movss xmm4, dword [eax]
comiss xmm0, xmm4
movss xmm1, dword [eax + 4]
movss xmm2, dword [eax + 8]
movss xmm3, dword [eax + 0xc]
jbe 0x100c7bbf
movss dword [edx], xmm4
movss xmm0, dword [edx + 4]
comiss xmm0, xmm1
jbe 0x100c7bce
movss dword [edx + 4], xmm1
comiss xmm2, dword [edx + 8]
jbe 0x100c7bd9
movss dword [edx + 8], xmm2
comiss xmm3, dword [edx + 0xc]
jbe 0x100c7be4
movss dword [edx + 0xc], xmm3
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x5c]
bts ecx, eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x30]
inc ecx
mov dword [esp + 0x24], ecx
cmp ecx, dword [esp + 0x34]
jl 0x100c7a72
mov byte [esi + 0x57], 0xff
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
add esi, 0x68
inc eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x38], eax
cmp eax, dword [edi + 0x54]
jl 0x100c7a30
cmp dword [esp + 0x14], 0
je 0x100c800c
mov eax, dword [esp + 0x3c]
mov esi, dword [edi + 0x1c8]
add eax, 0x1f64
mov dword [esp + 0x14], eax
sub esi, 2
mov eax, dword [eax + 4]
cmp esi, eax
jle 0x100c7c7f
test eax, eax
je 0x100c7c67
cdq
sub eax, edx
mov edx, dword [esp + 0x14]
mov ecx, eax
sar ecx, 1
add ecx, dword [edx + 4]
jmp 0x100c7c70
mov edx, dword [esp + 0x14]
mov ecx, 8
cmp ecx, esi
mov eax, esi
cmovg eax, ecx
mov ecx, edx
push eax
call fcn.100cbab0
mov eax, dword [esp + 0x14]
mov edx, 2
xorps xmm0, xmm0
mov dword [esp + 0x70], 0
movaps xmmword [esp + 0x60], xmm0
mov dword [esp + 0x2c], edx
mov dword [eax], esi
mov eax, dword [esp + 0x3c]
mov ecx, dword [edi + 0x1c8]
mov dword [esp + 0x18], ecx
mov esi, dword [eax + 0x1f6c]
lea eax, [ecx - 1]
mov dword [esp + 0x28], esi
cmp eax, edx
jl 0x100c7d32
lea esi, [ecx - 1]
mov eax, esi
and eax, 0x1f
mov dword [esp + 0x34], eax
nop dword [eax]
mov eax, edx
mov edi, edx
or eax, 0x1f
sar edi, 5
cmp esi, eax
mov ecx, 0x1f
cmovle ecx, dword [esp + 0x34]
xor esi, esi
inc ecx
xor eax, eax
bts esi, ecx
cmp ecx, 0x20
mov ecx, edx
cmovae eax, esi
xor edx, edx
xor esi, eax
and ecx, 0x1f
bts edx, ecx
dec esi
xor eax, eax
cmp ecx, 0x20
cmovae eax, edx
xor edx, eax
neg edx
and esi, edx
mov edx, dword [esp + 0x2c]
or dword [esp + edi*4 + 0x60], esi
add edx, 0x20
mov esi, dword [esp + 0x18]
and edx, 0xffffffe0
dec esi
mov dword [esp + 0x2c], edx
cmp edx, esi
jle 0x100c7cd0
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
movzx edx, byte [edi + 0x214]
movups xmm0, xmmword [edi + 0x144]
mov ecx, edx
and edx, 0x1f
shr ecx, 5
movups xmmword [esp + 0x40], xmm0
movss xmm2, dword [esp + 0x4c]
mov eax, dword [esp + ecx*4 + 0x60]
movss xmm3, dword [esp + 0x48]
btr eax, edx
movss xmm5, dword [esp + 0x44]
movss xmm4, dword [esp + 0x40]
mov dword [esp + ecx*4 + 0x60], eax
xor eax, eax
cmp byte [esp + 0x13], al
setg al
add eax, 2
sub dword [esp + 0x18], eax
xor edx, edx
mov dword [esp + 0x24], edx
lea ecx, [edx + edx*4]
shl ecx, 3
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + ecx + 0x98]
mov dword [esp + 0x14], eax
test eax, eax
je 0x100c7f23
lea eax, [esp + 0x88]
add ecx, eax
mov eax, edx
movups xmm1, xmmword [ecx]
movaps xmmword [esp + 0x40], xmm1
and eax, 1
je 0x100c7dc2
cmp byte [esp + 0x1f], 0
jg 0x100c7dd2
comiss xmm4, xmm1
ja 0x100c7dd2
movss dword [esp + 0x40], xmm4
movaps xmm1, xmmword [esp + 0x40]
and edx, 2
je 0x100c7dde
cmp byte [esp + 0x13], 0
jg 0x100c7df5
movaps xmm0, xmm1
shufps xmm0, xmm1, 0x55
comiss xmm5, xmm0
ja 0x100c7df5
movss dword [esp + 0x44], xmm5
movaps xmm1, xmmword [esp + 0x40]
test eax, eax
je 0x100c7e10
movaps xmm0, xmm1
shufps xmm0, xmm1, 0xaa
comiss xmm0, xmm3
jae 0x100c7e10
movss dword [esp + 0x48], xmm3
movaps xmm1, xmmword [esp + 0x40]
test edx, edx
je 0x100c7e34
test dword [edi + 4], 0x20000
jne 0x100c7e34
movaps xmm0, xmm1
shufps xmm0, xmm1, 0xff
comiss xmm0, xmm2
jae 0x100c7e34
movss dword [esp + 0x4c], xmm2
movaps xmm1, xmmword [esp + 0x40]
mov eax, dword [esp + 0x18]
xor edx, edx
sub eax, dword [ecx + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x14]
not eax
and dword [esp + 0x60], eax
mov eax, dword [ecx + 0x18]
not eax
and dword [esp + 0x64], eax
mov eax, dword [ecx + 0x1c]
not eax
and dword [esp + 0x68], eax
mov eax, dword [ecx + 0x20]
not eax
and dword [esp + 0x6c], eax
mov eax, dword [ecx + 0x24]
not eax
and dword [esp + 0x70], eax
cmp dword [edi + 0x1c8], edx
jle 0x100c7f1f
mov dword [esp + 0x20], edx
nop
cmp dword [esp + 0x14], 0
je 0x100c7f1f
mov esi, edx
lea edi, [esp + 0x88]
add edi, dword [esp + 0x2c]
mov ecx, edx
and ecx, 0x1f
sar esi, 5
mov eax, 1
mov dword [esp + 0x34], ecx
shl eax, cl
test dword [edi + esi*4 + 0x14], eax
mov edi, dword [esp + 0x30]
je 0x100c7f09
lea eax, [esp + 0x88]
dec dword [esp + 0x14]
add eax, dword [esp + 0x2c]
mov eax, dword [eax + esi*4 + 0x14]
btr eax, ecx
lea ecx, [esp + 0x88]
add ecx, dword [esp + 0x2c]
mov dword [ecx + esi*4 + 0x14], eax
mov ecx, dword [edi + 0x1d4]
add ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
mov eax, dword [ecx + 8]
movups xmmword [eax], xmm1
mov eax, esi
add esi, 0x18
movups xmm0, xmmword [ecx]
mov dword [esp + 0x28], esi
movups xmmword [eax], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [eax + 0x10], xmm0
jmp 0x100c7f0d
mov esi, dword [esp + 0x28]
add dword [esp + 0x20], 0x18
inc edx
cmp edx, dword [edi + 0x1c8]
jl 0x100c7e80
mov edx, dword [esp + 0x24]
cmp edx, 1
jne 0x100c7f64
cmp byte [esp + 0x13], 0
jle 0x100c7f64
movzx eax, byte [edi + 0x214]
mov edx, esi
add esi, 0x18
mov dword [esp + 0x28], esi
lea ecx, [eax + eax*2]
mov eax, dword [edi + 0x1d4]
movups xmm0, xmmword [eax + ecx*8]
movups xmmword [edx], xmm0
movq xmm0, qword [eax + ecx*8 + 0x10]
movq qword [edx + 0x10], xmm0
mov edx, dword [esp + 0x24]
inc edx
jmp 0x100c7d82
inc edx
mov dword [esp + 0x24], edx
cmp edx, 4
jl 0x100c7d86
mov eax, dword [edi + 0x1c8]
xor ecx, ecx
mov dword [esp + 0x14], ecx
test eax, eax
jle 0x100c7fe5
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x18], 0
je 0x100c7fe5
and ecx, 0x1f
mov edx, 1
shl edx, cl
mov ecx, dword [esp + 0x14]
mov eax, ecx
sar eax, 5
test dword [esp + eax*4 + 0x60], edx
mov edx, dword [esp + 0x20]
je 0x100c7fcf
mov eax, dword [edi + 0x1d4]
mov ecx, esi
add esi, 0x18
dec dword [esp + 0x18]
movups xmm0, xmmword [eax + edx]
movups xmmword [ecx], xmm0
movq xmm0, qword [eax + edx + 0x10]
movq qword [ecx + 0x10], xmm0
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 0x1c8]
inc ecx
add edx, 0x18
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], edx
cmp ecx, eax
jl 0x100c7f86
lea eax, [eax + eax*2]
lea eax, [eax*8 - 0x30]
push eax
mov eax, dword [esp + 0x40]
push dword [eax + 0x1f6c]
mov eax, dword [edi + 0x1d4]
add eax, 0x30
push eax
call fcn.1019d290
add esp, 0xc
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
xor ecx, esp
call fcn.1019ba64
mov esp, ebp
pop ebp
ret