Function at 0x10181960
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
cmp dword [0x1032dca0], 0
jne 0x1018251e
push esi
push edi
mov dword [0x1032dca0], 1
mov esi, 0xffffff00
nop dword [eax]
nop dword [eax + eax]
movsd xmm0, qword [0x102d2bb8]
lea eax, [esi + 0xd2]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
mulsd xmm1, qword [0x102aa048]
call fcn.10121930
cvtsd2ss xmm0, xmm0
movss dword [esi*4 + 0x103366c8], xmm0
inc esi
cmp esi, 0x7a
jl 0x10181990
xor esi, esi
nop dword [eax + eax]
movsd xmm1, qword [0x102a39d0]
movd xmm0, esi
cvtdq2pd xmm0, xmm0
call fcn.10121930
cvtsd2ss xmm0, xmm0
movss dword [esi*4 + 0x1032dca8], xmm0
inc esi
cmp esi, 0x200f
jl 0x101819d0
movaps xmm3, xmmword [0x102a14d0]
mov eax, str.333333
xor ecx, ecx
nop dword [eax]
movups xmm2, xmmword [eax]
add eax, 0x10
movaps xmm0, xmm2
mulpd xmm0, xmm2
addpd xmm0, xmm3
sqrtpd xmm1, xmm0
movaps xmm0, xmm3
divpd xmm0, xmm1
divpd xmm2, xmm1
cvtpd2ps xmm0, xmm0
movsd qword [ecx + 0x10335d04], xmm0
cvtpd2ps xmm0, xmm2
movsd qword [ecx + 0x10335ce4], xmm0
add ecx, 8
cmp eax, str.___f_
jl 0x10181a10
mov edi, 0x10335e48
mov esi, 0x13
nop dword [eax]
xorps xmm0, xmm0
lea eax, [esi - 0x12]
cvtsi2sd xmm0, eax
mulsd xmm0, qword [0x102aa008]
call fcn.101163e0
mulsd xmm0, qword [0x102d2bb0]
movsd qword [ebp - 0x2c], xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, esi
mulsd xmm0, qword [0x10204430]
divsd xmm0, qword [0x102aa040]
call fcn.10116220
movsd xmm1, qword [ebp - 0x2c]
lea eax, [esi + 0x12]
divsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movss dword [edi + 0x90], xmm0
movss dword [edi], xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, eax
mulsd xmm0, qword [0x102aa008]
call fcn.101163e0
mulsd xmm0, qword [0x102d2bb0]
lea eax, [esi + 0x24]
movsd qword [ebp - 0x2c], xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, eax
mulsd xmm0, qword [0x10204430]
divsd xmm0, qword [0x102aa040]
call fcn.10116220
movsd xmm1, qword [ebp - 0x2c]
lea edi, [edi + 4]
divsd xmm1, xmm0
add esi, 2
cvtpd2ps xmm0, xmm1
movss dword [edi + 0x1f4], xmm0
movss dword [edi + 0x44], xmm0
cmp esi, 0x37
jl 0x10181a60
mov edi, 0x10336028
mov esi, 0x2b
nop
xorps xmm0, xmm0
lea eax, [esi + 0xc]
cvtsi2sd xmm0, eax
mulsd xmm0, qword [0x10204430]
divsd xmm0, qword [0x102aa040]
call fcn.10116220
movsd xmm1, qword [0x102d2bb0]
divsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movss dword [edi - 0x108], xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, esi
mulsd xmm0, qword [0x10204430]
divsd xmm0, qword [0x102aa040]
call fcn.10116220
movsd xmm1, qword [0x102d2bb0]
lea eax, [esi - 0x1e]
divsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movss dword [edi], xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, eax
mulsd xmm0, qword [0x102aa010]
call fcn.101163e0
mulsd xmm0, qword [0x102d2bb0]
lea eax, [esi + 0x18]
movsd qword [ebp - 0x2c], xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, eax
mulsd xmm0, qword [0x10204430]
divsd xmm0, qword [0x102aa040]
call fcn.10116220
movsd xmm1, qword [ebp - 0x2c]
lea eax, [esi - 0x2a]
divsd xmm1, xmm0
mov dword [edi - 0x30], 0
mov dword [edi - 0xd8], 0
cvtpd2ps xmm0, xmm1
movss dword [edi - 0xf0], xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, eax
mulsd xmm0, qword [0x102aa010]
call fcn.101163e0
mulsd xmm0, qword [0x102d2bb0]
lea eax, [esi - 0xc]
movsd qword [ebp - 0x2c], xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, eax
mulsd xmm0, qword [0x10204430]
divsd xmm0, qword [0x102aa040]
call fcn.10116220
movsd xmm1, qword [ebp - 0x2c]
lea edi, [edi + 4]
divsd xmm1, xmm0
add esi, 2
cvtpd2ps xmm0, xmm1
movss dword [edi - 0x1c], xmm0
cmp esi, 0x37
jl 0x10181b30
xor esi, esi
nop word [eax + eax]
movd xmm0, esi
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x102aa018]
call fcn.10116220
cvtsd2ss xmm0, xmm0
movss dword [esi*4 + 0x103368b0], xmm0
inc esi
cmp esi, 9
jl 0x10181c70
mov edi, 0x103368d4
mov esi, 1
nop dword [eax]
nop word [eax + eax]
movd xmm0, esi
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x10204430]
divsd xmm0, qword [0x102aa038]
call fcn.10116220
movsd xmm1, qword [0x102d2bb0]
lea edi, [edi + 4]
divsd xmm1, xmm0
add esi, 2
cvtpd2ps xmm0, xmm1
movss dword [edi - 4], xmm0
cmp esi, 0x13
jl 0x10181cb0
mov edi, 0x103368f8
mov esi, 1
nop word [eax + eax]
movd xmm0, esi
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x10204430]
divsd xmm0, qword [0x102d2bc8]
call fcn.10116220
movsd xmm1, qword [0x102d2bb0]
lea edi, [edi + 4]
divsd xmm1, xmm0
add esi, 2
cvtpd2ps xmm0, xmm1
movss dword [edi - 4], xmm0
cmp esi, 7
jl 0x10181d00
movsd xmm0, qword [0x102aa020]
call fcn.10116220
cvtsd2ss xmm0, xmm0
movss dword [0x1032dca4], xmm0
movsd xmm0, qword [0x102aa028]
call fcn.10116220
cvtsd2ss xmm0, xmm0
mov edi, 7
mov dword [ebp - 4], 0x10335f68
mov dword [ebp - 8], edi
mov esi, 0x10335d28
mov dword [ebp - 0xc], 0xe
movss dword [0x10335d24], xmm0
nop word [eax + eax]
xorps xmm0, xmm0
lea eax, [edi - 6]
cvtsi2sd xmm0, eax
mulsd xmm0, qword [0x102aa010]
call fcn.101163e0
mulsd xmm0, qword [0x102d2bb0]
movsd qword [ebp - 0x2c], xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, edi
mulsd xmm0, qword [0x10204430]
divsd xmm0, qword [0x102aa030]
call fcn.10116220
movsd xmm1, qword [ebp - 0x2c]
divsd xmm1, xmm0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], 6
cvtpd2ps xmm0, xmm1
movss dword [eax], xmm0
nop dword [eax + eax]
movd xmm0, edi
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x102aa010]
call fcn.10116220
mov eax, dword [ebp - 0xc]
add edi, eax
cvtsd2ss xmm0, xmm0
movss dword [esi], xmm0
add esi, 4
sub dword [ebp - 0x10], 1
jne 0x10181df0
mov edi, dword [ebp - 8]
add eax, 4
add dword [ebp - 4], 4
add edi, 2
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edi
cmp eax, 0x3e
jl 0x10181d90
movss xmm1, dword [0x101f36d0]
xor edx, edx
mov dword [ebp - 0x10], edx
mov edi, str.___f_
nop dword [eax]
mov esi, dword [edi]
test esi, esi
jle 0x10181e77
mov ecx, edx
lea edx, [esi - 1]
shr edx, 1
inc edx
nop
mov eax, dword [ecx + 0x10335e48]
lea ecx, [ecx + 8]
mov dword [ecx + 0x10336080], eax
sub edx, 1
jne 0x10181e60
mov edx, dword [ebp - 0x10]
cmp esi, 1
jle 0x10181eab
lea ecx, [esi - 2]
mov eax, edx
shr ecx, 1
inc ecx
nop dword [eax]
nop dword [eax + eax]
movss xmm0, dword [eax + 0x10335e4c]
lea eax, [eax + 8]
xorps xmm0, xmm1
movss dword [eax + 0x10336084], xmm0
sub ecx, 1
jne 0x10181e90
add edi, 4
add edx, 0x90
mov dword [ebp - 0x10], edx
cmp edi, 0x102a9e70
jl 0x10181e50
xor eax, eax
mov dword [ebp - 4], eax
nop dword [eax]
nop dword [eax + eax]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x10204430]
divsd xmm0, qword [0x102d2bc8]
call fcn.101ebca0
movsd xmm4, qword [0x101f33a8]
movaps xmm2, xmm0
movaps xmm3, xmm2
mov esi, dword [ebp - 4]
addsd xmm3, xmm4
shl esi, 2
movaps xmm1, xmm2
xorps xmm0, xmm0
mulsd xmm2, qword [0x10205da8]
xor edi, edi
divsd xmm1, xmm3
divsd xmm2, xmm3
cvtsd2ss xmm0, xmm1
movss dword [esi + 0x1033aca0], xmm0
movaps xmm0, xmm4
divsd xmm0, xmm3
cvtpd2ps xmm0, xmm0
movss dword [esi + 0x1033ace0], xmm0
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm2
movss dword [esi + 0x1033ad20], xmm0
movsd xmm0, qword [0x10205da8]
divsd xmm0, xmm3
cvtpd2ps xmm0, xmm0
movss dword [esi + 0x1033ad60], xmm0
nop dword [eax]
nop word [eax + eax]
movsd xmm0, qword [0x102d2bb8]
movd xmm1, edi
cvtdq2pd xmm1, xmm1
addsd xmm1, xmm4
mulsd xmm1, qword [0x102aa048]
call fcn.10121930
movsd xmm4, qword [0x101f33a8]
movaps xmm1, xmm0
mov eax, dword [ebp - 4]
movaps xmm0, xmm4
movsd qword [ebp - 0x24], xmm0
movaps xmm2, xmm4
movsd qword [ebp - 0x2c], xmm2
test eax, eax
je 0x10181ffa
movaps xmm0, xmm1
movd xmm1, eax
cvtdq2pd xmm1, xmm1
test al, 1
je 0x10181fda
addsd xmm1, xmm4
mulsd xmm1, qword [0x102d2bb0]
call fcn.10121930
movsd xmm2, qword [ebp - 0x2c]
jmp 0x10181fef
mulsd xmm1, qword [0x102d2bb0]
call fcn.10121930
movaps xmm2, xmm0
movsd xmm0, qword [ebp - 0x24]
mov eax, dword [ebp - 4]
movsd xmm4, qword [0x101f33a8]
xorps xmm1, xmm1
inc edi
cvtsd2ss xmm1, xmm0
mulsd xmm0, qword [0x10205da8]
movss dword [esi + 0x1033ada0], xmm1
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm2
mulsd xmm2, qword [0x10205da8]
cvtsd2ss xmm0, xmm0
movss dword [esi + 0x1033ae20], xmm1
movss dword [esi + 0x1033aea0], xmm0
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm2
movss dword [esi + 0x1033af20], xmm0
add esi, 0x40
cmp edi, 2
jl 0x10181f70
inc eax
mov dword [ebp - 4], eax
cmp eax, 0x10
jl 0x10181ed0
xor esi, esi
mov dword [ebp - 0xc], 0x10339990
mov ecx, 0x102a8126
mov dword [ebp - 0x18], esi
mov edx, 0x10336e40
mov dword [ebp - 8], 0x103383a0
xor edi, edi
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x20], 9
nop dword [eax]
xor eax, eax
mov dword [edi + 0x10339fc0], edx
cmp esi, 3
mov dword [ebp - 0x14], ecx
setl al
xor esi, esi
xor edi, edi
lea eax, [eax*2 + 6]
mov dword [ebp - 0x28], eax
mov eax, ecx
movsx ecx, word [eax]
mov eax, ecx
sar eax, 1
mov dword [edx], eax
mov eax, dword [ebp - 0x14]
mov dword [edx + 0xc], edi
add eax, 2
mov dword [edx + 4], esi
inc edi
mov dword [edx + 8], 3
add esi, ecx
add edx, 0x10
mov dword [ebp - 0x14], eax
cmp edi, dword [ebp - 0x28]
jl 0x101820b1
mov eax, dword [ebp - 4]
mov edi, 3
add eax, 0x4e
movsx ecx, word [eax]
add eax, 2
sar ecx, 1
mov dword [edx], ecx
mov dword [edx + 4], esi
mov dword [edx + 0xc], edi
mov dword [ebp - 0x28], eax
lea eax, [esi + 1]
mov dword [edx + 8], 0
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], eax
lea eax, [esi + 2]
mov dword [edx + 0x1c], edi
mov dword [edx + 0x18], 1
mov dword [edx + 0x20], ecx
mov dword [edx + 0x24], eax
lea eax, [ecx + ecx*2]
mov dword [edx + 0x2c], edi
lea esi, [esi + eax*2]
mov eax, dword [ebp - 0x28]
inc edi
mov dword [edx + 0x28], 2
add edx, 0x30
cmp edi, 0xd
jl 0x101820e6
mov eax, dword [ebp - 0x10]
xor edi, edi
mov ecx, dword [ebp - 8]
xor esi, esi
mov dword [eax + 0x1033a030], edx
mov edx, ecx
mov dword [eax + 0x10339fc4], ecx
mov eax, dword [ebp - 4]
add eax, 0x48
movsx ecx, word [eax]
add eax, 2
sar ecx, 1
mov dword [edx], ecx
mov dword [edx + 4], edi
mov dword [edx + 0xc], esi
mov dword [ebp - 0x28], eax
lea eax, [edi + 1]
mov dword [edx + 8], 0
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], eax
lea eax, [edi + 2]
mov dword [edx + 0x1c], esi
mov dword [edx + 0x18], 1
mov dword [edx + 0x20], ecx
mov dword [edx + 0x24], eax
lea eax, [ecx + ecx*2]
mov dword [edx + 0x2c], esi
lea edi, [edi + eax*2]
mov eax, dword [ebp - 0x28]
inc esi
mov dword [edx + 0x28], 2
add edx, 0x30
cmp esi, 0xd
jl 0x10182156
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov ecx, eax
mov esi, dword [ebp - 4]
mov dword [edi + 0x1033a034], edx
xor edx, edx
mov dword [edi + 0x10339fc8], eax
movsx eax, word [esi]
lea esi, [esi + 4]
sar eax, 1
mov dword [ecx], eax
movsx eax, word [esi - 2]
mov dword [ecx + 4], edx
sar eax, 1
mov dword [ecx + 8], eax
lea eax, [edx + 1]
mov dword [ecx + 0xc], eax
add edx, 2
add ecx, 0x10
cmp edx, 0x16
jl 0x101821c1
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
inc esi
add dword [ebp - 8], 0x270
add edx, 0x260
add dword [ebp - 0xc], 0xb0
mov dword [edi + 0x1033a038], ecx
add edi, 0xc
mov ecx, dword [ebp - 4]
add ecx, 0x90
mov dword [ebp - 0x18], esi
sub dword [ebp - 0x20], 1
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x10], edi
jne 0x10182090
mov eax, 0x102a8152
mov edi, 0x10336c48
mov dword [ebp - 0x10], eax
mov esi, 0x10336908
mov dword [ebp - 0x1c], edi
lea edi, [eax - 0x5a]
mov dword [ebp - 0x20], 0x17
nop word [eax + eax]
movsx ecx, word [edi]
mov eax, 0x38e38e39
add ecx, 7
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
inc eax
add eax, edx
mov dword [esi], eax
cmp eax, 0x20
jle 0x10182275
mov dword [esi], 0x20
add edi, 2
add esi, 4
sub dword [ebp - 0x20], 1
jne 0x10182250
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x28], esi
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x20], 0xe
movsx ecx, word [esi]
mov eax, 0x38e38e39
dec ecx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
inc eax
add eax, edx
mov dword [edi], eax
cmp eax, 0x20
jle 0x101822b4
mov dword [edi], 0x20
add esi, 2
add edi, 4
sub dword [ebp - 0x20], 1
jne 0x10182291
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x28]
add eax, 0x90
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], eax
cmp esi, 0x10336c44
jl 0x10182240
xor edi, edi
mov edx, 0x1033a8a4
xor esi, esi
mov ecx, esi
inc esi
or ecx, 0x600
shl ecx, 3
or ecx, edi
mov eax, ecx
mov dword [edx - 4], ecx
or eax, 0x40
mov dword [edx], eax
mov eax, ecx
or eax, 0x80
mov dword [edx + 4], eax
mov eax, ecx
or eax, 0xc0
mov dword [edx + 8], eax
mov eax, ecx
or eax, 0x100
or ecx, 0x140
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], ecx
add edx, 0x18
cmp esi, 6
jl 0x101822e6
inc edi
cmp edx, 0x1033ab74
jl 0x101822e4
xor edi, edi
mov edx, 0x1033ab74
nop dword [eax]
xor esi, esi
mov ecx, esi
inc esi
or ecx, 0x800
shl ecx, 3
or ecx, edi
mov eax, ecx
mov dword [edx - 4], ecx
or eax, 0x40
mov dword [edx], eax
mov eax, ecx
or eax, 0x80
or ecx, 0xc0
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
add edx, 0x10
cmp esi, 4
jl 0x10182342
inc edi
cmp edx, 0x1033ac74
jl 0x10182340
xor eax, eax
mov dword [0x1033ac70], 0x5000
mov dword [0x1033a870], 0xa000
mov edx, 0x1033a0a4
mov dword [0x1033ac74], 0x5008
mov dword [0x1033a874], 0xa008
mov dword [0x1033ac78], 0x5010
mov dword [0x1033a878], 0xa010
mov dword [0x1033ac7c], 0x5001
mov dword [0x1033a87c], 0xa001
mov dword [0x1033ac80], 0x5009
mov dword [0x1033a880], 0xa009
mov dword [0x1033ac84], 0x5011
mov dword [0x1033a884], 0xa011
mov dword [0x1033ac88], 0x5002
mov dword [0x1033a888], 0xa002
mov dword [0x1033ac8c], 0x500a
mov dword [0x1033a88c], 0xa00a
mov dword [0x1033ac90], 0x5012
mov dword [0x1033a890], 0xa012
mov dword [0x1033ac94], 0x5003
mov dword [0x1033a894], 0xa003
mov dword [0x1033ac98], 0x500b
mov dword [0x1033a898], 0xa00b
mov dword [0x1033ac9c], 0x5013
mov dword [0x1033a89c], 0xa013
mov dword [ebp - 4], eax
nop dword [eax + eax]
xor edi, edi
xor esi, esi
lea ecx, [esi*8]
inc esi
or ecx, edi
shl ecx, 3
or ecx, eax
mov eax, ecx
mov dword [edx - 4], ecx
or eax, 0x200
mov dword [edx], eax
mov eax, ecx
or eax, 0x400
or ecx, 0x600
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
mov dword [edx + 8], ecx
add edx, 0x10
cmp esi, 4
jl 0x10182484
inc edi
cmp edi, 5
jl 0x10182482
inc eax
mov dword [ebp - 4], eax
cmp edx, 0x1033a6e4
jl 0x10182480
xor edi, edi
mov edx, 0x1033a6e4
xor esi, esi
nop dword [eax + eax]
mov ecx, esi
inc esi
or ecx, 0x200
shl ecx, 3
or ecx, edi
mov eax, ecx
mov dword [edx - 4], ecx
or eax, 0x40
mov dword [edx], eax
mov eax, ecx
or eax, 0x80
or ecx, 0xc0
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
add edx, 0x10
cmp esi, 5
jl 0x101824e0
inc edi
cmp edx, 0x1033a874
jl 0x101824d6
pop edi
pop esi
mov esp, ebp
pop ebp
ret