Function at 0x547640
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 0x547b1b
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 0x54793b
push 0x80
push 0x647d18
push ecx
mov dword [ebp - 0xd4], 0x80
call fcn.005883c0
push dword [ebp - 0xd0]
lea eax, [edi + 0xd0]
push eax
call fcn.00588990
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 0x54779e
test esi, esi
je 0x547905
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 0x547780
jmp 0x5478f9
mov dword [ebp - 0xac], ebx
test esi, esi
je 0x547905
mov edx, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0xb8]
cmp esi, 0x20
jb 0x5478aa
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 0x5477ea
lea eax, [edx - 1]
add eax, esi
cmp eax, ecx
jae 0x5478aa
mov eax, dword [ebp - 0xa8]
lea ebx, [eax - 1]
add ebx, esi
mov dword [ebp - 0xc4], ebx
cmp edx, ebx
mov ebx, 0
ja 0x547810
cmp dword [ebp - 0xc0], eax
jae 0x5478b0
cmp ecx, dword [ebp - 0xc4]
ja 0x547829
lea eax, [ecx - 1]
add eax, esi
cmp eax, dword [ebp - 0xa8]
jae 0x5478aa
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 0x547850
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 0x547905
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 0x5478e0
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.005e1e60
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 0x547a3e
push 0x40
push 0x647d18
push ecx
mov dword [ebp - 0xd4], 0x40
call fcn.005883c0
push dword [ebp - 0xd0]
lea eax, [edi + 0xd0]
push eax
call fcn.00588990
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.005889f0
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 0x5479f2
lea eax, [edi + 0x20]
push eax
push edi
push esi
push dword [ebp - 0xa8]
push ebx
call fcn.005883c0
push esi
lea eax, [edi + 0xd0]
push ebx
push eax
call fcn.005889f0
jmp 0x547a17
push esi
push dword [ebp - 0xa8]
lea eax, [edi + 0xd0]
push eax
call fcn.005889f0
lea eax, [edi + 0x20]
push eax
push edi
push esi
push dword [ebp - 0xa8]
push ebx
call fcn.005883c0
add esp, 0x20
mov eax, esi
neg eax
and eax, 0xf
push eax
lea eax, [edi + 0xd0]
push 0x647d18
push eax
call fcn.005889f0
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.005889f0
push dword [ebp - 0xd4]
push dword [ebp - 0xd0]
call fcn.00537ea0
mov eax, dword [ebp - 0xcc]
add esp, 0x14
cmp dword [eax + 8], 0
lea eax, [edi + 0x84]
jne 0x547aa6
mov eax, dword [ebp - 0xbc]
push eax
push ebx
call fcn.00588910
mov eax, dword [ebp - 0xcc]
add esp, 8
mov dword [edi + 0xc8], 0xffffffff
cmp dword [eax + 8], 0
je 0x547ae7
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.0049ae07
mov esp, ebp
pop ebp
ret
push 0x10
push dword [ebp - 0xc8]
push dword [ebp - 0xbc]
call fcn.00548630
add esp, 0xc
test eax, eax
je 0x547ad0
mov ecx, dword [ebp - 0xd8]
sub esi, ecx
add esi, 0x10
lea eax, [ecx - 0x10]
push eax
push 0
push esi
call fcn.005e1e60
add esp, 0xc
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049ae07
mov esp, ebp
pop ebp
ret