Function at 0x5557b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x40
call fcn.00587620
mov eax, dword [0x65b9c4]
xor eax, esp
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x4c]
push ebx
mov ebx, dword [esp + 0x4c]
push esi
mov esi, dword [esp + 0x4c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x18], eax
mov dl, byte [esi]
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xb], dl
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
push edi
test dl, 0x40
jne 0x555818
push eax
lea eax, [esi + 0x10]
push eax
push esi
call ecx
mov dl, byte [esp + 0x1b]
add esp, 0xc
add dword [esi + 0x20], 1
adc dword [esi + 0x24], 0
movzx eax, dl
xor ecx, ecx
and eax, 7
mov edx, 0xf
sub edx, eax
mov byte [esi], al
mov dword [esp + 0x34], edx
cmp edx, 0xf
jae 0x555845
movzx eax, byte [esi + edx]
or ecx, eax
mov byte [esi + edx], 0
inc edx
shl ecx, 8
cmp edx, 0xf
jb 0x555832
movzx eax, byte [esi + 0xf]
mov edi, dword [esp + 0x5c]
or ecx, eax
mov byte [esi + 0xf], 1
cmp ecx, edi
je 0x55586c
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0058651a
add esp, 0x40
ret
lea eax, [edi + 0xf]
or eax, 8
shr eax, 3
add dword [esi + 0x20], eax
adc dword [esi + 0x24], 0
cmp dword [esi + 0x24], 0x20000000
jb 0x5558a4
ja 0x55588d
cmp dword [esi + 0x20], 0
jbe 0x5558a4
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0058651a
add esp, 0x40
ret
push ebp
mov ebp, edi
shr ebp, 4
test ebp, ebp
je 0x5558ea
lea eax, [esi + 0x10]
push eax
push esi
push dword [esp + 0x20]
push ebp
push dword [esp + 0x24]
push ebx
call dword [esp + 0x38]
shl ebp, 4
add esp, 0x18
add dword [esp + 0x14], ebp
add ebx, ebp
sub edi, ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x60], edi
je 0x5559f4
shr ebp, 4
push ebp
push esi
call fcn.00555b60
add esp, 8
test edi, edi
je 0x5559f4
xor ecx, ecx
test edi, edi
je 0x555904
mov al, byte [ebx + ecx]
xor byte [esi + ecx + 0x10], al
inc ecx
cmp ecx, edi
jb 0x5558f8
mov ebp, dword [esp + 0x18]
lea eax, [esi + 0x10]
push ebp
push eax
push eax
call dword [esp + 0x28]
push ebp
lea eax, [esp + 0x4c]
push eax
push esi
call dword [esp + 0x34]
add esp, 0x18
xor edx, edx
test edi, edi
je 0x5559f8
mov ebp, dword [esp + 0x14]
cmp edi, 0x20
jb 0x5559d5
lea ecx, [ebp - 1]
lea eax, [esp + edi + 0x3b]
add ecx, edi
cmp ebp, eax
ja 0x555950
lea eax, [esp + 0x3c]
cmp ecx, eax
jae 0x5559d5
lea eax, [ebx - 1]
add eax, edi
cmp ebp, eax
ja 0x55595d
cmp ecx, ebx
jae 0x5559d5
mov esi, ebp
mov eax, edi
sub esi, ebx
and eax, 0x1f
mov dword [esp + 0x20], esi
mov ecx, edi
lea esi, [esp + 0x3c]
sub ecx, eax
sub esi, ebx
mov eax, ebx
mov dword [esp + 0x28], esi
lea esi, [esp + 0x4c]
mov edi, dword [esp + 0x28]
sub esi, ebx
lea ebx, [ebp + 0x10]
mov dword [esp + 0x2c], esi
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x30], ebx
mov ebx, esi
movups xmm0, xmmword [eax]
mov esi, dword [esp + 0x30]
lea eax, [eax + 0x20]
movups xmm1, xmmword [edi + eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax + ebp - 0x20], xmm1
movups xmm0, xmmword [eax - 0x10]
movups xmm1, xmmword [ebx + eax - 0x20]
pxor xmm1, xmm0
movups xmmword [esi + edx], xmm1
mov esi, dword [esp + 0x34]
add edx, 0x20
cmp edx, ecx
jb 0x555995
mov edi, dword [esp + 0x60]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x14]
cmp edx, edi
jae 0x5559f4
lea eax, [esp + 0x3c]
sub ebx, eax
sub ebp, eax
lea ecx, [esp + 0x3c]
add ecx, edx
inc edx
mov al, byte [ebx + ecx]
xor al, byte [ecx]
mov byte [ecx + ebp], al
cmp edx, edi
jb 0x5559e1
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x38]
cmp edx, 0x10
jae 0x555a1b
mov ecx, 0x10
lea edi, [edx + esi]
sub ecx, edx
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push ebp
lea eax, [esp + 0x40]
push eax
push esi
call dword [esp + 0x28]
mov eax, dword [esp + 0x48]
add esp, 0xc
xor dword [esi + 0x10], eax
mov eax, dword [esp + 0x40]
xor dword [esi + 0x14], eax
mov eax, dword [esp + 0x44]
xor dword [esi + 0x18], eax
mov eax, dword [esp + 0x48]
xor dword [esi + 0x1c], eax
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x4c]
pop ebp
pop edi
mov byte [esi], al
xor eax, eax
pop esi
pop ebx
xor ecx, esp
call fcn.0058651a
add esp, 0x40
ret