Function at 0x546f50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
mov eax, dword [0x6ba00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [edx + 0x60]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xcc], edx
mov esi, dword [edi + 0xc8]
mov dword [ebp - 0xd8], ecx
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0xc8], esi
lea eax, [esi + 0x10]
cmp ecx, eax
jne 0x54742b
lea eax, [ebp - 0xa4]
mov dword [edi + 0x20], 0
neg eax
lea ecx, [ebp - 0xa4]
and eax, 0xf
add ecx, eax
mov dword [ebp - 0xd0], ecx
lea eax, [ecx + 0x40]
mov dword [ebp - 0xb0], eax
lea eax, [ecx + 0x30]
mov dword [ebp - 0xbc], eax
lea eax, [edi + 0x20]
push eax
push edi
cmp esi, 0x40
ja 0x54724b
push 0x80
push 0x647d18
push ecx
mov dword [ebp - 0xd4], 0x80
call fcn.00587cb0
push dword [ebp - 0xd0]
lea eax, [edi + 0xd0]
push eax
call fcn.00588280
mov eax, dword [ebp - 0xbc]
xor ebx, ebx
movups xmm0, xmmword [edi + 0x94]
mov dword [edi + 0x70], 0
add esp, 0x1c
movups xmmword [eax], xmm0
mov eax, dword [ebp - 0xcc]
mov dword [edi + 0xa8], 0xd
mov dword [edi + 0xac], 0
mov dword [edi + 0xb0], esi
mov dword [edi + 0xb4], 0
cmp dword [eax + 8], ebx
je 0x5470ae
test esi, esi
je 0x547215
mov eax, dword [ebp - 0xb0]
mov edx, eax
mov edi, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xb8]
sub edi, eax
sub ecx, eax
mov dword [ebp - 0xac], esi
mov ebx, ecx
nop dword [eax]
movzx ecx, byte [edi + edx]
lea edx, [edx + 1]
movzx eax, byte [edx - 1]
xor ecx, eax
mov byte [edx - 1], cl
mov byte [ebx + edx - 1], cl
sub esi, 1
jne 0x547090
jmp 0x547209
mov dword [ebp - 0xac], ebx
test esi, esi
je 0x547215
mov edx, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0xb8]
cmp esi, 0x20
jb 0x5471ba
lea eax, [edx - 1]
xor ebx, ebx
add eax, esi
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xc0], eax
lea eax, [ecx - 1]
add eax, esi
cmp edx, eax
ja 0x5470fa
lea eax, [edx - 1]
add eax, esi
cmp eax, ecx
jae 0x5471ba
mov eax, dword [ebp - 0xa8]
lea ebx, [eax - 1]
add ebx, esi
mov dword [ebp - 0xc4], ebx
cmp edx, ebx
mov ebx, 0
ja 0x547120
cmp dword [ebp - 0xc0], eax
jae 0x5471c0
cmp ecx, dword [ebp - 0xc4]
ja 0x547139
lea eax, [ecx - 1]
add eax, esi
cmp eax, dword [ebp - 0xa8]
jae 0x5471ba
mov eax, esi
lea edi, [ecx + 0x10]
and eax, 0xffffffe0
mov dword [ebp - 0xac], eax
mov eax, ecx
sub eax, edx
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xa8]
sub eax, ecx
mov ecx, edx
mov esi, eax
nop dword [eax]
mov eax, dword [ebp - 0xc0]
lea edi, [edi + 0x20]
movups xmm0, xmmword [ecx]
add eax, ecx
add ebx, 0x20
movups xmm1, xmmword [eax + esi]
pxor xmm0, xmm1
movups xmmword [eax], xmm0
movups xmm2, xmmword [esi + edi - 0x20]
movups xmmword [ecx], xmm1
movups xmm0, xmmword [ecx + 0x10]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ecx + 0x10], xmm2
add ecx, 0x20
movups xmmword [edi - 0x20], xmm1
cmp ebx, dword [ebp - 0xac]
jb 0x547160
mov esi, dword [ebp - 0xc8]
mov edi, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0xb8]
mov dword [ebp - 0xac], ebx
mov eax, dword [ebp - 0xa8]
cmp ebx, esi
jae 0x547215
sub eax, ecx
add ebx, edx
mov dword [ebp - 0xc8], eax
sub ecx, edx
mov eax, dword [ebp - 0xac]
sub esi, eax
mov edi, dword [ebp - 0xc8]
add eax, esi
mov dword [ebp - 0xc4], ecx
mov dword [ebp - 0xac], eax
nop dword [eax]
mov al, byte [ebx]
add ecx, ebx
mov dl, byte [edi + ecx]
xor al, dl
mov byte [ebx], dl
inc ebx
mov byte [ecx], al
mov ecx, dword [ebp - 0xc4]
sub esi, 1
jne 0x5471f0
mov ebx, dword [ebp - 0xac]
mov edi, dword [ebp - 0xb4]
mov eax, dword [ebp - 0xb0]
mov esi, ebx
neg esi
add eax, ebx
and esi, 0xf
push esi
push 0
push eax
call fcn.005e1780
mov ecx, dword [ebp - 0xb0]
lea eax, [esi + ebx]
add esp, 0xc
add ecx, eax
add eax, 0x10
mov esi, ebx
mov dword [ebp - 0xb4], eax
jmp 0x54734e
push 0x40
push 0x647d18
push ecx
mov dword [ebp - 0xd4], 0x40
call fcn.00587cb0
push dword [ebp - 0xd0]
lea eax, [edi + 0xd0]
push eax
call fcn.00588280
push 0x10
lea eax, [edi + 0x94]
mov dword [edi + 0x20], 1
push eax
lea eax, [edi + 0xd0]
mov dword [edi + 0x70], 0
push eax
call fcn.005882e0
mov eax, dword [ebp - 0xb0]
add esp, 0x28
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xcc]
mov dword [edi + 0xa8], 0xd
mov dword [edi + 0xac], 0
mov dword [edi + 0xb0], esi
mov dword [edi + 0xb4], 0
cmp dword [eax + 8], 0
mov dword [ebp - 0xb4], 0
je 0x547302
lea eax, [edi + 0x20]
push eax
push edi
push esi
push dword [ebp - 0xa8]
push ebx
call fcn.00587cb0
push esi
lea eax, [edi + 0xd0]
push ebx
push eax
call fcn.005882e0
jmp 0x547327
push esi
push dword [ebp - 0xa8]
lea eax, [edi + 0xd0]
push eax
call fcn.005882e0
lea eax, [edi + 0x20]
push eax
push edi
push esi
push dword [ebp - 0xa8]
push ebx
call fcn.00587cb0
add esp, 0x20
mov eax, esi
neg eax
and eax, 0xf
push eax
lea eax, [edi + 0xd0]
push 0x647d18
push eax
call fcn.005882e0
mov ecx, dword [ebp - 0xb0]
add esp, 0xc
mov ebx, esi
mov eax, dword [ebp - 0xb4]
mov edx, dword [ebp - 0xa8]
add eax, 0x10
movups xmm0, xmmword [edi + 0xa8]
add edx, esi
mov esi, dword [ebp - 0xb8]
push eax
push dword [ebp - 0xbc]
add esi, ebx
mov dword [ebp - 0xc8], edx
lea ebx, [edi + 0xd0]
push ebx
movups xmmword [ecx], xmm0
call fcn.005882e0
push dword [ebp - 0xd4]
push dword [ebp - 0xd0]
call fcn.00537800
mov eax, dword [ebp - 0xcc]
add esp, 0x14
cmp dword [eax + 8], 0
lea eax, [edi + 0x84]
jne 0x5473b6
mov eax, dword [ebp - 0xbc]
push eax
push ebx
call fcn.00588200
mov eax, dword [ebp - 0xcc]
add esp, 8
mov dword [edi + 0xc8], 0xffffffff
cmp dword [eax + 8], 0
je 0x5473f7
movups xmm0, xmmword [edi + 0x84]
movups xmmword [esi], xmm0
mov eax, dword [ebp - 0xd8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a6f7
mov esp, ebp
pop ebp
ret
push 0x10
push dword [ebp - 0xc8]
push dword [ebp - 0xbc]
call fcn.00547f40
add esp, 0xc
test eax, eax
je 0x5473e0
mov ecx, dword [ebp - 0xd8]
sub esi, ecx
add esi, 0x10
lea eax, [ecx - 0x10]
push eax
push 0
push esi
call fcn.005e1780
add esp, 0xc
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049a6f7
mov esp, ebp
pop ebp
ret