Function at 0x8a174d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 0
push esi
push edi
not eax
mov esi, 0xff
je 0x8a1788
test byte [ebp + 0xc], 3
je 0x8a1788
mov edx, dword [ebp + 0xc]
mov ecx, eax
and ecx, esi
movzx edx, byte [edx]
xor ecx, edx
shr eax, 8
mov ecx, dword [ecx*4 + 0x1000d14c]
xor eax, ecx
inc dword [ebp + 0xc]
dec dword [ebp + 0x10]
jne 0x8a1762
cmp dword [ebp + 0x10], 0x20
mov edi, dword [ebp + 0xc]
push ebx
push 4
pop edx
jb 0x8a1947
mov ecx, dword [ebp + 0x10]
shr ecx, 5
mov dword [ebp + 8], ecx
xor eax, dword [edi]
xor ecx, ecx
xor ebx, ebx
add edi, edx
mov dword [ebp + 0xc], eax
mov bl, ah
mov cl, byte [ebp + 0xe]
mov ecx, dword [ecx*4 + 0x1000d54c]
xor ecx, dword [ebx*4 + 0x1000d94c]
mov ebx, eax
shr ebx, 0x18
and eax, esi
xor ecx, dword [ebx*4 + 0x1000d14c]
xor ebx, ebx
xor ecx, dword [eax*4 + 0x1000dd4c]
xor eax, eax
xor ecx, dword [edi]
add edi, edx
mov dword [ebp + 0xc], ecx
mov bl, ch
mov al, byte [ebp + 0xe]
mov eax, dword [eax*4 + 0x1000d54c]
xor eax, dword [ebx*4 + 0x1000d94c]
mov ebx, ecx
shr ebx, 0x18
and ecx, esi
xor eax, dword [ebx*4 + 0x1000d14c]
xor ebx, ebx
xor eax, dword [ecx*4 + 0x1000dd4c]
xor ecx, ecx
xor eax, dword [edi]
add edi, edx
mov dword [ebp + 0xc], eax
mov bl, ah
mov cl, byte [ebp + 0xe]
mov ecx, dword [ecx*4 + 0x1000d54c]
xor ecx, dword [ebx*4 + 0x1000d94c]
mov ebx, eax
shr ebx, 0x18
and eax, esi
xor ecx, dword [ebx*4 + 0x1000d14c]
xor ebx, ebx
xor ecx, dword [eax*4 + 0x1000dd4c]
xor eax, eax
xor ecx, dword [edi]
add edi, edx
mov dword [ebp + 0xc], ecx
mov bl, ch
mov al, byte [ebp + 0xe]
mov eax, dword [eax*4 + 0x1000d54c]
xor eax, dword [ebx*4 + 0x1000d94c]
mov ebx, ecx
shr ebx, 0x18
and ecx, esi
xor eax, dword [ebx*4 + 0x1000d14c]
xor ebx, ebx
xor eax, dword [ecx*4 + 0x1000dd4c]
xor ecx, ecx
xor eax, dword [edi]
add edi, edx
mov dword [ebp + 0xc], eax
mov bl, ah
mov cl, byte [ebp + 0xe]
mov ecx, dword [ecx*4 + 0x1000d54c]
xor ecx, dword [ebx*4 + 0x1000d94c]
mov ebx, eax
shr ebx, 0x18
and eax, esi
xor ecx, dword [ebx*4 + 0x1000d14c]
xor ebx, ebx
xor ecx, dword [eax*4 + 0x1000dd4c]
xor eax, eax
xor ecx, dword [edi]
add edi, edx
mov dword [ebp + 0xc], ecx
mov bl, ch
mov al, byte [ebp + 0xe]
mov eax, dword [eax*4 + 0x1000d54c]
xor eax, dword [ebx*4 + 0x1000d94c]
mov ebx, ecx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x1000d14c]
and ecx, esi
xor ebx, ebx
sub dword [ebp + 0x10], 0x20
xor eax, dword [ecx*4 + 0x1000dd4c]
xor ecx, ecx
xor eax, dword [edi]
add edi, edx
mov dword [ebp + 0xc], eax
mov bl, ah
mov cl, byte [ebp + 0xe]
mov ecx, dword [ecx*4 + 0x1000d54c]
xor ecx, dword [ebx*4 + 0x1000d94c]
mov ebx, eax
shr ebx, 0x18
and eax, esi
xor ecx, dword [ebx*4 + 0x1000d14c]
xor ebx, ebx
xor ecx, dword [eax*4 + 0x1000dd4c]
xor eax, eax
xor ecx, dword [edi]
add edi, edx
mov dword [ebp + 0xc], ecx
mov bl, ch
mov al, byte [ebp + 0xe]
mov eax, dword [eax*4 + 0x1000d54c]
xor eax, dword [ebx*4 + 0x1000d94c]
mov ebx, ecx
shr ebx, 0x18
and ecx, esi
xor eax, dword [ebx*4 + 0x1000d14c]
xor eax, dword [ecx*4 + 0x1000dd4c]
dec dword [ebp + 8]
jne 0x8a17a2
cmp dword [ebp + 0x10], edx
jb 0x8a1992
mov ecx, dword [ebp + 0x10]
shr ecx, 2
mov dword [ebp + 8], ecx
xor eax, dword [edi]
xor ecx, ecx
xor ebx, ebx
sub dword [ebp + 0x10], edx
mov dword [ebp + 0xc], eax
mov bl, ah
mov cl, byte [ebp + 0xe]
add edi, edx
mov ecx, dword [ecx*4 + 0x1000d54c]
xor ecx, dword [ebx*4 + 0x1000d94c]
mov ebx, eax
shr ebx, 0x18
and eax, esi
xor ecx, dword [ebx*4 + 0x1000d14c]
xor ecx, dword [eax*4 + 0x1000dd4c]
dec dword [ebp + 8]
mov eax, ecx
jne 0x8a1955
cmp dword [ebp + 0x10], 0
pop ebx
je 0x8a19b4
movzx edx, byte [edi]
mov ecx, eax
and ecx, esi
xor ecx, edx
shr eax, 8
mov ecx, dword [ecx*4 + 0x1000d14c]
xor eax, ecx
inc edi
dec dword [ebp + 0x10]
jne 0x8a1999
pop edi
pop esi
not eax
pop ebp
ret