Function at 0x4023e8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
shr eax, 0x18
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
and ecx, 0xff00
add eax, ecx
mov ecx, dword [ebp + 8]
and ecx, 0xff00
shl ecx, 8
add eax, ecx
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 0x402469
mov eax, dword [ebp + 0xc]
and eax, 3
je 0x402469
mov eax, dword [ebp - 8]
shr eax, 0x18
mov ecx, dword [ebp + 0xc]
movzx ecx, byte [ecx]
xor eax, ecx
mov ecx, dword [ebp - 8]
shl ecx, 8
xor ecx, dword [eax*4 + 0x57a5c8]
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
dec eax
mov dword [ebp + 0x10], eax
jmp 0x40242d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub eax, 4
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0x20
jb 0x402758
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, dword [eax]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
and eax, 0xff
mov ecx, dword [ebp - 8]
shr ecx, 8
and ecx, 0xff
mov eax, dword [eax*4 + 0x57a5c8]
xor eax, dword [ecx*4 + 0x57a9c8]
mov ecx, dword [ebp - 8]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x57adc8]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x57b1c8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, dword [eax]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
and eax, 0xff
mov ecx, dword [ebp - 8]
shr ecx, 8
and ecx, 0xff
mov eax, dword [eax*4 + 0x57a5c8]
xor eax, dword [ecx*4 + 0x57a9c8]
mov ecx, dword [ebp - 8]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x57adc8]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x57b1c8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, dword [eax]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
and eax, 0xff
mov ecx, dword [ebp - 8]
shr ecx, 8
and ecx, 0xff
mov eax, dword [eax*4 + 0x57a5c8]
xor eax, dword [ecx*4 + 0x57a9c8]
mov ecx, dword [ebp - 8]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x57adc8]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x57b1c8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, dword [eax]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
and eax, 0xff
mov ecx, dword [ebp - 8]
shr ecx, 8
and ecx, 0xff
mov eax, dword [eax*4 + 0x57a5c8]
xor eax, dword [ecx*4 + 0x57a9c8]
mov ecx, dword [ebp - 8]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x57adc8]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x57b1c8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, dword [eax]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
and eax, 0xff
mov ecx, dword [ebp - 8]
shr ecx, 8
and ecx, 0xff
mov eax, dword [eax*4 + 0x57a5c8]
xor eax, dword [ecx*4 + 0x57a9c8]
mov ecx, dword [ebp - 8]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x57adc8]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x57b1c8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, dword [eax]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
and eax, 0xff
mov ecx, dword [ebp - 8]
shr ecx, 8
and ecx, 0xff
mov eax, dword [eax*4 + 0x57a5c8]
xor eax, dword [ecx*4 + 0x57a9c8]
mov ecx, dword [ebp - 8]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x57adc8]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x57b1c8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, dword [eax]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
and eax, 0xff
mov ecx, dword [ebp - 8]
shr ecx, 8
and ecx, 0xff
mov eax, dword [eax*4 + 0x57a5c8]
xor eax, dword [ecx*4 + 0x57a9c8]
mov ecx, dword [ebp - 8]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x57adc8]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x57b1c8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, dword [eax]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
and eax, 0xff
mov ecx, dword [ebp - 8]
shr ecx, 8
and ecx, 0xff
mov eax, dword [eax*4 + 0x57a5c8]
xor eax, dword [ecx*4 + 0x57a9c8]
mov ecx, dword [ebp - 8]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x57adc8]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x57b1c8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
sub eax, 0x20
mov dword [ebp + 0x10], eax
jmp 0x402478
cmp dword [ebp + 0x10], 4
jb 0x4027c2
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, dword [eax]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
and eax, 0xff
mov ecx, dword [ebp - 8]
shr ecx, 8
and ecx, 0xff
mov eax, dword [eax*4 + 0x57a5c8]
xor eax, dword [ecx*4 + 0x57a9c8]
mov ecx, dword [ebp - 8]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x57adc8]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x57b1c8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
sub eax, 4
mov dword [ebp + 0x10], eax
jmp 0x402758
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0x10], 0
je 0x402805
mov eax, dword [ebp - 8]
shr eax, 0x18
mov ecx, dword [ebp + 0xc]
movzx ecx, byte [ecx]
xor eax, ecx
mov ecx, dword [ebp - 8]
shl ecx, 8
xor ecx, dword [eax*4 + 0x57a5c8]
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
dec eax
mov dword [ebp + 0x10], eax
jne 0x4027d7
mov eax, dword [ebp - 8]
not eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
shr eax, 0x18
and eax, 0xff
mov ecx, dword [ebp - 8]
shr ecx, 8
and ecx, 0xff00
add eax, ecx
mov ecx, dword [ebp - 8]
and ecx, 0xff00
shl ecx, 8
add eax, ecx
mov ecx, dword [ebp - 8]
and ecx, 0xff
shl ecx, 0x18
add eax, ecx
leave
ret