Function at 0x529800
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
push ebx
push ebp
sub esp, 0xa4
mov edx, dword [0x78e51c]
test dl, 1
je 0x529f3a
mov eax, dword [esp + 0xb8]
or edx, 2
mov ebp, dword [0x78e534]
mov ecx, dword [0x78e524]
mov dword [eax + 0x24], ebp
mov ebp, dword [0x78e544]
mov dword [esp + 0x58], ebp
mov ebp, dword [0x78e550]
mov dword [esp + 0x60], ebp
mov ebp, dword [0x78e554]
mov dword [esp + 0x5c], ebp
mov ebp, dword [0x78e558]
mov dword [eax + 0xc], edx
mov dword [eax + 0x14], ecx
mov edx, dword [0x78e514]
mov ebx, dword [0x78e518]
mov edi, dword [0x78e520]
mov ecx, dword [0x78e538]
mov dword [esp + 0x50], ebp
mov ebp, dword [0x78e55c]
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0x10], edi
mov dword [esp + 0x34], ecx
mov dword [eax + 0x28], ecx
mov esi, dword [0x78e510]
mov edx, dword [0x78e528]
mov edi, dword [0x78e52c]
mov ebx, dword [0x78e530]
mov ecx, dword [0x78e53c]
mov dword [esp + 0x4c], ebp
mov ebp, dword [0x78e560]
mov dword [eax], esi
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ebx
mov dword [eax + 0x2c], ecx
mov eax, dword [0x78e540]
mov dword [esp + 0x48], ebp
mov ebp, dword [0x22d67c0]
mov dword [esp + 0x54], eax
mov eax, dword [0x78e548]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x44], eax
mov eax, dword [0x78e54c]
test ebp, ebp
mov ebp, 0
cmovle ebx, ebp
cmovle edx, ebp
jle 0x529900
test edx, edx
jg 0x529ea6
mov ebx, dword [0x7d11b0]
test ebx, ebx
jle 0x529f48
mov ebp, dword [esp + 0x50]
or eax, 2
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x38], ebp
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], ecx
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x60]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x20], ebp
lea ebp, [esp + 0x80]
mov dword [ebp - 0x4c], esi
lea esi, [esp + 0x84]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x54], eax
mov dword [ebp + 4], 1
mov dword [ebp], 0
push ebp
push esi
push 0x22d67e0
push 0x7d11b8
push 0x7d11c0
push 0x7d11c8
push 0x7d11d0
call fcn.00442170
add esp, 0x1c
cmp dword [esp + 0x80], 0
jle 0x529e53
mov eax, dword [esp + 0xc4]
cdq
movd xmm3, eax
mov ecx, dword [esp + 0xbc]
movd xmm0, edx
punpckldq xmm3, xmm0
movdqu xmmword [esp + 0x70], xmm3
mov dword [esp + 0x88], ebx
movq xmm0, qword [0x7299f0]
mov eax, dword [esp + 0xbc]
mov dword [esp], 0x22d67e0
movq qword [esp + 4], xmm0
mov dword [esp + 0xc], eax
movdqu xmm1, xmmword [esp + 0x70]
movq xmm2, qword [0x7299f8]
movq qword [esp + 0x10], xmm1
movq qword [esp + 0x18], xmm2
call fcn.005cd2b0
test eax, eax
je 0x529deb
mov edx, dword [esp + 0xc0]
mov eax, dword [0x22d67f0]
cmp eax, dword [edx]
jne 0x529deb
mov eax, dword [0x22d67c0]
movss xmm0, dword [0x22d67f4]
mov dword [esp + 0x8c], eax
test eax, eax
jle 0x529bca
mov ecx, dword [esp + 0xb8]
shr eax, 1
mov ebx, dword [ecx]
mov esi, dword [ecx + 0x20]
mov edx, dword [ecx + 0x2c]
mov ebp, dword [ecx + 0x28]
mov ecx, dword [ecx + 0x1c]
mov dword [esp + 0x6c], eax
je 0x529fbe
mov dword [esp + 0x44], edx
mov edi, esi
imul edx, ebp
xor eax, eax
imul edi, ecx
neg edx
sub edi, ecx
add edx, ebx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], ebx
mov esi, dword [esp + 0x6c]
lea ecx, [ebp + edx]
sub ecx, edi
lea edx, [edx + ebp*2]
sub edx, edi
xor edi, edi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x54]
movss xmm1, dword [ebx + edi*2]
inc eax
movss xmm2, dword [edx + edi*2]
addss xmm1, xmm0
addss xmm2, xmm0
movss dword [ebx + edi*2], xmm1
movss dword [edx + edi*2], xmm2
add edi, ebp
cmp eax, esi
jb 0x529aa2
mov edx, dword [esp + 0x44]
lea edi, [eax + eax + 1]
mov esi, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
lea eax, [edi - 1]
cmp eax, dword [esp + 0x8c]
jae 0x529b0d
mov eax, edx
neg eax
add eax, edi
mov edi, esi
imul edi, ecx
imul eax, ebp
movss xmm1, dword [0x22d67f8]
sub edi, ecx
neg edi
add edi, ebx
movss xmm2, dword [edi + eax]
addss xmm2, xmm0
movss dword [edi + eax], xmm2
jmp 0x529b15
movss xmm1, dword [0x22d67f8]
cmp dword [esp + 0x6c], 0
je 0x529fb4
mov dword [esp + 0x44], edx
lea edi, [esi - 4]
imul edx, ebp
xor eax, eax
imul edi, ecx
neg edx
add edx, ebx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], ebx
mov esi, dword [esp + 0x6c]
lea ecx, [ebp + edx]
sub ecx, edi
lea edx, [edx + ebp*2]
sub edx, edi
xor edi, edi
mov dword [esp + 0x50], ecx
mov dword [esp + 0x5c], edx
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x50]
movss xmm0, dword [ebx + edi*2]
inc eax
movss xmm2, dword [edx + edi*2]
addss xmm0, xmm1
addss xmm2, xmm1
movss dword [ebx + edi*2], xmm0
movss dword [edx + edi*2], xmm2
add edi, ebp
cmp eax, esi
jb 0x529b64
mov edx, dword [esp + 0x44]
lea edi, [eax + eax + 1]
mov esi, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
lea eax, [edi - 1]
cmp eax, dword [esp + 0x8c]
jae 0x529fe9
neg esi
neg edx
add esi, 4
add edx, edi
imul esi, ecx
imul edx, ebp
add esi, ebx
cmp dword [esp + 0x8c], 0
addss xmm1, dword [esi + edx]
movss dword [esi + edx], xmm1
jle 0x529deb
mov ebp, dword [esp + 0xb8]
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x40]
mov edx, dword [ebp + 0x2c]
mov ebx, dword [ebp + 0x28]
imul edx, ebx
imul esi, eax
movss xmm1, dword [0x22d680c]
movss xmm0, dword [0x22d6800]
mov ecx, dword [ebp]
mov edi, dword [ebp + 0x20]
sub ecx, edx
mov ebp, dword [ebp + 0x1c]
add ecx, ebx
imul edi, ebp
mov dword [esp + 0xa0], ebx
lea edx, [ebp + ebp]
mov ebx, dword [esp + 0x8c]
neg edx
imul ebx, eax
add edx, edi
neg edx
add edx, ecx
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x20]
add ebx, edx
sub ebx, esi
add edx, eax
mov dword [esp + 0x64], ebx
lea ebx, [ebp + ebp*4]
sub edx, esi
lea esi, [ebp + ebx]
neg esi
lea ebp, [ebp + ebp*2]
neg ebp
add esi, edi
add ebp, edi
neg ebx
neg esi
neg ebp
mov dword [esp + 0x68], 0
add edi, ebx
add esi, ecx
add ebp, ecx
mov dword [esp + 0x98], esi
sub ecx, edi
mov esi, dword [esp + 0x68]
mov ebx, esi
mov dword [esp + 0x90], eax
mov dword [esp + 0x9c], ebp
mov ebp, esi
mov eax, dword [esp + 0x64]
movss xmm2, dword [0x729ab0]
movaps xmm6, xmm1
movss xmm4, dword [0x729ab0]
inc ebx
mov edi, dword [esp + 0x94]
mulss xmm6, dword [eax]
addss xmm2, dword [0x22d6810]
addss xmm4, dword [0x22d6810]
subss xmm2, dword [0x22d680c]
subss xmm4, dword [0x22d680c]
mulss xmm2, dword [eax]
mulss xmm4, dword [ebp + edx]
subss xmm2, dword [ebp + edx]
addss xmm6, xmm4
mulss xmm2, dword [0x22d6808]
mulss xmm6, dword [eax]
movss xmm3, dword [esi + edi]
movss xmm5, dword [0x729ab0]
subss xmm3, xmm2
mulss xmm5, dword [ebp + edx]
movss dword [esi + edi], xmm3
movss xmm3, dword [0x729ab0]
mulss xmm5, dword [ebp + edx]
addss xmm3, dword [0x22d6804]
xorps xmm5, xmmword [0x7299e0]
movss xmm7, dword [0x729ab0]
addss xmm6, xmm5
subss xmm3, dword [0x22d6800]
addss xmm7, dword [0x22d6804]
mulss xmm6, dword [0x22d6808]
mulss xmm3, dword [ebp + edx]
subss xmm7, dword [0x22d6800]
movaps xmm5, xmm0
mulss xmm5, dword [eax]
mulss xmm7, dword [eax]
addss xmm5, xmm3
subss xmm7, dword [ebp + edx]
mulss xmm5, dword [eax]
mulss xmm7, dword [0x22d67fc]
movss xmm4, dword [0x729ab0]
mulss xmm4, dword [ebp + edx]
mulss xmm4, dword [ebp + edx]
mov edi, dword [esp + 0x98]
xorps xmm4, xmmword [0x7299e0]
add ebp, dword [esp + 0x90]
addss xmm5, xmm4
addss xmm6, dword [esi + edi]
mulss xmm5, dword [0x22d67fc]
movss dword [esi + edi], xmm6
mov edi, dword [esp + 0x9c]
movss xmm6, dword [esi + ecx]
subss xmm6, xmm5
movss xmm2, dword [esi + edi]
movss dword [esi + ecx], xmm6
subss xmm2, xmm7
movss dword [esi + edi], xmm2
add esi, dword [esp + 0xa0]
cmp ebx, dword [esp + 0x8c]
jb 0x529c8a
mov eax, dword [esp + 0x84]
inc eax
cmp eax, dword [esp + 0x88]
jg 0x529f48
mov dword [esp + 0x84], eax
lea eax, [esp + 0x80]
mov dword [eax], 0
push eax
lea edx, [esp + 0x88]
push edx
push 0x22d67e0
push 0x7d11b8
push 0x7d11c0
push 0x7d11c8
push 0x7d11d0
call fcn.00442170
add esp, 0x1c
cmp dword [esp + 0x80], 0
jg 0x5299c5
lea esi, [esp + 0x84]
xor eax, eax
lea edx, [esp + 0x20]
mov dword [edx], eax
mov dword [edx + 0x10], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], 0x80
push esi
push edx
call fcn.005a4580
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.005d18b0
mov dword [esp + 0x48], eax
lea edx, [esp + 0x48]
push 0x15
push edx
push str.DLOAD_NOT_FOUND___n.
call fcn.00416530
add esp, 0x1c
mov ebx, dword [esp + 0x2c]
test bl, 1
je 0x529f48
jmp 0x529f53
imul ecx, dword [esp + 0x34]
sub esi, ecx
mov ecx, ebx
imul ecx, edi
sub esi, ecx
mov ecx, edx
shr ecx, 1
mov dword [esp + 0x3c], ecx
xor ecx, ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x20], eax
inc ebp
cmp dword [esp + 0x3c], 0
je 0x529fc8
add ecx, dword [esp + 0x34]
xor edx, edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebp
lea eax, [esi + ecx]
xor esi, esi
mov ecx, edi
lea ebp, [ebx + edx*2]
imul ecx, ebp
inc ebp
imul ebp, edi
inc edx
mov dword [eax + ecx], esi
mov dword [eax + ebp], esi
cmp edx, dword [esp + 0x3c]
jb 0x529ee9
mov ecx, dword [esp + 0x30]
lea edx, [edx + edx + 1]
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
lea eax, [edx - 1]
cmp eax, dword [esp + 0x38]
jae 0x529fd6
lea eax, [edx + ebx - 1]
imul eax, edi
add eax, esi
mov dword [eax + ecx], 0
cmp ebp, dword [esp + 0x24]
jb 0x529ec6
jmp 0x529fe0
mov edx, dword [esp + 0xb8]
xor eax, eax
mov dword [edx], eax
mov dword [edx + 0xc], eax
add esp, 0xa4
pop ebp
pop ebx
pop edi
pop esi
ret
mov ebp, ebx
mov eax, ebx
shr ebp, 1
mov edx, ebx
shr edx, 0xb
and ebp, 1
and eax, 1
mov ecx, ebx
shl ebp, 2
add eax, eax
shr ecx, 8
and edx, 1
shl edx, 8
or ebp, eax
and ecx, 1
or ebp, edx
shl ecx, 0x15
or ebp, ecx
add ebp, 0x40000
push ebp
push dword [esp + 0x24]
call fcn.005e1da0
add esp, 8
test eax, eax
jne 0x529f48
and ebx, 0xfffff7fe
mov dword [esp + 0x20], 0
mov dword [esp + 0x2c], ebx
add esp, 0xa4
pop ebp
pop ebx
pop edi
pop esi
ret
mov edi, 1
jmp 0x529b97
mov edi, 1
jmp 0x529ad5
add ecx, dword [esp + 0x34]
mov edx, 1
jmp 0x529f12
cmp ebp, dword [esp + 0x24]
jb 0x529ec6
mov eax, dword [esp + 0x20]
jmp 0x529900
cmp dword [esp + 0x8c], 0
jg 0x529bd0
jmp 0x529deb