Function at 0x5163e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.00580860
mov edx, dword [esp + 0x10]
push ebx
push ebp
push esi
movzx eax, byte [edx + 1]
mov esi, 0x611a7c
movzx ebx, byte [edx + 4]
movzx ebp, byte [edx + 8]
push edi
movzx edi, byte [edx]
shl edi, 8
or edi, eax
movzx ecx, byte [edx + 0xd]
movzx eax, byte [edx + 2]
shl edi, 8
or edi, eax
shl ebx, 8
movzx eax, byte [edx + 3]
shl edi, 8
or edi, eax
shl ebp, 8
movzx eax, byte [edx + 5]
xor edi, 0xa3b1bac6
or ebx, eax
mov dword [esp + 0x10], esi
movzx eax, byte [edx + 6]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 7]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 9]
or ebp, eax
xor ebx, 0x56aa3350
movzx eax, byte [edx + 0xa]
shl ebp, 8
or ebp, eax
movzx eax, byte [edx + 0xb]
shl ebp, 8
or ebp, eax
movzx eax, byte [edx + 0xc]
shl eax, 8
xor ebp, 0x677d9197
or eax, ecx
movzx ecx, byte [edx + 0xe]
shl eax, 8
or eax, ecx
movzx ecx, byte [edx + 0xf]
shl eax, 8
or eax, ecx
mov ecx, dword [esp + 0x24]
xor eax, 0xb27022dc
lea edx, [ecx + 8]
mov dword [esp + 0x20], edx
mov edx, 0x611a78
sub edx, ecx
mov dword [esp + 0x14], edx
mov edx, esi
sub edx, ecx
mov dword [esp + 0x18], edx
nop dword [eax + eax]
mov edx, dword [esi - 4]
xor edx, eax
xor edx, ebx
xor edx, ebp
mov ecx, edx
shr ecx, 0x18
movzx esi, byte [ecx + 0x611568]
mov ecx, edx
shr ecx, 0x10
movzx ecx, cl
shl esi, 8
movzx ecx, byte [ecx + 0x611568]
or esi, ecx
mov ecx, edx
shr ecx, 8
movzx ecx, cl
shl esi, 8
movzx ecx, byte [ecx + 0x611568]
or esi, ecx
movzx ecx, dl
shl esi, 8
movzx ecx, byte [ecx + 0x611568]
or esi, ecx
mov edx, esi
mov ecx, esi
ror ecx, 9
rol edx, 0xd
xor edx, ecx
xor edi, edx
mov edx, dword [esp + 0x10]
xor edi, esi
mov edx, dword [edx]
xor edx, eax
xor edx, ebp
xor edx, edi
mov ecx, edx
shr ecx, 0x18
movzx esi, byte [ecx + 0x611568]
mov ecx, edx
shr ecx, 0x10
movzx ecx, cl
shl esi, 8
movzx ecx, byte [ecx + 0x611568]
or esi, ecx
mov ecx, edx
shr ecx, 8
movzx ecx, cl
shl esi, 8
movzx ecx, byte [ecx + 0x611568]
or esi, ecx
movzx ecx, dl
shl esi, 8
movzx ecx, byte [ecx + 0x611568]
or esi, ecx
mov edx, esi
mov ecx, esi
ror ecx, 9
rol edx, 0xd
xor edx, ecx
mov ecx, dword [esp + 0x14]
xor ebx, edx
mov edx, dword [esp + 0x20]
xor ebx, esi
mov edx, dword [ecx + edx]
xor edx, eax
xor edx, ebx
xor edx, edi
mov ecx, edx
shr ecx, 0x18
movzx esi, byte [ecx + 0x611568]
mov ecx, edx
shr ecx, 0x10
movzx ecx, cl
shl esi, 8
movzx ecx, byte [ecx + 0x611568]
or esi, ecx
mov ecx, edx
shl esi, 8
shr ecx, 8
movzx ecx, cl
movzx ecx, byte [ecx + 0x611568]
or esi, ecx
movzx ecx, dl
shl esi, 8
movzx ecx, byte [ecx + 0x611568]
or esi, ecx
mov edx, esi
mov ecx, esi
ror ecx, 9
rol edx, 0xd
xor edx, ecx
mov ecx, dword [esp + 0x20]
xor ebp, edx
mov edx, dword [esp + 0x18]
xor ebp, esi
mov edx, dword [edx + ecx]
xor edx, ebx
xor edx, ebp
xor edx, edi
mov ecx, edx
shr ecx, 0x18
movzx esi, byte [ecx + 0x611568]
mov ecx, edx
shr ecx, 0x10
movzx ecx, cl
shl esi, 8
movzx ecx, byte [ecx + 0x611568]
or esi, ecx
mov ecx, edx
shr ecx, 8
movzx ecx, cl
shl esi, 8
movzx ecx, byte [ecx + 0x611568]
or esi, ecx
movzx ecx, dl
shl esi, 8
movzx ecx, byte [ecx + 0x611568]
or esi, ecx
mov edx, esi
mov ecx, esi
ror ecx, 9
rol edx, 0xd
xor edx, ecx
mov ecx, dword [esp + 0x20]
xor eax, edx
xor eax, esi
mov esi, dword [esp + 0x10]
add esi, 0x10
mov dword [ecx - 8], edi
mov dword [ecx - 4], ebx
mov dword [ecx], ebp
mov dword [ecx + 4], eax
add ecx, 0x10
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], ecx
cmp esi, 0x611afc
jl 0x5164b0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret