Function at 0x50fcaa
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [ebp + 8]
shr eax, 0x18
and eax, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
and edx, 0xff00
add eax, edx
mov ecx, dword [ebp + 8]
and ecx, 0xff00
shl ecx, 8
add eax, ecx
mov edx, dword [ebp + 8]
and edx, 0xff
shl edx, 0x18
add eax, edx
mov dword [ebp - 4], eax
not dword [ebp - 4]
jmp 0x50fd14
mov eax, dword [ebp - 4]
shr eax, 0x18
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
xor eax, edx
mov eax, dword [eax*4 + 0x7da078]
mov ecx, dword [ebp - 4]
shl ecx, 8
xor eax, ecx
mov dword [ebp - 4], eax
inc dword [ebp + 0xc]
dec dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x50fd21
test byte [ebp + 0xc], 3
jne 0x50fced
mov edx, dword [ebp + 0xc]
mov dword [ebp - 8], edx
sub dword [ebp - 8], 4
mov ecx, dword [ebp + 0x10]
cmp ecx, 0x20
jb 0x50fff9
add dword [ebp - 8], 4
mov eax, dword [ebp - 8]
mov edx, dword [eax]
xor dword [ebp - 4], edx
mov ecx, dword [ebp - 4]
and ecx, 0xff
mov eax, dword [ecx*4 + 0x7da078]
mov edx, dword [ebp - 4]
shr edx, 8
and edx, 0xff
mov ecx, dword [edx*4 + 0x7da478]
xor eax, ecx
mov edx, dword [ebp - 4]
shr edx, 0x10
and edx, 0xff
mov ecx, dword [edx*4 + 0x7da878]
xor eax, ecx
mov edx, dword [ebp - 4]
shr edx, 0x18
mov ecx, dword [edx*4 + 0x7dac78]
xor eax, ecx
mov dword [ebp - 4], eax
add dword [ebp - 8], 4
mov eax, dword [ebp - 8]
mov eax, dword [eax]
xor dword [ebp - 4], eax
mov edx, dword [ebp - 4]
and edx, 0xff
mov ecx, dword [edx*4 + 0x7da078]
mov eax, dword [ebp - 4]
shr eax, 8
and eax, 0xff
mov edx, dword [eax*4 + 0x7da478]
xor ecx, edx
mov eax, dword [ebp - 4]
shr eax, 0x10
and eax, 0xff
mov edx, dword [eax*4 + 0x7da878]
xor ecx, edx
mov eax, dword [ebp - 4]
shr eax, 0x18
mov edx, dword [eax*4 + 0x7dac78]
xor ecx, edx
mov dword [ebp - 4], ecx
add dword [ebp - 8], 4
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
xor dword [ebp - 4], eax
mov edx, dword [ebp - 4]
and edx, 0xff
mov ecx, dword [edx*4 + 0x7da078]
mov eax, dword [ebp - 4]
shr eax, 8
and eax, 0xff
mov edx, dword [eax*4 + 0x7da478]
xor ecx, edx
mov eax, dword [ebp - 4]
shr eax, 0x10
and eax, 0xff
mov edx, dword [eax*4 + 0x7da878]
xor ecx, edx
mov eax, dword [ebp - 4]
shr eax, 0x18
mov edx, dword [eax*4 + 0x7dac78]
xor ecx, edx
mov dword [ebp - 4], ecx
add dword [ebp - 8], 4
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
xor dword [ebp - 4], eax
mov edx, dword [ebp - 4]
and edx, 0xff
mov ecx, dword [edx*4 + 0x7da078]
mov eax, dword [ebp - 4]
shr eax, 8
and eax, 0xff
mov edx, dword [eax*4 + 0x7da478]
xor ecx, edx
mov eax, dword [ebp - 4]
shr eax, 0x10
and eax, 0xff
mov edx, dword [eax*4 + 0x7da878]
xor ecx, edx
mov eax, dword [ebp - 4]
shr eax, 0x18
mov edx, dword [eax*4 + 0x7dac78]
xor ecx, edx
mov dword [ebp - 4], ecx
add dword [ebp - 8], 4
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
xor dword [ebp - 4], eax
mov edx, dword [ebp - 4]
and edx, 0xff
mov ecx, dword [edx*4 + 0x7da078]
mov eax, dword [ebp - 4]
shr eax, 8
and eax, 0xff
mov edx, dword [eax*4 + 0x7da478]
xor ecx, edx
mov eax, dword [ebp - 4]
shr eax, 0x10
and eax, 0xff
mov edx, dword [eax*4 + 0x7da878]
xor ecx, edx
mov eax, dword [ebp - 4]
shr eax, 0x18
mov edx, dword [eax*4 + 0x7dac78]
xor ecx, edx
mov dword [ebp - 4], ecx
add dword [ebp - 8], 4
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
xor dword [ebp - 4], eax
mov edx, dword [ebp - 4]
and edx, 0xff
mov ecx, dword [edx*4 + 0x7da078]
mov eax, dword [ebp - 4]
shr eax, 8
and eax, 0xff
mov edx, dword [eax*4 + 0x7da478]
xor ecx, edx
mov eax, dword [ebp - 4]
shr eax, 0x10
and eax, 0xff
mov edx, dword [eax*4 + 0x7da878]
xor ecx, edx
mov eax, dword [ebp - 4]
shr eax, 0x18
mov edx, dword [eax*4 + 0x7dac78]
xor ecx, edx
mov dword [ebp - 4], ecx
add dword [ebp - 8], 4
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
xor dword [ebp - 4], eax
mov edx, dword [ebp - 4]
and edx, 0xff
mov ecx, dword [edx*4 + 0x7da078]
mov eax, dword [ebp - 4]
shr eax, 8
and eax, 0xff
mov edx, dword [eax*4 + 0x7da478]
xor ecx, edx
mov eax, dword [ebp - 4]
shr eax, 0x10
and eax, 0xff
mov edx, dword [eax*4 + 0x7da878]
xor ecx, edx
mov eax, dword [ebp - 4]
shr eax, 0x18
mov edx, dword [eax*4 + 0x7dac78]
xor ecx, edx
mov dword [ebp - 4], ecx
add dword [ebp - 8], 4
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
xor dword [ebp - 4], eax
mov edx, dword [ebp - 4]
and edx, 0xff
mov ecx, dword [edx*4 + 0x7da078]
mov eax, dword [ebp - 4]
shr eax, 8
and eax, 0xff
mov edx, dword [eax*4 + 0x7da478]
xor ecx, edx
mov eax, dword [ebp - 4]
shr eax, 0x10
and eax, 0xff
mov edx, dword [eax*4 + 0x7da878]
xor ecx, edx
mov eax, dword [ebp - 4]
shr eax, 0x18
mov edx, dword [eax*4 + 0x7dac78]
xor ecx, edx
mov dword [ebp - 4], ecx
sub dword [ebp + 0x10], 0x20
mov ecx, dword [ebp + 0x10]
cmp ecx, 0x20
jae 0x50fd37
mov eax, dword [ebp + 0x10]
cmp eax, 4
jb 0x510064
add dword [ebp - 8], 4
mov edx, dword [ebp - 8]
mov ecx, dword [edx]
xor dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
and eax, 0xff
mov edx, dword [eax*4 + 0x7da078]
mov ecx, dword [ebp - 4]
shr ecx, 8
and ecx, 0xff
mov eax, dword [ecx*4 + 0x7da478]
xor edx, eax
mov ecx, dword [ebp - 4]
shr ecx, 0x10
and ecx, 0xff
mov eax, dword [ecx*4 + 0x7da878]
xor edx, eax
mov ecx, dword [ebp - 4]
shr ecx, 0x18
mov eax, dword [ecx*4 + 0x7dac78]
xor edx, eax
mov dword [ebp - 4], edx
sub dword [ebp + 0x10], 4
mov edx, dword [ebp + 0x10]
cmp edx, 4
jae 0x510001
add dword [ebp - 8], 4
mov ecx, dword [ebp - 8]
mov dword [ebp + 0xc], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x51009e
mov edx, dword [ebp - 4]
shr edx, 0x18
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [ecx]
xor edx, eax
mov edx, dword [edx*4 + 0x7da078]
mov ecx, dword [ebp - 4]
shl ecx, 8
xor edx, ecx
mov dword [ebp - 4], edx
inc dword [ebp + 0xc]
dec dword [ebp + 0x10]
jne 0x510075
not dword [ebp - 4]
mov eax, dword [ebp - 4]
shr eax, 0x18
and eax, 0xff
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
pop ecx
pop ecx
pop ebp
ret