Function at 0x546910
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
mov eax, dword [0x6b900c]
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 0x546deb
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 0x546c0b
push 0x80
push 0x646d18
push ecx
mov dword [ebp - 0xd4], 0x80
call fcn.00587660
push dword [ebp - 0xd0]
lea eax, [edi + 0xd0]
push eax
call fcn.00587c30
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 0x546a6e
test esi, esi
je 0x546bd5
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 0x546a50
jmp 0x546bc9
mov dword [ebp - 0xac], ebx
test esi, esi
je 0x546bd5
mov edx, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0xb8]
cmp esi, 0x20
jb 0x546b7a
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 0x546aba
lea eax, [edx - 1]
add eax, esi
cmp eax, ecx
jae 0x546b7a
mov eax, dword [ebp - 0xa8]
lea ebx, [eax - 1]
add ebx, esi
mov dword [ebp - 0xc4], ebx
cmp edx, ebx
mov ebx, 0
ja 0x546ae0
cmp dword [ebp - 0xc0], eax
jae 0x546b80
cmp ecx, dword [ebp - 0xc4]
ja 0x546af9
lea eax, [ecx - 1]
add eax, esi
cmp eax, dword [ebp - 0xa8]
jae 0x546b7a
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 0x546b20
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 0x546bd5
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 0x546bb0
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.005e1180
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 0x546d0e
push 0x40
push 0x646d18
push ecx
mov dword [ebp - 0xd4], 0x40
call fcn.00587660
push dword [ebp - 0xd0]
lea eax, [edi + 0xd0]
push eax
call fcn.00587c30
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.00587c90
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 0x546cc2
lea eax, [edi + 0x20]
push eax
push edi
push esi
push dword [ebp - 0xa8]
push ebx
call fcn.00587660
push esi
lea eax, [edi + 0xd0]
push ebx
push eax
call fcn.00587c90
jmp 0x546ce7
push esi
push dword [ebp - 0xa8]
lea eax, [edi + 0xd0]
push eax
call fcn.00587c90
lea eax, [edi + 0x20]
push eax
push edi
push esi
push dword [ebp - 0xa8]
push ebx
call fcn.00587660
add esp, 0x20
mov eax, esi
neg eax
and eax, 0xf
push eax
lea eax, [edi + 0xd0]
push 0x646d18
push eax
call fcn.00587c90
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.00587c90
push dword [ebp - 0xd4]
push dword [ebp - 0xd0]
call fcn.00537190
mov eax, dword [ebp - 0xcc]
add esp, 0x14
cmp dword [eax + 8], 0
lea eax, [edi + 0x84]
jne 0x546d76
mov eax, dword [ebp - 0xbc]
push eax
push ebx
call fcn.00587bb0
mov eax, dword [ebp - 0xcc]
add esp, 8
mov dword [edi + 0xc8], 0xffffffff
cmp dword [eax + 8], 0
je 0x546db7
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.0049a127
mov esp, ebp
pop ebp
ret
push 0x10
push dword [ebp - 0xc8]
push dword [ebp - 0xbc]
call fcn.00547900
add esp, 0xc
test eax, eax
je 0x546da0
mov ecx, dword [ebp - 0xd8]
sub esi, ecx
add esi, 0x10
lea eax, [ecx - 0x10]
push eax
push 0
push esi
call fcn.005e1180
add esp, 0xc
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049a127
mov esp, ebp
pop ebp
ret