Function at 0x404100
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x552064]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, edx
mov edx, ecx
push esi
mov esi, eax
mov dword [ebp - 0xc], eax
sar esi, 2
mov ecx, eax
mov dword [ebp - 0x38], esi
mov esi, dword [ebp + 8]
sar ecx, 1
sar eax, 3
push edi
mov edi, dword [esi + 0x4d]
mov dword [ebp - 8], ecx
shl ecx, 2
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x59]
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x48], ecx
test edi, edi
je 0x404159
sub eax, ecx
cmp eax, dword [esi + 0x55]
jge 0x404152
xor eax, eax
jmp 0x404168
mov dword [esi + 0x59], eax
add eax, edi
jmp 0x404168
mov eax, ecx
call fcn.004e70b0
mov edx, dword [ebp - 0x3c]
mov eax, esp
mov ecx, dword [ebp - 0x48]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
add eax, 0xfffffff8
add ecx, eax
mov edi, dword [esi + edi*4 + 0x429]
mov eax, edi
mov dword [ebp - 0x1c], edi
mov esi, edx
mov edi, dword [ebp - 0x48]
add edi, edx
mov dword [ebp - 0x10], edi
cmp edx, edi
mov edi, eax
je 0x4041d3
nop
movss xmm1, dword [eax]
mulss xmm1, dword [esi]
movss xmm0, dword [eax + 4]
mulss xmm0, dword [esi + 8]
subss xmm1, xmm0
movss dword [ecx + 4], xmm1
movss xmm1, dword [eax]
movss xmm0, dword [eax + 4]
add eax, 8
mulss xmm1, dword [esi + 8]
mulss xmm0, dword [esi]
add esi, 0x10
addss xmm1, xmm0
movss dword [ecx], xmm1
sub ecx, 8
cmp esi, dword [ebp - 0x10]
jne 0x404190
mov esi, dword [ebp - 8]
movss xmm2, dword [0x545980]
add esi, 0xfffffffd
lea esi, [edx + esi*4]
cmp ecx, dword [ebp - 0x28]
jb 0x40423c
nop dword [eax]
movss xmm1, dword [esi + 8]
movss xmm0, dword [esi]
xorps xmm1, xmm2
mulss xmm1, dword [eax]
xorps xmm0, xmm2
mulss xmm0, dword [eax + 4]
subss xmm1, xmm0
movss dword [ecx + 4], xmm1
movss xmm1, dword [esi]
movss xmm0, dword [eax + 4]
xorps xmm1, xmm2
mulss xmm1, dword [eax]
add eax, 8
mulss xmm0, dword [esi + 8]
sub esi, 0x10
subss xmm1, xmm0
movss dword [ecx], xmm1
sub ecx, 8
cmp ecx, dword [ebp - 0x28]
jae 0x4041f0
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x38]
add ecx, 0xfffffff8
lea ecx, [edi + ecx*4]
lea eax, [edx + eax*4]
mov dword [ebp - 0x20], eax
cmp ecx, edi
jb 0x404371
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x2c], edx
lea eax, [edi + 2]
lea eax, [esi + eax*4]
mov dword [ebp - 0x10], eax
mov eax, 2
sub eax, edi
lea edi, [edx + 4]
shl eax, 2
sub eax, edx
mov dword [ebp - 0x34], edi
add eax, dword [ebp - 0x20]
mov edi, esi
sub edi, edx
add eax, esi
sub dword [ebp - 0x2c], esi
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x14], edi
nop
movss xmm3, dword [esi - 4]
mov edi, dword [ebp - 0x14]
movss xmm2, dword [esi - 8]
subss xmm2, dword [eax - 8]
movss xmm0, dword [edi + edx]
mov edi, dword [ebp - 0x20]
subss xmm3, xmm0
addss xmm0, dword [esi - 4]
add dword [ebp - 0x20], 0x10
movaps xmm1, xmm3
movss dword [edi + 4], xmm0
movss xmm0, dword [eax - 8]
addss xmm0, dword [esi - 8]
movss dword [edi], xmm0
movaps xmm0, xmm2
mulss xmm0, dword [ecx + 0x14]
mulss xmm1, dword [ecx + 0x10]
subss xmm1, xmm0
movss dword [edx], xmm1
mulss xmm2, dword [ecx + 0x10]
mulss xmm3, dword [ecx + 0x14]
addss xmm2, xmm3
movss dword [edx - 4], xmm2
movss xmm0, dword [eax + 4]
movss xmm3, dword [esi + 4]
movss xmm2, dword [esi]
subss xmm3, xmm0
addss xmm0, dword [esi + 4]
subss xmm2, dword [eax]
movss dword [edi + 0xc], xmm0
movss xmm0, dword [esi]
addss xmm0, dword [eax]
mov edi, dword [ebp - 0x2c]
add eax, 0x10
movss dword [edi + esi], xmm0
add esi, 0x10
movss xmm1, dword [ecx]
movss xmm0, dword [ecx + 4]
mulss xmm1, xmm3
mulss xmm0, xmm2
subss xmm1, xmm0
movss dword [edx + 8], xmm1
movss xmm1, dword [ecx + 4]
movss xmm0, dword [ecx]
sub ecx, 0x20
mulss xmm1, xmm3
mulss xmm0, xmm2
addss xmm1, xmm0
movss dword [edx + 4], xmm1
add edx, 0x10
cmp ecx, dword [ebp - 0x1c]
jae 0x404290
mov edx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0xc]
mov ecx, edi
call fcn.00401460
mov esi, dword [ebp - 0x18]
push dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
neg esi
mov eax, dword [ebp - 8]
dec eax
sar edi, 4
push esi
push eax
mov ecx, edi
mov dword [ebp - 0x20], eax
call fcn.004038d0
push dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
mov ecx, edi
sub eax, dword [ebp - 0x38]
push esi
mov esi, dword [ebp - 0x3c]
dec eax
push eax
mov edx, esi
call fcn.004038d0
mov eax, dword [ebp - 0xc]
neg edi
push 0x10
push dword [ebp - 0x1c]
sar eax, 5
mov edx, esi
push edi
push dword [ebp - 0x20]
mov ecx, eax
mov dword [ebp - 0x2c], eax
call fcn.00403ab0
mov eax, dword [ebp - 8]
mov edx, esi
sub eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
dec eax
push 0x10
push dword [ebp - 0x1c]
push edi
push eax
call fcn.00403ab0
mov eax, dword [ebp - 0x18]
mov edx, esi
mov ecx, dword [ebp - 8]
add eax, eax
push 0x10
push dword [ebp - 0x1c]
sub ecx, eax
dec ecx
push edi
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.00403ab0
mov eax, dword [ebp - 0x18]
add esp, 0x48
mov ecx, dword [ebp - 8]
mov edx, esi
push 0x10
push dword [ebp - 0x1c]
lea eax, [eax + eax*2]
sub ecx, eax
dec ecx
push edi
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.00403ab0
mov ecx, dword [ebp - 0x44]
mov edi, 2
add esp, 0x10
mov dword [ebp - 0x40], edi
lea ecx, [ecx - 4]
sar ecx, 1
lea eax, [edi - 1]
mov dword [ebp - 0x24], ecx
cmp ecx, edi
jle 0x4044b3
mov dword [ebp - 0x18], 4
mov edx, dword [ebp - 0xc]
lea ecx, [edi + 2]
sar edx, cl
mov ecx, dword [ebp - 0x18]
rol ecx, 1
mov dword [ebp - 0x34], edx
sar edx, 1
mov dword [ebp - 0x18], ecx
test ecx, ecx
jle 0x4044aa
lea ecx, [edi + 3]
neg edx
rol eax, cl
lea ecx, [edi + 4]
mov edi, dword [ebp - 0xc]
sar edi, cl
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x10]
push eax
push dword [ebp - 0x1c]
push edx
push edi
mov edx, esi
call fcn.00403ab0
sub edi, dword [ebp - 0x34]
add esp, 0x10
sub dword [ebp - 0x14], 1
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x30]
jne 0x404480
mov edi, dword [ebp - 0x40]
mov eax, 1
inc edi
mov dword [ebp - 0x40], edi
cmp edi, dword [ebp - 0x24]
jl 0x404446
mov edx, dword [ebp - 0x44]
add edx, 0xfffffff9
cmp edi, edx
jge 0x404564
mov ecx, edi
rol eax, cl
lea ecx, [edi + 6]
sub edx, edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x34], edx
mov edi, dword [ebp - 0xc]
add ecx, 0xfffffffc
mov edx, edi
sar edx, cl
mov ecx, eax
rol ecx, 3
mov dword [ebp - 0x44], ecx
mov ecx, edx
sar ecx, 1
rol eax, 1
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x14]
sar edi, cl
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x4c], edx
test edi, edi
jle 0x404553
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x44]
neg ecx
shl esi, 4
mov dword [ebp - 0x30], esi
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x18], ecx
nop word [eax + eax]
push dword [ebp - 0x24]
push dword [ebp - 0x44]
push eax
push ecx
mov ecx, dword [ebp - 0x10]
push edx
mov edx, esi
call fcn.00403c90
mov eax, dword [ebp - 0x40]
dec edi
mov edx, dword [ebp - 0x4c]
add esp, 0x14
add eax, dword [ebp - 0x30]
sub edx, 8
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x4c], edx
test edi, edi
jg 0x404520
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
inc ecx
sub dword [ebp - 0x34], 1
mov dword [ebp - 0x14], ecx
jne 0x4044d0
push dword [ebp - 0xc]
mov ecx, dword [ebp - 0x2c]
mov edx, esi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.00403e80
mov ecx, dword [ebp + 0xc]
add esp, 0xc
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x38]
mov edx, dword [ebp - 0x48]
add edi, 0xfffffffc
add edx, 0xfffffff0
mov eax, dword [eax + ecx*4 + 0x449]
mov ecx, dword [ebp - 0x28]
add edx, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
lea edi, [ecx + edi*4]
cmp edi, ecx
jb 0x40460f
mov edx, 6
sub edx, dword [ebp - 0x38]
shl edx, 2
sub edx, ecx
add edx, dword [ebp - 0x10]
add edx, edi
movzx ecx, word [eax]
lea edx, [edx - 0x10]
mov eax, dword [esi + ecx*4]
mov dword [edx + 0x14], eax
mov eax, dword [esi + ecx*4 + 4]
mov dword [edx + 0x10], eax
mov eax, dword [esi + ecx*4 + 8]
mov dword [edi + 0xc], eax
mov eax, dword [esi + ecx*4 + 0xc]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 2]
mov eax, dword [esi + ecx*4]
mov dword [edx + 0xc], eax
mov eax, dword [esi + ecx*4 + 4]
mov dword [edx + 8], eax
mov eax, dword [esi + ecx*4 + 8]
mov dword [edi + 4], eax
mov eax, dword [esi + ecx*4 + 0xc]
mov ecx, dword [ebp - 0x28]
mov dword [edi], eax
sub edi, 0x10
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
cmp edi, ecx
jae 0x4045b7
mov edx, dword [ebp - 0x10]
cmp ecx, edx
jae 0x404749
mov eax, dword [ebp + 8]
lea esi, [ecx + 8]
mov edi, dword [ebp + 0xc]
mov edi, dword [eax + edi*4 + 0x439]
add edi, 8
nop word [eax + eax]
movss xmm3, dword [esi - 8]
movss xmm2, dword [esi - 4]
movss xmm7, dword [edi - 4]
movss xmm1, dword [edi - 8]
movaps xmm0, xmm7
movss dword [ebp - 0x30], xmm2
movaps xmm4, xmm1
addss xmm2, dword [edx + 0xc]
movss dword [ebp - 0x24], xmm3
subss xmm3, dword [edx + 8]
mulss xmm7, xmm2
mulss xmm0, xmm3
mulss xmm4, xmm2
movss xmm2, dword [ebp - 0x24]
addss xmm2, dword [edx + 8]
addss xmm4, xmm0
mulss xmm1, xmm3
subss xmm7, xmm1
movaps xmm0, xmm2
movss xmm1, dword [ebp - 0x30]
addss xmm0, xmm4
subss xmm1, dword [edx + 0xc]
subss xmm2, xmm4
movss dword [esi - 8], xmm0
movaps xmm0, xmm1
addss xmm0, xmm7
subss xmm7, xmm1
movss dword [esi - 4], xmm0
movss dword [edx + 8], xmm2
movss dword [edx + 0xc], xmm7
movss xmm1, dword [esi + 4]
movss xmm3, dword [esi]
movss xmm2, dword [edi]
movss xmm7, dword [edi + 4]
movaps xmm0, xmm2
movss dword [ebp - 0x30], xmm1
movaps xmm4, xmm7
addss xmm1, dword [edx + 4]
movss dword [ebp - 0x24], xmm3
add edi, 0x10
subss xmm3, dword [edx]
mulss xmm7, xmm1
mulss xmm2, xmm3
mulss xmm0, xmm1
movss xmm1, dword [ebp - 0x30]
subss xmm7, xmm2
movss xmm2, dword [ebp - 0x24]
addss xmm2, dword [edx]
subss xmm1, dword [edx + 4]
mulss xmm4, xmm3
addss xmm4, xmm0
movaps xmm0, xmm2
addss xmm0, xmm4
subss xmm2, xmm4
movss dword [esi], xmm0
movaps xmm0, xmm1
addss xmm0, xmm7
subss xmm7, xmm1
movss dword [esi + 4], xmm0
add esi, 0x10
movss dword [edx], xmm2
movss dword [edx + 4], xmm7
sub edx, 0x10
lea eax, [esi - 8]
cmp eax, edx
jb 0x404630
mov esi, dword [ebp - 0x3c]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff0
add eax, esi
lea edi, [edx - 8]
mov dword [ebp - 0x10], eax
lea edi, [ecx + edi*4]
cmp edi, ecx
jb 0x404916
lea eax, [esi + 8]
movss xmm6, dword [0x545980]
mov dword [ebp - 0x24], eax
lea eax, [edx + 2]
lea eax, [esi + eax*4]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 8], eax
add esi, 8
mov eax, dword [ebp - 0xc]
sub eax, edx
lea eax, [esi + eax*4]
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [esi + eax*4 + 0x431]
mov esi, dword [ebp - 0x24]
lea eax, [eax + edx*4]
mov edx, dword [ebp - 0x10]
add eax, 0xfffffff8
nop word [eax + eax]
movss xmm4, dword [eax + 4]
movss xmm5, dword [edi + 0x18]
movaps xmm3, xmm4
movss xmm0, dword [edi + 0x1c]
mulss xmm0, dword [eax]
mov ecx, dword [ebp - 8]
mulss xmm4, dword [edi + 0x1c]
mulss xmm3, xmm5
xorps xmm5, xmm6
mulss xmm5, dword [eax]
subss xmm3, xmm0
subss xmm5, xmm4
movss dword [esi - 8], xmm3
xorps xmm3, xmm6
movss dword [edx + 0xc], xmm3
movss dword [ecx - 8], xmm5
mov ecx, dword [ebp - 0xc]
movss dword [ecx + 4], xmm5
movss xmm4, dword [eax - 4]
movss xmm5, dword [edi + 0x10]
movaps xmm3, xmm4
movss xmm0, dword [eax - 8]
mulss xmm0, dword [edi + 0x14]
mov ecx, dword [ebp - 8]
mulss xmm4, dword [edi + 0x14]
mulss xmm3, xmm5
xorps xmm5, xmm6
mulss xmm5, dword [eax - 8]
subss xmm3, xmm0
subss xmm5, xmm4
movss dword [esi - 4], xmm3
xorps xmm3, xmm6
movss dword [edx + 8], xmm3
movss dword [ecx - 4], xmm5
mov ecx, dword [ebp - 0xc]
movss dword [ecx], xmm5
movss xmm4, dword [eax - 0xc]
movss xmm5, dword [edi + 8]
movaps xmm3, xmm4
movss xmm0, dword [eax - 0x10]
mulss xmm0, dword [edi + 0xc]
mov ecx, dword [ebp - 8]
mulss xmm4, dword [edi + 0xc]
mulss xmm3, xmm5
xorps xmm5, xmm6
mulss xmm5, dword [eax - 0x10]
subss xmm3, xmm0
subss xmm5, xmm4
movss dword [esi], xmm3
xorps xmm3, xmm6
movss dword [edx + 4], xmm3
movss dword [ecx], xmm5
mov ecx, dword [ebp - 0xc]
movss dword [ecx - 4], xmm5
movss xmm4, dword [eax - 0x14]
movss xmm5, dword [edi]
movaps xmm3, xmm4
movss xmm0, dword [eax - 0x18]
mulss xmm0, dword [edi + 4]
mov ecx, dword [ebp - 8]
mulss xmm4, dword [edi + 4]
sub edi, 0x20
add dword [ebp - 8], 0x10
mulss xmm3, xmm5
xorps xmm5, xmm6
mulss xmm5, dword [eax - 0x18]
sub eax, 0x20
subss xmm3, xmm0
subss xmm5, xmm4
movss dword [esi + 4], xmm3
xorps xmm3, xmm6
movss dword [edx], xmm3
add esi, 0x10
movss dword [ecx + 4], xmm5
sub edx, 0x10
mov ecx, dword [ebp - 0xc]
sub dword [ebp - 0xc], 0x10
movss dword [ecx - 8], xmm5
cmp edi, dword [ebp - 0x28]
jae 0x4047b0
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x50]
mov dword [esi + 0x59], ecx
lea esp, [ebp - 0x58]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x50]
mov dword [eax + 0x59], ecx
lea esp, [ebp - 0x58]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret