Function at 0x100cc970
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x10189818]
sub esp, 0x2c
cmp byte [eax + 0x35a1], 0
push ebx
push esi
push edi
je 0x100cd09e
lea ecx, [eax + 0x35a4]
call fcn.100ad3a0
test al, al
je 0x100cd09e
movss xmm0, dword [0x1034ece4]
xorps xmm1, xmm1
ucomiss xmm0, xmm1
movss dword [esp + 0x18], xmm1
lahf
test ah, 0x44
jp 0x100cc9e1
movss xmm0, dword [0x1034ece8]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x100cc9e1
movss xmm0, dword [0x1034ecec]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x100cd09e
xor esi, esi
mov dword [esp + 0x1c], 0
xor ebx, ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebx
movaps xmm0, xmm1
call fcn.101429c0
mov eax, dword [0x10189818]
movaps xmm4, xmm0
movss xmm7, dword [0x1034ecec]
movaps xmm6, xmm4
shufps xmm4, xmm4, 1
movss xmm1, dword [eax + 0x3688]
mulss xmm6, xmm1
mulss xmm4, xmm1
addss xmm6, dword [0x1034ece4]
addss xmm4, dword [0x1034ece8]
movaps xmm0, xmm6
mulss xmm0, dword [0x1034e410]
movaps xmm5, xmm4
mulss xmm5, dword [0x1034e414]
addss xmm5, xmm0
movss xmm0, dword [0x1034e418]
mulss xmm0, xmm7
addss xmm5, xmm0
movss xmm0, dword [0x10178d64]
addss xmm5, dword [0x1034e41c]
comiss xmm0, xmm5
ja 0x100ccb59
movss xmm2, dword [0x10178ef4]
movaps xmm0, xmm6
mulss xmm0, dword [0x1034e3e0]
mov eax, dword [0x1034edb4]
mulss xmm6, dword [0x1034e3f0]
divss xmm2, xmm5
movss xmm3, dword [eax + 0x14]
movaps xmm5, xmm4
mulss xmm5, dword [0x1034e3e4]
mulss xmm4, dword [0x1034e3f4]
mulss xmm3, dword [0x10178e88]
addss xmm5, xmm0
movss xmm0, dword [0x1034e3e8]
addss xmm4, xmm6
mulss xmm0, xmm7
addss xmm5, xmm0
movss xmm0, dword [0x1034e3f8]
mulss xmm0, xmm7
addss xmm4, xmm0
movss xmm0, dword [0x10178ef4]
addss xmm5, dword [0x1034e3ec]
addss xmm4, dword [0x1034e3fc]
mulss xmm5, xmm2
mulss xmm4, xmm2
addss xmm5, dword [0x10178ef4]
subss xmm0, xmm4
mulss xmm5, dword [eax + 0x10]
mulss xmm0, xmm3
mulss xmm5, dword [0x10178e88]
movss dword [esp + 0x14], xmm0
movss dword [esp + 0x10], xmm5
cmp esi, ebx
je 0x100ccb42
movss dword [esi], xmm5
movss dword [esi + 4], xmm0
add esi, 8
mov dword [esp + 0x20], esi
jmp 0x100ccb59
lea eax, [esp + 0x10]
push eax
push esi
lea ecx, [esp + 0x24]
call fcn.100958f0
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
movss xmm1, dword [esp + 0x18]
addss xmm1, dword [0x10178e48]
movss xmm0, dword [0x10178fdc]
comiss xmm0, xmm1
movss dword [esp + 0x18], xmm1
jae 0x100cc9f5
mov eax, dword [0x10189818]
mov edi, dword [0x1018a320]
mov dword [esp + 0x10], ebx
cmp dword [eax + 0x368c], 2
jne 0x100cce89
mov eax, dword [0x10189820]
lea edx, [esp + 0x28]
push 0
push edx
push 0x1034ece4
mov ecx, dword [eax + 0x70]
mov eax, dword [ecx]
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
call dword [eax + 0x1c]
cmp byte [0x1034ed88], 0
je 0x100ccc19
mov eax, dword [0x10189820]
mov edi, dword [eax + 0x70]
mov eax, dword [edi]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov esi, dword [eax + 0x1c]
mov eax, dword [0x1018ae24]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
push 0
lea ecx, [esp + 0x2c]
push ecx
push eax
mov ecx, edi
call esi
mov edi, dword [0x1018a320]
mov eax, dword [0x10189820]
movq xmm0, qword [str.WURPUCK]
mov esi, dword [eax + 0x38]
mov eax, dword [str.IK_OU_]
mov dword [esp + 0x30], eax
mov ax, word [0x10172260]
movq qword [esp + 0x28], xmm0
mov word [esp + 0x34], ax
test ah, ah
je 0x100ccd92
xor eax, eax
mov dword [esp + 0x18], eax
cmp edi, 2
jl 0x100ccd62
movaps xmm2, xmmword [0x10179350]
mov eax, 4
movaps xmm3, xmmword [0x101797b0]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
movd xmm4, eax
mov eax, 0x1f
psrad xmm1, xmm4
movaps xmm0, xmm1
movd xmm5, eax
mov eax, 8
psrld xmm0, xmm5
mov dword [esp + 0x18], eax
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101793c0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x10179390]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x10179440]
movd xmm0, dword [str.WURPUCK]
packuswb xmm1, xmm1
paddb xmm1, xmmword [str.2222222222222222]
pxor xmm1, xmm0
movaps xmm0, xmm2
movd dword [esp + 0x28], xmm1
movaps xmm1, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm4
movaps xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101793c0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x10179440]
movd xmm0, dword [esp + 0x2c]
packuswb xmm1, xmm1
paddb xmm1, xmmword [str.2222222222222222]
pxor xmm1, xmm0
movd dword [esp + 0x2c], xmm1
mov ebx, dword [esp + 0x18]
mov eax, 0x4ec4ec4f
mov cl, bl
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx eax, al
imul eax, eax, 0x34
sub cl, al
add cl, 0x32
xor byte [esp + ebx + 0x28], cl
inc ebx
cmp ebx, 0xe
jl 0x100ccd66
mov ebx, dword [esp + 0x10]
mov eax, dword [esi]
lea ecx, [esp + 0x28]
push 0
push 1
push 0
mov eax, dword [eax + 0x150]
push ecx
mov ecx, esi
call eax
mov edi, eax
test edi, edi
je 0x100cd069
mov ecx, dword [0x10189818]
cmp byte [ecx + 0x35a0], 0
jne 0x100ccdf3
movss xmm0, dword [ecx + 0x3594]
sub esp, 0xc
mov eax, dword [edi]
movss dword [esp + 8], xmm0
movss xmm0, dword [ecx + 0x3590]
mov eax, dword [eax + 0x70]
movss dword [esp + 4], xmm0
movss xmm0, dword [ecx + 0x358c]
jmp 0x100cce7a
mov eax, dword [0x10189814]
mov esi, dword [edi]
mov eax, dword [eax + 0x10]
movss xmm0, dword [eax]
mulss xmm0, dword [ecx + 0x359c]
movss dword [esp + 0x18], xmm0
addss xmm0, dword [0x10178fc8]
call fcn.10145819
addss xmm0, dword [0x10178ef4]
push ecx
mulss xmm0, dword [0x10178e88]
movss dword [esp], xmm0
movss xmm0, dword [esp + 0x1c]
addss xmm0, dword [0x10178f70]
call fcn.10145819
addss xmm0, dword [0x10178ef4]
push ecx
mulss xmm0, dword [0x10178e88]
movss dword [esp], xmm0
movss xmm0, dword [esp + 0x20]
call fcn.10145819
addss xmm0, dword [0x10178ef4]
mov eax, dword [esi + 0x70]
push ecx
mulss xmm0, dword [0x10178e88]
mov ecx, edi
movss dword [esp], xmm0
call eax
mov edi, dword [0x1018a320]
mov eax, dword [0x10189818]
cmp dword [eax + 0x368c], 3
jne 0x100cd175
mov eax, dword [0x10189820]
lea edx, [esp + 0x28]
push edx
push 0x1034ece4
mov ecx, dword [eax + 0x70]
mov eax, dword [ecx]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
call dword [eax + 0x18]
mov eax, dword [0x10189820]
movq xmm0, qword [str.WURPUCK]
mov esi, dword [eax + 0x38]
mov eax, dword [str.IK_OU_]
mov dword [esp + 0x30], eax
mov ax, word [0x10172260]
movq qword [esp + 0x28], xmm0
mov word [esp + 0x34], ax
test ah, ah
je 0x100cd04c
xor eax, eax
mov dword [esp + 0x18], eax
cmp edi, 2
jl 0x100cd018
movaps xmm2, xmmword [0x10179350]
mov eax, 4
movaps xmm4, xmmword [0x101797b0]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
movd xmm5, eax
mov eax, 0x1f
psrad xmm1, xmm5
movaps xmm0, xmm1
movd xmm6, eax
mov eax, dword [str.2222222222222222]
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101793c0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x10179390]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x10179440]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [str.WURPUCK]
pxor xmm1, xmm0
movaps xmm0, xmm2
movd dword [esp + 0x28], xmm1
movaps xmm1, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101793c0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x10179440]
movd xmm0, eax
mov eax, 8
packuswb xmm1, xmm1
paddb xmm1, xmm0
mov dword [esp + 0x18], eax
movd xmm0, dword [esp + 0x2c]
pxor xmm1, xmm0
movd dword [esp + 0x2c], xmm1
mov ebx, dword [esp + 0x18]
nop dword [eax]
mov eax, 0x4ec4ec4f
mov cl, bl
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx eax, al
imul eax, eax, 0x34
sub cl, al
add cl, 0x32
xor byte [esp + ebx + 0x28], cl
inc ebx
cmp ebx, 0xe
jl 0x100cd020
mov ebx, dword [esp + 0x10]
mov eax, dword [esi]
lea ecx, [esp + 0x28]
push 0
push 1
push 0
mov eax, dword [eax + 0x150]
push ecx
mov ecx, esi
call eax
mov edi, eax
test edi, edi
jne 0x100cd0a5
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x100cd09e
sub ebx, ecx
mov eax, ecx
and ebx, 0xfffffff8
cmp ebx, 0x1000
jb 0x100cd094
mov ecx, dword [ecx - 4]
add ebx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100cd1a8
push ebx
push ecx
call fcn.1011c1c8
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x10189818]
cmp byte [eax + 0x35a0], 0
jne 0x100cd0e4
movss xmm0, dword [eax + 0x3594]
sub esp, 0xc
mov edx, dword [edi]
movss dword [esp + 8], xmm0
movss xmm0, dword [eax + 0x3590]
movss dword [esp + 4], xmm0
movss xmm0, dword [eax + 0x358c]
mov eax, dword [edx + 0x70]
jmp 0x100cd16c
mov ecx, dword [0x10189814]
mov esi, dword [edi]
mov ecx, dword [ecx + 0x10]
movss xmm0, dword [ecx]
mulss xmm0, dword [eax + 0x359c]
movss dword [esp + 0x18], xmm0
addss xmm0, dword [0x10178fc8]
call fcn.10145819
addss xmm0, dword [0x10178ef4]
push ecx
mulss xmm0, dword [0x10178e88]
movss dword [esp], xmm0
movss xmm0, dword [esp + 0x1c]
addss xmm0, dword [0x10178f70]
call fcn.10145819
addss xmm0, dword [0x10178ef4]
push ecx
mulss xmm0, dword [0x10178e88]
movss dword [esp], xmm0
movss xmm0, dword [esp + 0x20]
call fcn.10145819
addss xmm0, dword [0x10178ef4]
mov eax, dword [esi + 0x70]
push ecx
mulss xmm0, dword [0x10178e88]
mov ecx, edi
movss dword [esp], xmm0
call eax
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x100cd09e
sub ebx, ecx
mov eax, ecx
and ebx, 0xfffffff8
cmp ebx, 0x1000
jb 0x100cd094
mov ecx, dword [ecx - 4]
add ebx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100cd094
call fcn.10120cee
int3