Function at 0x10089420
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xc8
mov eax, dword [0x101f80c0]
xor eax, esp
mov dword [esp + 0xc4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x24], ecx
mov ecx, dword [0x1021451c]
mov dword [esp + 0x14], eax
mov eax, dword fs:[0x2c]
push esi
push edi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x103da59c]
cmp eax, dword [ecx + 4]
jle 0x10089704
push 0x103da59c
call fcn.1018e03f
add esp, 4
cmp dword [0x103da59c], 0xffffffff
jne 0x10089704
mov eax, dword [0x10213410]
xor edx, edx
cmp dword [0x10214510], 2
movups xmm0, xmmword [str.CPWGWWeZ_KM___]
mov dword [esp + 0x18], edx
mov esi, dword [eax + 8]
mov al, byte [0x101db62c]
movups xmmword [esp + 0xa0], xmm0
mov byte [esp + 0xb8], al
movq xmm0, qword [str.57:__L]
movq qword [esp + 0xb0], xmm0
jl 0x10089615
movaps xmm0, xmmword [str.44444444444444447777777777777777]
movaps xmm4, xmmword [0x101ea800]
movaps xmm3, xmmword [0x101eac60]
movaps xmm5, xmmword [0x101ea870]
movaps xmmword [esp + 0x80], xmm0
mov ecx, dword [esp + 0x80]
movd xmm0, edx
lea eax, [edx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101ea930]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [esp + edx + 0xa0]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [esp + edx + 0xa0], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101ea930]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [esp + edx + 0xa4]
xorps xmm1, xmm0
movd dword [esp + edx + 0xa4], xmm1
add edx, 8
cmp edx, 0x18
jl 0x10089501
mov dword [esp + 0x18], edx
cmp edx, 0x19
jge 0x1008964c
mov eax, 0xa0a0a0a1
imul edx
add edx, dword [esp + 0x18]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x18]
movsx eax, al
mov cl, dl
imul eax, eax, 0x33
sub cl, al
add cl, 0x34
xor byte [esp + edx + 0xa0], cl
inc edx
mov dword [esp + 0x18], edx
cmp edx, 0x19
jl 0x10089615
xorps xmm0, xmm0
mov dword [esp + 0x90], 0
lea ecx, [esp + 0xa0]
movaps xmmword [esp + 0x80], xmm0
mov dword [esp + 0x94], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10089677
sub ecx, edx
lea eax, [esp + 0xa0]
push ecx
push eax
lea ecx, [esp + 0x88]
call fcn.10026920
cmp dword [esp + 0x94], 0xf
lea ecx, [esp + 0x80]
mov eax, dword [esi]
cmova ecx, dword [esp + 0x80]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x3c]
call eax
mov ecx, dword [esp + 0x94]
mov dword [0x103da598], eax
cmp ecx, 0xf
jbe 0x100896f7
mov edx, dword [esp + 0x80]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100896ed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10089c38
push ecx
push edx
call fcn.1018dda2
add esp, 8
push 0x103da59c
call fcn.1018dfee
add esp, 4
cmp dword [ebp + 0x1c], 0
je 0x10089c20
mov ecx, dword [0x103da598]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
cmp eax, 1
jge 0x10089c20
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
movss xmm0, dword [esi]
addss xmm0, dword [edi + 0xc]
mulss xmm0, dword [0x101ea1cc]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x38], xmm0
call fcn.101b5c90
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x34], xmm0
movsd xmm0, qword [esp + 0x38]
call fcn.101b4a10
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x24], xmm0
movss xmm0, dword [edi + 0x10]
addss xmm0, dword [esi + 4]
mulss xmm0, dword [0x101ea1cc]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x38], xmm0
call fcn.101b5c90
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x14], xmm0
movsd xmm0, qword [esp + 0x38]
call fcn.101b4a10
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x20], xmm0
movss xmm0, dword [edi + 0x14]
addss xmm0, dword [esi + 8]
mulss xmm0, dword [0x101ea1cc]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x38], xmm0
call fcn.101b5c90
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x28], xmm0
movsd xmm0, qword [esp + 0x38]
call fcn.101b4a10
movss xmm4, dword [esp + 0x20]
movss xmm5, dword [esp + 0x14]
movaps xmm1, xmm4
mulss xmm1, dword [esp + 0x24]
movss xmm7, dword [esp + 0x34]
movss xmm2, dword [0x101eac30]
movss dword [esp + 0x4c], xmm1
movaps xmm1, xmm5
mulss xmm1, dword [esp + 0x24]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x5c], xmm1
movaps xmm1, xmm7
movaps xmm3, xmm0
movss dword [esp + 0x18], xmm0
xorps xmm1, xmm2
movaps xmm0, xmm5
xorps xmm0, xmm2
movss dword [esp + 0x64], xmm1
movss xmm1, dword [0x101ea68c]
mulss xmm3, xmm1
mulss xmm3, xmm0
movss dword [esp + 0x30], xmm3
movss xmm3, dword [esp + 0x28]
movss xmm6, dword [esp + 0x30]
movaps xmm0, xmm3
mulss xmm0, xmm7
mulss xmm0, xmm4
subss xmm6, xmm0
movaps xmm0, xmm3
mulss xmm0, xmm7
movss dword [esp + 0x30], xmm6
movss xmm6, dword [esp + 0x18]
mulss xmm6, xmm1
mulss xmm0, xmm5
mulss xmm6, xmm4
subss xmm6, xmm0
movaps xmm0, xmm3
mulss xmm0, xmm1
movss xmm1, dword [esp + 0x18]
mulss xmm1, xmm7
mulss xmm0, dword [esp + 0x24]
movss dword [esp + 0x58], xmm6
mulss xmm1, xmm4
movss dword [esp + 0x60], xmm0
movaps xmm0, xmm5
xorps xmm0, xmm2
mov esi, dword [esp + 0x1c]
mulss xmm0, xmm3
mov ecx, esi
xor edi, edi
mulss xmm3, xmm4
subss xmm1, xmm0
movss xmm0, dword [esp + 0x18]
mulss xmm7, xmm0
mulss xmm0, dword [esp + 0x24]
mulss xmm7, xmm5
movss dword [esp + 0x18], xmm0
movd xmm0, dword [ebp + 0x1c]
cvtdq2ps xmm0, xmm0
subss xmm7, xmm3
movss dword [esp + 0x50], xmm1
divss xmm0, dword [0x101ea528]
movss dword [esp + 0x34], xmm7
mulss xmm0, dword [0x101ea5b4]
cvttss2si eax, xmm0
mov dword [esp + 0x70], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x714]
mov dword [esp + 0x20], eax
call dword [esp + 0x20]
mov eax, dword [esi]
mov ecx, esi
fstp dword [esp + 0x48]
mov eax, dword [eax + 0x78c]
mov dword [esp + 0x20], eax
call dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0xc0]
push edx
fstp dword [esp + 0x48]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2a4]
call eax
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x734]
call eax
movss xmm0, dword [eax + 0x10c]
xor eax, eax
movss dword [esp + 0x54], xmm0
mov dword [esp + 0x20], eax
inc eax
mov dword [esp + 0x38], eax
push eax
mov eax, dword [0x10213404]
mov eax, dword [eax + 0x140]
call eax
mov eax, dword [0x10213404]
mov dword [esp], 0x40c90fdb
push ecx
mov dword [esp], 0
mov eax, dword [eax + 0x144]
mov dword [esp + 0x1c], eax
call dword [esp + 0x1c]
mov eax, dword [0x10213404]
fstp dword [esp + 0x24]
mov dword [esp + 4], 0x40c90fdb
mov dword [esp], 0
mov eax, dword [eax + 0x144]
mov dword [esp + 0x1c], eax
call dword [esp + 0x1c]
mov eax, dword [0x10213404]
fstp dword [esp + 0x30]
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0
mov eax, dword [eax + 0x144]
mov dword [esp + 0x1c], eax
call dword [esp + 0x1c]
fmul dword [esp + 0x4c]
add esp, 8
xorps xmm1, xmm1
fstp dword [esp + 0x14]
movss xmm0, dword [esp + 0x14]
ucomiss xmm0, xmm1
movss dword [esp + 0x2c], xmm0
lahf
test ah, 0x44
jp 0x10089a24
movss xmm0, dword [0x101ea19c]
movss dword [esp + 0x2c], xmm0
mov eax, dword [0x10213404]
sub esp, 8
mov eax, dword [eax + 0x144]
mov dword [esp + 0x1c], eax
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0
call dword [esp + 0x1c]
movss xmm0, dword [esp + 0x24]
add esp, 8
fmul dword [esp + 0x48]
cvtps2pd xmm0, xmm0
fstp dword [esp + 0x14]
call fcn.101b4a10
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0x2c]
movss dword [esp + 0x24], xmm0
movss xmm0, dword [esp + 0x28]
cvtps2pd xmm0, xmm0
call fcn.101b4a10
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss xmm0, dword [esp + 0x24]
mulss xmm1, dword [esp + 0x14]
addss xmm0, xmm1
movss dword [esp + 0x24], xmm0
movss xmm0, dword [esp + 0x1c]
cvtps2pd xmm0, xmm0
call fcn.101b5c90
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0x2c]
movss dword [esp + 0x1c], xmm0
movss xmm0, dword [esp + 0x28]
cvtps2pd xmm0, xmm0
call fcn.101b5c90
movss xmm2, dword [esp + 0x24]
xor esi, esi
movss xmm1, dword [esp + 0x1c]
movss xmm3, dword [esp + 0x30]
movss xmm4, dword [esp + 0x58]
cvtsd2ss xmm0, xmm0
mov dword [esp + 0x88], 0
movss xmm5, dword [esp + 0x60]
mulss xmm0, dword [esp + 0x14]
movss xmm6, dword [esp + 0x54]
mulss xmm3, xmm2
addss xmm1, xmm0
mulss xmm4, xmm2
movss xmm0, dword [esp + 0x50]
addss xmm3, dword [esp + 0x4c]
addss xmm4, dword [esp + 0x5c]
mulss xmm0, xmm1
mulss xmm5, xmm2
addss xmm3, xmm0
movss xmm0, dword [esp + 0x34]
mulss xmm0, xmm1
addss xmm5, dword [esp + 0x64]
addss xmm4, xmm0
mulss xmm3, xmm6
movss xmm0, dword [esp + 0x18]
mulss xmm0, xmm1
mulss xmm4, xmm6
addss xmm5, xmm0
movss dword [esp + 0x14], xmm3
movss dword [esp + 0x28], xmm4
mulss xmm5, xmm6
movss dword [esp + 0x1c], xmm5
nop
addss xmm3, dword [esp + 0xc0]
addss xmm4, dword [esp + 0xc4]
addss xmm5, dword [esp + 0xc8]
mov ecx, dword [esp + 0x6c]
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0xc4]
movss dword [esp + 0x78], xmm3
push eax
push dword [esp + 0x70]
mov edx, esi
movss dword [esp + 0x84], xmm4
movss dword [esp + 0x88], xmm5
call fcn.10088b40
test al, al
jne 0x10089bdd
movss xmm3, dword [esp + 0x14]
inc esi
movss xmm4, dword [esp + 0x28]
movss xmm5, dword [esp + 0x1c]
cmp esi, 0x13
jl 0x10089b70
jmp 0x10089bde
inc edi
mov esi, dword [esp + 0x70]
cmp edi, esi
jge 0x10089c20
mov eax, edi
sub eax, dword [esp + 0x20]
add eax, 0xff
cmp eax, esi
jl 0x10089c08
mov eax, dword [esp + 0x38]
mov dword [esp + 0x20], eax
cmp eax, 0xff
jl 0x10089972
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.1018daa9
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [esp + 0xcc]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.1018daa9
mov esp, ebp
pop ebp
ret 0x18
call fcn.10192ed6
int3