Function at 0x5d5fa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
xor eax, eax
cmp dword [ebp + 8], 0x30
ja 0x5d6228
mov edi, edx
mov esi, ecx
pxor xmm0, xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
movdqa xmmword [esp + 0x10], xmm0
lea ebx, [ecx + 0xfc]
mov eax, dword [ecx + 0x108]
bswap eax
inc eax
bswap eax
mov dword [ecx + 0x108], eax
lea eax, [esp + 0x10]
push ecx
push eax
push ebx
call dword [ecx + 0xf4]
add esp, 0xc
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
push esi
lea eax, [esp + 0x24]
push eax
push ebx
call dword [esi + 0xf4]
add esp, 0xc
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
push esi
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x14], ebx
push ebx
call dword [esi + 0xf4]
mov edx, dword [ebp + 8]
add esp, 0xc
test edx, edx
je 0x5d60dd
xor eax, eax
cmp edx, 8
jb 0x5d60d0
xor eax, eax
cmp edx, 0x10
jb 0x5d60a9
mov eax, edx
and eax, 0xfffffff0
movdqu xmm0, xmmword [edi]
pxor xmm0, xmmword [esp + 0x10]
movdqa xmmword [esp + 0x10], xmm0
cmp eax, 0x10
je 0x5d60a0
movdqu xmm0, xmmword [edi + 0x10]
pxor xmm0, xmmword [esp + 0x20]
movdqa xmmword [esp + 0x20], xmm0
cmp eax, 0x20
je 0x5d60a0
movdqu xmm0, xmmword [edi + 0x20]
pxor xmm0, xmmword [esp + 0x30]
movdqa xmmword [esp + 0x30], xmm0
cmp eax, edx
je 0x5d60dd
test dl, 8
je 0x5d60d0
mov ecx, eax
mov eax, edx
and eax, 0xfffffff8
movq xmm0, qword [edi + ecx]
movq xmm1, qword [esp + ecx + 0x10]
pxor xmm1, xmm0
movq qword [esp + ecx + 0x10], xmm1
add ecx, 8
cmp eax, ecx
jne 0x5d60b0
cmp eax, edx
je 0x5d60dd
movzx ecx, byte [edi + eax]
xor byte [esp + eax + 0x10], cl
inc eax
cmp edx, eax
jne 0x5d60d0
mov dword [esi + 0xf0], 0xe
movaps xmm0, xmmword [esp + 0x10]
movaps xmmword [esp + 0x60], xmm0
movups xmmword [esi], xmm0
lea eax, [esp + 0x20]
movups xmm0, xmmword [eax]
movaps xmmword [esp + 0x50], xmm0
movups xmm0, xmmword [eax]
movups xmmword [esi + 0x10], xmm0
mov ebx, 0x30
mov edi, 0x8bfb76
movaps xmm0, xmmword [esp + 0x60]
movaps xmmword [esp + 0x70], xmm0
nop dword [eax + eax]
xorps xmm0, xmm0
movaps xmmword [esp + 0x40], xmm0
lea ecx, [esp + 0x40]
lea edx, [esp + 0x50]
call fcn.005e46a0
movzx eax, byte [edi]
movd xmm1, eax
pxor xmm1, xmmword [esp + 0x70]
movdqa xmm0, xmmword [esp + 0x40]
movdqa xmm2, xmm0
psrld xmm2, 8
pslld xmm0, 0x18
por xmm0, xmm2
psrldq xmm0, 0xc
pxor xmm0, xmm1
movdqa xmm1, xmm0
pslldq xmm1, 4
movdqa xmm2, xmm0
pslldq xmm2, 8
pxor xmm2, xmm1
movdqa xmm1, xmm0
pslldq xmm1, 0xc
pxor xmm1, xmm2
pxor xmm1, xmm0
movdqa xmmword [esp + 0x60], xmm1
movaps xmm0, xmmword [esp + 0x60]
movups xmmword [esi + ebx - 0x10], xmm0
cmp ebx, 0xf0
je 0x5d6201
movdqa xmmword [esp + 0x70], xmm1
lea ecx, [esp + 0x40]
lea edx, [esp + 0x60]
call fcn.005e46a0
movdqa xmm0, xmmword [esp + 0x40]
psrldq xmm0, 0xc
pxor xmm0, xmmword [esp + 0x50]
movdqa xmm1, xmm0
movdqa xmm2, xmm0
pslldq xmm2, 0xc
pxor xmm2, xmm0
pslldq xmm0, 4
pslldq xmm1, 8
pxor xmm1, xmm0
pxor xmm2, xmm1
movdqa xmmword [esp + 0x50], xmm2
movaps xmm0, xmmword [esp + 0x50]
movups xmmword [esi + ebx], xmm0
add ebx, 0x20
inc edi
jmp 0x5d6120
mov dword [esi + 0xf4], fcn.00599480
mov dword [esi + 0xf8], 0x59b760
lea eax, [esp + 0x30]
movups xmm0, xmmword [eax]
mov eax, dword [esp + 0xc]
movups xmmword [eax], xmm0
mov eax, 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret