Function at 0x53ee50
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, 0x6054d8
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 0x53f2e8
mov edi, dword [ebx + 0x80]
mov dword [esp + 0x2c], edi
nop
test edi, edi
je 0x53eee4
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 0x53eec0
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 0x53eea0
test ecx, ecx
je 0x53f2e8
xor eax, eax
cmp ecx, 1
jle 0x53ef08
nop dword [eax]
shr ecx, 1
inc eax
cmp ecx, 1
ja 0x53ef00
mov ecx, dword [ebp + 0xc]
add eax, 0xfffffffb
add ecx, 0x1c
mov dword [esp + 0x28], ecx
mov dword [ecx], eax
test eax, eax
je 0x53f300
push ebx
lea edi, [eax - 1]
mov dword [esp + 0x30], 2
call fcn.00541280
push 0x2e
push 0
push 0x12
push ebx
call fcn.00541400
push 3
push 0
push 0x11
push ebx
call fcn.00541400
push 4
push 0
push 0
push ebx
call fcn.00541400
mov eax, dword [ebp + 0xc]
push dword [eax]
push ebx
call fcn.005410b0
add esp, 0x3c
mov dword [esp + 0x30], 0
test edi, edi
js 0x53f286
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 [0x5bfbe0]
mov dword [esp + 0x3c], edx
xor edx, edx
movsd qword [esp + 0x58], xmm0
movsd xmm0, qword [0x6063b8]
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 0x53eff2
cmp esi, 2
jae 0x53eff2
test cl, 1
je 0x53eff2
mov al, 1
jmp 0x53eff4
xor al, al
cmp dword [esp + 0x30], 0
mov byte [esp + 0x1c], al
jbe 0x53f025
mov ebx, dword [esp + 0x20]
test byte [ebx + edx - 4], 1
mov ebx, dword [ebp + 8]
je 0x53f025
push ebx
cmp al, 1
jne 0x53f019
call fcn.00540c80
jmp 0x53f01e
call fcn.00541310
mov ecx, dword [esp + 0x18]
add esp, 4
mov eax, esi
sub eax, 0
je 0x53f06d
sub eax, 1
je 0x53f058
sub eax, 1
jne 0x53f081
push ecx
lea eax, [esp + 0x28]
push eax
push edi
push ebx
call fcn.0053d900
add esp, 0x10
test byte [esp + 0x14], 0x20
je 0x53f081
push ebx
call fcn.00541350
add esp, 4
jmp 0x53f081
push dword [esp + 0x1c]
lea eax, [esp + 0x28]
push eax
push edi
push ebx
call fcn.0053ddf0
add esp, 0x10
jmp 0x53f081
push ecx
push dword [esp + 0x20]
lea eax, [esp + 0x2c]
push eax
push edi
push ebx
call fcn.0053e3b0
add esp, 0x14
movsd xmm0, qword [esp + 0x58]
mov ecx, dword [ebp + 0x34]
movsd qword [esp + 0x48], xmm0
test ecx, ecx
je 0x53f0a7
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp + 0x38]
jae 0x53f0a7
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 0x53f0ba
call fcn.0052b080
jmp 0x53f0bf
call fcn.0052b0c0
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 0x53f132
test edi, edi
je 0x53f19f
mov ecx, dword [esp + 0x14]
test cl, 4
jne 0x53f1a3
test cl, 1
je 0x53f15a
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
add eax, 0xfffffffc
cmp edi, eax
jne 0x53f154
cmp esi, 2
jne 0x53f15a
jmp 0x53f1a3
jge 0x53f15a
test esi, esi
jne 0x53f1a3
cmp byte [esp + 0x1c], 1
jne 0x53f174
mov eax, ecx
and eax, 0x10
push eax
push ebx
call fcn.00540c50
add esp, 8
mov esi, eax
jmp 0x53f179
mov esi, 3
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
push ebx
and dword [ecx + eax + 0x14], 0xfffffffe
call fcn.005410f0
mov ecx, dword [esp + 0x2c]
add esp, 4
add eax, esi
mov dword [esp + 0x28], ecx
mov esi, dword [esp + 0x2c]
jmp 0x53f1e5
mov ecx, dword [esp + 0x14]
mov eax, ecx
and eax, 0x10
cmp byte [esp + 0x1c], 1
jne 0x53f1bb
push eax
push ebx
call fcn.00540bd0
add esp, 8
jmp 0x53f1cf
push ebx
test eax, eax
je 0x53f1c7
call fcn.00540ed0
jmp 0x53f1cc
call fcn.00540f90
add esp, 4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
push ebx
or dword [ecx + eax + 0x14], 1
call fcn.005410f0
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 0x53f20b
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 0x53f21f
push ebx
call fcn.005411e0
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 0x53efd1
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x30]
mov dword [eax + 0x30], ecx
test ecx, ecx
je 0x53f29c
push ebx
call fcn.005410f0
mov esi, eax
add esp, 4
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x30]
test ecx, ecx
je 0x53f29c
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 0x53f279
mov dword [eax + edx], esi
jmp 0x53f27b
mov esi, edi
test ecx, ecx
jne 0x53f267
mov eax, dword [ebp + 0xc]
mov ecx, ebx
jmp 0x53f29f
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0x30], 0
add ecx, 8
mov dword [esp + 0x18], ecx
jmp 0x53f29f
lea ecx, [eax + 8]
xor edx, edx
cmp dword [eax + 0x30], edx
jbe 0x53f30a
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 0x53f2c3
mov eax, dword [esp + 0x18]
dec ecx
mov dword [ebx], ecx
mov edi, dword [eax]
test edx, edx
jne 0x53f2cb
xor eax, eax
jmp 0x53f2cf
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 0x53f2a6
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