Function at 0x40647b
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x28]
push eax
mov edx, dword [eax + 0x94]
call fcn.00406240
mov ecx, dword [esp + 0x30]
push 0x1a
pop edx
mov dword [ecx + 0x18], eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x40], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 0x20], eax
mov eax, dword [esp + 0x18]
mov dword [ecx + 0x50], eax
mov eax, dword [esp + 0x14]
mov dword [ecx + 0x14], ebp
mov ebp, ecx
lea ecx, [esp + 0x94]
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x2c]
mov dword [ebp + 0x4c], eax
mov eax, dword [esp + 0x24]
mov dword [ebp + 0x48], eax
mov eax, dword [esp + 0x68]
mov dword [ebp], eax
mov eax, dword [esp + 0x20]
mov dword [ebp + 0x3c], eax
mov eax, dword [esp + 0x6c]
mov dword [ebp + 0x1c], eax
mov eax, dword [esp + 0x70]
mov dword [ebp + 0x54], eax
mov eax, dword [esp + 0x3c]
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 0x40]
mov dword [ebp + 0x28], eax
mov eax, dword [esp + 0x44]
mov dword [ebp + 0x60], eax
mov eax, dword [esp + 0x1c]
mov dword [ebp + 0x34], esi
mov dword [ebp + 0x5c], edi
mov dword [ebp + 0x2c], ebx
mov dword [ebp + 8], eax
call fcn.004079c3
lea eax, [esp + 0x94]
push eax
mov ebx, dword [esp + 0x2c]
mov ecx, ebp
mov edx, ebx
call fcn.00406f3f
lea edx, [esp + 0x94]
mov ecx, ebp
call fcn.00407400
mov edx, dword [ebx + 0xdc]
mov esi, eax
push ebx
mov ecx, esi
call fcn.00406240
mov edx, dword [ebx + 0x80]
mov ecx, esi
push ebx
mov dword [esp + 0x94], eax
call fcn.00406240
mov edx, dword [ebx + 0x84]
mov ecx, esi
push ebx
mov dword [esp + 0x8c], eax
call fcn.00406240
mov edx, dword [ebx + 0x24]
mov ecx, esi
push ebx
mov dword [esp + 0x88], eax
call fcn.00406240
mov edx, dword [ebx + 0x58]
mov ecx, esi
push ebx
mov dword [esp + 0x90], eax
call fcn.00406240
mov edx, dword [ebx + 0x3c]
mov ecx, esi
push ebx
mov dword [esp + 0x84], eax
call fcn.00406240
mov edx, dword [ebx + 0xe8]
mov ecx, esi
push ebx
mov dword [esp + 0x80], eax
call fcn.00406240
mov edx, dword [ebx + 0x18]
mov ecx, esi
push ebx
mov dword [esp + 0x7c], eax
call fcn.00406240
push 0x1a
pop edx
lea ecx, [esp + 0xb0]
mov dword [esp + 0x74], eax
call fcn.004079c3
lea eax, [esp + 0xb0]
mov edx, ebx
push eax
mov ecx, ebp
call fcn.00406ef8
lea edx, [esp + 0xb0]
mov ecx, ebp
call fcn.00407400
mov edx, dword [ebx + 0x1c]
mov edi, eax
push ebx
mov ecx, edi
call fcn.00406240
mov dword [ebp + 0x24], eax
mov ecx, edi
mov edx, dword [ebx + 0x50]
push ebx
call fcn.00406240
mov dword [ebp + 0x58], eax
mov ecx, edi
mov edx, dword [ebx + 0xb0]
push ebx
call fcn.00406240
push 9
pop edx
lea ecx, [esp + 0x5c]
mov dword [ebp + 0x38], eax
call fcn.004079c3
push ebx
lea edx, [esp + 0x60]
mov ecx, ebp
call fcn.00407011
cmp byte [esp + 0x5d], 0
jne 0x406657
cmp byte [esp + 0x61], 0
je 0x40666c
push 0x2b
pop esi
mov ecx, dword [ebp + 0x1c]
mov edx, 0x4cd
call fcn.004074d0
sub esi, 1
jne 0x40665a
cmp byte [esp + 0x62], 0
jne 0x4066de
cmp byte [esp + 0x63], 0
jne 0x4066de
push 0x64
pop eax
push 0x6f
pop ecx
push 0x69
mov word [esp + 0x4c], ax
pop eax
push 0x2e
mov word [esp + 0x50], ax
pop eax
push 0x72
mov word [esp + 0x52], ax
pop eax
mov word [esp + 0x52], ax
push 0x67
pop eax
mov word [esp + 0x54], ax
xor eax, eax
mov word [esp + 0x4a], cx
mov word [esp + 0x50], cx
mov word [esp + 0x56], ax
lea eax, [esp + 0x74]
mov ecx, ebp
push eax
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x50]
call fcn.00406cfb
test eax, eax
jg 0x4066de
mov ecx, dword [ebp + 0x1c]
mov edx, 0x1010
call fcn.004074d0
jmp 0x4066b6
mov edx, dword [ebx + 0xa4]
mov ecx, edi
push ebx
mov dword [esp + 0x58], ebp
call fcn.00406240
mov edx, dword [ebx]
mov ecx, edi
push ebx
mov dword [esp + 0x4c], eax
call fcn.00406240
mov esi, dword [esp + 0x10]
mov ecx, esi
mov edx, dword [ebx + 0x64]
push ebx
mov dword [esp + 0x50], eax
call fcn.00406240
mov dword [esp + 0x58], eax
lea edx, [esp + 0x14]
xor eax, eax
mov ecx, ebp
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call fcn.00407143
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax