Function at 0x4011f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [section..data], 0
je 0x40120b
call section..text
mov dword [section..data], 0
mov ecx, dword [ebp + 0x10]
mov eax, ecx
sub eax, 0x80
je 0x401246
sub eax, 0x40
je 0x401237
sub eax, 0x40
je 0x401228
mov eax, 1
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [eax + 0x200], 0xe
jmp 0x401253
mov edx, dword [ebp + 8]
mov dword [edx + 0x200], 0xc
jmp 0x401253
mov eax, dword [ebp + 8]
mov dword [eax + 0x200], 0xa
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
sar esi, 5
xor edx, edx
push edi
test esi, esi
jle 0x40129e
mov ecx, dword [ebp + 0xc]
add ecx, 2
lea ebx, [ebx]
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 ebx, eax
mov dword [ebx + edx*4], edi
inc edx
add ecx, 4
cmp edx, esi
jl 0x401270
mov ecx, dword [ebp + 0x10]
sub ecx, 0x80
je 0x401560
sub ecx, 0x40
je 0x401391
sub ecx, 0x40
jne 0x401745
mov ebx, 0x40ec50
mov esi, dword [eax + 0x1c]
mov ecx, esi
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [edx*4 + 0x40e050]
shl ecx, 8
mov edi, dword [eax + 0xc]
mov edx, esi
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x40e050]
movzx edx, byte [eax + 0x1c]
shl ecx, 8
xor ecx, dword [edx*4 + 0x40e050]
mov edx, esi
shl ecx, 8
shr edx, 0x18
xor ecx, dword [edx*4 + 0x40e050]
mov edx, dword [eax + 4]
xor ecx, dword [eax]
add ebx, 4
xor ecx, dword [ebx - 4]
add eax, 0x20
xor edx, ecx
mov dword [eax], ecx
mov ecx, dword [eax - 0x18]
xor ecx, edx
xor edi, ecx
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov ecx, edi
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x40e050]
shl ecx, 8
mov edx, edi
shr edx, 0x10
movzx edx, dl
xor ecx, dword [edx*4 + 0x40e050]
mov edx, edi
shr edx, 8
shl ecx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x40e050]
movzx edx, byte [eax + 0xc]
shl ecx, 8
xor ecx, dword [edx*4 + 0x40e050]
mov edx, dword [eax - 0xc]
xor ecx, dword [eax - 0x10]
xor edx, ecx
mov dword [eax + 0x10], ecx
mov ecx, dword [eax - 8]
xor ecx, edx
xor esi, ecx
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], esi
cmp ebx, 0x40ec6c
jl 0x4012c1
jmp 0x401745
mov edi, 0x40ec54
mov esi, dword [eax + 0x14]
mov ecx, esi
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [edx*4 + 0x40e050]
shl ecx, 8
mov edx, esi
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x40e050]
movzx edx, byte [eax + 0x14]
shl ecx, 8
xor ecx, dword [edx*4 + 0x40e050]
mov edx, esi
shl ecx, 8
shr edx, 0x18
xor ecx, dword [edx*4 + 0x40e050]
mov edx, dword [eax + 4]
xor ecx, dword [edi - 4]
xor ecx, dword [eax]
xor edx, ecx
mov dword [eax + 0x18], 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
xor esi, ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x24], edx
mov dword [eax + 0x2c], esi
mov ecx, esi
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [edx*4 + 0x40e050]
shl ecx, 8
mov edx, esi
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x40e050]
movzx edx, byte [eax + 0x2c]
shl ecx, 8
xor ecx, dword [edx*4 + 0x40e050]
mov edx, dword [eax + 0x1c]
shl ecx, 8
shr esi, 0x18
xor ecx, dword [esi*4 + 0x40e050]
mov esi, dword [eax + 0x2c]
xor ecx, dword [eax + 0x18]
xor ecx, dword [edi]
xor edx, ecx
mov dword [eax + 0x30], ecx
mov ecx, dword [eax + 0x20]
xor ecx, edx
mov dword [eax + 0x34], edx
mov edx, dword [eax + 0x24]
xor edx, ecx
mov dword [eax + 0x38], ecx
mov ecx, dword [eax + 0x28]
xor ecx, edx
xor esi, ecx
mov dword [eax + 0x40], ecx
mov dword [eax + 0x3c], edx
mov ecx, esi
shr ecx, 0x10
movzx edx, cl
mov dword [eax + 0x44], esi
mov ecx, dword [edx*4 + 0x40e050]
mov edx, esi
shr edx, 8
shl ecx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x40e050]
movzx edx, byte [eax + 0x44]
shl ecx, 8
xor ecx, dword [edx*4 + 0x40e050]
shl ecx, 8
shr esi, 0x18
xor ecx, dword [esi*4 + 0x40e050]
mov edx, dword [eax + 0x34]
xor ecx, dword [edi + 4]
mov esi, dword [eax + 0x44]
xor ecx, dword [eax + 0x30]
add edi, 0x10
xor edx, ecx
mov dword [eax + 0x48], ecx
mov ecx, dword [eax + 0x38]
xor ecx, edx
mov dword [eax + 0x4c], edx
mov edx, dword [eax + 0x3c]
xor edx, ecx
mov dword [eax + 0x50], ecx
mov ecx, dword [eax + 0x40]
xor ecx, edx
xor esi, ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x54], edx
mov dword [eax + 0x5c], esi
mov ecx, esi
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [edx*4 + 0x40e050]
shl ecx, 8
mov edx, esi
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x40e050]
movzx edx, byte [eax + 0x5c]
shl ecx, 8
xor ecx, dword [edx*4 + 0x40e050]
mov edx, dword [eax + 0x4c]
shl ecx, 8
shr esi, 0x18
xor ecx, dword [esi*4 + 0x40e050]
add eax, 0x60
xor ecx, dword [edi - 8]
xor ecx, dword [eax - 0x18]
xor edx, ecx
mov dword [eax], ecx
mov ecx, dword [eax - 0x10]
xor ecx, edx
mov dword [eax + 4], edx
mov edx, dword [eax - 0xc]
xor edx, ecx
mov dword [eax + 8], ecx
mov ecx, dword [eax - 8]
xor ecx, edx
mov dword [eax + 0xc], edx
mov edx, dword [eax - 4]
xor edx, ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
cmp edi, 0x40ec74
jl 0x401396
jmp 0x401745
mov edi, 0x40ec54
mov edx, dword [eax + 0xc]
mov ecx, edx
shr ecx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x40e050]
shl ecx, 8
mov ebx, edx
shr ebx, 8
movzx esi, bl
xor ecx, dword [esi*4 + 0x40e050]
movzx esi, dl
shl ecx, 8
xor ecx, dword [esi*4 + 0x40e050]
mov ebx, dword [eax + 4]
shl ecx, 8
mov esi, edx
shr esi, 0x18
xor ecx, dword [esi*4 + 0x40e050]
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 + 0x40e050]
shl ecx, 8
mov edx, esi
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x40e050]
movzx edx, byte [eax + 0x1c]
shl ecx, 8
xor ecx, dword [edx*4 + 0x40e050]
shr esi, 0x18
shl ecx, 8
xor ecx, dword [esi*4 + 0x40e050]
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 + 0x40e050]
shl ecx, 8
mov edx, esi
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x40e050]
movzx edx, byte [eax + 0x2c]
shl ecx, 8
xor ecx, dword [edx*4 + 0x40e050]
mov edx, dword [eax + 0x24]
shl ecx, 8
shr esi, 0x18
xor ecx, dword [esi*4 + 0x40e050]
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 + 0x40e050]
shl ecx, 8
mov edx, esi
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x40e050]
movzx edx, byte [eax + 0x3c]
shl ecx, 8
xor ecx, dword [edx*4 + 0x40e050]
mov edx, dword [eax + 0x34]
shl ecx, 8
shr esi, 0x18
xor ecx, dword [esi*4 + 0x40e050]
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 + 0x40e050]
shl ecx, 8
mov edx, esi
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x40e050]
movzx edx, byte [eax - 4]
shl ecx, 8
xor ecx, dword [edx*4 + 0x40e050]
mov edx, dword [eax - 0xc]
shl ecx, 8
shr esi, 0x18
xor ecx, dword [esi*4 + 0x40e050]
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, 0x40ec7c
jl 0x401565
cmp dword [0x40e004], 0
je 0x401862
xor ecx, ecx
jmp 0x401760
mov edx, dword [ecx + 0x40e050]
add edx, edx
mov esi, dword [edx + edx + 0x40fc78]
add edx, edx
mov dword [ecx + 0x40f478], esi
mov esi, dword [edx + 0x40f878]
mov dword [ecx + 0x40f078], esi
mov esi, dword [edx + 0x40e850]
mov edx, dword [edx + 0x40e450]
mov dword [ecx + 0x411478], edx
mov edx, dword [ecx + 0x40e054]
add edx, edx
add edx, edx
mov dword [ecx + 0x40ec78], esi
mov esi, dword [edx + 0x40fc78]
mov dword [ecx + 0x40f47c], esi
mov esi, dword [edx + 0x40f878]
mov dword [ecx + 0x40f07c], esi
mov esi, dword [edx + 0x40e850]
mov edx, dword [edx + 0x40e450]
mov dword [ecx + 0x41147c], edx
mov edx, dword [ecx + 0x40e058]
add edx, edx
add edx, edx
mov dword [ecx + 0x40ec7c], esi
mov esi, dword [edx + 0x40fc78]
mov dword [ecx + 0x40f480], esi
mov esi, dword [edx + 0x40f878]
mov dword [ecx + 0x40f080], esi
mov esi, dword [edx + 0x40e850]
mov edx, dword [edx + 0x40e450]
mov dword [ecx + 0x411480], edx
mov edx, dword [ecx + 0x40e05c]
add edx, edx
add edx, edx
mov dword [ecx + 0x40ec80], esi
mov esi, dword [edx + 0x40fc78]
mov dword [ecx + 0x40f484], esi
mov esi, dword [edx + 0x40f878]
mov dword [ecx + 0x40f084], esi
mov esi, dword [edx + 0x40e850]
mov edx, dword [edx + 0x40e450]
mov dword [ecx + 0x40ec84], esi
mov dword [ecx + 0x411484], edx
add ecx, 0x10
cmp ecx, 0x400
jl 0x401760
mov dword [0x40e004], 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 0x4019a1
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 + 0x40f478]
xor edx, dword [ebx*4 + 0x40f078]
mov ebx, esi
shr ebx, 8
movzx esi, bl
xor edx, dword [esi*4 + 0x40ec78]
movzx esi, byte [eax - 0x20]
xor edx, dword [esi*4 + 0x411478]
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 + 0x40f478]
xor edx, dword [ebx*4 + 0x40f078]
mov ebx, esi
shr ebx, 8
movzx esi, bl
xor edx, dword [esi*4 + 0x40ec78]
movzx esi, byte [eax - 0x1c]
xor edx, dword [esi*4 + 0x411478]
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 + 0x40f478]
movzx ebx, bl
xor edx, dword [ebx*4 + 0x40f078]
mov ebx, esi
shr ebx, 8
movzx esi, bl
xor edx, dword [esi*4 + 0x40ec78]
movzx esi, byte [eax - 0x18]
xor edx, dword [esi*4 + 0x411478]
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 + 0x40f478]
movzx ebx, bl
xor edx, dword [ebx*4 + 0x40f078]
mov ebx, esi
shr ebx, 8
movzx esi, bl
xor edx, dword [esi*4 + 0x40ec78]
movzx esi, byte [eax - 4]
xor edx, dword [esi*4 + 0x411478]
mov dword [ecx - 4], edx
mov edx, dword [ebp + 8]
cmp edi, dword [edx + 0x200]
jl 0x4018a0
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