Function at 0x50b979
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
shr eax, 0x18
mov edx, dword [ebp - 4]
shr edx, 8
and edx, 0xff00
add eax, edx
mov ecx, dword [ebp - 4]
and ecx, 0xff00
shl ecx, 8
add eax, ecx
mov edx, dword [ebp - 4]
and edx, 0xff
shl edx, 0x18
add eax, edx
mov dword [ebp - 0x10], eax
not dword [ebp - 0x10]
jmp 0x50b9e7
mov eax, dword [ebp - 0x10]
shr eax, 0x18
mov ecx, dword [ebp - 8]
xor edx, edx
mov dl, byte [ecx]
xor eax, edx
mov eax, dword [eax*4 + 0x523844]
mov ecx, dword [ebp - 0x10]
shl ecx, 8
xor eax, ecx
mov dword [ebp - 0x10], eax
inc dword [ebp - 8]
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
je 0x50b9f3
test byte [ebp - 8], 3
jne 0x50b9c0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
sub dword [ebp - 0x14], 4
cmp dword [ebp - 0xc], 0x20
jb 0x50bc99
add dword [ebp - 0x14], 4
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx]
xor dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
and eax, 0xff
mov edx, dword [eax*4 + 0x523844]
mov ecx, dword [ebp - 0x10]
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x523c44]
mov eax, dword [ebp - 0x10]
shr eax, 0x10
and eax, 0xff
xor edx, dword [eax*4 + 0x524044]
mov ecx, dword [ebp - 0x10]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x524444]
mov dword [ebp - 0x10], edx
add dword [ebp - 0x14], 4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
xor dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
and edx, 0xff
mov ecx, dword [edx*4 + 0x523844]
mov eax, dword [ebp - 0x10]
shr eax, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x523c44]
mov edx, dword [ebp - 0x10]
shr edx, 0x10
and edx, 0xff
xor ecx, dword [edx*4 + 0x524044]
mov eax, dword [ebp - 0x10]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x524444]
mov dword [ebp - 0x10], ecx
add dword [ebp - 0x14], 4
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx]
xor dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
and eax, 0xff
mov edx, dword [eax*4 + 0x523844]
mov ecx, dword [ebp - 0x10]
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x523c44]
mov eax, dword [ebp - 0x10]
shr eax, 0x10
and eax, 0xff
xor edx, dword [eax*4 + 0x524044]
mov ecx, dword [ebp - 0x10]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x524444]
mov dword [ebp - 0x10], edx
add dword [ebp - 0x14], 4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
xor dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
and edx, 0xff
mov ecx, dword [edx*4 + 0x523844]
mov eax, dword [ebp - 0x10]
shr eax, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x523c44]
mov edx, dword [ebp - 0x10]
shr edx, 0x10
and edx, 0xff
xor ecx, dword [edx*4 + 0x524044]
mov eax, dword [ebp - 0x10]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x524444]
mov dword [ebp - 0x10], ecx
add dword [ebp - 0x14], 4
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx]
xor dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
and eax, 0xff
mov edx, dword [eax*4 + 0x523844]
mov ecx, dword [ebp - 0x10]
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x523c44]
mov eax, dword [ebp - 0x10]
shr eax, 0x10
and eax, 0xff
xor edx, dword [eax*4 + 0x524044]
mov ecx, dword [ebp - 0x10]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x524444]
mov dword [ebp - 0x10], edx
add dword [ebp - 0x14], 4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
xor dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
and edx, 0xff
mov ecx, dword [edx*4 + 0x523844]
mov eax, dword [ebp - 0x10]
shr eax, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x523c44]
mov edx, dword [ebp - 0x10]
shr edx, 0x10
and edx, 0xff
xor ecx, dword [edx*4 + 0x524044]
mov eax, dword [ebp - 0x10]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x524444]
mov dword [ebp - 0x10], ecx
add dword [ebp - 0x14], 4
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx]
xor dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
and eax, 0xff
mov edx, dword [eax*4 + 0x523844]
mov ecx, dword [ebp - 0x10]
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x523c44]
mov eax, dword [ebp - 0x10]
shr eax, 0x10
and eax, 0xff
xor edx, dword [eax*4 + 0x524044]
mov ecx, dword [ebp - 0x10]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x524444]
mov dword [ebp - 0x10], edx
add dword [ebp - 0x14], 4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
xor dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
and edx, 0xff
mov ecx, dword [edx*4 + 0x523844]
mov eax, dword [ebp - 0x10]
shr eax, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x523c44]
mov edx, dword [ebp - 0x10]
shr edx, 0x10
and edx, 0xff
xor ecx, dword [edx*4 + 0x524044]
mov eax, dword [ebp - 0x10]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x524444]
mov dword [ebp - 0x10], ecx
sub dword [ebp - 0xc], 0x20
cmp dword [ebp - 0xc], 0x20
jae 0x50ba07
cmp dword [ebp - 0xc], 4
jb 0x50bcf9
add dword [ebp - 0x14], 4
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx]
xor dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
and eax, 0xff
mov edx, dword [eax*4 + 0x523844]
mov ecx, dword [ebp - 0x10]
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x523c44]
mov eax, dword [ebp - 0x10]
shr eax, 0x10
and eax, 0xff
xor edx, dword [eax*4 + 0x524044]
mov ecx, dword [ebp - 0x10]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x524444]
mov dword [ebp - 0x10], edx
sub dword [ebp - 0xc], 4
cmp dword [ebp - 0xc], 4
jae 0x50bc9f
add dword [ebp - 0x14], 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 8], edx
cmp dword [ebp - 0xc], 0
je 0x50bd32
mov eax, dword [ebp - 0x10]
shr eax, 0x18
mov edx, dword [ebp - 8]
xor ecx, ecx
mov cl, byte [edx]
xor eax, ecx
mov eax, dword [eax*4 + 0x523844]
mov edx, dword [ebp - 0x10]
shl edx, 8
xor eax, edx
mov dword [ebp - 0x10], eax
inc dword [ebp - 8]
dec dword [ebp - 0xc]
jne 0x50bd09
not dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
shr eax, 0x18
mov edx, dword [ebp - 0x10]
shr edx, 8
and edx, 0xff00
add eax, edx
mov ecx, dword [ebp - 0x10]
and ecx, 0xff00
shl ecx, 8
add eax, ecx
mov edx, dword [ebp - 0x10]
and edx, 0xff
shl edx, 0x18
add eax, edx
mov esp, ebp
pop ebp
ret