Function at 0x5d2ae0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x20
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x38]
xor eax, eax
or ecx, dword [edi + 0x3c]
jne 0x5d2e97
mov ecx, dword [ebp + 0x10]
mov edx, dword [edi + 0x34]
mov esi, dword [edi + 0x30]
add esi, ecx
adc edx, 0
mov ebx, edi
mov edi, esi
neg edi
mov edi, 0x20000000
sbb edi, edx
jb 0x5d2e97
mov edi, ebx
mov ebx, dword [ebp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], edx
mov eax, dword [edi + 0x174]
test eax, eax
je 0x5d2bec
test ecx, ecx
je 0x5d2e8c
nop
movzx edx, byte [ebx]
xor byte [edi + eax + 0x40], dl
inc ebx
lea edx, [ecx - 1]
inc eax
and eax, 0xf
je 0x5d2b58
cmp ecx, 1
mov ecx, edx
jne 0x5d2b40
test eax, eax
jne 0x5d2e8c
mov esi, edx
lea edx, [edi + 0x60]
movdqu xmm0, xmmword [edi + 0x40]
pxor xmm2, xmm2
movdqa xmm1, xmm0
punpcklbw xmm1, xmm2
pshufd xmm1, xmm1, 0x4e
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm1, xmm1, 0x1b
punpckhbw xmm0, xmm2
pshufd xmm0, xmm0, 0x4e
pshuflw xmm0, xmm0, 0x1b
pshufhw xmm0, xmm0, 0x1b
packuswb xmm0, xmm1
movdqu xmmword [esp + 8], xmm0
lea ecx, [esp + 8]
call fcn.005d4d50
mov edx, esi
movdqu xmm0, xmmword [esp + 8]
movdqa xmm1, xmm0
pxor xmm2, xmm2
punpcklbw xmm1, xmm2
pshufd xmm1, xmm1, 0x4e
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm1, xmm1, 0x1b
punpckhbw xmm0, xmm2
pshufd xmm0, xmm0, 0x4e
pshuflw xmm0, xmm0, 0x1b
pshufhw xmm0, xmm0, 0x1b
packuswb xmm0, xmm1
movdqu xmmword [edi + 0x40], xmm0
jmp 0x5d2bee
mov edx, ecx
mov esi, edx
and esi, 0xfffffff0
je 0x5d2cf3
mov dword [esp], edx
lea ecx, [edi + 0x60]
mov dword [esp + 4], ecx
movdqu xmm0, xmmword [edi + 0x40]
pxor xmm2, xmm2
movdqa xmm1, xmm0
punpcklbw xmm1, xmm2
pshufd xmm1, xmm1, 0x4e
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm1, xmm1, 0x1b
punpckhbw xmm0, xmm2
pshufd xmm0, xmm0, 0x4e
pshuflw xmm0, xmm0, 0x1b
pshufhw xmm0, xmm0, 0x1b
packuswb xmm0, xmm1
movdqu xmmword [esp + 8], xmm0
xor edi, edi
nop word cs:[eax + eax]
movdqu xmm0, xmmword [ebx + edi]
movdqa xmm1, xmm0
pxor xmm2, xmm2
punpcklbw xmm1, xmm2
pshufd xmm1, xmm1, 0x4e
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm1, xmm1, 0x1b
punpckhbw xmm0, xmm2
pshufd xmm0, xmm0, 0x4e
pshuflw xmm0, xmm0, 0x1b
pshufhw xmm0, xmm0, 0x1b
packuswb xmm0, xmm1
movdqu xmm1, xmmword [esp + 8]
pxor xmm1, xmm0
movdqu xmmword [esp + 8], xmm1
lea ecx, [esp + 8]
mov edx, dword [esp + 4]
call fcn.005d4d50
add edi, 0x10
cmp esi, edi
jne 0x5d2c50
pxor xmm0, xmm0
movdqu xmm1, xmmword [esp + 8]
movdqa xmm2, xmm1
punpcklbw xmm2, xmm0
pshufd xmm2, xmm2, 0x4e
pshuflw xmm2, xmm2, 0x1b
pshufhw xmm2, xmm2, 0x1b
punpckhbw xmm1, xmm0
pshufd xmm0, xmm1, 0x4e
pshuflw xmm0, xmm0, 0x1b
pshufhw xmm0, xmm0, 0x1b
packuswb xmm0, xmm2
mov edi, dword [ebp + 8]
movdqu xmmword [edi + 0x40], xmm0
add ebx, esi
mov edx, dword [esp]
and edx, 0xf
test edx, edx
je 0x5d2e48
lea eax, [edi + 0x40]
xor ecx, ecx
cmp edx, 8
mov dword [esp], edx
jb 0x5d2e21
mov edx, dword [esp]
add edx, ebx
cmp eax, edx
mov edx, dword [esp]
jae 0x5d2d2b
mov edx, dword [esp]
add edx, edi
add edx, 0x40
cmp ebx, edx
mov edx, dword [esp]
jb 0x5d2e21
xor ecx, ecx
cmp edx, 0x20
jb 0x5d2def
mov dword [esp + 4], eax
lea ecx, [edx - 0x20]
mov eax, ecx
shr eax, 5
inc eax
xor edx, edx
cmp ecx, 0x20
jb 0x5d2da8
mov ecx, eax
and ecx, 0xfffffffe
xor edx, edx
movups xmm0, xmmword [ebx + edx]
movups xmm1, xmmword [ebx + edx + 0x10]
movups xmm2, xmmword [edi + edx + 0x40]
xorps xmm2, xmm0
movups xmm0, xmmword [edi + edx + 0x50]
xorps xmm0, xmm1
movups xmmword [edi + edx + 0x40], xmm2
movups xmmword [edi + edx + 0x50], xmm0
movdqu xmm0, xmmword [ebx + edx + 0x20]
movdqu xmm1, xmmword [ebx + edx + 0x30]
movdqu xmm2, xmmword [edi + edx + 0x60]
pxor xmm2, xmm0
movdqu xmm0, xmmword [edi + edx + 0x70]
pxor xmm0, xmm1
movdqu xmmword [edi + edx + 0x60], xmm2
movdqu xmmword [edi + edx + 0x70], xmm0
add edx, 0x40
add ecx, 0xfffffffe
jne 0x5d2d51
mov ecx, dword [esp]
and ecx, 0xffffffe0
test al, 1
mov eax, dword [esp + 4]
je 0x5d2ddf
movdqu xmm0, xmmword [ebx + edx]
movdqu xmm1, xmmword [ebx + edx + 0x10]
movdqu xmm2, xmmword [eax + edx]
pxor xmm2, xmm0
movdqu xmm0, xmmword [eax + edx + 0x10]
pxor xmm0, xmm1
movdqu xmmword [eax + edx], xmm2
movdqu xmmword [eax + edx + 0x10], xmm0
mov edx, dword [esp]
cmp edx, ecx
je 0x5d2e8a
test dl, 0x18
je 0x5d2e21
mov esi, edx
mov edx, ecx
mov ecx, esi
and ecx, 0xfffffff8
nop dword [eax + eax]
movq xmm0, qword [ebx + edx]
movq xmm1, qword [eax + edx]
pxor xmm1, xmm0
movq qword [eax + edx], xmm1
add edx, 8
cmp ecx, edx
jne 0x5d2e00
mov edx, dword [esp]
cmp edx, ecx
je 0x5d2e8a
mov edi, ecx
not edi
add edi, edx
mov esi, edx
and esi, 3
je 0x5d2e3b
nop
movzx edx, byte [ebx + ecx]
xor byte [eax + ecx], dl
inc ecx
dec esi
jne 0x5d2e30
cmp edi, 3
jae 0x5d2e4c
mov eax, dword [esp]
mov edi, dword [ebp + 8]
jmp 0x5d2e8c
xor eax, eax
jmp 0x5d2e8c
mov edi, dword [ebp + 8]
mov edx, dword [esp]
nop word cs:[eax + eax]
movzx eax, byte [ebx + ecx]
xor byte [edi + ecx + 0x40], al
movzx eax, byte [ebx + ecx + 1]
xor byte [edi + ecx + 0x41], al
movzx eax, byte [ebx + ecx + 2]
xor byte [edi + ecx + 0x42], al
movzx eax, byte [ebx + ecx + 3]
xor byte [edi + ecx + 0x43], al
add ecx, 4
cmp edx, ecx
jne 0x5d2e60
mov eax, edx
mov dword [edi + 0x174], eax
mov eax, 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret