Function at 0x583890
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov edx, eax
push ebx
push esi
lea ebx, [ecx + 0xe]
sub edx, ecx
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edx
nop dword [eax]
movzx ecx, byte [eax + 0xf]
movzx edx, byte [ebx + 1]
mov eax, dword [ebp + 0xc]
xor edx, ecx
mov ebx, edx
mov dword [ebp + 0x10], 0
and edx, 0xf
mov dword [ebp - 0x18], 0xe
add edx, edx
and ebx, 0xfffffff0
mov ecx, dword [eax + edx*8]
mov edi, dword [eax + edx*8 + 4]
mov esi, dword [eax + edx*8 + 8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + edx*8 + 0xc]
mov edx, esi
mov eax, dword [ebp - 0xc]
and edx, 0xf
shrd esi, ecx, 4
shl eax, 0x1c
or dword [ebp + 0x10], esi
xor esi, esi
mov edx, dword [edx*4 + 0x656828]
shr ecx, 4
or eax, ecx
mov ecx, dword [ebp - 0xc]
shrd ecx, edi, 4
shr edi, 4
xor esi, ecx
mov ecx, dword [ebp + 0x10]
xor edx, edi
mov edi, dword [ebp + 0xc]
xor esi, dword [ebx + edi]
xor edx, dword [ebx + edi + 4]
xor ecx, dword [ebx + edi + 8]
xor eax, dword [ebx + edi + 0xc]
mov ebx, ecx
mov edi, dword [ebp - 0x10]
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], edx
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0x1c], edi
nop dword [eax + eax]
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + edi]
movzx ecx, byte [edi]
mov edi, dword [ebp + 0x10]
xor edx, ecx
shrd edi, eax, 4
mov ecx, edx
mov dword [ebp + 0x10], 0
shr ecx, 4
and edx, 0xf
mov dword [ebp - 0x20], ecx
add edx, edx
mov ecx, ebx
shr eax, 4
and ecx, 0xf
mov ebx, esi
shl ebx, 0x1c
xor esi, esi
or ebx, eax
or esi, edi
mov eax, dword [ebp - 0xc]
xor edi, edi
mov dword [ebp - 8], ebx
mov ebx, dword [ecx*4 + 0x656828]
mov ecx, dword [ebp - 4]
shrd ecx, eax, 4
shr eax, 4
xor edi, ecx
mov ecx, dword [ebp - 8]
xor ebx, eax
mov eax, dword [ebp + 0xc]
xor ecx, dword [eax + edx*8 + 0xc]
xor ebx, dword [eax + edx*8 + 4]
xor esi, dword [eax + edx*8 + 8]
xor edi, dword [eax + edx*8]
mov dword [ebp - 8], ecx
mov eax, edi
mov edx, dword [ebp - 8]
mov ecx, esi
shrd esi, edx, 4
shrd edi, ebx, 4
or dword [ebp + 0x10], esi
and ecx, 0xf
shr edx, 4
xor esi, esi
shr ebx, 4
xor esi, edi
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ecx*4 + 0x656828]
dec edi
shl eax, 0x1c
xor ecx, ebx
or eax, edx
mov dword [ebp - 4], esi
mov edx, dword [ebp - 0x20]
mov ebx, esi
mov esi, dword [ebp + 0xc]
add edx, edx
mov dword [ebp - 0x1c], edi
xor ebx, dword [esi + edx*8]
xor ecx, dword [esi + edx*8 + 4]
xor eax, dword [esi + edx*8 + 0xc]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 0x10]
xor ebx, dword [esi + edx*8 + 8]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 4]
dec edx
mov dword [ebp - 0xc], ecx
mov dword [ebp + 0x10], ebx
mov dword [ebp - 0x18], edx
test edx, edx
jns 0x583940
mov edx, dword [ebp - 0xc]
shr ecx, 0x18
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 8]
sub dword [ebp - 0x14], 0x10
mov byte [eax], cl
mov ecx, edx
shr ecx, 0x10
mov byte [eax + 1], cl
mov ecx, edx
shr ecx, 8
mov byte [eax + 2], cl
mov byte [eax + 3], dl
mov edx, esi
mov ecx, edx
mov byte [eax + 7], dl
shr ecx, 0x18
mov byte [eax + 4], cl
mov ecx, edx
shr ecx, 0x10
mov byte [eax + 5], cl
mov ecx, edx
mov edx, dword [ebp + 0x10]
shr ecx, 8
mov byte [eax + 6], cl
mov ecx, edx
shr ecx, 0x18
mov byte [eax + 8], cl
mov ecx, edx
shr ecx, 0x10
mov byte [eax + 9], cl
mov ecx, edx
shr ecx, 8
mov byte [eax + 0xa], cl
mov ecx, ebx
shr ecx, 0x18
mov byte [eax + 0xc], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [eax + 0xd], cl
mov ecx, ebx
mov byte [eax + 0xf], bl
mov ebx, dword [ebp - 0x10]
shr ecx, 8
add ebx, 0x10
sub dword [ebp + 0x14], 0x10
mov byte [eax + 0xb], dl
mov byte [eax + 0xe], cl
mov dword [ebp - 0x10], ebx
jne 0x5838b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret