Function at 0x40844c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
shr eax, 0x18
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 - 4], eax
mov eax, dword [ebp - 4]
not eax
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
je 0x4084cc
mov eax, dword [ebp + 0xc]
and eax, 3
test eax, eax
je 0x4084cc
mov eax, dword [ebp - 4]
shr eax, 0x18
mov ecx, dword [ebp + 0xc]
movzx ecx, byte [ecx]
xor eax, ecx
mov ecx, dword [ebp - 4]
shl ecx, 8
mov eax, dword [eax*4 + 0x414aa8]
xor eax, ecx
mov dword [ebp - 4], eax
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 0x40848c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
sub eax, 4
mov dword [ebp - 8], eax
cmp dword [ebp + 0x10], 0x20
jb 0x4087bb
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, dword [eax]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
and eax, 0xff
mov ecx, dword [ebp - 4]
shr ecx, 8
and ecx, 0xff
mov eax, dword [eax*4 + 0x414aa8]
xor eax, dword [ecx*4 + 0x414ea8]
mov ecx, dword [ebp - 4]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x4152a8]
mov ecx, dword [ebp - 4]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x4156a8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, dword [eax]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
and eax, 0xff
mov ecx, dword [ebp - 4]
shr ecx, 8
and ecx, 0xff
mov eax, dword [eax*4 + 0x414aa8]
xor eax, dword [ecx*4 + 0x414ea8]
mov ecx, dword [ebp - 4]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x4152a8]
mov ecx, dword [ebp - 4]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x4156a8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, dword [eax]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
and eax, 0xff
mov ecx, dword [ebp - 4]
shr ecx, 8
and ecx, 0xff
mov eax, dword [eax*4 + 0x414aa8]
xor eax, dword [ecx*4 + 0x414ea8]
mov ecx, dword [ebp - 4]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x4152a8]
mov ecx, dword [ebp - 4]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x4156a8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, dword [eax]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
and eax, 0xff
mov ecx, dword [ebp - 4]
shr ecx, 8
and ecx, 0xff
mov eax, dword [eax*4 + 0x414aa8]
xor eax, dword [ecx*4 + 0x414ea8]
mov ecx, dword [ebp - 4]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x4152a8]
mov ecx, dword [ebp - 4]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x4156a8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, dword [eax]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
and eax, 0xff
mov ecx, dword [ebp - 4]
shr ecx, 8
and ecx, 0xff
mov eax, dword [eax*4 + 0x414aa8]
xor eax, dword [ecx*4 + 0x414ea8]
mov ecx, dword [ebp - 4]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x4152a8]
mov ecx, dword [ebp - 4]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x4156a8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, dword [eax]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
and eax, 0xff
mov ecx, dword [ebp - 4]
shr ecx, 8
and ecx, 0xff
mov eax, dword [eax*4 + 0x414aa8]
xor eax, dword [ecx*4 + 0x414ea8]
mov ecx, dword [ebp - 4]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x4152a8]
mov ecx, dword [ebp - 4]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x4156a8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, dword [eax]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
and eax, 0xff
mov ecx, dword [ebp - 4]
shr ecx, 8
and ecx, 0xff
mov eax, dword [eax*4 + 0x414aa8]
xor eax, dword [ecx*4 + 0x414ea8]
mov ecx, dword [ebp - 4]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x4152a8]
mov ecx, dword [ebp - 4]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x4156a8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, dword [eax]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
and eax, 0xff
mov ecx, dword [ebp - 4]
shr ecx, 8
and ecx, 0xff
mov eax, dword [eax*4 + 0x414aa8]
xor eax, dword [ecx*4 + 0x414ea8]
mov ecx, dword [ebp - 4]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x4152a8]
mov ecx, dword [ebp - 4]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x4156a8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
sub eax, 0x20
mov dword [ebp + 0x10], eax
jmp 0x4084db
cmp dword [ebp + 0x10], 4
jb 0x408825
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, dword [eax]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
and eax, 0xff
mov ecx, dword [ebp - 4]
shr ecx, 8
and ecx, 0xff
mov eax, dword [eax*4 + 0x414aa8]
xor eax, dword [ecx*4 + 0x414ea8]
mov ecx, dword [ebp - 4]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x4152a8]
mov ecx, dword [ebp - 4]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x4156a8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
sub eax, 4
mov dword [ebp + 0x10], eax
jmp 0x4087bb
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0x10], 0
je 0x40886e
mov eax, dword [ebp - 4]
shr eax, 0x18
mov ecx, dword [ebp + 0xc]
movzx ecx, byte [ecx]
xor eax, ecx
mov ecx, dword [ebp - 4]
shl ecx, 8
mov eax, dword [eax*4 + 0x414aa8]
xor eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
dec eax
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x10], 0
jne 0x40883a
mov eax, dword [ebp - 4]
not eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
shr eax, 0x18
mov ecx, dword [ebp - 4]
shr ecx, 8
and ecx, 0xff00
add eax, ecx
mov ecx, dword [ebp - 4]
and ecx, 0xff00
shl ecx, 8
add eax, ecx
mov ecx, dword [ebp - 4]
and ecx, 0xff
shl ecx, 0x18
add eax, ecx
leave
ret