Function at 0x5556be
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 0x555985
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 0x555877
mov eax, esi
or eax, edi
or eax, ecx
test al, 0xf
mov eax, dword [ebp - 0x10]
jne 0x5557d9
add eax, 0xfffffff8
js 0x555877
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 xmm3, xmmword [esi]
movaps xmm2, xmmword [edx + eax]
movaps xmm0, xmm2
pcmpgtd xmm0, xmm1
pxor xmm1, xmm2
pand xmm0, xmm1
pxor xmm0, xmm2
movaps xmmword [eax], xmm0
movaps xmm0, xmm4
pcmpgtd xmm0, xmm3
add eax, 0x20
sub dword [ebp - 8], 1
pxor xmm3, xmm4
pand xmm0, xmm3
mov dword [ebp - 0xc], eax
pxor xmm0, xmm4
movaps xmmword [ecx + esi], xmm0
lea esi, [esi + 0x20]
jne 0x555786
jmp 0x55586b
add eax, 0xfffffff8
js 0x555877
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 xmm4, xmmword [edx + ecx]
movups xmm3, xmmword [eax + edi]
movups xmm2, xmmword [edx]
movaps xmm0, xmm3
pcmpgtd xmm0, xmm1
pxor xmm1, xmm3
pand xmm0, xmm1
pxor xmm0, xmm3
movups xmmword [eax], xmm0
add eax, 0x20
sub dword [ebp - 8], 1
movaps xmm0, xmm4
mov dword [ebp - 0xc], eax
pcmpgtd xmm0, xmm2
pxor xmm2, xmm4
pand xmm0, xmm2
pxor xmm0, xmm4
movups xmmword [edx + esi], xmm0
lea edx, [edx + 0x20]
jne 0x55581d
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 0x555923
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 dword [edi - 0xc], eax
mov edx, dword [edx]
cmovl eax, dword [edi - 0xc]
cmp ecx, edx
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 dword [edi - 4], eax
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 ecx, edx
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 0x5558a9
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 0x555965
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 dword [edx + ecx], eax
cmovl eax, dword [edx + ecx]
mov dword [edx + esi], eax
lea edx, [edx + 4]
sub edi, 1
jne 0x55594b
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 0x555716
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret