Function at 0x409ae3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
lea eax, [edi + 0xb4]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0040991d
movzx eax, byte [ebp - 0x10]
mov eax, dword [eax*4 + 0x4178a8]
movzx ecx, byte [ebp - 3]
xor eax, dword [ecx*4 + 0x4174a8]
movzx ecx, byte [ebp - 6]
xor eax, dword [ecx*4 + 0x4170a8]
movzx ecx, byte [ebp - 9]
xor eax, dword [ecx*4 + 0x416ca8]
mov esi, dword [ebp + 0xc]
movzx ecx, byte [ebp - 0xf]
mov dword [esi], eax
movzx eax, byte [ebp - 0xc]
mov eax, dword [eax*4 + 0x4178a8]
xor eax, dword [ecx*4 + 0x4174a8]
movzx ecx, byte [ebp - 2]
xor eax, dword [ecx*4 + 0x4170a8]
movzx ecx, byte [ebp - 5]
xor eax, dword [ecx*4 + 0x416ca8]
movzx ecx, byte [ebp - 0xb]
mov dword [esi + 4], eax
movzx eax, byte [ebp - 8]
mov eax, dword [eax*4 + 0x4178a8]
xor eax, dword [ecx*4 + 0x4174a8]
movzx ecx, byte [ebp - 0xe]
xor eax, dword [ecx*4 + 0x4170a8]
movzx ecx, byte [ebp - 1]
xor eax, dword [ecx*4 + 0x416ca8]
movzx ecx, byte [ebp - 7]
mov dword [esi + 8], eax
movzx eax, byte [ebp - 4]
mov eax, dword [eax*4 + 0x4178a8]
xor eax, dword [ecx*4 + 0x4174a8]
movzx ecx, byte [ebp - 0xa]
xor eax, dword [ecx*4 + 0x4170a8]
movzx ecx, byte [ebp - 0xd]
xor eax, dword [ecx*4 + 0x416ca8]
lea ebx, [edi + 0xa4]
mov dword [esi + 0xc], eax
mov dword [ebp + 8], 8
push ebx
push esi
lea eax, [ebp - 0x10]
push eax
call fcn.0040991d
movzx eax, byte [ebp - 0x10]
mov eax, dword [eax*4 + 0x4178a8]
movzx ecx, byte [ebp - 3]
xor eax, dword [ecx*4 + 0x4174a8]
movzx ecx, byte [ebp - 6]
xor eax, dword [ecx*4 + 0x4170a8]
movzx ecx, byte [ebp - 9]
xor eax, dword [ecx*4 + 0x416ca8]
movzx ecx, byte [ebp - 0xf]
mov dword [esi], eax
movzx eax, byte [ebp - 0xc]
mov eax, dword [eax*4 + 0x4178a8]
xor eax, dword [ecx*4 + 0x4174a8]
movzx ecx, byte [ebp - 2]
xor eax, dword [ecx*4 + 0x4170a8]
movzx ecx, byte [ebp - 5]
xor eax, dword [ecx*4 + 0x416ca8]
movzx ecx, byte [ebp - 0xb]
mov dword [esi + 4], eax
movzx eax, byte [ebp - 8]
mov eax, dword [eax*4 + 0x4178a8]
xor eax, dword [ecx*4 + 0x4174a8]
movzx ecx, byte [ebp - 0xe]
xor eax, dword [ecx*4 + 0x4170a8]
movzx ecx, byte [ebp - 1]
xor eax, dword [ecx*4 + 0x416ca8]
movzx ecx, byte [ebp - 7]
mov dword [esi + 8], eax
movzx eax, byte [ebp - 4]
mov eax, dword [eax*4 + 0x4178a8]
xor eax, dword [ecx*4 + 0x4174a8]
movzx ecx, byte [ebp - 0xa]
xor eax, dword [ecx*4 + 0x4170a8]
movzx ecx, byte [ebp - 0xd]
xor eax, dword [ecx*4 + 0x416ca8]
sub ebx, 0x10
dec dword [ebp + 8]
mov dword [esi + 0xc], eax
jne 0x409bcc
lea eax, [edi + 0x24]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
call fcn.0040991d
movzx eax, byte [ebp - 0x10]
mov al, byte [eax + 0x418cc8]
mov byte [esi], al
movzx eax, byte [ebp - 3]
mov al, byte [eax + 0x418cc8]
mov byte [esi + 1], al
movzx eax, byte [ebp - 6]
mov al, byte [eax + 0x418cc8]
mov byte [esi + 2], al
movzx eax, byte [ebp - 9]
mov al, byte [eax + 0x418cc8]
mov byte [esi + 3], al
movzx eax, byte [ebp - 0xc]
mov al, byte [eax + 0x418cc8]
mov byte [esi + 4], al
movzx eax, byte [ebp - 0xf]
mov al, byte [eax + 0x418cc8]
mov byte [esi + 5], al
movzx eax, byte [ebp - 2]
mov al, byte [eax + 0x418cc8]
mov byte [esi + 6], al
movzx eax, byte [ebp - 5]
mov al, byte [eax + 0x418cc8]
mov byte [esi + 7], al
movzx eax, byte [ebp - 8]
mov al, byte [eax + 0x418cc8]
mov byte [esi + 8], al
movzx eax, byte [ebp - 0xb]
mov al, byte [eax + 0x418cc8]
mov byte [esi + 9], al
movzx eax, byte [ebp - 0xe]
mov al, byte [eax + 0x418cc8]
mov byte [esi + 0xa], al
movzx eax, byte [ebp - 1]
mov al, byte [eax + 0x418cc8]
mov byte [esi + 0xb], al
movzx eax, byte [ebp - 4]
mov al, byte [eax + 0x418cc8]
mov byte [esi + 0xc], al
movzx eax, byte [ebp - 7]
mov al, byte [eax + 0x418cc8]
mov byte [esi + 0xd], al
movzx eax, byte [ebp - 0xa]
mov al, byte [eax + 0x418cc8]
mov byte [esi + 0xe], al
movzx eax, byte [ebp - 0xd]
mov al, byte [eax + 0x418cc8]
add edi, 0x14
push edi
push esi
push esi
mov byte [esi + 0xf], al
call fcn.0040991d
pop edi
pop esi
pop ebx
leave
ret 8