Function at 0x594300
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push ebx
push esi
push edi
lea edi, [ebp - 0xd8]
mov ecx, 0x36
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
not eax
mov dword [ebp - 8], eax
cmp dword [ebp + 0x10], 0
je 0x59436d
mov eax, dword [ebp + 0xc]
and eax, 3
je 0x59436d
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp - 8]
and ecx, 0xff
mov edx, dword [ebp - 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x56b8f8]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
sub eax, 1
mov dword [ebp + 0x10], eax
jmp 0x59432c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x10], 0x20
jb 0x59464b
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
xor ecx, dword [eax]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
add edx, 4
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
and eax, 0xff
mov ecx, dword [ebp - 8]
shr ecx, 8
and ecx, 0xff
mov edx, dword [eax*4 + 0x56c4f8]
xor edx, dword [ecx*4 + 0x56c0f8]
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xff
xor edx, dword [eax*4 + 0x56bcf8]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x56b8f8]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
xor ecx, dword [eax]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
add edx, 4
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
and eax, 0xff
mov ecx, dword [ebp - 8]
shr ecx, 8
and ecx, 0xff
mov edx, dword [eax*4 + 0x56c4f8]
xor edx, dword [ecx*4 + 0x56c0f8]
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xff
xor edx, dword [eax*4 + 0x56bcf8]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x56b8f8]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
xor ecx, dword [eax]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
add edx, 4
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
and eax, 0xff
mov ecx, dword [ebp - 8]
shr ecx, 8
and ecx, 0xff
mov edx, dword [eax*4 + 0x56c4f8]
xor edx, dword [ecx*4 + 0x56c0f8]
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xff
xor edx, dword [eax*4 + 0x56bcf8]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x56b8f8]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
xor ecx, dword [eax]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
add edx, 4
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
and eax, 0xff
mov ecx, dword [ebp - 8]
shr ecx, 8
and ecx, 0xff
mov edx, dword [eax*4 + 0x56c4f8]
xor edx, dword [ecx*4 + 0x56c0f8]
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xff
xor edx, dword [eax*4 + 0x56bcf8]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x56b8f8]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
xor ecx, dword [eax]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
add edx, 4
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
and eax, 0xff
mov ecx, dword [ebp - 8]
shr ecx, 8
and ecx, 0xff
mov edx, dword [eax*4 + 0x56c4f8]
xor edx, dword [ecx*4 + 0x56c0f8]
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xff
xor edx, dword [eax*4 + 0x56bcf8]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x56b8f8]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
xor ecx, dword [eax]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
add edx, 4
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
and eax, 0xff
mov ecx, dword [ebp - 8]
shr ecx, 8
and ecx, 0xff
mov edx, dword [eax*4 + 0x56c4f8]
xor edx, dword [ecx*4 + 0x56c0f8]
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xff
xor edx, dword [eax*4 + 0x56bcf8]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x56b8f8]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
xor ecx, dword [eax]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
add edx, 4
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
and eax, 0xff
mov ecx, dword [ebp - 8]
shr ecx, 8
and ecx, 0xff
mov edx, dword [eax*4 + 0x56c4f8]
xor edx, dword [ecx*4 + 0x56c0f8]
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xff
xor edx, dword [eax*4 + 0x56bcf8]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x56b8f8]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
xor ecx, dword [eax]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
add edx, 4
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
and eax, 0xff
mov ecx, dword [ebp - 8]
shr ecx, 8
and ecx, 0xff
mov edx, dword [eax*4 + 0x56c4f8]
xor edx, dword [ecx*4 + 0x56c0f8]
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xff
xor edx, dword [eax*4 + 0x56bcf8]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x56b8f8]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x10]
sub eax, 0x20
mov dword [ebp + 0x10], eax
jmp 0x594373
cmp dword [ebp + 0x10], 4
jb 0x5946b4
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
xor ecx, dword [eax]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
add edx, 4
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
and eax, 0xff
mov ecx, dword [ebp - 8]
shr ecx, 8
and ecx, 0xff
mov edx, dword [eax*4 + 0x56c4f8]
xor edx, dword [ecx*4 + 0x56c0f8]
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xff
xor edx, dword [eax*4 + 0x56bcf8]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x56b8f8]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x10]
sub eax, 4
mov dword [ebp + 0x10], eax
jmp 0x59464b
mov eax, dword [ebp - 0x14]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0x10], 0
je 0x5946f3
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp - 8]
and ecx, 0xff
mov edx, dword [ebp - 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x56b8f8]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
sub eax, 1
mov dword [ebp + 0x10], eax
jne 0x5946c0
mov eax, dword [ebp - 8]
not eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret