Function at 0x5581f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
mov eax, dword [ebp + 0x14]
mov ecx, dword [0x7a8498]
xor ecx, ebp
mov dword [esp + 0x88], ecx
xor esi, esi
cmp eax, 0x30
ja 0x5584c3
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
movups xmm0, xmmword [ecx + 0x20]
movaps xmmword [esp + 0x40], xmm0
movups xmm0, xmmword [ecx]
movups xmm1, xmmword [ecx + 0x10]
movaps xmmword [esp + 0x30], xmm1
movaps xmmword [esp + 0x20], xmm0
test eax, eax
je 0x5582cf
mov ecx, dword [ebp + 0x10]
xor edx, edx
cmp eax, 8
jb 0x5582c0
xor edx, edx
cmp eax, 0x10
jb 0x558295
mov edx, eax
and edx, 0xfffffff0
movups xmm0, xmmword [ecx]
xorps xmm0, xmmword [esp + 0x20]
movaps xmmword [esp + 0x20], xmm0
cmp edx, 0x10
je 0x55828d
movups xmm0, xmmword [ecx + 0x10]
xorps xmm0, xmmword [esp + 0x30]
movaps xmmword [esp + 0x30], xmm0
cmp edx, 0x20
je 0x55828d
movups xmm0, xmmword [ecx + 0x20]
xorps xmm0, xmmword [esp + 0x40]
movaps xmmword [esp + 0x40], xmm0
cmp edx, eax
je 0x5582cf
test al, 8
je 0x5582c0
mov esi, edx
mov edx, eax
and edx, 0xfffffff8
nop dword [eax]
movsd xmm0, qword [ecx + esi]
movsd xmm1, qword [esp + esi + 0x20]
xorps xmm1, xmm0
movlps qword [esp + esi + 0x20], xmm1
add esi, 8
cmp edx, esi
jne 0x5582a0
cmp edx, eax
je 0x5582cf
nop
movzx ebx, byte [ecx + edx]
xor byte [esp + edx + 0x20], bl
add edx, 1
cmp eax, edx
jne 0x5582c0
movaps xmm0, xmmword [esp + 0x20]
xorps xmm0, xmmword [0x747ea0]
movdqa xmm1, xmmword [esp + 0x30]
movaps xmmword [esp + 0x20], xmm0
pxor xmm1, xmmword [str._M_kn_aN]
movdqa xmmword [esp + 0x30], xmm1
movdqa xmm0, xmmword [esp + 0x40]
pxor xmm0, xmmword [0x747ec0]
movdqa xmmword [esp + 0x40], xmm0
lea esi, [edi + 0xf4]
mov eax, dword [0x7c099c]
test eax, 0x2000000
jne 0x558459
test eax, 0x200
jne 0x558478
mov dword [esp + 0xc], esi
mov dword [edi + 0xf0], 0xe
movaps xmm0, xmmword [esp + 0x20]
movaps xmmword [esp + 0x70], xmm0
movups xmmword [edi], xmm0
movaps xmm0, xmmword [esp + 0x30]
movaps xmmword [esp + 0x60], xmm0
movups xmmword [edi + 0x10], xmm0
mov edi, 0x30
mov ebx, 0x749100
movdqa xmm0, xmmword [esp + 0x70]
movdqa xmmword [esp + 0x10], xmm0
lea esi, [esp + 0x50]
nop dword [eax]
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
mov ecx, esi
lea edx, [esp + 0x60]
call fcn.005607e0
movzx eax, byte [ebx]
movd xmm0, eax
pxor xmm0, xmmword [esp + 0x10]
movdqa xmm2, xmmword [esp + 0x50]
movdqa xmm1, xmm2
psrld xmm1, 8
pslld xmm2, 0x18
por xmm2, xmm1
psrldq xmm2, 0xc
pxor xmm2, xmm0
movdqa xmm0, xmm2
pslldq xmm0, 4
pxor xmm0, xmm2
movdqa xmm1, xmm2
pslldq xmm1, 8
pslldq xmm2, 0xc
pxor xmm2, xmm1
pxor xmm2, xmm0
movdqa xmmword [esp + 0x70], xmm2
movaps xmm0, xmmword [esp + 0x70]
mov eax, dword [ebp + 8]
movups xmmword [eax + edi - 0x10], xmm0
cmp edi, 0xf0
je 0x5584db
movdqa xmmword [esp + 0x10], xmm2
mov ecx, esi
lea edx, [esp + 0x70]
call fcn.005607e0
movdqa xmm0, xmmword [esp + 0x50]
psrldq xmm0, 0xc
pxor xmm0, xmmword [esp + 0x60]
movdqa xmm1, xmm0
pslldq xmm1, 4
pxor xmm1, xmm0
movdqa xmm2, xmm0
pslldq xmm2, 8
pslldq xmm0, 0xc
pxor xmm0, xmm2
pxor xmm0, xmm1
movdqa xmmword [esp + 0x60], xmm0
movdqa xmm0, xmmword [esp + 0x60]
mov eax, dword [ebp + 8]
movdqu xmmword [eax + edi], xmm0
add edi, 0x20
add ebx, 1
jmp 0x558370
lea eax, [esp + 0x20]
push edi
push 0x100
push eax
call fcn.00608b00
add esp, 0xc
mov ecx, fcn.00606780
mov eax, 0x607310
jmp 0x558492
lea eax, [esp + 0x20]
push edi
push 0x100
push eax
call fcn.00609620
add esp, 0xc
mov ecx, fcn.006096d0
xor eax, eax
test esi, esi
je 0x558498
mov dword [esi], ecx
mov dword [edi + 0xf8], eax
movaps xmm0, xmmword [esp + 0x40]
movups xmmword [edi + 0xfc], xmm0
mov dword [edi + 0x114], 0
mov dword [edi + 0x110], 1
mov esi, 1
mov ecx, dword [esp + 0x88]
xor ecx, ebp
call fcn.006c9121
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, fcn.005262f0
mov eax, 0x529170
mov esi, dword [esp + 0xc]
test esi, esi
mov edi, dword [ebp + 8]
jne 0x558496
jmp 0x558498