Function at 0x409caa
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 0x409cc0
xor ecx, ecx
pop edi
mov edx, eax
and dl, 0x80
movsx edx, dl
neg edx
sbb edx, edx
mov byte [ecx + 0x419eb0], al
and edx, esi
add eax, eax
xor eax, edx
inc ecx
cmp ecx, 0x1e
jb 0x409cf3
xor ebx, ebx
mov dword [ebp - 4], ebx
jmp 0x409d1b
mov ebx, dword [ebp - 4]
test bl, bl
je 0x409d37
movzx eax, bl
movzx eax, byte [ebp + eax - 0x104]
lea ecx, [ebp - 0x205]
sub ecx, eax
movzx eax, byte [ecx]
jmp 0x409d39
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 + 0x418eb0]
mov byte [ebx + 0x419fd0], cl
mov byte [edx + 1], cl
mov byte [edx], cl
mov byte [eax + 0x4192b3], cl
mov byte [eax + 0x4192b0], cl
mov byte [eax + 0x4196b3], cl
mov byte [eax + 0x4196b2], cl
mov byte [eax + 0x419ab2], cl
mov byte [eax + 0x419ab1], cl
je 0x409da7
movzx edx, cl
movzx edx, byte [ebp + edx - 0x104]
movzx edx, byte [ebp + edx - 0x2eb]
jmp 0x409da9
xor edx, edx
mov byte [eax + 0x418eb3], dl
mov byte [eax + 0x4192b2], dl
mov byte [eax + 0x4196b1], dl
mov byte [eax + 0x419ab0], dl
test cl, cl
je 0x409dda
movzx ecx, cl
movzx ecx, byte [ebp + ecx - 0x104]
movzx ecx, byte [ebp + ecx - 0x303]
jmp 0x409ddc
xor ecx, ecx
mov byte [eax + 0x418eb2], cl
mov byte [eax + 0x4192b1], cl
mov byte [eax + 0x4196b0], cl
mov byte [eax + 0x419ab3], 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 0x409e43
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 0x409e45
xor bl, bl
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x419ed0], bl
test bl, bl
je 0x409e67
movzx ecx, bl
movzx ecx, byte [ebp + ecx - 0x104]
movzx edx, byte [ebp + ecx - 0x29c]
jmp 0x409e69
xor edx, edx
movzx esi, bl
mov ecx, esi
shl ecx, 2
mov byte [eax + 0x417eb2], dl
mov byte [eax + 0x4182b1], dl
mov byte [eax + 0x4186b0], dl
mov byte [eax + 0x418ab3], dl
mov byte [ecx + 0x416eb2], dl
mov byte [ecx + 0x4172b1], dl
mov byte [ecx + 0x4176b0], dl
mov byte [ecx + 0x417ab3], dl
test bl, bl
je 0x409eb7
movzx edx, byte [ebp + esi - 0x104]
movzx edx, byte [ebp + edx - 0x23d]
jmp 0x409eb9
xor edx, edx
mov byte [eax + 0x417eb0], dl
mov byte [eax + 0x4182b3], dl
mov byte [eax + 0x4186b2], dl
mov byte [eax + 0x418ab1], dl
mov byte [ecx + 0x416eb0], dl
mov byte [ecx + 0x4172b3], dl
mov byte [ecx + 0x4176b2], dl
mov byte [ecx + 0x417ab1], dl
test bl, bl
je 0x409eff
movzx edx, byte [ebp + esi - 0x104]
movzx edx, byte [ebp + edx - 0x216]
jmp 0x409f01
xor edx, edx
mov byte [eax + 0x417eb1], dl
mov byte [eax + 0x4182b0], dl
mov byte [eax + 0x4186b3], dl
mov byte [eax + 0x418ab2], dl
mov byte [ecx + 0x416eb1], dl
mov byte [ecx + 0x4172b0], dl
mov byte [ecx + 0x4176b3], dl
mov byte [ecx + 0x417ab2], dl
test bl, bl
je 0x409f47
movzx edx, byte [ebp + esi - 0x104]
movzx edx, byte [ebp + edx - 0x225]
jmp 0x409f49
xor edx, edx
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x100
mov byte [eax + 0x417eb3], dl
mov byte [eax + 0x4182b2], dl
mov byte [eax + 0x4186b1], dl
mov byte [eax + 0x418ab0], dl
mov byte [ecx + 0x416eb3], dl
mov byte [ecx + 0x4172b2], dl
mov byte [ecx + 0x4176b1], dl
mov byte [ecx + 0x417ab0], dl
jl 0x409d18
pop esi
pop ebx
leave
ret