Function at 0x4ad178
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x28]
mov edx, dword [ebp + 8]
cmp dword [edx - 8], 0x10
jg 0x4ad235
mov ecx, 0xa
mov edx, 0x2ed7494
mov dword [ebp - 4], edx
mov edx, dword [eax + 0xc]
mov ebx, edx
shr ebx, 8
and ebx, 0xff
mov esi, dword [0x2edc0ec]
movzx ebx, byte [esi + ebx]
mov esi, edx
shr esi, 0x10
and esi, 0xff
mov edi, dword [0x2edc0ec]
movzx esi, byte [edi + esi]
shl esi, 8
xor ebx, esi
mov esi, edx
shr esi, 0x18
mov edi, dword [0x2edc0ec]
movzx esi, byte [edi + esi]
shl esi, 0x10
xor ebx, esi
and edx, 0xff
mov esi, dword [0x2edc0ec]
movzx edx, byte [esi + edx]
shl edx, 0x18
xor ebx, edx
xor ebx, dword [eax]
mov edx, dword [ebp - 4]
xor ebx, dword [edx]
mov dword [eax + 0x10], ebx
mov edx, dword [eax + 4]
xor edx, dword [eax + 0x10]
mov dword [eax + 0x14], edx
mov ebx, dword [eax + 8]
xor ebx, edx
mov dword [eax + 0x18], ebx
mov edx, dword [eax + 0xc]
xor edx, ebx
mov dword [eax + 0x1c], edx
add eax, 0x10
add dword [ebp - 4], 4
dec ecx
jne 0x4ad1a4
jmp 0x4ad412
mov edx, dword [ebp + 8]
cmp dword [edx - 8], 0x18
jg 0x4ad2f9
xor ecx, ecx
mov edx, 0x2ed7494
mov dword [ebp - 8], edx
mov edx, dword [eax + 0x14]
mov ebx, edx
shr ebx, 8
and ebx, 0xff
mov esi, dword [0x2edc0ec]
movzx ebx, byte [esi + ebx]
mov esi, edx
shr esi, 0x10
and esi, 0xff
mov edi, dword [0x2edc0ec]
movzx esi, byte [edi + esi]
shl esi, 8
xor ebx, esi
mov esi, edx
shr esi, 0x18
mov edi, dword [0x2edc0ec]
movzx esi, byte [edi + esi]
shl esi, 0x10
xor ebx, esi
and edx, 0xff
mov esi, dword [0x2edc0ec]
movzx edx, byte [esi + edx]
shl edx, 0x18
xor ebx, edx
xor ebx, dword [eax]
mov edx, dword [ebp - 8]
xor ebx, dword [edx]
mov dword [eax + 0x18], ebx
mov edx, dword [eax + 4]
xor edx, dword [eax + 0x18]
mov dword [eax + 0x1c], edx
mov ebx, dword [eax + 8]
xor ebx, edx
mov dword [eax + 0x20], ebx
mov edx, dword [eax + 0xc]
xor edx, ebx
mov dword [eax + 0x24], edx
cmp ecx, 7
je 0x4ad412
mov ebx, dword [eax + 0x10]
xor ebx, edx
mov dword [eax + 0x28], ebx
mov edx, dword [eax + 0x14]
xor edx, ebx
mov dword [eax + 0x2c], edx
add eax, 0x18
inc ecx
add dword [ebp - 8], 4
cmp ecx, 8
jne 0x4ad24c
jmp 0x4ad412
xor ecx, ecx
mov edx, 0x2ed7494
mov dword [ebp - 0xc], edx
mov edx, dword [eax + 0x1c]
mov ebx, edx
shr ebx, 8
and ebx, 0xff
mov esi, dword [0x2edc0ec]
movzx ebx, byte [esi + ebx]
mov esi, edx
shr esi, 0x10
and esi, 0xff
mov edi, dword [0x2edc0ec]
movzx esi, byte [edi + esi]
shl esi, 8
xor ebx, esi
mov esi, edx
shr esi, 0x18
mov edi, dword [0x2edc0ec]
movzx esi, byte [edi + esi]
shl esi, 0x10
xor ebx, esi
and edx, 0xff
mov esi, dword [0x2edc0ec]
movzx edx, byte [esi + edx]
shl edx, 0x18
xor ebx, edx
xor ebx, dword [eax]
mov edx, dword [ebp - 0xc]
xor ebx, dword [edx]
mov dword [eax + 0x20], ebx
mov edx, dword [eax + 4]
xor edx, dword [eax + 0x20]
mov dword [eax + 0x24], edx
mov ebx, dword [eax + 8]
xor ebx, edx
mov dword [eax + 0x28], ebx
mov edx, dword [eax + 0xc]
xor edx, ebx
mov dword [eax + 0x2c], edx
cmp ecx, 6
je 0x4ad412
mov ebx, edx
and ebx, 0xff
mov esi, dword [0x2edc0ec]
movzx ebx, byte [esi + ebx]
mov esi, edx
shr esi, 8
and esi, 0xff
mov edi, dword [0x2edc0ec]
movzx esi, byte [edi + esi]
shl esi, 8
xor ebx, esi
mov esi, edx
shr esi, 0x10
and esi, 0xff
mov edi, dword [0x2edc0ec]
movzx esi, byte [edi + esi]
shl esi, 0x10
xor ebx, esi
shr edx, 0x18
mov esi, dword [0x2edc0ec]
movzx edx, byte [esi + edx]
shl edx, 0x18
xor ebx, edx
xor ebx, dword [eax + 0x10]
mov dword [eax + 0x30], ebx
mov edx, dword [eax + 0x14]
xor edx, dword [eax + 0x30]
mov dword [eax + 0x34], edx
mov ebx, dword [eax + 0x18]
xor ebx, edx
mov dword [eax + 0x38], ebx
mov edx, dword [eax + 0x1c]
xor edx, ebx
mov dword [eax + 0x3c], edx
add eax, 0x20
inc ecx
add dword [ebp - 0xc], 4
cmp ecx, 7
jne 0x4ad303
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret