Function at 0x5028b0
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 0x502bf7
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 0x502bf7
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 0x5029bc
test ecx, ecx
je 0x502bec
nop
movzx edx, byte [ebx]
xor byte [edi + eax + 0x40], dl
inc ebx
lea edx, [ecx - 1]
inc eax
and eax, 0xf
je 0x502928
cmp ecx, 1
mov ecx, edx
jne 0x502910
test eax, eax
jne 0x502bec
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.005048c0
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 0x5029be
mov edx, ecx
mov esi, edx
and esi, 0xfffffff0
je 0x502ac4
mov dword [esp + 4], edx
lea ecx, [edi + 0x60]
mov dword [esp + 0x18], 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 + 0x18]
call fcn.005048c0
add edi, 0x10
cmp esi, edi
jne 0x502a20
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 + 4]
and edx, 0xf
test edx, edx
je 0x502ba9
lea ecx, [edi + 0x40]
xor eax, eax
cmp edx, 8
mov dword [esp + 4], edx
jb 0x502b82
mov edx, dword [esp + 4]
add edx, ebx
cmp ecx, edx
mov edx, dword [esp + 4]
jae 0x502b01
mov edx, dword [esp + 4]
add edx, edi
add edx, 0x40
cmp ebx, edx
mov edx, dword [esp + 4]
jb 0x502b82
xor eax, eax
cmp edx, 0x20
jb 0x502b53
mov eax, edx
and eax, 0xffffffe0
xor edx, edx
nop
movdqu xmm0, xmmword [ebx + edx]
movdqu xmm1, xmmword [ebx + edx + 0x10]
movdqu xmm2, xmmword [edi + edx + 0x40]
pxor xmm2, xmm0
movdqu xmm0, xmmword [edi + edx + 0x50]
pxor xmm0, xmm1
movdqu xmmword [edi + edx + 0x40], xmm2
movdqu xmmword [edi + edx + 0x50], xmm0
add edx, 0x20
cmp eax, edx
jne 0x502b10
mov edx, dword [esp + 4]
cmp edx, eax
je 0x502bea
test dl, 0x18
je 0x502b82
mov esi, edx
mov edx, eax
mov eax, esi
and eax, 0xfffffff8
nop dword [eax]
movq xmm0, qword [ebx + edx]
movq xmm1, qword [ecx + edx]
pxor xmm1, xmm0
movq qword [ecx + edx], xmm1
add edx, 8
cmp eax, edx
jne 0x502b60
mov edx, dword [esp + 4]
cmp edx, eax
je 0x502bea
mov edi, eax
not edi
add edi, edx
mov esi, edx
and esi, 3
je 0x502b9b
nop
movzx edx, byte [ebx + eax]
xor byte [ecx + eax], dl
inc eax
dec esi
jne 0x502b90
cmp edi, 3
jae 0x502bad
mov eax, dword [esp + 4]
mov edi, dword [ebp + 8]
jmp 0x502bec
xor eax, eax
jmp 0x502bec
mov edi, dword [ebp + 8]
mov edx, dword [esp + 4]
nop word cs:[eax + eax]
movzx ecx, byte [ebx + eax]
xor byte [edi + eax + 0x40], cl
movzx ecx, byte [ebx + eax + 1]
xor byte [edi + eax + 0x41], cl
movzx ecx, byte [ebx + eax + 2]
xor byte [edi + eax + 0x42], cl
movzx ecx, byte [ebx + eax + 3]
xor byte [edi + eax + 0x43], cl
add eax, 4
cmp edx, eax
jne 0x502bc0
mov eax, edx
mov dword [edi + 0x174], eax
mov eax, 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret