Function at 0x401210
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x473a68], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
je 0x401231
call section..text
mov dword [0x473a68], 0
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dword [esi + 0x200], 0xa
mov eax, esi
add ecx, 2
movzx edi, byte [ecx - 2]
movzx ebx, byte [ecx - 1]
shl edi, 8
or edi, ebx
movzx ebx, byte [ecx]
shl edi, 8
or edi, ebx
movzx ebx, byte [ecx + 1]
shl edi, 8
or edi, ebx
mov dword [esi + edx*4], edi
inc edx
add ecx, 4
cmp edx, 4
jl 0x401245
mov edi, 0x476544
mov edx, dword [eax + 0xc]
mov ecx, edx
shr ecx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x475940]
shl ecx, 8
mov ebx, edx
shr ebx, 8
movzx esi, bl
xor ecx, dword [esi*4 + 0x475940]
movzx esi, dl
shl ecx, 8
xor ecx, dword [esi*4 + 0x475940]
mov ebx, dword [eax + 4]
shl ecx, 8
mov esi, edx
shr esi, 0x18
xor ecx, dword [esi*4 + 0x475940]
mov esi, dword [eax + 8]
xor ecx, dword [edi - 4]
xor ecx, dword [eax]
xor ebx, ecx
mov dword [eax + 0x10], ecx
xor esi, ebx
mov dword [eax + 0x18], esi
xor esi, edx
mov dword [eax + 0x1c], esi
mov edx, esi
shr edx, 0x10
movzx ecx, dl
mov dword [eax + 0x14], ebx
mov ecx, dword [ecx*4 + 0x475940]
shl ecx, 8
mov edx, esi
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x475940]
movzx edx, byte [eax + 0x1c]
shl ecx, 8
xor ecx, dword [edx*4 + 0x475940]
shr esi, 0x18
shl ecx, 8
xor ecx, dword [esi*4 + 0x475940]
mov esi, dword [eax + 0x1c]
xor ecx, dword [edi]
mov edx, ebx
xor ecx, dword [eax + 0x10]
xor edx, ecx
mov dword [eax + 0x20], ecx
mov ecx, dword [eax + 0x18]
xor ecx, edx
xor esi, ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x24], edx
mov ecx, esi
shr ecx, 0x10
movzx edx, cl
mov dword [eax + 0x2c], esi
mov ecx, dword [edx*4 + 0x475940]
shl ecx, 8
mov edx, esi
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x475940]
movzx edx, byte [eax + 0x2c]
shl ecx, 8
xor ecx, dword [edx*4 + 0x475940]
mov edx, dword [eax + 0x24]
shl ecx, 8
shr esi, 0x18
xor ecx, dword [esi*4 + 0x475940]
mov esi, dword [eax + 0x2c]
xor ecx, dword [edi + 4]
xor ecx, dword [eax + 0x20]
xor edx, ecx
mov dword [eax + 0x30], ecx
mov ecx, dword [eax + 0x28]
xor ecx, edx
mov dword [eax + 0x34], edx
mov dword [eax + 0x38], ecx
xor esi, ecx
mov dword [eax + 0x3c], esi
mov ecx, esi
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [edx*4 + 0x475940]
shl ecx, 8
mov edx, esi
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x475940]
movzx edx, byte [eax + 0x3c]
shl ecx, 8
xor ecx, dword [edx*4 + 0x475940]
mov edx, dword [eax + 0x34]
shl ecx, 8
shr esi, 0x18
xor ecx, dword [esi*4 + 0x475940]
mov esi, dword [eax + 0x3c]
xor ecx, dword [edi + 8]
add edi, 0x14
xor ecx, dword [eax + 0x30]
add eax, 0x50
xor edx, ecx
mov dword [eax - 0x10], ecx
mov ecx, dword [eax - 0x18]
xor ecx, edx
xor esi, ecx
mov dword [eax - 8], ecx
mov dword [eax - 0xc], edx
mov dword [eax - 4], esi
mov ecx, esi
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [edx*4 + 0x475940]
shl ecx, 8
mov edx, esi
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x475940]
movzx edx, byte [eax - 4]
shl ecx, 8
xor ecx, dword [edx*4 + 0x475940]
mov edx, dword [eax - 0xc]
shl ecx, 8
shr esi, 0x18
xor ecx, dword [esi*4 + 0x475940]
xor ecx, dword [edi - 8]
xor ecx, dword [eax - 0x10]
xor edx, ecx
mov dword [eax], ecx
mov ecx, dword [eax - 8]
xor ecx, edx
mov dword [eax + 4], edx
mov edx, dword [eax - 4]
xor edx, ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
cmp edi, 0x47656c
jl 0x401274
cmp dword [0x473a6c], 0
je 0x401572
xor ecx, ecx
jmp 0x401470
mov edx, dword [ecx + 0x475940]
add edx, edx
mov esi, dword [edx + edx + 0x477568]
add edx, edx
mov dword [ecx + 0x476d68], esi
mov esi, dword [edx + 0x477168]
mov dword [ecx + 0x476968], esi
mov esi, dword [edx + 0x476140]
mov edx, dword [edx + 0x475d40]
mov dword [ecx + 0x478d68], edx
mov edx, dword [ecx + 0x475944]
add edx, edx
add edx, edx
mov dword [ecx + 0x476568], esi
mov esi, dword [edx + 0x477568]
mov dword [ecx + 0x476d6c], esi
mov esi, dword [edx + 0x477168]
mov dword [ecx + 0x47696c], esi
mov esi, dword [edx + 0x476140]
mov edx, dword [edx + 0x475d40]
mov dword [ecx + 0x478d6c], edx
mov edx, dword [ecx + 0x475948]
add edx, edx
add edx, edx
mov dword [ecx + 0x47656c], esi
mov esi, dword [edx + 0x477568]
mov dword [ecx + 0x476d70], esi
mov esi, dword [edx + 0x477168]
mov dword [ecx + 0x476970], esi
mov esi, dword [edx + 0x476140]
mov edx, dword [edx + 0x475d40]
mov dword [ecx + 0x478d70], edx
mov edx, dword [ecx + 0x47594c]
add edx, edx
add edx, edx
mov dword [ecx + 0x476570], esi
mov esi, dword [edx + 0x477568]
mov dword [ecx + 0x476d74], esi
mov esi, dword [edx + 0x477168]
mov dword [ecx + 0x476974], esi
mov esi, dword [edx + 0x476140]
mov edx, dword [edx + 0x475d40]
mov dword [ecx + 0x476574], esi
mov dword [ecx + 0x478d74], edx
add ecx, 0x10
cmp ecx, 0x400
jl 0x401470
mov dword [0x473a6c], 0
mov esi, dword [eax]
mov edx, dword [ebp + 8]
mov dword [edx + 0x100], esi
mov esi, dword [eax + 4]
lea ecx, [edx + 0x100]
mov dword [ecx + 4], esi
mov esi, dword [eax + 8]
mov dword [ecx + 8], esi
mov esi, dword [eax + 0xc]
mov dword [ecx + 0xc], esi
mov edi, 1
add ecx, 0x10
add eax, 0x10
cmp dword [edx + 0x200], edi
jle 0x4016b1
lea esp, [esp]
mov esi, dword [eax - 0x20]
mov ebx, esi
shr ebx, 0x10
movzx ebx, bl
mov edx, esi
shr edx, 0x18
mov edx, dword [edx*4 + 0x476d68]
xor edx, dword [ebx*4 + 0x476968]
mov ebx, esi
shr ebx, 8
movzx esi, bl
xor edx, dword [esi*4 + 0x476568]
movzx esi, byte [eax - 0x20]
xor edx, dword [esi*4 + 0x478d68]
inc edi
mov dword [ecx], edx
mov esi, dword [eax - 0x1c]
mov ebx, esi
shr ebx, 0x10
movzx ebx, bl
mov edx, esi
shr edx, 0x18
mov edx, dword [edx*4 + 0x476d68]
xor edx, dword [ebx*4 + 0x476968]
mov ebx, esi
shr ebx, 8
movzx esi, bl
xor edx, dword [esi*4 + 0x476568]
movzx esi, byte [eax - 0x1c]
xor edx, dword [esi*4 + 0x478d68]
add ecx, 0x10
mov dword [ecx - 0xc], edx
mov esi, dword [eax - 0x18]
mov ebx, esi
shr ebx, 0x10
mov edx, esi
shr edx, 0x18
mov edx, dword [edx*4 + 0x476d68]
movzx ebx, bl
xor edx, dword [ebx*4 + 0x476968]
mov ebx, esi
shr ebx, 8
movzx esi, bl
xor edx, dword [esi*4 + 0x476568]
movzx esi, byte [eax - 0x18]
xor edx, dword [esi*4 + 0x478d68]
add eax, 0xfffffff0
mov dword [ecx - 8], edx
mov esi, dword [eax - 4]
mov ebx, esi
shr ebx, 0x10
mov edx, esi
shr edx, 0x18
mov edx, dword [edx*4 + 0x476d68]
movzx ebx, bl
xor edx, dword [ebx*4 + 0x476968]
mov ebx, esi
shr ebx, 8
movzx esi, bl
xor edx, dword [esi*4 + 0x476568]
movzx esi, byte [eax - 4]
xor edx, dword [esi*4 + 0x478d68]
mov dword [ecx - 4], edx
mov edx, dword [ebp + 8]
cmp edi, dword [edx + 0x200]
jl 0x4015b0
mov edx, dword [eax - 0x20]
mov dword [ecx], edx
mov edx, dword [eax - 0x1c]
mov dword [ecx + 4], edx
mov edx, dword [eax - 0x18]
mov dword [ecx + 8], edx
mov eax, dword [eax - 0x14]
pop edi
pop esi
mov dword [ecx + 0xc], eax
xor eax, eax
pop ebx
pop ebp
ret