Function at 0x401230
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [0x4ee568], esi
jne 0x40124d
call section..text
mov dword [0x4ee568], 1
mov eax, dword [ebp + 0x10]
sub eax, 0x80
je 0x40127b
sub eax, 0x40
je 0x401270
sub eax, 0x40
jne 0x4014c5
mov edx, dword [ebp + 8]
mov dword [edx], 0xe
jmp 0x401284
mov edx, dword [ebp + 8]
mov dword [edx], 0xc
jmp 0x401284
mov edx, dword [ebp + 8]
mov dword [edx], 0xa
mov ecx, dword [ebp + 0x10]
sar ecx, 5
cmp ecx, esi
push ebx
lea eax, [edx + 8]
push edi
mov dword [edx + 4], eax
mov dword [ebp + 0x10], ecx
jle 0x4012c9
mov ecx, dword [ebp + 0xc]
add ecx, 2
movzx edi, byte [ecx + 1]
movzx ebx, byte [ecx]
shl edi, 8
or edi, ebx
movzx ebx, byte [ecx - 1]
shl edi, 8
or edi, ebx
movzx ebx, byte [ecx - 2]
shl edi, 8
or edi, ebx
mov dword [eax + esi*4], edi
inc esi
add ecx, 4
cmp esi, dword [ebp + 0x10]
jl 0x40129f
mov edx, dword [edx]
sub edx, 0xa
je 0x401449
dec edx
dec edx
je 0x4013bd
dec edx
dec edx
jne 0x4014c3
mov dword [ebp + 0x10], 0x4ec340
mov esi, 0xff
mov ecx, dword [eax + 0x1c]
movzx edx, byte [eax + 0x1f]
movzx edx, byte [edx + 0x4ee468]
and ecx, esi
movzx ecx, byte [ecx + 0x4ee468]
shl ecx, 8
xor ecx, edx
movzx edx, byte [eax + 0x1e]
movzx edx, byte [edx + 0x4ee468]
shl ecx, 8
xor ecx, edx
movzx edx, byte [eax + 0x1d]
movzx edx, byte [edx + 0x4ee468]
shl ecx, 8
xor ecx, edx
mov edx, dword [ebp + 0x10]
xor ecx, dword [edx]
mov edx, dword [eax + 4]
xor ecx, dword [eax]
lea edi, [eax + 0x20]
xor edx, ecx
mov dword [edi], ecx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x24], edx
mov edx, dword [eax + 0xc]
xor edx, ecx
mov dword [eax + 0x2c], edx
movzx ecx, byte [eax + 0x2f]
movzx ecx, byte [ecx + 0x4ee468]
movzx ebx, byte [eax + 0x2e]
movzx ebx, byte [ebx + 0x4ee468]
shl ecx, 8
xor ecx, ebx
movzx ebx, byte [eax + 0x2d]
movzx ebx, byte [ebx + 0x4ee468]
add dword [ebp + 0x10], 4
shl ecx, 8
xor ecx, ebx
and edx, esi
movzx edx, byte [edx + 0x4ee468]
shl ecx, 8
xor ecx, edx
xor ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
xor edx, ecx
mov dword [eax + 0x30], ecx
mov ecx, dword [eax + 0x18]
xor ecx, edx
mov dword [eax + 0x38], ecx
xor ecx, dword [eax + 0x1c]
cmp dword [ebp + 0x10], 0x4ec35c
mov dword [eax + 0x34], edx
mov dword [eax + 0x3c], ecx
mov eax, edi
jl 0x4012f0
jmp 0x4014c3
mov dword [ebp + 0x10], 0x4ec340
mov esi, 0xff
mov ebx, dword [eax + 0x14]
movzx edx, byte [eax + 0x17]
movzx edx, byte [edx + 0x4ee468]
mov ecx, ebx
and ecx, esi
movzx ecx, byte [ecx + 0x4ee468]
shl ecx, 8
xor ecx, edx
movzx edx, byte [eax + 0x16]
movzx edx, byte [edx + 0x4ee468]
shl ecx, 8
xor ecx, edx
movzx edx, byte [eax + 0x15]
movzx edx, byte [edx + 0x4ee468]
shl ecx, 8
xor ecx, edx
xor ecx, dword [eax]
mov edx, dword [ebp + 0x10]
xor ecx, dword [edx]
mov edx, dword [eax + 4]
add dword [ebp + 0x10], 4
xor edx, ecx
lea edi, [eax + 0x18]
mov dword [edi], ecx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x1c], edx
mov edx, dword [eax + 0xc]
xor edx, ecx
mov dword [eax + 0x20], ecx
mov ecx, dword [eax + 0x10]
xor ecx, edx
mov dword [eax + 0x28], ecx
xor ecx, ebx
cmp dword [ebp + 0x10], 0x4ec360
mov dword [eax + 0x24], edx
mov dword [eax + 0x2c], ecx
mov eax, edi
jl 0x4013c9
jmp 0x4014c3
mov dword [ebp + 0x10], 0x4ec340
mov esi, 0xff
mov ebx, dword [eax + 0xc]
movzx edx, byte [eax + 0xf]
movzx edx, byte [edx + 0x4ee468]
mov ecx, ebx
and ecx, esi
movzx ecx, byte [ecx + 0x4ee468]
shl ecx, 8
xor ecx, edx
movzx edx, byte [eax + 0xe]
movzx edx, byte [edx + 0x4ee468]
shl ecx, 8
xor ecx, edx
movzx edx, byte [eax + 0xd]
movzx edx, byte [edx + 0x4ee468]
shl ecx, 8
xor ecx, edx
mov edx, dword [ebp + 0x10]
xor ecx, dword [edx]
mov edx, dword [eax + 4]
xor ecx, dword [eax]
add dword [ebp + 0x10], 4
xor edx, ecx
lea edi, [eax + 0x10]
mov dword [edi], ecx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x18], ecx
xor ecx, ebx
cmp dword [ebp + 0x10], 0x4ec368
mov dword [eax + 0x14], edx
mov dword [eax + 0x1c], ecx
mov eax, edi
jl 0x401455
pop edi
pop ebx
pop esi
pop ebp
ret