Function at 0x10112c7c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x102230c0]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [0x10240c80]
push esi
push edi
cmp byte [eax + 0x35ad], 0
je case.0x10112c6c.0
mov ecx, dword [eax + 0x35b0]
add eax, 0x35b0
cmp ecx, 3
ja case.0x10112c6c.0
jmp dword [ecx*4 + 0x1011350c]
mov ecx, eax
call fcn.100c8e50
jmp 0x10112c7f
mov al, byte [eax + 0x20]
test al, al
je case.0x10112c6c.0
movss xmm0, dword [0x104693f8]
xorps xmm1, xmm1
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x10112cc1
movss xmm0, dword [0x104693fc]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x10112cc1
movss xmm0, dword [0x10469400]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp case.0x10112c6c.0
xor edi, edi
mov dword [esp + 0x14], 0
xor eax, eax
mov dword [esp + 0x18], edi
xorps xmm0, xmm0
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
movss dword [esp + 8], xmm0
mov esi, dword [0x10240c80]
cvtps2pd xmm0, xmm0
call fcn.101de9c0
movss xmm1, dword [esp + 8]
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esi + 0x33a4]
addss xmm0, dword [0x104693f8]
movss dword [esp + 0xc], xmm0
cvtps2pd xmm0, xmm1
call fcn.101dd740
movss xmm6, dword [esi + 0x33a4]
xorps xmm3, xmm3
movss xmm7, dword [esp + 0xc]
cvtsd2ss xmm3, xmm0
xorps xmm0, xmm0
mulss xmm3, xmm6
mulss xmm6, xmm0
movaps xmm0, xmm7
addss xmm3, dword [0x104693fc]
mulss xmm0, dword [0x10469160]
addss xmm6, dword [0x10469400]
movaps xmm5, xmm3
mulss xmm5, dword [0x10469164]
addss xmm5, xmm0
movaps xmm0, xmm6
mulss xmm0, dword [0x10469168]
addss xmm5, xmm0
movss xmm0, dword [0x10215178]
addss xmm5, dword [0x1046916c]
comiss xmm0, xmm5
ja 0x10112e61
movaps xmm4, xmm3
mulss xmm3, dword [0x10469144]
mov eax, dword [0x10469550]
movaps xmm0, xmm7
mulss xmm4, dword [0x10469134]
mulss xmm0, dword [0x10469130]
mulss xmm7, dword [0x10469140]
addss xmm4, xmm0
movaps xmm0, xmm6
mulss xmm0, dword [0x10469138]
addss xmm3, xmm7
mulss xmm6, dword [0x10469148]
addss xmm4, xmm0
movss xmm0, dword [0x102152ac]
movss xmm1, dword [eax + 0x54]
movss xmm2, dword [eax + 0x58]
addss xmm3, xmm6
mulss xmm1, dword [0x1021523c]
addss xmm4, dword [0x1046913c]
mulss xmm2, dword [0x1021523c]
addss xmm3, dword [0x1046914c]
divss xmm4, xmm5
divss xmm3, xmm5
addss xmm4, xmm0
subss xmm0, xmm3
mulss xmm4, xmm1
mulss xmm0, xmm2
movss dword [esp + 0x20], xmm4
movss dword [esp + 0x24], xmm0
cmp edi, dword [esp + 0x10]
je 0x10112e46
movss dword [edi], xmm4
movss dword [edi + 4], xmm0
add edi, 8
mov dword [esp + 0x18], edi
jmp 0x10112e61
lea eax, [esp + 0x20]
push eax
push edi
lea ecx, [esp + 0x1c]
call fcn.100ba490
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], eax
movss xmm0, dword [esp + 8]
addss xmm0, dword [0x10215204]
movss xmm1, dword [0x10215414]
comiss xmm1, xmm0
movss dword [esp + 8], xmm0
jae 0x10112ce2
mov eax, dword [0x10240c80]
mov edi, dword [0x10241d90]
cmp dword [eax + 0x33b4], 2
jne 0x101131af
mov eax, dword [0x10240c88]
lea edx, [esp + 0x20]
push 0
push edx
push 0x104693f8
mov ecx, dword [eax + 0x70]
mov eax, dword [ecx]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
call dword [eax + 0x1c]
cmp byte [0x104694f8], 0
je 0x10112f1d
mov eax, dword [0x10240c88]
mov edi, dword [eax + 0x70]
mov eax, dword [edi]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov esi, dword [eax + 0x1c]
mov eax, dword [0x10242574]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
push 0
lea ecx, [esp + 0x24]
push ecx
push eax
mov ecx, edi
call esi
mov edi, dword [0x10241d90]
mov eax, dword [0x10240c88]
movq xmm0, qword [str.WURPUCK]
mov esi, dword [eax + 0x38]
mov eax, dword [str.IK_OU_]
mov dword [esp + 0x34], eax
mov ax, word [0x102082ec]
movq qword [esp + 0x2c], xmm0
mov word [esp + 0x38], ax
test ah, ah
je 0x10113094
xor edx, edx
mov dword [esp + 8], edx
cmp edi, 2
jl 0x10113060
movaps xmm2, xmmword [0x102157f0]
mov edx, 8
movaps xmm3, xmmword [0x10215c30]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm1, xmm3
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
mov dword [esp + 8], edx
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x10215890]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x10215830]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x10215920]
movd xmm0, dword [str.WURPUCK]
packuswb xmm1, xmm1
paddb xmm1, xmmword [str.2222222222222222]
xorps xmm1, xmm0
movaps xmm0, xmm2
movd dword [esp + 0x2c], xmm1
movaps xmm1, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm1, xmm3
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x10215890]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x10215920]
movd xmm0, dword [esp + 0x30]
packuswb xmm1, xmm1
paddb xmm1, xmmword [str.2222222222222222]
xorps xmm1, xmm0
movd dword [esp + 0x30], xmm1
nop dword [eax]
mov eax, 0x8fb823ef
imul edx
add edx, dword [esp + 8]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 8]
movsx eax, al
mov cl, dl
imul eax, eax, 0x39
sub cl, al
add cl, 0x32
xor byte [esp + edx + 0x2c], cl
inc edx
mov dword [esp + 8], edx
cmp edx, 0xe
jl 0x10113060
mov eax, dword [esi]
lea ecx, [esp + 0x2c]
push 0
push 1
push 0
mov eax, dword [eax + 0x150]
push ecx
mov ecx, esi
call eax
mov esi, eax
test esi, esi
je 0x10113385
mov ecx, dword [0x10240c80]
cmp byte [ecx + 0x35ac], 0
jne 0x101130f0
movss xmm0, dword [ecx + 0x35a0]
sub esp, 0xc
movss dword [esp + 8], xmm0
movss xmm0, dword [ecx + 0x359c]
movss dword [esp + 4], xmm0
movss xmm0, dword [ecx + 0x3598]
jmp 0x101131a1
mov eax, dword [0x10240c7c]
mov eax, dword [eax + 0xc]
movss xmm0, dword [eax]
mulss xmm0, dword [ecx + 0x35a8]
movss dword [esp + 8], xmm0
addss xmm0, dword [0x102153fc]
cvtps2pd xmm0, xmm0
call fcn.101de9c0
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [0x1021523c]
addss xmm0, dword [0x1021523c]
movss dword [esp + 0xc], xmm0
movss xmm0, dword [esp + 8]
addss xmm0, dword [0x10215370]
cvtps2pd xmm0, xmm0
call fcn.101de9c0
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [0x1021523c]
addss xmm0, dword [0x1021523c]
movss dword [esp + 0x20], xmm0
movss xmm0, dword [esp + 8]
cvtps2pd xmm0, xmm0
call fcn.101de9c0
movss xmm1, dword [esp + 0xc]
sub esp, 0xc
cvtsd2ss xmm0, xmm0
movss dword [esp + 8], xmm1
mulss xmm0, dword [0x1021523c]
movss xmm1, dword [esp + 0x2c]
movss dword [esp + 4], xmm1
addss xmm0, dword [0x1021523c]
mov eax, dword [esi]
mov ecx, esi
movss dword [esp], xmm0
mov eax, dword [eax + 0x70]
call eax
mov eax, dword [0x10240c80]
cmp dword [eax + 0x33b4], 3
jne 0x101134ce
mov eax, dword [0x10240c88]
lea edx, [esp + 0x20]
push edx
push 0x104693f8
mov ecx, dword [eax + 0x70]
mov eax, dword [ecx]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call dword [eax + 0x18]
mov eax, dword [0x10240c88]
movq xmm0, qword [str.WURPUCK]
mov esi, dword [eax + 0x38]
mov eax, dword [str.IK_OU_]
mov dword [esp + 0x34], eax
mov ax, word [0x102082ec]
movq qword [esp + 0x2c], xmm0
mov word [esp + 0x38], ax
test ah, ah
je 0x10113368
xor edx, edx
mov dword [esp + 8], edx
cmp edi, 2
jl 0x10113334
movaps xmm2, xmmword [0x102157f0]
mov edx, 8
movaps xmm4, xmmword [0x10215c30]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
mov eax, dword [str.2222222222222222]
psrad xmm1, 5
mov dword [esp + 8], edx
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x10215890]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x10215830]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x10215920]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [str.WURPUCK]
xorps xmm1, xmm0
movaps xmm0, xmm2
movd dword [esp + 0x2c], xmm1
movaps xmm1, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x10215890]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x10215920]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [esp + 0x30]
xorps xmm1, xmm0
movd dword [esp + 0x30], xmm1
mov eax, 0x8fb823ef
imul edx
add edx, dword [esp + 8]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 8]
movsx eax, al
mov cl, dl
imul eax, eax, 0x39
sub cl, al
add cl, 0x32
xor byte [esp + edx + 0x2c], cl
inc edx
mov dword [esp + 8], edx
cmp edx, 0xe
jl 0x10113334
mov eax, dword [esi]
lea ecx, [esp + 0x2c]
push 0
push 1
push 0
mov eax, dword [eax + 0x150]
push ecx
mov ecx, esi
call eax
mov esi, eax
test esi, esi
jne 0x101133cf
mov edx, dword [esp + 0x14]
test edx, edx
je case.0x10112c6c.0
mov ecx, dword [esp + 0x10]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x101133b4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10113505
push ecx
push edx
call fcn.101b6ad2
add esp, 8
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
xor ecx, esp
call fcn.101b67d9
mov esp, ebp
pop ebp
ret
mov eax, dword [0x10240c80]
cmp byte [eax + 0x35ac], 0
jne 0x1011340e
movss xmm0, dword [eax + 0x35a0]
sub esp, 0xc
mov edx, dword [esi]
movss dword [esp + 8], xmm0
movss xmm0, dword [eax + 0x359c]
movss dword [esp + 4], xmm0
movss xmm0, dword [eax + 0x3598]
mov eax, dword [edx + 0x70]
jmp 0x101134c5
mov ecx, dword [0x10240c7c]
mov ecx, dword [ecx + 0xc]
movss xmm0, dword [ecx]
mulss xmm0, dword [eax + 0x35a8]
movss dword [esp + 8], xmm0
addss xmm0, dword [0x102153fc]
cvtps2pd xmm0, xmm0
call fcn.101de9c0
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [0x1021523c]
addss xmm0, dword [0x1021523c]
movss dword [esp + 0x20], xmm0
movss xmm0, dword [esp + 8]
addss xmm0, dword [0x10215370]
cvtps2pd xmm0, xmm0
call fcn.101de9c0
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [0x1021523c]
addss xmm0, dword [0x1021523c]
movss dword [esp + 0xc], xmm0
movss xmm0, dword [esp + 8]
cvtps2pd xmm0, xmm0
call fcn.101de9c0
movss xmm1, dword [esp + 0x20]
sub esp, 0xc
mov eax, dword [esi]
cvtsd2ss xmm0, xmm0
mov eax, dword [eax + 0x70]
movss dword [esp + 8], xmm1
mulss xmm0, dword [0x1021523c]
movss xmm1, dword [esp + 0x18]
movss dword [esp + 4], xmm1
addss xmm0, dword [0x1021523c]
mov ecx, esi
movss dword [esp], xmm0
call eax
mov edx, dword [esp + 0x14]
test edx, edx
je case.0x10112c6c.0
mov ecx, dword [esp + 0x10]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x101133b4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x101133b4
call fcn.101bbc06
nop
mov esi, 0x87101133
sub al, 17
adc byte [ebx + 0x2c], dh
adc dword [eax], edx
jl 0x10113546
adc dword [eax], edx
int3
add eax, dword [eax]
add byte [ebx + 0x35b08a], cl
add byte [ebp + 0x35b082], cl
add byte [ebx - 0x78f0fc07], al
aaa
add eax, dword [eax]
add bh, bh
jmp dword [ecx*4 + 0x101138a8]