Function at 0x554596
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
mov edi, edx
mov dword [ebp - 0x14], ecx
mov edx, dword [ebx + 0x1c]
mov esi, ecx
test edx, edx
je 0x55485d
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x10]
add eax, 0xfffffffc
mov dword [ebp - 0x18], eax
shr edi, 2
mov eax, edi
mov edi, dword [ebx + 8]
shl eax, 2
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0xc]
and eax, 0xfffffffc
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0x14]
and eax, 0xfffffffc
mov dword [ebp - 0x34], eax
dec edx
mov dword [ebx + 0x1c], edx
xor edx, edx
cmp byte [0x7a41d1], dl
mov eax, dword [ebx + 0x18]
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], eax
je 0x55474f
mov eax, esi
or eax, edi
or eax, ecx
test al, 0xf
mov eax, dword [ebp - 0x10]
jne 0x5546b1
add eax, 0xfffffff8
js 0x55474f
lea edx, [edi + 0x10]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x1c], edx
add eax, 8
mov edx, esi
shr eax, 3
sub edx, edi
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], edx
mov edx, ecx
sub edx, edi
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
mov edx, esi
mov esi, dword [ebp - 0x1c]
sub edx, ecx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], edx
mov edx, eax
shl edx, 3
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0xc]
movaps xmm1, xmmword [esi - 0x10]
movaps xmm4, xmmword [edi + esi]
movaps xmm0, xmm1
movaps xmm3, xmmword [esi]
movaps xmm2, xmmword [edx + eax]
pxor xmm0, xmm2
pcmpgtd xmm1, xmm2
pand xmm0, xmm1
pxor xmm0, xmm2
movaps xmmword [eax], xmm0
movaps xmm0, xmm3
pxor xmm0, xmm4
pcmpgtd xmm3, xmm4
pand xmm0, xmm3
add eax, 0x20
sub dword [ebp - 8], 1
pxor xmm0, xmm4
movaps xmmword [ecx + esi], xmm0
lea esi, [esi + 0x20]
mov dword [ebp - 0xc], eax
jne 0x55465e
jmp 0x554743
add eax, 0xfffffff8
js 0x55474f
lea edx, [edi + 0x10]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x1c], edx
add eax, 8
mov edx, esi
shr eax, 3
sub edx, edi
mov dword [ebp - 8], eax
mov dword [ebp - 0x28], edx
mov edx, ecx
sub edx, edi
mov dword [ebp - 0x24], edx
mov edx, esi
mov esi, dword [ebp - 0x24]
sub edx, ecx
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x20], edx
mov edx, eax
mov edi, dword [ebp - 0x20]
shl edx, 3
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
movups xmm1, xmmword [edx - 0x10]
movups xmm2, xmmword [edx]
movups xmm3, xmmword [eax + edi]
movups xmm4, xmmword [edx + ecx]
movaps xmm0, xmm1
pcmpgtd xmm1, xmm3
pxor xmm0, xmm3
pand xmm0, xmm1
pxor xmm0, xmm3
movups xmmword [eax], xmm0
add eax, 0x20
sub dword [ebp - 8], 1
movaps xmm0, xmm2
mov dword [ebp - 0xc], eax
pxor xmm0, xmm4
pcmpgtd xmm2, xmm4
pand xmm0, xmm2
pxor xmm0, xmm4
movups xmmword [edx + esi], xmm0
lea edx, [edx + 0x20]
jne 0x5546f5
mov edx, dword [ebp - 4]
mov ecx, dword [ebx + 0x10]
mov edi, dword [ebx + 8]
mov esi, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x18]
jg 0x5547fb
lea eax, [edx + 3]
inc edx
lea eax, [edi + eax*4]
mov dword [ebp - 0xc], eax
lea eax, [esi + edx*4]
mov edx, edi
mov dword [ebp - 8], eax
sub edx, esi
mov eax, ecx
mov dword [ebp - 0x20], edx
sub eax, esi
mov esi, dword [ebp - 4]
sub ecx, edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 8]
mov eax, dword [ecx - 4]
mov ecx, dword [edx + ecx]
mov edi, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
cmp eax, dword [edi - 0xc]
mov edx, dword [edx]
cmovl eax, dword [edi - 0xc]
cmp edx, ecx
mov edi, dword [ebx + 0x10]
cmovl edx, ecx
mov ecx, dword [ebp - 8]
mov dword [edi + esi*4], eax
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0xc]
mov dword [eax + ecx], edx
mov eax, dword [ecx + 4]
cmp eax, dword [edi - 4]
mov ecx, dword [ebp - 0xc]
cmovl eax, dword [edi - 4]
mov edx, dword [ebp - 8]
mov edi, dword [ebx + 0x10]
mov ecx, dword [ecx]
mov edx, dword [edx + 8]
cmp edx, ecx
mov dword [edi + esi*4 + 8], eax
mov eax, dword [ebp - 0x24]
cmovl edx, ecx
mov ecx, dword [ebp - 0xc]
add esi, 4
add dword [ebp - 0xc], 0x10
mov dword [eax + ecx], edx
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
add ecx, 0x10
mov dword [ebp - 8], ecx
cmp esi, dword [ebp - 0x18]
jle 0x554781
mov edi, dword [ebx + 8]
mov dword [ebp - 4], esi
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
cmp edx, eax
jge 0x55483d
sub edi, esi
lea ecx, [esi + edx*4]
mov dword [ebp - 0x24], edi
mov edi, dword [ebx + 0x10]
sub edi, esi
mov dword [ebp - 0x28], ecx
sub eax, edx
mov dword [ebp - 0x20], edi
mov esi, edi
mov edx, ecx
mov ecx, dword [ebp - 0x24]
mov edi, eax
mov dword [ebp - 0x10], eax
mov eax, dword [edx]
cmp eax, dword [edx + ecx]
cmovl eax, dword [edx + ecx]
mov dword [edx + esi], eax
lea edx, [edx + 4]
sub edi, 1
jne 0x554823
mov esi, dword [ebp - 0x14]
mov edi, dword [ebx + 8]
mov ecx, dword [ebx + 0x10]
add esi, dword [ebp - 0x2c]
add edi, dword [ebp - 0x30]
add ecx, dword [ebp - 0x34]
mov edx, dword [ebx + 0x1c]
mov dword [ebp - 0x14], esi
mov dword [ebx + 8], edi
mov dword [ebx + 0x10], ecx
test edx, edx
jne 0x5545ee
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret