Function at 0x514b20
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.00559730
cmp dword [esp + 0x2c], 0
mov eax, dword [esp + 0x28]
push ebx
push ebp
push esi
push edi
je 0x514d60
movzx edx, byte [eax]
movzx ecx, byte [eax + 1]
inc eax
movzx ebx, byte [eax + 3]
shl ecx, 8
or edx, ecx
movzx ecx, byte [eax + 1]
shl ecx, 0x10
or edx, ecx
movzx ecx, byte [eax + 2]
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
shl ecx, 0x18
or edx, ecx
movzx ecx, byte [eax + 4]
shl ecx, 8
or ebx, ecx
movzx ecx, byte [eax + 6]
mov dword [esp + 0x14], eax
movzx eax, byte [eax + 5]
shl ecx, 8
or ecx, eax
shl ecx, 0x10
or ebx, ecx
add ebp, 0xfffffff8
js 0x514c5e
lea eax, [ebp + 8]
shr eax, 3
mov dword [esp + 0x3c], eax
neg eax
lea ecx, [ebp + eax*8]
mov dword [esp + 0x30], ecx
jmp 0x514bb0
movzx ecx, byte [edi + 1]
movzx eax, byte [edi]
movzx ebp, byte [edi + 5]
shl ecx, 8
or eax, ecx
movzx ecx, byte [edi + 2]
shl ecx, 0x10
or eax, ecx
movzx ecx, byte [edi + 3]
shl ecx, 0x18
or eax, ecx
movzx ecx, byte [edi + 4]
shl ebp, 8
or ecx, ebp
movzx ebp, byte [edi + 6]
shl ebp, 0x10
or ecx, ebp
movzx ebp, byte [edi + 7]
xor eax, edx
mov edx, dword [esp + 0x34]
shl ebp, 0x18
push 1
or ecx, ebp
mov dword [esp + 0x20], eax
push edx
lea eax, [esp + 0x24]
xor ecx, ebx
push eax
add edi, 8
mov dword [esp + 0x2c], ecx
call fcn.00514340
mov eax, dword [esp + 0x28]
mov byte [esi], al
mov ecx, eax
shr ecx, 8
mov byte [esi + 1], cl
mov ecx, eax
shr ecx, 0x10
mov byte [esi + 2], cl
mov edx, eax
shr eax, 0x18
mov byte [esi + 3], al
mov eax, dword [esp + 0x2c]
mov byte [esi + 4], al
mov ecx, eax
shr ecx, 8
mov byte [esi + 5], cl
mov ecx, eax
shr ecx, 0x10
mov ebx, eax
shr eax, 0x18
mov byte [esi + 6], cl
mov byte [esi + 7], al
add esp, 0xc
add esi, 8
dec dword [esp + 0x3c]
jne 0x514bb0
mov ebp, dword [esp + 0x30]
cmp ebp, 0xfffffff8
je 0x514d20
lea edi, [edi + ebp + 8]
add ebp, 7
xor ecx, ecx
xor eax, eax
cmp ebp, 7
ja case.default.0x514c77
jmp dword [ebp*4 + 0x514f9c]
movzx ecx, byte [edi - 1]
dec edi
shl ecx, 0x18
movzx eax, byte [edi - 1]
dec edi
shl eax, 0x10
or ecx, eax
movzx eax, byte [edi - 1]
dec edi
shl eax, 8
or ecx, eax
movzx eax, byte [edi - 1]
dec edi
or ecx, eax
movzx eax, byte [edi - 1]
dec edi
shl eax, 0x18
movzx ebp, byte [edi - 1]
dec edi
shl ebp, 0x10
or eax, ebp
movzx ebp, byte [edi - 1]
dec edi
shl ebp, 8
or eax, ebp
movzx edi, byte [edi - 1]
or eax, edi
xor ecx, ebx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x34]
xor eax, edx
push 1
push ecx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], eax
call fcn.00514340
mov eax, dword [esp + 0x28]
mov byte [esi], al
mov ecx, eax
shr ecx, 8
mov byte [esi + 1], cl
mov ecx, eax
shr ecx, 0x10
mov byte [esi + 2], cl
mov edx, eax
shr eax, 0x18
mov byte [esi + 3], al
mov eax, dword [esp + 0x2c]
mov ecx, eax
shr ecx, 8
mov byte [esi + 4], al
mov byte [esi + 5], cl
mov ecx, eax
shr ecx, 0x10
add esp, 0xc
mov ebx, eax
shr eax, 0x18
mov byte [esi + 6], cl
mov byte [esi + 7], al
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
mov byte [eax], dl
mov ecx, edx
mov eax, edx
shr ecx, 8
mov byte [esi], cl
shr edx, 0x18
shr eax, 0x10
mov byte [esi + 1], al
mov byte [esi + 2], dl
mov byte [esi + 3], bl
mov ecx, ebx
mov edx, ebx
shr ecx, 8
mov byte [esi + 4], cl
shr edx, 0x10
shr ebx, 0x18
pop edi
mov byte [esi + 5], dl
mov byte [esi + 6], bl
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
movzx ebx, byte [eax]
movzx ecx, byte [eax + 1]
movzx edx, byte [eax + 2]
inc eax
shl ecx, 8
or ebx, ecx
movzx ecx, byte [eax + 2]
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
shl edx, 0x10
or ebx, edx
movzx edx, byte [eax + 4]
shl ecx, 0x18
or ebx, ecx
movzx ecx, byte [eax + 3]
shl edx, 8
or ecx, edx
movzx edx, byte [eax + 6]
mov dword [esp + 0x14], eax
movzx eax, byte [eax + 5]
shl edx, 8
or edx, eax
mov eax, dword [esp + 0x30]
shl edx, 0x10
or ecx, edx
add eax, 0xfffffff8
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], eax
js 0x514e8e
lea ecx, [eax + 8]
shr ecx, 3
mov dword [esp + 0x18], ecx
neg ecx
lea ecx, [eax + ecx*8]
mov dword [esp + 0x30], ecx
movzx edx, byte [esi + 1]
movzx ebp, byte [esi]
movzx eax, byte [esi + 2]
movzx ecx, byte [esi + 3]
shl edx, 8
or ebp, edx
movzx edx, byte [esi + 5]
shl eax, 0x10
or ebp, eax
movzx eax, byte [esi + 4]
shl ecx, 0x18
or ebp, ecx
movzx ecx, byte [esi + 6]
shl edx, 8
or eax, edx
movzx edx, byte [esi + 7]
shl ecx, 0x10
or eax, ecx
shl edx, 0x18
or eax, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
push 0
push eax
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], ebp
add esi, 8
call fcn.00514340
mov ecx, dword [esp + 0x48]
xor ecx, dword [esp + 0x2c]
mov eax, ebx
xor eax, dword [esp + 0x28]
add esp, 0xc
mov byte [edi], al
mov edx, eax
shr edx, 8
mov byte [edi + 1], dl
mov edx, eax
shr edx, 0x10
mov byte [edi + 2], dl
shr eax, 0x18
mov byte [edi + 3], al
mov byte [edi + 4], cl
mov eax, ecx
shr eax, 8
mov edx, ecx
mov byte [edi + 5], al
mov eax, dword [esp + 0x10]
shr edx, 0x10
shr ecx, 0x18
mov byte [edi + 6], dl
mov byte [edi + 7], cl
add edi, 8
dec dword [esp + 0x18]
mov ebx, ebp
mov dword [esp + 0x3c], eax
jne 0x514dd2
mov ecx, eax
mov eax, dword [esp + 0x30]
cmp eax, 0xfffffff8
je 0x514f59
movzx ecx, byte [esi + 1]
movzx ebp, byte [esi]
movzx edx, byte [esi + 2]
movzx eax, byte [esi + 3]
shl ecx, 8
shl edx, 0x10
or ebp, ecx
movzx ecx, byte [esi + 5]
or ebp, edx
movzx edx, byte [esi + 7]
shl eax, 0x18
or ebp, eax
movzx eax, byte [esi + 4]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 6]
shl edx, 8
or edx, ecx
shl edx, 0x10
or eax, edx
mov edx, dword [esp + 0x34]
push 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
push edx
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], ebp
call fcn.00514340
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x48]
xor ebx, dword [esp + 0x28]
xor eax, dword [esp + 0x2c]
lea edi, [edi + ecx + 8]
add ecx, 7
add esp, 0xc
cmp ecx, 7
ja case.default.0x514f10
jmp dword [ecx*4 + 0x514fbc]
dec edi
mov ecx, eax
shr ecx, 0x18
mov byte [edi], cl
dec edi
mov edx, eax
shr edx, 0x10
mov byte [edi], dl
dec edi
mov ecx, eax
shr ecx, 8
mov byte [edi], cl
dec edi
mov byte [edi], al
dec edi
mov edx, ebx
shr edx, 0x18
mov byte [edi], dl
dec edi
mov eax, ebx
shr eax, 0x10
mov byte [edi], al
dec edi
mov ecx, ebx
shr ecx, 8
mov byte [edi], cl
mov byte [edi - 1], bl
mov edx, dword [esp + 0x10]
mov ebx, ebp
mov dword [esp + 0x3c], edx
mov ecx, edx
mov eax, dword [esp + 0x38]
mov byte [eax], bl
mov eax, dword [esp + 0x14]
mov edx, ebx
shr edx, 8
mov byte [eax], dl
mov edx, ebx
shr edx, 0x10
mov byte [eax + 1], dl
shr ebx, 0x18
mov byte [eax + 2], bl
mov edx, ecx
shr edx, 8
mov byte [eax + 3], cl
mov byte [eax + 4], dl
pop edi
mov edx, ecx
pop esi
shr edx, 0x10
shr ecx, 0x18
pop ebp
mov byte [eax + 5], dl
mov byte [eax + 6], cl
pop ebx
add esp, 0x14
ret