Function at 0x408d00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x63434c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, 2
mov dword [ebp - 0x208], edi
mov dword [ebp - 0x214], ebx
mov dword [edi + 0xc0], 0
jmp 0x408d40
movzx edx, byte [edi + ebx + 0x2cb0]
xor esi, esi
mov eax, dword [ebp - 0x208]
mov edi, edx
shr edi, 1
and edx, 1
dec edi
mov dword [ebp - 0x210], esi
or edx, 2
mov ecx, edi
shl edx, cl
lea eax, [eax + edx*4]
add edx, dword [ebp - 0x214]
add eax, 0x23b0
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, 1
mov dword [ebp - 0x20c], eax
shl dword [ebp - 0x20c], cl
test edi, edi
je 0x408def
lea edx, [eax + eax]
mov esi, ebx
mov eax, dword [ebp - 0x218]
and esi, 1
mov dword [ebp - 0x220], edx
shr ebx, 1
movzx ecx, word [edx + eax]
mov eax, esi
mov edx, dword [ebp - 0x208]
neg eax
shr eax, 4
and eax, 0x7f
shr ecx, 4
xor ecx, eax
mov eax, dword [ebp - 0x210]
add eax, dword [edx + ecx*4 + 0x760]
mov dword [ebp - 0x210], eax
mov eax, dword [ebp - 0x220]
add eax, esi
sub edi, 1
jne 0x408d94
mov edx, dword [ebp - 0x21c]
mov esi, dword [ebp - 0x210]
mov ecx, dword [ebp - 0x218]
mov edi, dword [ebp - 0x208]
mov ebx, dword [ebp - 0x214]
inc ebx
movzx ecx, word [ecx + eax*2]
mov eax, ecx
mov dword [ebp - 0x214], ebx
shr eax, 4
xor ecx, 0x7f0
shr ecx, 4
mov eax, dword [edi + eax*4 + 0x760]
mov ecx, dword [edi + ecx*4 + 0x760]
add eax, esi
mov dword [ebp + edx*4 - 0x204], eax
add ecx, esi
mov eax, dword [ebp - 0x20c]
add eax, edx
mov dword [ebp + eax*4 - 0x204], ecx
cmp ebx, 0x40
jb 0x408d40
mov ecx, dword [ebp - 0x208]
lea eax, [edi + 0x21b0]
lea ebx, [edi + 0x1230]
mov dword [ebp - 0x20c], eax
lea esi, [edi + 0x1638]
mov dword [ebp - 0x22c], ebx
lea edi, [ebp - 0x200]
mov dword [ebp - 0x210], esi
sub edi, ecx
mov dword [ebp - 0x220], 4
sub edi, 0x1630
mov dword [ebp - 0x21c], edi
mov edx, dword [ecx + 0xc8]
inc edx
shr edx, 1
mov dword [ebp - 0x230], edx
je 0x409001
mov esi, 0x20
mov dword [ebp - 0x224], ebx
add eax, 0x40
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x228], edx
jmp 0x408ed0
mov edx, dword [ebp - 0x20c]
mov edi, esi
mov ecx, esi
shr edi, 1
mov esi, dword [ebp - 0x208]
and ecx, 1
neg ecx
shr ecx, 4
movzx eax, word [edx + edi*2]
and ecx, 0x7f
shr eax, 4
xor eax, ecx
mov ecx, edi
and ecx, 1
shr edi, 1
neg ecx
shr ecx, 4
mov ebx, dword [esi + eax*4 + 0x760]
and ecx, 0x7f
movzx eax, word [edx + edi*2]
shr eax, 4
xor eax, ecx
mov ecx, edi
and ecx, 1
shr edi, 1
neg ecx
shr ecx, 4
add ebx, dword [esi + eax*4 + 0x760]
and ecx, 0x7f
movzx eax, word [edx + edi*2]
shr eax, 4
xor eax, ecx
add ebx, dword [esi + eax*4 + 0x760]
mov esi, edi
shr edi, 1
and esi, 1
mov eax, edi
neg esi
shr eax, 1
shr esi, 4
and esi, 0x7f
movzx edx, word [edx + eax*2]
mov eax, edi
and eax, 1
shr edx, 4
neg eax
shr eax, 4
and eax, 0x7f
xor edx, eax
mov eax, dword [ebp - 0x20c]
movzx ecx, word [eax + edi*2]
mov edi, dword [ebp - 0x208]
shr ecx, 4
xor ecx, esi
mov esi, dword [ebp - 0x218]
mov eax, dword [edi + edx*4 + 0x760]
mov edx, dword [ebp - 0x224]
add eax, dword [edi + ecx*4 + 0x760]
movzx ecx, word [esi]
add ebx, eax
mov eax, ecx
add esi, 2
shr eax, 4
xor ecx, 0x7f0
shr ecx, 4
mov dword [ebp - 0x218], esi
mov esi, dword [ebp - 0x214]
mov eax, dword [edi + eax*4 + 0x760]
inc esi
add eax, ebx
mov dword [ebp - 0x214], esi
mov dword [edx], eax
mov eax, dword [edi + ecx*4 + 0x760]
add eax, ebx
mov dword [edx + 4], eax
add edx, 8
sub dword [ebp - 0x228], 1
mov dword [ebp - 0x224], edx
jne 0x408ed0
mov ebx, dword [ebp - 0x22c]
mov edx, dword [ebp - 0x230]
mov edi, dword [ebp - 0x21c]
mov esi, dword [ebp - 0x210]
mov ecx, 7
mov eax, 0x20
cmp edx, ecx
jbe 0x40901f
nop
add dword [ebx + ecx*8], eax
add dword [ebx + ecx*8 + 4], eax
inc ecx
add eax, 0x10
cmp ecx, edx
jb 0x409010
mov eax, dword [ebx]
mov dword [esi - 8], eax
mov eax, dword [ebx + 4]
mov dword [esi - 4], eax
mov eax, dword [ebx + 8]
mov dword [esi], eax
mov eax, dword [ebx + 0xc]
mov dword [esi + 4], eax
mov esi, 4
mov eax, dword [ebp - 0x210]
add eax, 8
mov ecx, dword [ebp - 0x208]
lea eax, [eax + 8]
movzx ecx, byte [ecx + esi + 0x2cb0]
add esi, 2
mov edx, dword [ebx + ecx*4]
mov ecx, dword [edi + eax - 0xc]
add ecx, edx
mov dword [eax - 8], ecx
mov ecx, dword [edi + eax - 8]
add ecx, edx
mov dword [eax - 4], ecx
cmp esi, 0x80
jb 0x409043
mov eax, dword [ebp - 0x20c]
add ebx, 0x100
mov esi, dword [ebp - 0x210]
sub eax, 0xffffff80
mov ecx, dword [ebp - 0x208]
add esi, 0x200
sub edi, 0x200
mov dword [ebp - 0x22c], ebx
sub dword [ebp - 0x220], 1
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x21c], edi
jne 0x408e93
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00557e89
mov esp, ebp
pop ebp
ret