Function at 0x40ae16
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x304
push ebx
push esi
xor eax, eax
xor ecx, ecx
inc eax
mov esi, 0x11b
push edi
mov edx, eax
and dl, 0x80
movsx edx, dl
mov byte [ebp + ecx - 0x304], al
mov byte [ebp + ecx - 0x205], al
mov byte [ebp + eax - 0x104], cl
inc ecx
neg edx
sbb edx, edx
and edx, esi
lea edi, [eax + eax]
xor edx, edi
xor eax, edx
cmp eax, 1
jne 0x40ae2c
xor ecx, ecx
pop edi
mov edx, eax
and dl, 0x80
movsx edx, dl
neg edx
sbb edx, edx
mov byte [ecx + 0x41b6b8], al
and edx, esi
add eax, eax
xor eax, edx
inc ecx
cmp ecx, 0x1e
jb 0x40ae5f
xor ebx, ebx
mov dword [ebp - 4], ebx
jmp 0x40ae87
mov ebx, dword [ebp - 4]
test bl, bl
je 0x40aea3
movzx eax, bl
movzx eax, byte [ebp + eax - 0x104]
lea ecx, [ebp - 0x205]
sub ecx, eax
movzx eax, byte [ecx]
jmp 0x40aea5
xor eax, eax
lea ecx, [eax + eax]
xor ecx, eax
add ecx, ecx
xor ecx, eax
add ecx, ecx
xor ecx, eax
add ecx, ecx
xor eax, ecx
mov ecx, eax
sar ecx, 8
xor cl, al
xor cl, 0x63
lea eax, [ebx*4]
lea edx, [eax + 0x41a6b8]
mov byte [ebx + 0x41b7d8], cl
mov byte [edx + 1], cl
mov byte [edx], cl
mov byte [eax + 0x41aabb], cl
mov byte [eax + 0x41aab8], cl
mov byte [eax + 0x41aebb], cl
mov byte [eax + 0x41aeba], cl
mov byte [eax + 0x41b2ba], cl
mov byte [eax + 0x41b2b9], cl
je 0x40af13
movzx edx, cl
movzx edx, byte [ebp + edx - 0x104]
movzx edx, byte [ebp + edx - 0x2eb]
jmp 0x40af15
xor edx, edx
mov byte [eax + 0x41a6bb], dl
mov byte [eax + 0x41aaba], dl
mov byte [eax + 0x41aeb9], dl
mov byte [eax + 0x41b2b8], dl
test cl, cl
je 0x40af46
movzx ecx, cl
movzx ecx, byte [ebp + ecx - 0x104]
movzx ecx, byte [ebp + ecx - 0x303]
jmp 0x40af48
xor ecx, ecx
mov byte [eax + 0x41a6ba], cl
mov byte [eax + 0x41aab9], cl
mov byte [eax + 0x41aeb8], cl
mov byte [eax + 0x41b2bb], cl
movzx esi, bl
mov ecx, esi
shl ecx, 3
xor ecx, esi
shl ecx, 2
xor ecx, esi
add ecx, ecx
mov edx, ecx
sar edx, 8
xor dl, cl
xor dl, 5
je 0x40afaf
mov ecx, esi
shl ecx, 3
xor ecx, esi
shl ecx, 2
xor ecx, esi
add ecx, ecx
mov edx, ecx
sar edx, 8
movzx edx, dl
movzx ecx, cl
xor edx, ecx
xor edx, 5
movzx ecx, byte [ebp + edx - 0x104]
lea edx, [ebp - 0x205]
sub edx, ecx
mov bl, byte [edx]
jmp 0x40afb1
xor bl, bl
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x41b6d8], bl
test bl, bl
je 0x40afd3
movzx ecx, bl
movzx ecx, byte [ebp + ecx - 0x104]
movzx edx, byte [ebp + ecx - 0x29c]
jmp 0x40afd5
xor edx, edx
movzx esi, bl
mov ecx, esi
shl ecx, 2
mov byte [eax + 0x4196ba], dl
mov byte [eax + 0x419ab9], dl
mov byte [eax + 0x419eb8], dl
mov byte [eax + 0x41a2bb], dl
mov byte [ecx + 0x4186ba], dl
mov byte [ecx + 0x418ab9], dl
mov byte [ecx + 0x418eb8], dl
mov byte [ecx + 0x4192bb], dl
test bl, bl
je 0x40b023
movzx edx, byte [ebp + esi - 0x104]
movzx edx, byte [ebp + edx - 0x23d]
jmp 0x40b025
xor edx, edx
mov byte [eax + 0x4196b8], dl
mov byte [eax + 0x419abb], dl
mov byte [eax + 0x419eba], dl
mov byte [eax + 0x41a2b9], dl
mov byte [ecx + 0x4186b8], dl
mov byte [ecx + 0x418abb], dl
mov byte [ecx + 0x418eba], dl
mov byte [ecx + 0x4192b9], dl
test bl, bl
je 0x40b06b
movzx edx, byte [ebp + esi - 0x104]
movzx edx, byte [ebp + edx - 0x216]
jmp 0x40b06d
xor edx, edx
mov byte [eax + 0x4196b9], dl
mov byte [eax + 0x419ab8], dl
mov byte [eax + 0x419ebb], dl
mov byte [eax + 0x41a2ba], dl
mov byte [ecx + 0x4186b9], dl
mov byte [ecx + 0x418ab8], dl
mov byte [ecx + 0x418ebb], dl
mov byte [ecx + 0x4192ba], dl
test bl, bl
je 0x40b0b3
movzx edx, byte [ebp + esi - 0x104]
movzx edx, byte [ebp + edx - 0x225]
jmp 0x40b0b5
xor edx, edx
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x100
mov byte [eax + 0x4196bb], dl
mov byte [eax + 0x419aba], dl
mov byte [eax + 0x419eb9], dl
mov byte [eax + 0x41a2b8], dl
mov byte [ecx + 0x4186bb], dl
mov byte [ecx + 0x418aba], dl
mov byte [ecx + 0x418eb9], dl
mov byte [ecx + 0x4192b8], dl
jl 0x40ae84
pop esi
pop ebx
leave
ret