Function at 0x4f5863
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
shr eax, 0x18
mov ecx, dword [ebp + 8]
shr ecx, 8
and ecx, 0xff00
add eax, ecx
mov edx, dword [ebp + 8]
and edx, 0xff00
shl edx, 8
add eax, edx
mov ecx, dword [ebp + 8]
and ecx, 0xff
shl ecx, 0x18
add eax, ecx
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
not edx
mov dword [ebp - 4], edx
cmp dword [ebp + 0x10], 0
je 0x4f58e9
mov eax, dword [ebp + 0xc]
and eax, 3
test eax, eax
je 0x4f58e9
mov ecx, dword [ebp - 4]
shr ecx, 0x18
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx]
xor ecx, eax
mov edx, dword [ebp - 4]
shl edx, 8
mov eax, dword [ecx*4 + 0x581ca0]
xor eax, edx
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jmp 0x4f58a4
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
sub ecx, 4
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x10], 0x20
jb 0x4f5bd9
mov edx, dword [ebp - 8]
add edx, 4
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, dword [eax]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [ebp - 4]
shr eax, 8
and eax, 0xff
mov ecx, dword [edx*4 + 0x581ca0]
xor ecx, dword [eax*4 + 0x5820a0]
mov edx, dword [ebp - 4]
shr edx, 0x10
and edx, 0xff
xor ecx, dword [edx*4 + 0x5824a0]
mov eax, dword [ebp - 4]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5828a0]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
xor eax, dword [edx]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
and ecx, 0xff
mov edx, dword [ebp - 4]
shr edx, 8
and edx, 0xff
mov eax, dword [ecx*4 + 0x581ca0]
xor eax, dword [edx*4 + 0x5820a0]
mov ecx, dword [ebp - 4]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5824a0]
mov edx, dword [ebp - 4]
shr edx, 0x18
xor eax, dword [edx*4 + 0x5828a0]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
xor edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
and eax, 0xff
mov ecx, dword [ebp - 4]
shr ecx, 8
and ecx, 0xff
mov edx, dword [eax*4 + 0x581ca0]
xor edx, dword [ecx*4 + 0x5820a0]
mov eax, dword [ebp - 4]
shr eax, 0x10
and eax, 0xff
xor edx, dword [eax*4 + 0x5824a0]
mov ecx, dword [ebp - 4]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x5828a0]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 8]
add edx, 4
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, dword [eax]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [ebp - 4]
shr eax, 8
and eax, 0xff
mov ecx, dword [edx*4 + 0x581ca0]
xor ecx, dword [eax*4 + 0x5820a0]
mov edx, dword [ebp - 4]
shr edx, 0x10
and edx, 0xff
xor ecx, dword [edx*4 + 0x5824a0]
mov eax, dword [ebp - 4]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5828a0]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
xor eax, dword [edx]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
and ecx, 0xff
mov edx, dword [ebp - 4]
shr edx, 8
and edx, 0xff
mov eax, dword [ecx*4 + 0x581ca0]
xor eax, dword [edx*4 + 0x5820a0]
mov ecx, dword [ebp - 4]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5824a0]
mov edx, dword [ebp - 4]
shr edx, 0x18
xor eax, dword [edx*4 + 0x5828a0]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
xor edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
and eax, 0xff
mov ecx, dword [ebp - 4]
shr ecx, 8
and ecx, 0xff
mov edx, dword [eax*4 + 0x581ca0]
xor edx, dword [ecx*4 + 0x5820a0]
mov eax, dword [ebp - 4]
shr eax, 0x10
and eax, 0xff
xor edx, dword [eax*4 + 0x5824a0]
mov ecx, dword [ebp - 4]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x5828a0]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 8]
add edx, 4
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, dword [eax]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [ebp - 4]
shr eax, 8
and eax, 0xff
mov ecx, dword [edx*4 + 0x581ca0]
xor ecx, dword [eax*4 + 0x5820a0]
mov edx, dword [ebp - 4]
shr edx, 0x10
and edx, 0xff
xor ecx, dword [edx*4 + 0x5824a0]
mov eax, dword [ebp - 4]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5828a0]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
xor eax, dword [edx]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
and ecx, 0xff
mov edx, dword [ebp - 4]
shr edx, 8
and edx, 0xff
mov eax, dword [ecx*4 + 0x581ca0]
xor eax, dword [edx*4 + 0x5820a0]
mov ecx, dword [ebp - 4]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5824a0]
mov edx, dword [ebp - 4]
shr edx, 0x18
xor eax, dword [edx*4 + 0x5828a0]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
sub eax, 0x20
mov dword [ebp + 0x10], eax
jmp 0x4f58f8
cmp dword [ebp + 0x10], 4
jb 0x4f5c44
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
xor eax, dword [edx]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
and ecx, 0xff
mov edx, dword [ebp - 4]
shr edx, 8
and edx, 0xff
mov eax, dword [ecx*4 + 0x581ca0]
xor eax, dword [edx*4 + 0x5820a0]
mov ecx, dword [ebp - 4]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5824a0]
mov edx, dword [ebp - 4]
shr edx, 0x18
xor eax, dword [edx*4 + 0x5828a0]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
sub eax, 4
mov dword [ebp + 0x10], eax
jmp 0x4f5bd9
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov dword [ebp + 0xc], edx
cmp dword [ebp + 0x10], 0
je 0x4f5c92
mov eax, dword [ebp - 4]
shr eax, 0x18
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
xor eax, edx
mov ecx, dword [ebp - 4]
shl ecx, 8
mov edx, dword [eax*4 + 0x581ca0]
xor edx, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp + 0x10], ecx
cmp dword [ebp + 0x10], 0
jne 0x4f5c59
mov edx, dword [ebp - 4]
not edx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
shr eax, 0x18
mov ecx, dword [ebp - 4]
shr ecx, 8
and ecx, 0xff00
add eax, ecx
mov edx, dword [ebp - 4]
and edx, 0xff00
shl edx, 8
add eax, edx
mov ecx, dword [ebp - 4]
and ecx, 0xff
shl ecx, 0x18
add eax, ecx
mov esp, ebp
pop ebp
ret