Function at 0x40aa9e
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 0x40aab4
xor ecx, ecx
pop edi
mov edx, eax
and dl, 0x80
movsx edx, dl
neg edx
sbb edx, edx
mov byte [ecx + 0x4186a8], al
and edx, esi
add eax, eax
xor eax, edx
inc ecx
cmp ecx, 0x1e
jb 0x40aae7
xor ebx, ebx
mov dword [ebp - 4], ebx
jmp 0x40ab0f
mov ebx, dword [ebp - 4]
test bl, bl
je 0x40ab2b
movzx eax, bl
movzx eax, byte [ebp + eax - 0x104]
lea ecx, [ebp - 0x205]
sub ecx, eax
movzx eax, byte [ecx]
jmp 0x40ab2d
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 + 0x4176a8]
mov byte [ebx + 0x4187c8], cl
mov byte [edx + 1], cl
mov byte [edx], cl
mov byte [eax + 0x417aab], cl
mov byte [eax + 0x417aa8], cl
mov byte [eax + 0x417eab], cl
mov byte [eax + 0x417eaa], cl
mov byte [eax + 0x4182aa], cl
mov byte [eax + 0x4182a9], cl
je 0x40ab9b
movzx edx, cl
movzx edx, byte [ebp + edx - 0x104]
movzx edx, byte [ebp + edx - 0x2eb]
jmp 0x40ab9d
xor edx, edx
mov byte [eax + 0x4176ab], dl
mov byte [eax + 0x417aaa], dl
mov byte [eax + 0x417ea9], dl
mov byte [eax + 0x4182a8], dl
test cl, cl
je 0x40abce
movzx ecx, cl
movzx ecx, byte [ebp + ecx - 0x104]
movzx ecx, byte [ebp + ecx - 0x303]
jmp 0x40abd0
xor ecx, ecx
mov byte [eax + 0x4176aa], cl
mov byte [eax + 0x417aa9], cl
mov byte [eax + 0x417ea8], cl
mov byte [eax + 0x4182ab], 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 0x40ac37
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 0x40ac39
xor bl, bl
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x4186c8], bl
test bl, bl
je 0x40ac5b
movzx ecx, bl
movzx ecx, byte [ebp + ecx - 0x104]
movzx edx, byte [ebp + ecx - 0x29c]
jmp 0x40ac5d
xor edx, edx
movzx esi, bl
mov ecx, esi
shl ecx, 2
mov byte [eax + 0x4166aa], dl
mov byte [eax + 0x416aa9], dl
mov byte [eax + 0x416ea8], dl
mov byte [eax + 0x4172ab], dl
mov byte [ecx + 0x4156aa], dl
mov byte [ecx + 0x415aa9], dl
mov byte [ecx + 0x415ea8], dl
mov byte [ecx + 0x4162ab], dl
test bl, bl
je 0x40acab
movzx edx, byte [ebp + esi - 0x104]
movzx edx, byte [ebp + edx - 0x23d]
jmp 0x40acad
xor edx, edx
mov byte [eax + 0x4166a8], dl
mov byte [eax + 0x416aab], dl
mov byte [eax + 0x416eaa], dl
mov byte [eax + 0x4172a9], dl
mov byte [ecx + 0x4156a8], dl
mov byte [ecx + 0x415aab], dl
mov byte [ecx + 0x415eaa], dl
mov byte [ecx + 0x4162a9], dl
test bl, bl
je 0x40acf3
movzx edx, byte [ebp + esi - 0x104]
movzx edx, byte [ebp + edx - 0x216]
jmp 0x40acf5
xor edx, edx
mov byte [eax + 0x4166a9], dl
mov byte [eax + 0x416aa8], dl
mov byte [eax + 0x416eab], dl
mov byte [eax + 0x4172aa], dl
mov byte [ecx + 0x4156a9], dl
mov byte [ecx + 0x415aa8], dl
mov byte [ecx + 0x415eab], dl
mov byte [ecx + 0x4162aa], dl
test bl, bl
je 0x40ad3b
movzx edx, byte [ebp + esi - 0x104]
movzx edx, byte [ebp + edx - 0x225]
jmp 0x40ad3d
xor edx, edx
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x100
mov byte [eax + 0x4166ab], dl
mov byte [eax + 0x416aaa], dl
mov byte [eax + 0x416ea9], dl
mov byte [eax + 0x4172a8], dl
mov byte [ecx + 0x4156ab], dl
mov byte [ecx + 0x415aaa], dl
mov byte [ecx + 0x415ea9], dl
mov byte [ecx + 0x4162a8], dl
jl 0x40ab0c
pop esi
pop ebx
leave
ret