Function at 0x5277c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x38
call fcn.0065d180
mov eax, dword [0x746694]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, edx
lea edx, [eax + 1]
push esi
mov esi, ecx
movzx ecx, byte [eax]
movzx eax, byte [edx]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edx + 2]
shl eax, 0x18
or ecx, eax
movzx eax, byte [edx + 4]
shl eax, 8
mov dword [ebp - 0x10], ecx
movzx ecx, byte [edx + 6]
shl ecx, 8
push edi
movzx edi, byte [edx + 3]
or edi, eax
movzx eax, byte [edx + 5]
or ecx, eax
mov eax, dword [ebp + 0x18]
lea edx, [eax + 1]
shl ecx, 0x10
or edi, ecx
mov dword [ebp - 0x24], edi
movzx ecx, byte [eax]
movzx eax, byte [edx]
movzx edi, byte [edx + 3]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edx + 2]
shl eax, 0x18
or ecx, eax
movzx eax, byte [edx + 4]
shl eax, 8
or edi, eax
mov dword [ebp - 0x30], ecx
movzx ecx, byte [edx + 6]
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
shl ecx, 0x10
or edi, ecx
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x1c], edi
movzx edx, byte [ecx + 1]
movzx eax, byte [ecx]
movzx edi, byte [ecx + 4]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 2]
shl eax, 0x10
or edx, eax
movzx eax, byte [ecx + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [ecx + 5]
movzx ecx, byte [ecx + 7]
shl eax, 8
or edi, eax
shl ecx, 8
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], edx
movzx eax, byte [eax + 6]
or ecx, eax
shl ecx, 0x10
or edi, ecx
mov dword [ebp - 0x14], edi
cmp dword [ebp + 0x1c], 0
je 0x527a7f
mov eax, dword [ebp + 8]
lea ecx, [eax - 8]
mov dword [ebp - 0x18], ecx
test ecx, ecx
js 0x5279ab
shr eax, 3
mov dword [ebp + 8], eax
neg eax
lea ecx, [ecx + eax*8]
mov dword [ebp - 0x18], ecx
jmp 0x5278f3
mov edi, dword [ebp - 0x14]
movzx eax, byte [esi + 1]
movzx edx, byte [esi]
movzx ecx, byte [esi + 4]
shl eax, 8
or edx, eax
movzx eax, byte [esi + 2]
shl eax, 0x10
or edx, eax
movzx eax, byte [esi + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [esi + 5]
xor edx, dword [ebp - 0x2c]
xor edx, dword [ebp - 0x10]
shl eax, 8
or ecx, eax
mov dword [ebp - 0xc], edx
movzx eax, byte [esi + 6]
shl eax, 0x10
or ecx, eax
movzx eax, byte [esi + 7]
shl eax, 0x18
add esi, 8
or ecx, eax
lea eax, [ebp - 0xc]
push 1
push dword [ebp - 0x20]
xor ecx, edi
xor ecx, dword [ebp - 0x24]
push eax
mov dword [ebp - 8], ecx
call fcn.00402b00
mov edx, dword [ebp - 0xc]
add esp, 0xc
xor edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 8]
mov eax, edx
xor ecx, dword [ebp - 0x1c]
shr eax, 8
mov byte [ebx], dl
mov byte [ebx + 1], al
mov eax, edx
shr eax, 0x10
mov byte [ebx + 2], al
mov eax, edx
shr eax, 0x18
mov byte [ebx + 3], al
mov eax, ecx
shr eax, 8
mov byte [ebx + 5], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 6], al
mov eax, ecx
shr eax, 0x18
mov byte [ebx + 4], cl
mov byte [ebx + 7], al
add ebx, 8
sub dword [ebp + 8], 1
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x14], ecx
jne 0x5278f0
jmp 0x5279ae
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
cmp eax, 0xfffffff8
je 0x527c45
lea ecx, [eax + 8]
xor edi, edi
add ecx, esi
add eax, 7
xor esi, esi
cmp eax, 7
ja case.default.0x5279cb
jmp dword [eax*4 + 0x527cac]
movzx edi, byte [ecx - 1]
dec ecx
shl edi, 0x18
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
or edi, eax
movzx esi, byte [ecx - 1]
dec ecx
shl esi, 0x18
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or esi, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or esi, eax
movzx eax, byte [ecx - 1]
or esi, eax
xor edi, dword [ebp - 0x14]
lea eax, [ebp - 0xc]
xor edi, dword [ebp - 0x24]
xor esi, edx
xor esi, dword [ebp - 0x10]
push 1
push dword [ebp - 0x20]
mov dword [ebp - 0xc], esi
push eax
mov dword [ebp - 8], edi
call fcn.00402b00
mov edx, dword [ebp - 0xc]
add esp, 0xc
xor edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 8]
mov eax, edx
xor ecx, dword [ebp - 0x1c]
shr eax, 8
mov byte [ebx], dl
mov byte [ebx + 1], al
mov eax, edx
shr eax, 0x10
mov byte [ebx + 2], al
mov eax, edx
shr eax, 0x18
mov byte [ebx + 3], al
mov eax, ecx
shr eax, 8
mov byte [ebx + 5], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 6], al
mov eax, ecx
shr eax, 0x18
mov byte [ebx + 4], cl
mov byte [ebx + 7], al
jmp 0x527c45
mov edi, dword [ebp + 8]
add edi, 0xfffffff8
test edi, edi
jle 0x527b6e
lea eax, [edi - 1]
shr eax, 3
inc eax
mov dword [ebp - 0x28], eax
neg eax
lea edi, [edi + eax*8]
mov dword [ebp - 0x38], edi
nop
movzx eax, byte [esi + 1]
movzx edi, byte [esi]
shl eax, 8
or edi, eax
movzx eax, byte [esi + 2]
shl eax, 0x10
or edi, eax
movzx eax, byte [esi + 3]
shl eax, 0x18
add esi, 4
or edi, eax
mov dword [ebp - 0x18], esi
mov ecx, dword [ebp - 0x18]
mov eax, edi
xor eax, dword [ebp - 0x30]
movzx esi, byte [esi]
mov dword [ebp - 0xc], eax
movzx eax, byte [ecx + 1]
shl eax, 8
or esi, eax
movzx eax, byte [ecx + 2]
shl eax, 0x10
or esi, eax
movzx eax, byte [ecx + 3]
shl eax, 0x18
add ecx, 4
or esi, eax
mov dword [ebp - 0x18], ecx
mov eax, esi
xor eax, dword [ebp - 0x1c]
push 0
push dword [ebp - 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00402b00
mov ecx, dword [ebp - 0xc]
add esp, 0xc
xor ecx, dword [ebp - 0x2c]
xor ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov eax, ecx
xor edx, dword [ebp - 0x14]
xor edx, dword [ebp - 0x24]
mov byte [ebx], cl
shr eax, 8
mov byte [ebx + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 2], al
mov eax, edx
shr eax, 8
mov byte [ebx + 5], al
mov eax, edx
mov byte [ebx + 4], dl
shr ecx, 0x18
shr edx, 0x18
shr eax, 0x10
mov byte [ebx + 3], cl
mov ecx, esi
mov esi, dword [ebp - 0x18]
mov byte [ebx + 7], dl
mov edx, edi
mov byte [ebx + 6], al
add ebx, 8
sub dword [ebp - 0x28], 1
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x14], ecx
jne 0x527aa0
mov edi, dword [ebp - 0x38]
jmp 0x527b71
mov ecx, dword [ebp - 0x14]
cmp edi, 0xfffffff8
je 0x527c45
movzx eax, byte [esi + 1]
movzx ecx, byte [esi]
movzx edx, byte [esi + 4]
shl eax, 8
or ecx, eax
movzx eax, byte [esi + 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [esi + 3]
shl eax, 0x18
or ecx, eax
movzx eax, byte [esi + 5]
mov dword [ebp - 0x38], ecx
xor ecx, dword [ebp - 0x30]
mov dword [ebp - 0xc], ecx
movzx ecx, byte [esi + 7]
shl eax, 8
or edx, eax
shl ecx, 8
movzx eax, byte [esi + 6]
or ecx, eax
lea eax, [ebp - 0xc]
shl ecx, 0x10
or edx, ecx
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x28], edx
xor edx, dword [ebp - 0x1c]
push eax
mov dword [ebp - 8], edx
call fcn.00402b00
mov eax, dword [ebp - 0xc]
lea ecx, [edi + 8]
mov edx, dword [ebp - 8]
add edi, 7
xor eax, dword [ebp - 0x2c]
add esp, 0xc
xor edx, dword [ebp - 0x14]
add ecx, ebx
xor eax, dword [ebp - 0x10]
xor edx, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
cmp edi, 7
ja case.default.0x527bfc
jmp dword [edi*4 + 0x527ccc]
dec ecx
mov eax, edx
shr eax, 0x18
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 0x10
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 8
mov byte [ecx], al
mov eax, dword [ebp - 0x10]
dec ecx
mov byte [ecx], dl
dec ecx
shr eax, 0x18
mov byte [ecx], al
mov eax, dword [ebp - 0x10]
dec ecx
shr eax, 0x10
mov byte [ecx], al
mov eax, dword [ebp - 0x10]
dec ecx
shr eax, 8
mov byte [ecx], al
mov eax, dword [ebp - 0x10]
mov byte [ecx - 1], al
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x28]
mov eax, ecx
mov ebx, ecx
shr eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, ecx
shr eax, 8
mov dword [ebp - 0x20], eax
mov eax, edx
shr eax, 0x18
mov dword [ebp - 0x10], eax
mov eax, edx
shr eax, 0x10
mov dword [ebp - 0x24], eax
mov eax, edx
shr eax, 8
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x34]
shr ebx, 0x18
pop edi
pop esi
mov byte [eax], dl
mov edx, dword [ebp - 0x28]
mov byte [eax + 1], dl
mov edx, dword [ebp - 0x24]
mov byte [eax + 2], dl
mov edx, dword [ebp - 0x10]
mov byte [eax + 3], dl
mov byte [eax + 4], cl
mov ecx, dword [ebp - 0x20]
mov byte [eax + 5], cl
mov ecx, dword [ebp - 0x1c]
mov byte [eax + 6], cl
mov ecx, dword [ebp - 4]
mov byte [eax + 7], bl
xor ecx, ebp
pop ebx
call fcn.0065d16a
mov esp, ebp
pop ebp
ret