Function at 0x4045e8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x304
xor eax, eax
push ebx
xor ebx, ebx
inc ebx
push esi
mov edx, ebx
mov esi, 0x11b
mov byte [ebp + eax - 0x304], dl
mov byte [ebp + eax - 0x205], dl
mov byte [ebp + edx - 0x104], al
inc eax
mov dword [ebp - 4], eax
mov eax, edx
and al, 0x80
movzx ecx, al
lea eax, [edx + edx]
neg ecx
sbb ecx, ecx
and ecx, esi
xor ecx, eax
mov eax, dword [ebp - 4]
xor edx, ecx
cmp edx, ebx
jne 0x4045ff
xor edx, edx
mov eax, ebx
mov byte [edx + 0x434f90], bl
and al, 0x80
movzx ecx, al
neg ecx
sbb ecx, ecx
add ebx, ebx
and ecx, esi
xor ebx, ecx
inc edx
cmp edx, 0x1e
jb 0x404635
xor ebx, ebx
test bl, bl
je 0x404670
movzx eax, bl
lea ecx, [ebp - 0x205]
movzx eax, byte [ebp + eax - 0x104]
sub ecx, eax
movzx edx, byte [ecx]
jmp 0x404672
xor edx, edx
lea eax, [edx + edx]
xor eax, edx
add eax, eax
xor eax, edx
add eax, eax
xor eax, edx
add eax, eax
xor edx, eax
mov ecx, edx
xor ecx, 0x6300
sar ecx, 8
xor ecx, edx
mov byte [ebx + 0x434d90], cl
mov byte [ebx*4 + 0x435bb1], cl
mov byte [ebx*4 + 0x435bb0], cl
mov byte [ebx*4 + 0x4357b3], cl
mov byte [ebx*4 + 0x4357b0], cl
mov byte [ebx*4 + 0x4353b3], cl
mov byte [ebx*4 + 0x4353b2], cl
mov byte [ebx*4 + 0x434fb2], cl
mov byte [ebx*4 + 0x434fb1], cl
test cl, cl
je 0x4046e7
movzx eax, cl
movzx eax, byte [ebp + eax - 0x104]
movzx eax, byte [ebp + eax - 0x2eb]
jmp 0x4046e9
xor eax, eax
mov byte [ebx*4 + 0x435bb3], al
mov byte [ebx*4 + 0x4357b2], al
mov byte [ebx*4 + 0x4353b1], al
mov byte [ebx*4 + 0x434fb0], al
test cl, cl
je 0x40471e
movzx eax, cl
movzx eax, byte [ebp + eax - 0x104]
movzx eax, byte [ebp + eax - 0x303]
jmp 0x404720
xor eax, eax
movzx esi, bl
mov ecx, esi
mov byte [ebx*4 + 0x435bb2], al
shl ecx, 3
xor ecx, esi
mov byte [ebx*4 + 0x4357b1], al
shl ecx, 2
xor ecx, esi
mov byte [ebx*4 + 0x4353b0], al
add ecx, ecx
mov byte [ebx*4 + 0x434fb3], al
mov eax, ecx
sar eax, 8
xor al, cl
cmp al, 5
je 0x40478a
mov edx, esi
shl edx, 3
xor edx, esi
shl edx, 2
xor edx, esi
add edx, edx
mov eax, edx
sar eax, 8
movzx ecx, al
movzx eax, dl
xor ecx, eax
xor ecx, 5
movzx eax, byte [ebp + ecx - 0x104]
lea ecx, [ebp - 0x205]
sub ecx, eax
mov dl, byte [ecx]
jmp 0x40478c
xor dl, dl
mov byte [ebx + 0x434e90], dl
test dl, dl
je 0x4047ab
movzx eax, dl
movzx eax, byte [ebp + eax - 0x104]
movzx eax, byte [ebp + eax - 0x29c]
jmp 0x4047ad
xor eax, eax
movzx ecx, dl
mov byte [ebx*4 + 0x436bb2], al
mov byte [ebx*4 + 0x4367b1], al
mov byte [ebx*4 + 0x4363b0], al
mov byte [ebx*4 + 0x435fb3], al
mov byte [ecx*4 + 0x437bb2], al
mov byte [ecx*4 + 0x4377b1], al
mov byte [ecx*4 + 0x4373b0], al
mov byte [ecx*4 + 0x436fb3], al
test dl, dl
je 0x4047fe
movzx eax, byte [ebp + ecx - 0x104]
movzx eax, byte [ebp + eax - 0x23d]
jmp 0x404800
xor eax, eax
mov byte [ebx*4 + 0x436bb0], al
mov byte [ebx*4 + 0x4367b3], al
mov byte [ebx*4 + 0x4363b2], al
mov byte [ebx*4 + 0x435fb1], al
mov byte [ecx*4 + 0x437bb0], al
mov byte [ecx*4 + 0x4377b3], al
mov byte [ecx*4 + 0x4373b2], al
mov byte [ecx*4 + 0x436fb1], al
test dl, dl
je 0x40484e
movzx eax, byte [ebp + ecx - 0x104]
movzx eax, byte [ebp + eax - 0x216]
jmp 0x404850
xor eax, eax
mov byte [ebx*4 + 0x436bb1], al
mov byte [ebx*4 + 0x4367b0], al
mov byte [ebx*4 + 0x4363b3], al
mov byte [ebx*4 + 0x435fb2], al
mov byte [ecx*4 + 0x437bb1], al
mov byte [ecx*4 + 0x4377b0], al
mov byte [ecx*4 + 0x4373b3], al
mov byte [ecx*4 + 0x436fb2], al
test dl, dl
je 0x40489e
movzx eax, byte [ebp + ecx - 0x104]
movzx eax, byte [ebp + eax - 0x225]
jmp 0x4048a0
xor eax, eax
mov byte [ebx*4 + 0x436bb3], al
mov byte [ebx*4 + 0x4367b2], al
mov byte [ebx*4 + 0x4363b1], al
mov byte [ebx*4 + 0x435fb0], al
inc ebx
mov byte [ecx*4 + 0x437bb3], al
mov byte [ecx*4 + 0x4377b2], al
mov byte [ecx*4 + 0x4373b1], al
mov byte [ecx*4 + 0x436fb0], al
cmp ebx, 0x100
jl 0x404654
pop esi
pop ebx
mov esp, ebp
pop ebp
ret