Function at 0x40aba0
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]
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 - 8], eax
mov eax, dword [ebp - 8]
not eax
mov dword [ebp - 8], eax
cmp dword [ebp + 0x10], 0
je 0x40ac39
mov eax, dword [ebp + 0xc]
and eax, 3
je 0x40ac39
mov eax, dword [ebp - 8]
shr eax, 0x18
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor eax, edx
mov ecx, dword [ebp - 8]
shl ecx, 8
xor ecx, dword [eax*4 + 0x430e68]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 1
mov dword [ebp + 0x10], eax
jmp 0x40abf9
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
sub eax, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x10], 0x20
jb 0x40af20
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
xor edx, dword [ecx]
mov dword [ebp - 8], 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 + 0x430e68]
xor edx, dword [ecx*4 + 0x431268]
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xff
xor edx, dword [eax*4 + 0x431668]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x431a68]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
xor edx, dword [ecx]
mov dword [ebp - 8], 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 + 0x430e68]
xor edx, dword [ecx*4 + 0x431268]
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xff
xor edx, dword [eax*4 + 0x431668]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x431a68]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
xor edx, dword [ecx]
mov dword [ebp - 8], 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 + 0x430e68]
xor edx, dword [ecx*4 + 0x431268]
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xff
xor edx, dword [eax*4 + 0x431668]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x431a68]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
xor edx, dword [ecx]
mov dword [ebp - 8], 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 + 0x430e68]
xor edx, dword [ecx*4 + 0x431268]
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xff
xor edx, dword [eax*4 + 0x431668]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x431a68]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
xor edx, dword [ecx]
mov dword [ebp - 8], 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 + 0x430e68]
xor edx, dword [ecx*4 + 0x431268]
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xff
xor edx, dword [eax*4 + 0x431668]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x431a68]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
xor edx, dword [ecx]
mov dword [ebp - 8], 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 + 0x430e68]
xor edx, dword [ecx*4 + 0x431268]
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xff
xor edx, dword [eax*4 + 0x431668]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x431a68]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
xor edx, dword [ecx]
mov dword [ebp - 8], 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 + 0x430e68]
xor edx, dword [ecx*4 + 0x431268]
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xff
xor edx, dword [eax*4 + 0x431668]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x431a68]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
xor edx, dword [ecx]
mov dword [ebp - 8], 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 + 0x430e68]
xor edx, dword [ecx*4 + 0x431268]
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xff
xor edx, dword [eax*4 + 0x431668]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x431a68]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x10]
sub eax, 0x20
mov dword [ebp + 0x10], eax
jmp 0x40ac48
cmp dword [ebp + 0x10], 4
jb 0x40af89
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
xor edx, dword [ecx]
mov dword [ebp - 8], 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 + 0x430e68]
xor edx, dword [ecx*4 + 0x431268]
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xff
xor edx, dword [eax*4 + 0x431668]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x431a68]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x10]
sub eax, 4
mov dword [ebp + 0x10], eax
jmp 0x40af20
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0x10], 0
je 0x40afd0
mov eax, dword [ebp - 8]
shr eax, 0x18
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor eax, edx
mov ecx, dword [ebp - 8]
shl ecx, 8
xor ecx, dword [eax*4 + 0x430e68]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 1
mov dword [ebp + 0x10], eax
jne 0x40af9e
mov eax, dword [ebp - 8]
not eax
mov dword [ebp - 8], eax
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
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret