Function at 0x4af896
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [ebp - 8], ebx
push esi
push edi
test eax, eax
je 0x4afcff
shr eax, 4
cmp byte [ebx], 0
mov dword [ebp + 0xc], eax
je 0x4af8cb
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.004afd06
jmp 0x4afcff
lea ecx, [ebx + 8]
mov dword [ebp - 0x38], ecx
mov esi, ecx
lea edi, [ebp - 0x58]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
test eax, eax
je 0x4afcf6
mov ecx, dword [ebp + 0x10]
lea eax, [ecx + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
sub ecx, eax
sub ecx, 8
mov dword [ebp - 0x34], ecx
lea edx, [eax + 8]
mov dword [ebp - 0xc], edx
mov esi, dword [ebx + 4]
mov eax, esi
add eax, eax
mov edi, dword [edx - 8]
mov dword [ebp - 0x24], edi
mov ecx, dword [ebx + eax*8 + 0x18]
xor ecx, edi
mov edi, dword [edx - 4]
mov dword [ebp + 8], ecx
mov ecx, dword [ebx + eax*8 + 0x1c]
xor ecx, edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x10], ecx
mov ecx, dword [edx]
mov edx, dword [ebx + eax*8 + 0x20]
mov ebx, dword [ebx + eax*8 + 0x24]
xor edx, ecx
mov dword [ebp - 0x2c], ecx
mov eax, edx
mov ecx, dword [ebp - 0xc]
shr eax, 0x10
mov ecx, dword [ecx + 4]
xor ebx, ecx
mov dword [ebp - 0x30], ecx
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x51ece0]
xor ecx, dword [eax*4 + 0x51fce0]
mov eax, dword [ebp - 0x10]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x51e7e0]
mov eax, dword [ebp + 8]
movzx eax, al
xor ecx, dword [eax*4 + 0x51dbe0]
mov eax, ebx
shr eax, 0x10
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x48], ecx
movzx ecx, al
mov eax, dword [ebp + 8]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x51ece0]
xor ecx, dword [eax*4 + 0x51fce0]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x51e7e0]
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp + 0x10]
movzx eax, cl
xor edi, dword [eax*4 + 0x51dbe0]
mov eax, edi
mov dword [ebp + 0x10], edi
mov dword [ebp - 0x44], eax
mov eax, ecx
shr eax, 8
movzx ecx, al
mov eax, dword [ebp + 8]
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x51fce0]
xor ecx, dword [eax*4 + 0x51ece0]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x51e7e0]
movzx eax, dl
shr edx, 8
xor ecx, dword [eax*4 + 0x51dbe0]
mov eax, dword [ebp - 0x10]
shr eax, 0x10
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x40], ecx
movzx ecx, al
movzx eax, dl
mov ecx, dword [ecx*4 + 0x51ece0]
xor ecx, dword [eax*4 + 0x51fce0]
mov eax, dword [ebp + 8]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x51e7e0]
lea edx, [esi - 1]
movzx eax, bl
xor ecx, dword [eax*4 + 0x51dbe0]
mov dword [ebp + 8], ecx
mov dword [ebp - 0x3c], ecx
cmp edx, 1
jle 0x4afb6e
mov edi, dword [ebp - 0x14]
lea eax, [edx + 2]
shl eax, 4
add eax, dword [ebp - 8]
dec edx
mov dword [ebp + 8], eax
mov esi, eax
mov dword [ebp - 0x1c], edx
mov eax, dword [esi - 8]
xor eax, edi
mov ebx, dword [esi + 4]
mov dword [ebp - 0x10], eax
xor ebx, ecx
mov eax, dword [esi - 4]
xor eax, dword [ebp + 0x10]
mov edx, dword [esi]
lea esi, [esi - 0x10]
xor edx, dword [ebp - 0x18]
mov dword [ebp + 8], eax
mov eax, ebx
shr eax, 8
movzx ecx, al
mov eax, edx
shr eax, 0x10
movzx eax, al
mov edi, dword [ecx*4 + 0x51fce0]
mov ecx, dword [ebp - 0x10]
xor edi, dword [eax*4 + 0x51ece0]
mov eax, dword [ebp + 8]
shr eax, 0x18
xor edi, dword [eax*4 + 0x51e7e0]
movzx eax, cl
xor edi, dword [eax*4 + 0x51dbe0]
mov eax, ecx
shr eax, 8
movzx ecx, al
mov eax, ebx
shr eax, 0x10
movzx eax, al
mov dword [ebp - 0x48], edi
mov ecx, dword [ecx*4 + 0x51fce0]
xor ecx, dword [eax*4 + 0x51ece0]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x51e7e0]
mov eax, dword [ebp + 8]
movzx eax, al
xor ecx, dword [eax*4 + 0x51dbe0]
mov eax, dword [ebp - 0x10]
shr eax, 0x10
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0x44], ecx
movzx ecx, al
mov eax, dword [ebp + 8]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x51ece0]
xor ecx, dword [eax*4 + 0x51fce0]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x51e7e0]
movzx eax, dl
shr edx, 8
xor ecx, dword [eax*4 + 0x51dbe0]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x40], ecx
shr eax, 0x10
movzx eax, al
movzx ecx, dl
mov ecx, dword [ecx*4 + 0x51fce0]
xor ecx, dword [eax*4 + 0x51ece0]
mov eax, dword [ebp - 0x10]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x51e7e0]
movzx eax, bl
xor ecx, dword [eax*4 + 0x51dbe0]
sub dword [ebp - 0x1c], 1
mov dword [ebp - 0x3c], ecx
jne 0x4afa55
mov dword [ebp + 8], ecx
mov dword [ebp - 0x14], edi
mov esi, dword [ebp - 8]
mov eax, dword [esi + 0x28]
xor eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
movzx eax, al
mov ecx, dword [esi + 0x34]
xor ecx, dword [ebp + 8]
mov edx, dword [esi + 0x30]
mov al, byte [eax + 0x51ebe0]
mov byte [ebp - 0x48], al
mov eax, ecx
shr eax, 8
movzx eax, al
xor edx, dword [ebp - 0x18]
mov ebx, dword [esi + 0x2c]
xor ebx, dword [ebp + 0x10]
mov al, byte [eax + 0x51ebe0]
mov byte [ebp - 0x47], al
mov eax, edx
shr eax, 0x10
movzx eax, al
mov esi, dword [ebp - 0x1c]
mov al, byte [eax + 0x51ebe0]
mov byte [ebp - 0x46], al
mov eax, ebx
shr eax, 0x18
mov al, byte [eax + 0x51ebe0]
mov byte [ebp - 0x45], al
movzx eax, bl
mov al, byte [eax + 0x51ebe0]
mov byte [ebp - 0x44], al
mov eax, esi
shr eax, 8
movzx eax, al
mov al, byte [eax + 0x51ebe0]
mov byte [ebp - 0x43], al
mov eax, ecx
shr eax, 0x10
movzx eax, al
mov al, byte [eax + 0x51ebe0]
mov byte [ebp - 0x42], al
mov eax, edx
shr eax, 0x18
mov al, byte [eax + 0x51ebe0]
mov byte [ebp - 0x41], al
movzx eax, dl
shr edx, 8
mov al, byte [eax + 0x51ebe0]
mov byte [ebp - 0x40], al
mov eax, ebx
shr eax, 8
movzx eax, al
shr ebx, 0x10
mov al, byte [eax + 0x51ebe0]
mov byte [ebp - 0x3f], al
mov eax, esi
shr eax, 0x10
movzx eax, al
shr esi, 0x18
mov al, byte [eax + 0x51ebe0]
mov byte [ebp - 0x3e], al
mov eax, ecx
shr eax, 0x18
mov al, byte [eax + 0x51ebe0]
mov byte [ebp - 0x3d], al
movzx eax, cl
mov al, byte [eax + 0x51ebe0]
mov byte [ebp - 0x3c], al
movzx eax, dl
mov al, byte [eax + 0x51ebe0]
mov byte [ebp - 0x3b], al
movzx eax, bl
mov ebx, dword [ebp - 8]
mov al, byte [eax + 0x51ebe0]
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0x1c]
xor ecx, dword [ebp - 0x48]
xor edx, dword [ebp - 0x44]
mov byte [ebp - 0x3a], al
mov al, byte [esi + 0x51ebe0]
mov byte [ebp - 0x39], al
mov esi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x24]
xor eax, dword [ebp - 0x3c]
xor esi, dword [ebp - 0x40]
cmp byte [ebx + 1], 0
mov dword [ebp + 0x10], eax
je 0x4afcac
xor ecx, dword [ebp - 0x58]
xor edx, dword [ebp - 0x54]
xor esi, dword [ebp - 0x50]
xor eax, dword [ebp - 0x4c]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x34]
mov dword [eax + edi], ecx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x10]
mov dword [eax - 4], edx
mov edx, edi
mov dword [eax], esi
add edx, 0x10
mov dword [eax + 4], ecx
add eax, 0x10
sub dword [ebp + 0xc], 1
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x20], eax
jne 0x4af8fc
mov ecx, dword [ebp - 0x38]
mov edi, ecx
lea esi, [ebp - 0x58]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
leave
ret 0xc