Function at 0x1003db90
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
mov eax, dword [eax]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
jmp 0x1003ff30
push esi
push edi
push ebx
sub esp, 0x44
mov ebx, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov edx, dword [ebx + 4]
mov dword [esp + 0x38], edx
mov eax, dword [ebx]
mov esi, dword [ebx + 0x10]
mov edx, dword [ecx]
cmp dword [ebx + 0xc], 0
jne 0x10040027
xor ecx, ecx
lea edi, [ebx + 0x2b]
pxor xmm0, xmm0
and edi, 0xfffffff0
movq qword [ebx + 0x1c], xmm0
mov dword [ebx + 0x24], ecx
mov word [ebx + 0x28], cx
mov byte [ebx + 0x2a], cl
movq qword [ebx + 0x13c], xmm0
movq qword [ebx + 0x144], xmm0
mov dword [ebx + 0x14c], ecx
mov ecx, 0x120
movaps xmmword [edi + ecx - 0x10], xmm0
movaps xmmword [edi + ecx - 0x20], xmm0
movaps xmmword [edi + ecx - 0x30], xmm0
movaps xmmword [edi + ecx - 0x40], xmm0
movaps xmmword [edi + ecx - 0x50], xmm0
movaps xmmword [edi + ecx - 0x60], xmm0
sub ecx, 0x60
jne 0x1003ff8c
movaps xmm0, xmmword [str.________________]
mov ecx, 0x3e3e3e3e
movq qword [ebx + 0x150], xmm0
lea edi, [ebx + 0x15f]
mov dword [ebx + 0x158], ecx
and edi, 0xfffffff0
mov word [ebx + 0x15c], cx
mov byte [ebx + 0x15e], cl
movq qword [ebx + 0x270], xmm0
movq qword [ebx + 0x278], xmm0
mov dword [ebx + 0x280], ecx
mov ecx, 0x120
movaps xmmword [edi + ecx - 0x10], xmm0
movaps xmmword [edi + ecx - 0x20], xmm0
movaps xmmword [edi + ecx - 0x30], xmm0
movaps xmmword [edi + ecx - 0x40], xmm0
movaps xmmword [edi + ecx - 0x50], xmm0
movaps xmmword [edi + ecx - 0x60], xmm0
sub ecx, 0x60
jne 0x1003fffa
mov dword [ebx + 0x284], 0x7f
cmp edx, 2
ja 0x100402a9
test eax, eax
jbe 0x100402b2
mov ecx, dword [esp + 0x58]
mov edi, edx
shr edi, 1
mov dword [esp + 0x3c], edx
mov esi, dword [ecx + 0xc]
xor ecx, ecx
mov dword [esp + 0x18], esi
mov esi, edi
neg esi
shl esi, 0x17
mov dword [esp + 0x40], eax
add esi, 0x3f800000
cmp dword [esp + 0x3c], 0
jbe 0x1004012b
test edi, edi
pxor xmm0, xmm0
pxor xmm1, xmm1
jbe 0x100404f3
mov eax, dword [esp + 0x18]
xor edx, edx
pxor xmm3, xmm3
pxor xmm2, xmm2
nop word [eax + eax]
mov ebx, dword [eax + edx*8]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov ebx, dword [ebx]
movss xmm4, dword [ebx + ecx*8]
movss xmm5, dword [ebx + ecx*8 + 4]
mov ebx, dword [eax + edx*8 + 4]
inc edx
mulss xmm4, dword [esp + 0x20]
cmp edx, edi
mulss xmm5, dword [esp + 0x24]
addss xmm0, xmm4
addss xmm1, xmm5
mov ebx, dword [ebx]
movss xmm6, dword [ebx + ecx*8]
movss xmm7, dword [ebx + ecx*8 + 4]
mulss xmm6, dword [esp + 0x20]
mulss xmm7, dword [esp + 0x24]
addss xmm3, xmm6
addss xmm2, xmm7
jb 0x10040090
addss xmm1, xmm2
addss xmm0, xmm3
lea edx, [edx + edx + 1]
dec edx
cmp edx, dword [esp + 0x3c]
jae 0x10040133
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov edx, dword [eax + edx*4]
mov ebx, dword [edx]
movss xmm2, dword [ebx + ecx*8]
movss xmm3, dword [ebx + ecx*8 + 4]
mulss xmm2, dword [esp + 0x20]
mulss xmm3, dword [esp + 0x24]
addss xmm0, xmm2
addss xmm1, xmm3
jmp 0x10040133
pxor xmm0, xmm0
pxor xmm1, xmm1
movd edx, xmm0
mov ebx, 0xffffff81
add edx, edx
mov eax, edx
shr eax, 0x18
add eax, 0xffffff82
test edx, edx
cmove eax, ebx
neg eax
js 0x1004015c
mov edx, 0x3c
cmp eax, 0x3c
cmova eax, edx
jmp 0x1004015e
xor eax, eax
cmp eax, 0x1f
jl 0x1004016a
mov edx, 0x1f
jmp 0x10040195
movd eax, xmm0
mov ebx, 0xffffff81
add eax, eax
mov edx, eax
shr edx, 0x18
add edx, 0xffffff82
test eax, eax
cmove edx, ebx
neg edx
js 0x10040193
mov eax, 0x3c
cmp edx, 0x3c
cmova edx, eax
jmp 0x10040195
xor edx, edx
movd ebx, xmm1
add ebx, ebx
mov eax, ebx
shr eax, 0x18
add eax, 0xffffff82
test ebx, ebx
mov ebx, 0xffffff81
cmove eax, ebx
neg eax
js 0x100401be
mov ebx, 0x3c
cmp eax, 0x3c
cmova eax, ebx
jmp 0x100401c0
xor eax, eax
cmp eax, edx
jge 0x100401ef
movd eax, xmm1
mov ebx, 0xffffff81
add eax, eax
mov edx, eax
shr edx, 0x18
add edx, 0xffffff82
test eax, eax
cmove edx, ebx
neg edx
js 0x100401ed
mov eax, 0x3c
cmp edx, 0x3c
cmova edx, eax
jmp 0x100401ef
xor edx, edx
lea eax, [edi + edx - 2]
mov ebx, eax
shl ebx, 0x17
add ebx, 0x3f800000
test eax, eax
jle 0x10040524
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mulss xmm0, dword [esp + 0xc]
mulss xmm1, dword [esp + 0x10]
mov eax, dword [esp + 0x54]
add edx, edx
mulss xmm0, xmm0
mov ebx, 0x3c
mulss xmm1, xmm1
mov eax, dword [eax + ecx*4 + 0x150]
addss xmm0, xmm1
sub eax, edx
cmp eax, 0x3c
mov dword [esp + 0x1c], 0x3d800000
cmovge eax, ebx
mov ebx, 0xffffffc4
cmp eax, 0xffffffc4
mulss xmm0, dword [esp + 0x1c]
cmovl eax, ebx
test eax, eax
jl 0x100404fd
neg eax
shl eax, 0x17
add eax, 0x3f800000
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x54]
movss xmm1, dword [esp + 0x14]
mulss xmm1, dword [eax + ecx*4 + 0x1c]
mov dword [eax + ecx*4 + 0x150], edx
addss xmm0, xmm1
movss dword [eax + ecx*4 + 0x1c], xmm0
inc ecx
cmp ecx, dword [esp + 0x40]
jb 0x1004005e
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x54]
jmp 0x100402b2
cmp esi, 2
je 0x1004054b
mov ecx, dword [ebx + 0xc]
inc ecx
mov dword [ebx + 0xc], ecx
cmp ecx, dword [esp + 0x38]
jne 0x100404ec
mov ecx, dword [esp + 0x5c]
test eax, eax
mov esi, dword [ecx]
mov dword [esp + 4], esi
mov ecx, dword [ebx + 0x284]
jbe 0x10040542
cmp eax, 4
jb 0x1004053b
mov edi, ebx
and edi, 0xf
mov esi, edi
neg esi
add esi, 0x10
shr esi, 2
test edi, edi
cmovne edi, esi
lea esi, [edi + 4]
cmp eax, esi
jb 0x1004053b
mov esi, eax
sub esi, edi
and esi, 3
neg esi
add esi, eax
test edi, edi
jbe 0x10040339
mov dword [esp], 0
mov dword [esp + 0x40], eax
mov eax, dword [esp]
cmp ecx, dword [ebx + eax*4 + 0x150]
jle 0x10040330
mov ecx, dword [ebx + eax*4 + 0x150]
inc eax
cmp eax, edi
jb 0x10040320
mov eax, dword [esp + 0x40]
movd xmm0, ecx
pshufd xmm0, xmm0, 0
mov ecx, edi
movdqa xmm1, xmmword [ebx + ecx*4 + 0x150]
add ecx, 4
movdqa xmm2, xmm1
cmp ecx, esi
pcmpgtd xmm2, xmm0
pxor xmm0, xmm1
pand xmm2, xmm0
movdqa xmm0, xmm1
pxor xmm0, xmm2
jb 0x10040344
movdqa xmm1, xmm0
movdqa xmm2, xmm0
psrldq xmm1, 8
pcmpgtd xmm2, xmm1
pxor xmm1, xmm0
pand xmm2, xmm1
pxor xmm2, xmm0
movdqa xmm0, xmm2
movdqa xmm3, xmm2
psrldq xmm0, 4
pcmpgtd xmm3, xmm0
pxor xmm0, xmm2
pand xmm3, xmm0
pxor xmm3, xmm2
movd ecx, xmm3
cmp esi, eax
jae 0x100403c3
cmp ecx, dword [ebx + esi*4 + 0x150]
jle 0x100403be
mov ecx, dword [ebx + esi*4 + 0x150]
inc esi
cmp esi, eax
jb 0x100403ae
mov dword [ebx + 0x284], ecx
lea esi, [ebx + 0x18]
mov dword [esp], esi
cmp esi, dword [esp + 4]
jae 0x100403e1
mov esi, dword [esp + 4]
sub esi, dword [esp]
cmp esi, 4
jge 0x100403fc
mov esi, dword [esp + 4]
cmp esi, dword [esp]
jae 0x1004045f
mov esi, dword [esp]
lea edi, [eax*4]
sub esi, dword [esp + 4]
cmp esi, edi
jl 0x1004045f
mov dword [esp + 0x3c], edx
xor esi, esi
mov edi, dword [esp + 4]
pxor xmm0, xmm0
nop word [eax + eax]
movss xmm1, dword [ebx + esi*4 + 0x1c]
sqrtss xmm1, xmm1
mov edx, dword [ebx + esi*4 + 0x150]
sub edx, ecx
shr edx, 1
mulss xmm1, dword [ebx + 0x18]
neg edx
shl edx, 0x17
add edx, 0x3f800000
mov dword [esp], edx
mulss xmm1, dword [esp]
mov dword [esp + 4], 0x3c000000
movss xmm2, dword [esp + 4]
mulss xmm2, xmm1
movss dword [edi + esi*4], xmm1
inc esi
cmp esi, eax
addss xmm0, xmm2
jb 0x10040410
jmp 0x100404bd
mov dword [esp + 0x3c], edx
xor esi, esi
mov edi, dword [esp + 4]
pxor xmm0, xmm0
nop dword [eax]
movss xmm1, dword [ebx + esi*4 + 0x1c]
sqrtss xmm1, xmm1
mov edx, dword [ebx + esi*4 + 0x150]
sub edx, ecx
shr edx, 1
mulss xmm1, dword [ebx + 0x18]
neg edx
shl edx, 0x17
add edx, 0x3f800000
mov dword [esp], edx
mulss xmm1, dword [esp]
mov dword [esp + 4], 0x3c000000
movss xmm2, dword [esp + 4]
mulss xmm2, xmm1
movss dword [edi + esi*4], xmm1
inc esi
cmp esi, eax
addss xmm0, xmm2
jb 0x10040470
mov edx, dword [esp + 0x3c]
mov esi, 2
cmp edx, 2
mov dword [ebx + 0xc], 0
cmova edx, esi
sar ecx, 1
add edx, ecx
mov ecx, dword [esp + 0x5c]
sub edx, dword [ebx + 0x14]
add edx, 0xfffffffd
mov dword [ecx + 4], eax
movss dword [ecx + 0xc], xmm0
mov dword [ecx + 8], edx
add esp, 0x44
pop ebx
pop edi
pop esi
ret
mov edx, 1
jmp 0x100400f2
shl eax, 0x17
add eax, 0x3f800000
mov dword [esp + 8], eax
mulss xmm0, dword [esp + 8]
mov eax, dword [esp + 0x54]
addss xmm0, dword [eax + ecx*4 + 0x1c]
movss dword [eax + ecx*4 + 0x1c], xmm0
jmp 0x10040290
mov dword [esp], ebx
mov dword [esp + 4], ebx
mulss xmm0, dword [esp]
mulss xmm1, dword [esp + 4]
jmp 0x1004021a
xor esi, esi
jmp 0x100403aa
pxor xmm0, xmm0
jmp 0x100404c1
test eax, eax
jbe 0x100402b2
mov edi, dword [esp + 0x58]
mov dword [esp], 0
mov dword [esp + 0x40], eax
mov esi, dword [edi + 0xc]
movss xmm0, dword [0x1038a5d0]
mov dword [esp + 0x3c], edx
mov edi, dword [esi + 8]
mov ecx, dword [esi]
mov esi, dword [esi + 4]
mov edi, dword [edi]
mov dword [esp + 0x20], edi
mov ecx, dword [ecx]
mov edi, dword [esi]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ecx
mov eax, dword [esp]
mov edx, dword [esp + 0x20]
mov edi, 0x3e000000
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], edi
movss xmm1, dword [edx + eax*8]
movss xmm3, dword [ecx + eax*8]
mulss xmm1, xmm0
mulss xmm3, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
addss xmm1, xmm3
movss xmm4, dword [esi + eax*8]
mov dword [esp + 0x28], edi
mulss xmm4, dword [esp + 0x28]
movss xmm5, dword [ecx + eax*8 + 4]
addss xmm1, xmm4
movd ecx, xmm1
movss xmm2, dword [edx + eax*8 + 4]
movss xmm6, dword [esi + eax*8 + 4]
mov dword [esp + 0x2c], edi
mulss xmm2, xmm0
lea esi, [ecx + ecx]
mulss xmm5, dword [esp + 0x2c]
mov edx, esi
addss xmm2, xmm5
mov dword [esp + 0x30], edi
mov edi, 0xffffff81
shr edx, 0x18
mulss xmm6, dword [esp + 0x30]
add edx, 0xffffff82
test esi, esi
addss xmm2, xmm6
cmove edx, edi
neg edx
js 0x1004062a
mov esi, 0x3c
cmp edx, 0x3c
cmova edx, esi
jmp 0x1004062c
xor edx, edx
cmp edx, 0x1f
jl 0x10040638
mov esi, 0x1f
jmp 0x1004065f
add ecx, ecx
mov edx, 0xffffff81
mov esi, ecx
shr esi, 0x18
add esi, 0xffffff82
test ecx, ecx
cmove esi, edx
neg esi
js 0x1004065d
mov edx, 0x3c
cmp esi, 0x3c
cmova esi, edx
jmp 0x1004065f
xor esi, esi
movd edx, xmm2
lea edi, [edx + edx]
mov ecx, edi
shr ecx, 0x18
add ecx, 0xffffff82
test edi, edi
mov edi, 0xffffff81
cmove ecx, edi
neg ecx
js 0x10040689
mov edi, 0x3c
cmp ecx, 0x3c
cmova ecx, edi
jmp 0x1004068b
xor ecx, ecx
cmp ecx, esi
jge 0x100406b6
add edx, edx
mov esi, edx
shr esi, 0x18
add esi, 0xffffff82
test edx, edx
mov edx, 0xffffff81
cmove esi, edx
neg esi
js 0x100406b4
mov edx, 0x3c
cmp esi, 0x3c
cmova esi, edx
jmp 0x100406b6
xor esi, esi
mov ecx, esi
mov edx, esi
shl ecx, 0x17
add ecx, 0x3f000000
dec edx
jle 0x1004076b
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
movss xmm3, dword [esp + 0xc]
movss xmm4, dword [esp + 0x10]
mulss xmm1, xmm3
mulss xmm2, xmm4
mulss xmm1, xmm1
lea edi, [esi + esi - 2]
mulss xmm2, xmm2
mov esi, dword [ebx + eax*4 + 0x150]
mov edx, 0x3c
sub esi, edi
mov ecx, 0xffffffc4
cmp esi, 0x3c
addss xmm1, xmm2
cmovge esi, edx
cmp esi, 0xffffffc4
mov dword [esp + 0x34], 0x3d800000
cmovl esi, ecx
mulss xmm1, dword [esp + 0x34]
test esi, esi
jl 0x1004078a
neg esi
shl esi, 0x17
add esi, 0x3f800000
mov dword [esp + 0x14], esi
movss xmm2, dword [esp + 0x14]
mulss xmm2, dword [ebx + eax*4 + 0x1c]
mov dword [ebx + eax*4 + 0x150], edi
addss xmm1, xmm2
movss dword [ebx + eax*4 + 0x1c], xmm1
inc eax
cmp eax, dword [esp + 0x40]
jb 0x1004058e
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
jmp 0x100402b2
mov dword [esp], ecx
mov dword [esp + 4], ecx
movss xmm3, dword [esp]
movss xmm4, dword [esp + 4]
mulss xmm1, xmm3
mulss xmm2, xmm4
jmp 0x100406e6
shl esi, 0x17
add esi, 0x3f800000
mov dword [esp + 8], esi
movss xmm2, dword [esp + 8]
mulss xmm1, xmm2
addss xmm1, dword [ebx + eax*4 + 0x1c]
movss dword [ebx + eax*4 + 0x1c], xmm1
jmp 0x10040753