Function at 0x53a660
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [ebp + 0x10]
xor edx, edx
push ebx
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
shl eax, 9
xor ecx, ecx
add eax, 0x6014d8
movsd qword [esp + 0x48], xmm0
push esi
mov dword [ebx + 0x6c], eax
mov eax, dword [ebx + 0x7c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], edx
push edi
test eax, eax
je 0x53aaf8
mov edi, dword [ebx + 0x80]
mov dword [esp + 0x2c], edi
nop
test edi, edi
je 0x53a6f4
mov eax, dword [ebx + 0x8c]
shl eax, 2
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x74]
mov ebx, dword [esp + 0x30]
lea esi, [eax + edx*4]
nop dword [eax + eax]
mov eax, dword [esi]
cdq
xor eax, edx
sub eax, edx
cmp ecx, eax
cmovg eax, ecx
add esi, ebx
mov ecx, eax
sub edi, 1
jne 0x53a6d0
mov ebx, dword [ebp + 8]
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
inc edx
mov dword [esp + 0x34], edx
cmp edx, eax
jb 0x53a6b0
test ecx, ecx
je 0x53aaf8
xor eax, eax
cmp ecx, 1
jle 0x53a718
nop dword [eax]
shr ecx, 1
inc eax
cmp ecx, 1
ja 0x53a710
mov ecx, dword [ebp + 0xc]
add eax, 0xfffffffb
add ecx, 0x1c
mov dword [esp + 0x28], ecx
mov dword [ecx], eax
test eax, eax
je 0x53ab10
push ebx
lea edi, [eax - 1]
mov dword [esp + 0x30], 2
call fcn.0053ca90
push 0x2e
push 0
push 0x12
push ebx
call fcn.0053cc10
push 3
push 0
push 0x11
push ebx
call fcn.0053cc10
push 4
push 0
push 0
push ebx
call fcn.0053cc10
mov eax, dword [ebp + 0xc]
push dword [eax]
push ebx
call fcn.0053c8c0
add esp, 0x3c
mov dword [esp + 0x30], 0
test edi, edi
js 0x53aa96
movsd xmm0, qword [ebp + 0x20]
mov ecx, edi
mov esi, dword [esp + 0x2c]
mov eax, 1
rol eax, cl
mov ecx, dword [ebp + 0x30]
mov dword [esp + 0x38], ecx
mov ecx, dword [ebp + 0x28]
mov edx, ecx
mov dword [esp + 0x34], eax
and edx, 2
mov eax, dword [ebp + 0xc]
movsd qword [esp + 0x60], xmm0
add eax, 8
movsd xmm0, qword [0x5bbbe0]
mov dword [esp + 0x3c], edx
xor edx, edx
movsd qword [esp + 0x58], xmm0
movsd xmm0, qword [0x6023b8]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
movsd qword [esp + 0x68], xmm0
mov eax, dword [eax]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
sub eax, 4
cmp edi, eax
jge 0x53a802
cmp esi, 2
jae 0x53a802
test cl, 1
je 0x53a802
mov al, 1
jmp 0x53a804
xor al, al
cmp dword [esp + 0x30], 0
mov byte [esp + 0x1c], al
jbe 0x53a835
mov ebx, dword [esp + 0x20]
test byte [ebx + edx - 4], 1
mov ebx, dword [ebp + 8]
je 0x53a835
push ebx
cmp al, 1
jne 0x53a829
call fcn.0053c490
jmp 0x53a82e
call fcn.0053cb20
mov ecx, dword [esp + 0x18]
add esp, 4
mov eax, esi
sub eax, 0
je 0x53a87d
sub eax, 1
je 0x53a868
sub eax, 1
jne 0x53a891
push ecx
lea eax, [esp + 0x28]
push eax
push edi
push ebx
call fcn.00539110
add esp, 0x10
test byte [esp + 0x14], 0x20
je 0x53a891
push ebx
call fcn.0053cb60
add esp, 4
jmp 0x53a891
push dword [esp + 0x1c]
lea eax, [esp + 0x28]
push eax
push edi
push ebx
call fcn.00539600
add esp, 0x10
jmp 0x53a891
push ecx
push dword [esp + 0x20]
lea eax, [esp + 0x2c]
push eax
push edi
push ebx
call fcn.00539bc0
add esp, 0x14
movsd xmm0, qword [esp + 0x58]
mov ecx, dword [ebp + 0x34]
movsd qword [esp + 0x48], xmm0
test ecx, ecx
je 0x53a8b7
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp + 0x38]
jae 0x53a8b7
movsd xmm0, qword [ecx + eax*8]
movsd qword [esp + 0x48], xmm0
cmp dword [ebp + 0x1c], 1
push dword [ebp + 0x10]
push dword [ebp + 0x18]
jne 0x53a8ca
call fcn.00526890
jmp 0x53a8cf
call fcn.005268d0
movd xmm0, dword [esp + 0x3c]
add esp, 8
movd xmm2, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
fstp qword [esp + 0x40]
movsd xmm1, qword [esp + 0x40]
mulsd xmm1, qword [esp + 0x48]
cvtdq2pd xmm0, xmm0
mulsd xmm1, qword [esp + 0x60]
cvtdq2pd xmm2, xmm2
mulsd xmm1, xmm0
mulsd xmm2, xmm1
mulsd xmm2, qword [esp + 0x68]
mulsd xmm2, xmm1
movaps xmm0, xmm2
addsd xmm2, qword [eax + 0x20]
addsd xmm0, qword [esp + 0x50]
movsd qword [eax + 0x20], xmm2
mov eax, dword [esp + 0x10]
movsd qword [esp + 0x50], xmm0
movsd qword [ecx + eax + 8], xmm0
cmp esi, 2
jne 0x53a942
test edi, edi
je 0x53a9af
mov ecx, dword [esp + 0x14]
test cl, 4
jne 0x53a9b3
test cl, 1
je 0x53a96a
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
add eax, 0xfffffffc
cmp edi, eax
jne 0x53a964
cmp esi, 2
jne 0x53a96a
jmp 0x53a9b3
jge 0x53a96a
test esi, esi
jne 0x53a9b3
cmp byte [esp + 0x1c], 1
jne 0x53a984
mov eax, ecx
and eax, 0x10
push eax
push ebx
call fcn.0053c460
add esp, 8
mov esi, eax
jmp 0x53a989
mov esi, 3
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
push ebx
and dword [ecx + eax + 0x14], 0xfffffffe
call fcn.0053c900
mov ecx, dword [esp + 0x2c]
add esp, 4
add eax, esi
mov dword [esp + 0x28], ecx
mov esi, dword [esp + 0x2c]
jmp 0x53a9f5
mov ecx, dword [esp + 0x14]
mov eax, ecx
and eax, 0x10
cmp byte [esp + 0x1c], 1
jne 0x53a9cb
push eax
push ebx
call fcn.0053c3e0
add esp, 8
jmp 0x53a9df
push ebx
test eax, eax
je 0x53a9d7
call fcn.0053c6e0
jmp 0x53a9dc
call fcn.0053c7a0
add esp, 4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
push ebx
or dword [ecx + eax + 0x14], 1
call fcn.0053c900
add esp, 4
mov edx, dword [esp + 0x10]
inc esi
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x2c], esi
mov dword [ecx + edx], eax
cmp esi, 3
jne 0x53aa1b
mov eax, dword [esp + 0x34]
xor esi, esi
dec edi
mov dword [esp + 0x2c], esi
ror eax, 1
mov dword [esp + 0x34], eax
cmp dword [esp + 0x3c], 0
je 0x53aa2f
push ebx
call fcn.0053c9f0
mov edx, dword [esp + 0x14]
add esp, 4
inc dword [esp + 0x30]
add edx, 0x18
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], edx
test edi, edi
jns 0x53a7e1
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x30]
mov dword [eax + 0x30], ecx
test ecx, ecx
je 0x53aaac
push ebx
call fcn.0053c900
mov esi, eax
add esp, 4
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x30]
test ecx, ecx
je 0x53aaac
mov ebx, dword [esp + 0x18]
lea edx, [ecx + ecx*2]
shl edx, 3
mov eax, dword [ebx]
lea edx, [edx - 0x18]
dec ecx
mov edi, dword [eax + edx]
cmp edi, esi
jbe 0x53aa89
mov dword [eax + edx], esi
jmp 0x53aa8b
mov esi, edi
test ecx, ecx
jne 0x53aa77
mov eax, dword [ebp + 0xc]
mov ecx, ebx
jmp 0x53aaaf
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0x30], 0
add ecx, 8
mov dword [esp + 0x18], ecx
jmp 0x53aaaf
lea ecx, [eax + 8]
xor edx, edx
cmp dword [eax + 0x30], edx
jbe 0x53ab1a
mov edi, dword [ecx]
lea esi, [edx + edx*2]
mov ecx, dword [edi + esi*8]
mov eax, dword [eax]
lea ebx, [edi + esi*8]
cmp byte [ecx + eax - 1], 0xff
jne 0x53aad3
mov eax, dword [esp + 0x18]
dec ecx
mov dword [ebx], ecx
mov edi, dword [eax]
test edx, edx
jne 0x53aadb
xor eax, eax
jmp 0x53aadf
mov eax, dword [edi + esi*8 - 0x18]
sub ecx, eax
inc edx
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x10], ecx
mov ecx, dword [esp + 0x18]
cmp edx, dword [eax + 0x30]
jb 0x53aab6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x1c], 0
mov dword [eax + 0x30], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x30], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret