Function at 0x526364
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xca4
push esi
mov esi, ecx
xor ecx, ecx
cmp dword [esi + 0x168c], ecx
je 0x5263b2
call fcn.005d1128
and eax, 0xf
sub al, 0xf
neg al
sbb eax, eax
inc eax
mov dword [esi + 0x3ec], eax
je 0x5263a7
call fcn.005d1128
and eax, 0x3f
mov dword [esi + 0x3f0], eax
call fcn.005d1128
and eax, 0x3f
sub eax, 0x20
mov dword [esi + 0x3f4], eax
mov eax, dword [esi + 0x3ec]
jmp 0x5269c9
mov edx, dword [esi + 0xb4]
fldz
push ebx
fldz
mov ebx, dword [esi + 0xb0]
fstp qword [ebp + 0x1c]
mov eax, ebx
fldz
shl eax, 4
mov dword [ebp + 0x2c], eax
fstp qword [ebp + 0x34]
mov eax, edx
fldz
shl eax, 4
push edi
fstp qword [ebp + 0x24]
mov dword [ebp + 0x30], eax
fldz
xor eax, eax
mov dword [ebp + 0x58], ecx
fstp qword [ebp + 0x3c]
mov dword [ebp + 0x64], ecx
mov dword [ebp - 4], ecx
mov ecx, 0x100
lea edi, [ebp - 0x42c]
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [ebp - 0x82c]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x16a0]
mov dword [ebp + 0x14], eax
mov eax, edx
shl eax, 2
test eax, eax
mov dword [ebp - 0x2c], 0xb
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x24], 5
mov dword [ebp - 0x20], 9
mov dword [ebp - 0x1c], 8
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x14], 3
mov dword [ebp - 0x10], 6
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0xc
mov dword [ebp], 0xf
mov dword [ebp + 4], 4
mov dword [ebp + 8], 0xa
mov dword [ebp + 0xc], 0xd
mov dword [ebp + 0x10], 0xe
jle 0x526552
mov ecx, dword [esi + 0x169c]
lea eax, [ebx*4 + 0x10]
lea eax, [ecx + eax*8 + 8]
mov dword [ebp + 0x68], eax
mov eax, edx
shl eax, 2
mov dword [ebp + 0x60], eax
mov ecx, dword [ebp + 0x68]
xor edx, edx
mov dword [ebp + 0x74], ecx
mov ecx, ebx
shl ecx, 2
cmp ecx, edx
mov dword [ebp + 0x70], edx
mov dword [ebp + 0x6c], edx
mov dword [ebp + 0x44], edx
mov dword [ebp + 0x48], edx
mov dword [ebp + 0x18], edx
jle 0x526517
mov eax, dword [esi + 0xb0]
shl eax, 2
add dword [ebp + 0x64], eax
mov dword [ebp + 0x50], eax
mov eax, dword [ebp + 0x74]
movzx eax, byte [eax]
mov ecx, dword [ebp + 0x14]
movzx ecx, byte [ecx]
mov edx, eax
imul edx, eax
add dword [ebp + 0x44], edx
add dword [ebp + 0x18], eax
mov edx, ecx
imul edx, eax
add dword [ebp + 0x6c], edx
inc dword [ebp + 0x74]
inc dword [ebp + 0x14]
add dword [ebp + 0x48], ecx
mov edx, ecx
imul edx, ecx
add dword [ebp + 0x70], edx
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add dword [ebp + 0x58], eax
dec dword [ebp + 0x50]
jne 0x5264d5
mov eax, dword [ebp + 0x60]
fild dword [ebp + 0x18]
lea ecx, [ebx*4 + 0x10]
add dword [ebp + 0x68], ecx
dec eax
fadd qword [ebp + 0x3c]
mov dword [ebp + 0x60], eax
fstp qword [ebp + 0x3c]
fild dword [ebp + 0x48]
fadd qword [ebp + 0x24]
fstp qword [ebp + 0x24]
fild dword [ebp + 0x44]
fadd qword [ebp + 0x1c]
fstp qword [ebp + 0x1c]
fiadd dword [ebp + 0x70]
fild dword [ebp + 0x6c]
fadd qword [ebp + 0x34]
fstp qword [ebp + 0x34]
jne 0x5264a6
mov ecx, dword [esi + 0x14c]
mov eax, ecx
imul eax, dword [esi + 0xb4]
imul eax, ebx
shl eax, 2
cmp dword [ebp + 0x58], eax
jl 0x526900
fild dword [ebp + 0x64]
fst qword [ebp + 0x54]
fld qword [ebp + 0x1c]
fmul st(1)
fld qword [ebp + 0x3c]
fmul qword [ebp + 0x3c]
fsubp st(1)
fst qword [ebp + 0x5c]
fld st(1)
fmul st(3)
fld qword [ebp + 0x24]
fmul qword [ebp + 0x24]
fsubp st(1)
fmul st(1)
fstp st(3)
fstp st(0)
fstp st(0)
fld qword [0x403bd8]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x5265c1
fld qword [ebp + 0x54]
fmul qword [ebp + 0x34]
fld qword [ebp + 0x24]
fmul qword [ebp + 0x3c]
fsubp st(1)
fld st(1)
fsqrt
fdivp st(1)
fstp st(1)
fld st(0)
fabs
fcomp qword [0x405a78]
fnstsw ax
test ah, 5
jnp 0x526900
fld qword [ebp + 0x5c]
fld qword [0x403bd8]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x5268fe
fld1
fdiv st(1)
fst qword [ebp + 0x5c]
fstp st(1)
fld qword [ebp + 0x54]
fmul qword [ebp + 0x34]
fld qword [ebp + 0x24]
fmul qword [ebp + 0x3c]
fsubp st(1)
fmul st(1)
fstp qword [ebp + 0x4c]
fstp st(0)
fcomp qword [0x403bd8]
fld qword [ebp + 0x4c]
fnstsw ax
test ah, 5
jp 0x526636
fadd qword [0x401be0]
fabs
fcomp qword [0x404270]
fnstsw ax
test ah, 0x41
jne 0x5266a3
jmp 0x526902
fsub qword [0x401be0]
fabs
fcomp qword [0x404570]
fnstsw ax
test ah, 5
jp 0x526671
fld qword [ebp + 0x1c]
sar ecx, 1
fmul qword [ebp + 0x24]
fld qword [ebp + 0x34]
fmul qword [ebp + 0x3c]
fsubp st(1)
fmul qword [ebp + 0x5c]
mov dword [ebp + 0x60], ecx
fild dword [ebp + 0x60]
fcompp
fnstsw ax
test ah, 0x41
je 0x526902
fld qword [ebp + 0x4c]
fmul qword [0x403980]
fsub qword [0x405cd8]
call fcn.005d02c0
cmp eax, 1
mov dword [ebp + 0x74], eax
jge 0x526693
xor eax, eax
inc eax
mov dword [ebp + 0x74], eax
cmp eax, 0x3f
jle 0x52669e
push 0x3f
pop eax
mov dword [ebp + 0x74], eax
cmp eax, 0xffffffce
jne 0x526700
fld qword [0x405980]
and dword [esi + 0x3f0], 0
fstp qword [ebp + 0x4c]
fld qword [0x403970]
fld qword [ebp + 0x24]
fadd qword [ebp + 0x3c]
fdiv qword [ebp + 0x54]
fmul st(1)
fsubr qword [0x403968]
call fcn.005d02c0
push 0x1f
pop ecx
cmp eax, ecx
mov dword [esi + 0x3f4], eax
jg 0x5266e3
push 0xffffffffffffffe0
pop ecx
cmp eax, ecx
jge 0x5266e9
mov dword [esi + 0x3f4], ecx
mov eax, dword [esi + 0x3f4]
add eax, eax
mov ecx, 0xff
sub ecx, eax
mov dword [ebp + 0x60], ecx
fild dword [ebp + 0x60]
jmp 0x52675b
fld qword [0x403970]
mov dword [esi + 0x3f0], eax
fild dword [ebp + 0x74]
fmul qword [case.default.0x405cc7]
fadd st(1)
fst qword [ebp + 0x4c]
fmul qword [ebp + 0x3c]
fsubr qword [ebp + 0x24]
fdiv qword [ebp + 0x54]
fcom qword [0x403bd8]
fnstsw ax
test ah, 0x41
jne 0x526734
fadd st(1)
jmp 0x526736
fsub st(1)
call fcn.005d02c0
push 0x1f
pop ecx
cmp eax, ecx
mov dword [esi + 0x3f4], eax
jg 0x52674f
push 0xffffffffffffffe0
pop ecx
cmp eax, ecx
jge 0x526755
mov dword [esi + 0x3f4], ecx
fild dword [esi + 0x3f4]
xor ebx, ebx
mov dword [ebp + 0x74], ebx
mov edi, 0xff
fild dword [ebp + 0x74]
fmul qword [ebp + 0x4c]
fadd st(1)
fadd st(2)
call fcn.005d02c0
cmp eax, edi
jle 0x52677c
mov eax, edi
jmp 0x526782
cmp eax, ebx
jge 0x526782
xor eax, eax
mov ecx, dword [ebp + 0x74]
inc dword [ebp + 0x74]
cmp dword [ebp + 0x74], 0x100
mov dword [ebp + ecx*4 - 0xc2c], eax
jl 0x526765
cmp dword [ebp + 0x30], ebx
fstp st(0)
fldz
mov dword [ebp + 0x64], ebx
fstp qword [ebp + 0x1c]
mov dword [ebp + 0x74], ebx
fldz
fstp qword [ebp + 0x34]
fldz
fldz
jle 0x52689d
xor eax, eax
mov dword [ebp + 0x60], eax
mov ecx, dword [ebp + 0x74]
and ecx, 0xf
mov ecx, dword [ebp + ecx*4 - 0x2c]
cmp ecx, dword [ebp + 0x2c]
mov dword [ebp + 0x6c], ebx
mov dword [ebp + 0x70], ebx
mov dword [ebp + 0x68], ebx
mov dword [ebp + 0x58], ebx
jge 0x52686b
mov edx, dword [esi + 0x128]
imul edx, dword [ebp + 0x74]
mov edi, dword [esi + 0xe8]
add edx, edi
mov dword [ebp + 0x50], edx
mov edx, dword [esi + 0x16ac]
add edx, eax
mov eax, dword [ebp + 0x2c]
sub eax, ecx
dec eax
mov dword [ebp + 0x44], edx
mov edx, dword [ebp + 0x64]
shr eax, 4
lea eax, [edx + eax + 1]
mov dword [ebp + 0x64], eax
mov eax, dword [ebp + 0x50]
movzx edi, byte [eax + ecx]
mov eax, dword [ebp + 0x44]
movzx ebx, byte [eax + ecx]
mov eax, edi
sub eax, ebx
cdq
xor eax, edx
sub eax, edx
lea eax, [ebp + eax*4 - 0x42c]
inc dword [eax]
mov eax, dword [ebp + edi*4 - 0xc2c]
mov dword [ebp + 0x48], eax
mov eax, edi
imul eax, edi
add dword [ebp + 0x6c], eax
add dword [ebp + 0x58], edi
add dword [ebp + 0x68], ebx
mov eax, ebx
imul eax, edi
add dword [ebp + 0x70], eax
mov eax, dword [ebp + 0x48]
sub eax, ebx
cdq
xor eax, edx
sub eax, edx
lea eax, [ebp + eax*4 - 0x82c]
inc dword [eax]
add ecx, 0x10
cmp ecx, dword [ebp + 0x2c]
jl 0x52680e
xor ebx, ebx
fiadd dword [ebp + 0x58]
inc dword [ebp + 0x74]
mov eax, dword [ebp + 0x60]
fild dword [ebp + 0x68]
add eax, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x74]
cmp ecx, dword [ebp + 0x30]
mov dword [ebp + 0x60], eax
faddp st(2)
fild dword [ebp + 0x6c]
fadd qword [ebp + 0x1c]
fstp qword [ebp + 0x1c]
fild dword [ebp + 0x70]
fadd qword [ebp + 0x34]
fstp qword [ebp + 0x34]
jl 0x5267bc
mov eax, dword [esi + 0x14c]
xor edi, edi
shl eax, 2
mov ecx, 0xff
mov dword [ebp + 0x30], eax
mov eax, dword [ebp + 0x30]
cmp ecx, eax
jg 0x5268b9
mov eax, ecx
mov edx, dword [ebp + ecx*4 - 0x42c]
imul edx, eax
add edi, edx
mov edx, dword [ebp + ecx*4 - 0x82c]
imul edx, eax
add ebx, edx
dec ecx
test ecx, ecx
jg 0x5268b0
mov eax, dword [esi + 0x3f4]
cdq
xor eax, edx
sub eax, edx
add eax, 0x100
imul eax, ebx
mov ecx, edi
shl ecx, 8
cmp eax, ecx
jge 0x5268fc
imul ebx, ebx, 0xa
imul edi, edi, 9
cmp ebx, edi
jle 0x526909
fstp st(0)
fstp st(0)
fstp st(0)
xor eax, eax
jmp 0x5269c7
fild dword [ebp + 0x64]
xor edi, edi
fld qword [ebp + 0x1c]
inc edi
mov dword [esi + 0x3ec], edi
fmul st(1)
fld st(2)
fmul st(3)
fsubp st(1)
fdivr qword [0x401be0]
fld st(1)
fmul qword [ebp + 0x34]
fld st(4)
fmul st(4)
fsubp st(1)
fmulp st(1)
fcom qword [0x403bd8]
fnstsw ax
test ah, 0x41
jne 0x5269bb
fmul qword [0x403980]
fsub qword [0x405cd8]
call fcn.005d02c0
cmp eax, edi
mov dword [ebp + 0x74], eax
jge 0x52695d
mov eax, edi
mov dword [ebp + 0x74], eax
cmp eax, 0x3f
jle 0x526968
push 0x3f
pop eax
mov dword [ebp + 0x74], eax
fild dword [ebp + 0x74]
mov dword [esi + 0x3f0], eax
fmul qword [case.default.0x405cc7]
fadd st(4)
fmul st(2)
fsubr st(3)
fdiv st(1)
fstp st(3)
fstp st(0)
fstp st(0)
fcom qword [0x403bd8]
fnstsw ax
test ah, 0x41
jne 0x526996
fsub st(1)
jmp 0x526998
fadd st(1)
call fcn.005d02c0
fstp st(0)
push 0x1f
pop ecx
cmp eax, ecx
mov dword [esi + 0x3f4], eax
jg 0x5269b3
push 0xffffffffffffffe0
pop ecx
cmp eax, ecx
jge 0x5269c5
mov dword [esi + 0x3f4], ecx
jmp 0x5269c5
fstp st(0)
fstp st(0)
fstp st(0)
fstp st(0)
fstp st(0)
mov eax, edi
pop edi
pop ebx
pop esi
add ebp, 0x78
leave
ret