Function at 0x406d73
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x6823e0], 0
jne 0x406d8e
call fcn.00406a0c
mov dword [0x6823e0], 1
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, ebx
sub eax, 0x80
je 0x406dbf
sub eax, 0x40
je 0x406db4
sub eax, 0x40
jne 0x406fe5
mov edx, dword [ebp + 8]
mov dword [edx], 0xe
jmp 0x406dc8
mov edx, dword [ebp + 8]
mov dword [edx], 0xc
jmp 0x406dc8
mov edx, dword [ebp + 8]
mov dword [edx], 0xa
push esi
push edi
sar ebx, 5
lea edi, [edx + 8]
mov dword [edx + 4], edi
test ebx, ebx
jle 0x406e0b
mov esi, dword [ebp + 0xc]
add esi, 2
xor edx, edx
movzx ecx, byte [esi + 1]
movzx eax, byte [esi]
lea esi, [esi + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi - 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi - 6]
shl ecx, 8
or ecx, eax
mov dword [edi + edx*4], ecx
inc edx
cmp edx, ebx
jl 0x406ddf
mov edx, dword [ebp + 8]
mov eax, dword [edx]
sub eax, 0xa
je 0x406f78
dec eax
dec eax
je 0x406efb
dec eax
dec eax
jne 0x406fe3
mov edx, 0x6845e8
mov dword [ebp + 0x10], edx
mov ebx, dword [edi + 0x1c]
movzx eax, bl
movzx ecx, byte [eax + 0x6823e8]
movzx eax, byte [edi + 0x1f]
shl ecx, 8
movzx eax, byte [eax + 0x6823e8]
xor ecx, eax
movzx eax, byte [edi + 0x1e]
shl ecx, 8
movzx eax, byte [eax + 0x6823e8]
xor ecx, eax
movzx eax, byte [edi + 0x1d]
shl ecx, 8
movzx eax, byte [eax + 0x6823e8]
xor ecx, eax
mov eax, dword [edi + 4]
xor ecx, dword [edx]
xor ecx, dword [edi]
lea edi, [edi + 0x20]
mov edx, dword [edi - 0x14]
xor eax, ecx
mov dword [edi], ecx
mov ecx, dword [edi - 0x18]
xor ecx, eax
mov dword [edi + 4], eax
xor edx, ecx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
movzx eax, byte [edi + 0xf]
movzx ecx, byte [eax + 0x6823e8]
movzx eax, byte [edi + 0xe]
shl ecx, 8
movzx eax, byte [eax + 0x6823e8]
xor ecx, eax
movzx eax, byte [edi + 0xd]
shl ecx, 8
movzx eax, byte [eax + 0x6823e8]
xor ecx, eax
movzx eax, dl
mov edx, dword [ebp + 0x10]
shl ecx, 8
add edx, 4
mov dword [ebp + 0x10], edx
movzx eax, byte [eax + 0x6823e8]
xor ecx, eax
mov eax, dword [edi - 0xc]
xor ecx, dword [edi - 0x10]
xor eax, ecx
mov dword [edi + 0x10], ecx
mov ecx, dword [edi - 8]
xor ecx, eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], ecx
xor ecx, ebx
mov dword [edi + 0x1c], ecx
cmp edx, 0x684604
jl 0x406e2e
jmp 0x406fe3
mov esi, 0x6845e8
mov ebx, dword [edi + 0x14]
movzx eax, bl
movzx ecx, byte [eax + 0x6823e8]
movzx eax, byte [edi + 0x17]
shl ecx, 8
movzx eax, byte [eax + 0x6823e8]
xor ecx, eax
movzx eax, byte [edi + 0x16]
shl ecx, 8
movzx eax, byte [eax + 0x6823e8]
xor ecx, eax
movzx eax, byte [edi + 0x15]
shl ecx, 8
movzx eax, byte [eax + 0x6823e8]
xor ecx, eax
mov eax, dword [edi + 4]
xor ecx, dword [esi]
add esi, 4
xor ecx, dword [edi]
lea edi, [edi + 0x18]
xor eax, ecx
mov dword [edi], ecx
mov ecx, dword [edi - 0x10]
xor ecx, eax
mov dword [edi + 4], eax
mov eax, dword [edi - 0xc]
xor eax, ecx
mov dword [edi + 8], ecx
mov ecx, dword [edi - 8]
xor ecx, eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ecx
xor ecx, ebx
mov dword [edi + 0x14], ecx
cmp esi, 0x684608
jl 0x406f00
jmp 0x406fe3
mov esi, 0x6845e8
mov ebx, dword [edi + 0xc]
movzx eax, bl
movzx ecx, byte [eax + 0x6823e8]
movzx eax, byte [edi + 0xf]
shl ecx, 8
movzx eax, byte [eax + 0x6823e8]
xor ecx, eax
movzx eax, byte [edi + 0xe]
shl ecx, 8
movzx eax, byte [eax + 0x6823e8]
xor ecx, eax
movzx eax, byte [edi + 0xd]
shl ecx, 8
movzx eax, byte [eax + 0x6823e8]
xor ecx, eax
mov eax, dword [edi + 4]
xor ecx, dword [esi]
add esi, 4
xor ecx, dword [edi]
lea edi, [edi + 0x10]
xor eax, ecx
mov dword [edi], ecx
mov ecx, dword [edi - 8]
xor ecx, eax
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
xor ecx, ebx
mov dword [edi + 0xc], ecx
cmp esi, 0x684610
jl 0x406f7d
pop edi
pop esi
pop ebx
pop ebp
ret