Function at 0x401100
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor eax, eax
push esi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
push eax
push ebx
push ecx
push edx
push esi
push edi
movzx ecx, byte [0x5132ed]
movzx eax, byte [0x5132e8]
shl ecx, 2
mov dword [ebp - 0x10], ecx
movzx ecx, byte [0x5132ee]
movzx edx, byte [0x5132e9]
shl ecx, 2
mov dword [ebp - 0xc], ecx
movzx ecx, byte [0x5132ef]
movzx ebx, byte [0x5132ec]
shl ecx, 2
shl eax, 2
mov dword [ebp - 8], ecx
mov ecx, dword [eax + 0x508340]
mov eax, dword [eax + 0x508740]
shr ecx, 1
shr eax, 1
shl edx, 2
or ecx, dword [edx + 0x508340]
or eax, dword [edx + 0x508740]
push esi
movzx esi, byte [0x5132ea]
shr ecx, 1
shr eax, 1
shl esi, 2
or ecx, dword [esi + 0x508340]
or eax, dword [esi + 0x508740]
shr ecx, 1
push edi
movzx edi, byte [0x5132eb]
shr eax, 1
shl ebx, 2
shl edi, 2
or ecx, dword [edi + 0x508340]
or eax, dword [edi + 0x508740]
shr ecx, 1
or ecx, dword [ebx + 0x508340]
mov dword [ebp - 4], ebx
mov edx, ebx
mov esi, dword [edx + 0x508740]
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
shr eax, 1
or eax, esi
mov esi, dword [edx + 0x508740]
mov edx, dword [ebp - 0xc]
shr ecx, 1
or ecx, dword [ebx + 0x508340]
mov ebx, dword [ebp - 0xc]
shr eax, 1
or eax, esi
mov esi, dword [edx + 0x508740]
mov edx, dword [ebp + 8]
shr ecx, 1
or ecx, dword [ebx + 0x508340]
mov ebx, dword [ebp - 8]
shr eax, 1
or eax, esi
mov esi, dword [ebx + 0x508740]
shr ecx, 1
or ecx, dword [ebx + 0x508340]
shr eax, 1
or eax, esi
test edx, edx
jne 0x4012cc
mov edx, 0x513268
mov dword [ebp - 0x10], edx
mov esi, eax
shr esi, 0x1f
lea edi, [eax + eax]
or esi, edi
mov edi, esi
shl edi, 0x1c
mov ebx, esi
shr ebx, 4
or edi, ebx
xor edi, dword [edx - 4]
xor esi, dword [edx]
mov edx, edi
shr edx, 0x18
and edx, 0x3f
mov edx, dword [edx*4 + 0x507b40]
mov ebx, edi
shr ebx, 0x10
and ebx, 0x3f
xor edx, dword [ebx*4 + 0x507d40]
mov ebx, esi
shr ebx, 0x18
and ebx, 0x3f
xor edx, dword [ebx*4 + 0x507c40]
mov ebx, edi
shr ebx, 8
and ebx, 0x3f
xor edx, dword [ebx*4 + 0x507f40]
mov ebx, esi
shr ebx, 0x10
and ebx, 0x3f
xor edx, dword [ebx*4 + 0x507e40]
mov ebx, esi
shr ebx, 8
and ebx, 0x3f
xor edx, dword [ebx*4 + 0x508040]
and edi, 0x3f
xor edx, dword [edi*4 + 0x508140]
and esi, 0x3f
xor edx, dword [esi*4 + 0x508240]
xor edx, ecx
mov ecx, eax
mov eax, edx
mov edx, dword [ebp - 0x10]
add edx, 8
cmp edx, 0x5132e8
mov dword [ebp - 0x10], edx
jl 0x401223
jmp 0x401378
mov edx, 0x5132e0
mov dword [ebp - 0x10], edx
mov esi, eax
shr esi, 0x1f
lea edi, [eax + eax]
or esi, edi
mov edi, esi
shl edi, 0x1c
mov ebx, esi
shr ebx, 4
or edi, ebx
xor edi, dword [edx - 4]
xor esi, dword [edx]
mov edx, edi
shr edx, 0x18
and edx, 0x3f
mov edx, dword [edx*4 + 0x507b40]
mov ebx, edi
shr ebx, 0x10
and ebx, 0x3f
xor edx, dword [ebx*4 + 0x507d40]
mov ebx, esi
shr ebx, 0x18
and ebx, 0x3f
xor edx, dword [ebx*4 + 0x507c40]
mov ebx, edi
shr ebx, 8
and ebx, 0x3f
xor edx, dword [ebx*4 + 0x507f40]
mov ebx, esi
shr ebx, 0x10
and ebx, 0x3f
xor edx, dword [ebx*4 + 0x507e40]
mov ebx, esi
shr ebx, 8
and ebx, 0x3f
xor edx, dword [ebx*4 + 0x508040]
and edi, 0x3f
xor edx, dword [edi*4 + 0x508140]
and esi, 0x3f
xor edx, dword [esi*4 + 0x508240]
xor edx, ecx
mov ecx, eax
mov eax, edx
mov edx, dword [ebp - 0x10]
sub edx, 8
cmp edx, 0x513268
mov dword [ebp - 0x10], edx
jge 0x4012d4
movzx edx, ch
shl edx, 2
mov dword [ebp - 0xc], edx
mov edx, eax
shr edx, 0x10
movzx edx, dl
shl edx, 2
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x10], edx
mov edx, ecx
shr edx, 0x10
movzx edx, dl
shl edx, 2
mov esi, eax
and esi, 0xff
shl esi, 2
mov dword [ebp + 8], ecx
mov dword [ebp + 8], edx
mov edx, dword [esi + 0x508b40]
shr edx, 1
mov edi, ecx
and edi, 0xff
shl edi, 2
or edx, dword [edi + 0x508b40]
movzx ebx, ah
shl ebx, 2
mov dword [ebp - 4], ebx
shr edx, 1
or edx, dword [ebx + 0x508b40]
mov ebx, dword [ebp - 0xc]
shr edx, 1
or edx, dword [ebx + 0x508b40]
mov ebx, dword [ebp - 0x10]
shr edx, 1
or edx, dword [ebx + 0x508b40]
mov ebx, dword [ebp + 8]
shr edx, 1
or edx, dword [ebx + 0x508b40]
shr eax, 0x18
shl eax, 2
mov ebx, dword [eax + 0x508b40]
shr edx, 1
or edx, ebx
shr ecx, 0x18
shl ecx, 2
mov ebx, dword [ecx + 0x508b40]
shr edx, 1
or edx, ebx
mov ebx, dword [esi + 0x508f40]
mov esi, dword [edi + 0x508f40]
shr ebx, 1
or ebx, esi
mov esi, dword [ebp - 4]
mov edi, dword [esi + 0x508f40]
mov esi, dword [ebp - 0xc]
shr ebx, 1
or ebx, edi
mov edi, dword [esi + 0x508f40]
mov esi, dword [ebp - 0x10]
shr ebx, 1
or ebx, edi
mov edi, dword [esi + 0x508f40]
mov esi, dword [ebp + 8]
shr ebx, 1
or ebx, edi
mov edi, dword [esi + 0x508f40]
shr ebx, 1
or ebx, edi
mov edi, dword [eax + 0x508f40]
mov eax, dword [ecx + 0x508f40]
shr ebx, 1
or ebx, edi
shr ebx, 1
or ebx, eax
mov eax, edx
shr eax, 0x18
mov ecx, edx
shr ecx, 0x10
mov byte [0x5132e8], al
mov byte [0x5132e9], cl
mov eax, edx
shr eax, 8
mov byte [0x5132eb], dl
mov byte [0x5132ea], al
mov ecx, ebx
mov edx, ebx
mov eax, ebx
pop edi
shr ecx, 0x18
shr edx, 0x10
shr eax, 8
pop esi
mov byte [0x5132ef], bl
mov byte [0x5132ec], cl
mov byte [0x5132ed], dl
mov byte [0x5132ee], al
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret