Function at 0x5884ef
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x588be7
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x588be6
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x588be5
mov eax, dword [ebx + 0x110]
mov dword [ebp - 0x14], eax
cmp eax, 0xc
je 0x588535
cmp eax, 0xe
je 0x588535
cmp eax, 0x10
jne 0x588be5
movzx ecx, byte [esi]
movzx eax, byte [esi + 1]
shl ecx, 8
xor ecx, eax
movzx edx, byte [esi + 8]
movzx eax, byte [esi + 2]
shl ecx, 8
xor ecx, eax
shl edx, 8
movzx eax, byte [esi + 3]
shl ecx, 8
xor ecx, eax
movzx eax, byte [esi + 5]
xor ecx, dword [ebx]
mov dword [ebp - 0x10], ecx
movzx ecx, byte [esi + 4]
shl ecx, 8
xor ecx, eax
movzx eax, byte [esi + 6]
shl ecx, 8
xor ecx, eax
movzx eax, byte [esi + 7]
shl ecx, 8
xor ecx, eax
movzx eax, byte [esi + 9]
xor ecx, dword [ebx + 4]
xor edx, eax
movzx eax, byte [esi + 0xa]
shl edx, 8
xor edx, eax
mov dword [ebp + 8], ecx
movzx eax, byte [esi + 0xb]
shl edx, 8
xor edx, eax
movzx eax, byte [esi + 0xd]
xor edx, dword [ebx + 8]
movzx ebx, byte [esi + 0xc]
shl ebx, 8
xor ebx, eax
movzx eax, byte [esi + 0xe]
shl ebx, 8
xor ebx, eax
movzx eax, byte [esi + 0xf]
shl ebx, 8
xor ebx, eax
mov eax, dword [ebp + 0x10]
xor ebx, dword [eax + 0xc]
lea esi, [eax + 0x10]
mov eax, edx
mov dword [ebp - 0xc], esi
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x811758]
xor ecx, dword [eax*4 + 0x811b58]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x811358]
movzx eax, dl
xor ecx, dword [eax*4 + 0x811f58]
mov eax, ebx
shr eax, 0x10
mov dword [ebp - 8], ecx
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x811758]
xor esi, dword [eax*4 + 0x811b58]
mov eax, ebx
shr eax, 0x18
xor esi, dword [eax*4 + 0x811358]
movzx eax, bl
mov ebx, dword [ebp + 8]
xor esi, dword [eax*4 + 0x811f58]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
mov edx, dword [ecx*4 + 0x811758]
shr eax, 8
movzx eax, al
mov ecx, dword [ebp - 8]
xor edx, dword [eax*4 + 0x811b58]
mov eax, ebx
shr eax, 0x18
xor edx, dword [eax*4 + 0x811358]
movzx eax, bl
mov ebx, dword [ebp - 0x10]
xor edx, dword [eax*4 + 0x811f58]
mov eax, ebx
shr eax, 0x10
xor edx, ecx
xor ecx, esi
xor esi, edx
mov dword [ebp - 8], ecx
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x811758]
xor ecx, dword [eax*4 + 0x811b58]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x811358]
movzx eax, bl
mov ebx, dword [ebp - 8]
xor ecx, dword [eax*4 + 0x811f58]
mov eax, esi
and eax, 0xff0000
xor ecx, edx
mov dword [ebp + 8], eax
xor ebx, ecx
mov eax, esi
xor edx, ebx
shr eax, 0x10
xor dword [ebp + 8], eax
mov eax, esi
shr dword [ebp + 8], 8
and eax, 0xff00
shl esi, 0x10
xor eax, esi
rol ebx, 0x10
mov esi, dword [ebp - 0xc]
shl eax, 8
xor dword [ebp + 8], eax
mov eax, edx
shr eax, 8
mov dword [ebp - 4], eax
mov eax, edx
shl eax, 8
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 0xff00ff
shl edx, 8
xor eax, edx
mov edx, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edx, ebx
xor ebx, eax
xor ecx, edx
xor eax, edx
xor ebx, ecx
xor ecx, dword [esi]
mov dword [ebp + 8], eax
mov eax, dword [esi + 4]
xor eax, ebx
mov dword [ebp - 0x10], ecx
xor ebx, dword [esi + 8]
xor edx, eax
mov eax, dword [ebp + 8]
xor eax, dword [esi + 0xc]
add esi, 0x10
sub dword [ebp - 0x14], 2
mov dword [ebp - 4], edx
mov dword [ebp - 8], ebx
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], esi
je 0x588a26
mov edi, dword [ebp - 0x14]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ebx, dword [ecx*4 + 0x811f58]
mov ecx, dword [ebp - 8]
xor ebx, dword [eax*4 + 0x811358]
mov eax, ecx
shr eax, 0x18
xor ebx, dword [eax*4 + 0x811b58]
movzx eax, cl
xor ebx, dword [eax*4 + 0x811758]
mov eax, dword [ebp + 8]
shr eax, 0x10
movzx ecx, al
mov eax, dword [ebp + 8]
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x811f58]
mov ecx, dword [ebp + 8]
xor esi, dword [eax*4 + 0x811358]
mov eax, ecx
shr eax, 0x18
xor esi, dword [eax*4 + 0x811b58]
movzx eax, cl
xor esi, dword [eax*4 + 0x811758]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov edx, dword [ecx*4 + 0x811f58]
mov ecx, dword [ebp - 4]
xor edx, dword [eax*4 + 0x811358]
mov eax, ecx
shr eax, 0x18
xor edx, dword [eax*4 + 0x811b58]
movzx eax, cl
xor edx, dword [eax*4 + 0x811758]
mov eax, dword [ebp - 0x10]
xor edx, ebx
shr eax, 0x10
xor ebx, esi
movzx ecx, al
xor esi, edx
mov eax, dword [ebp - 0x10]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x811f58]
xor ecx, dword [eax*4 + 0x811358]
mov eax, dword [ebp - 0x10]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x811b58]
mov eax, dword [ebp - 0x10]
movzx eax, al
xor ecx, dword [eax*4 + 0x811758]
mov eax, esi
xor ecx, edx
shl eax, 8
xor ebx, ecx
mov dword [ebp + 8], ecx
xor edx, ebx
mov dword [ebp - 0x14], ebx
mov ebx, esi
mov ecx, edx
shr ebx, 8
and ecx, 0xff0000
xor ebx, eax
shl esi, 8
mov eax, edx
and ebx, 0xff00ff
shr eax, 0x10
xor ebx, esi
xor ecx, eax
mov eax, edx
shr ecx, 8
and eax, 0xff00
shl edx, 0x10
xor eax, edx
mov esi, dword [ebp - 0xc]
shl eax, 8
xor ecx, eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
xor ecx, edx
rol eax, 0x10
xor edx, ebx
xor eax, ecx
xor ebx, ecx
xor edx, eax
xor ebx, dword [esi + 0xc]
xor eax, dword [esi]
mov dword [ebp + 8], eax
mov eax, dword [esi + 4]
xor eax, edx
xor edx, dword [esi + 8]
xor ecx, eax
add esi, 0x10
mov dword [ebp - 0x14], ecx
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov dword [ebp - 0xc], esi
mov ecx, dword [ecx*4 + 0x811758]
xor ecx, dword [eax*4 + 0x811b58]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x811358]
movzx eax, dl
xor ecx, dword [eax*4 + 0x811f58]
mov eax, ebx
shr eax, 0x10
mov dword [ebp - 8], ecx
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x811758]
xor esi, dword [eax*4 + 0x811b58]
mov eax, ebx
shr eax, 0x18
xor esi, dword [eax*4 + 0x811358]
movzx eax, bl
mov ebx, dword [ebp - 0x14]
xor esi, dword [eax*4 + 0x811f58]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [ecx*4 + 0x811758]
mov ecx, dword [ebp - 8]
xor edx, dword [eax*4 + 0x811b58]
mov eax, ebx
shr eax, 0x18
xor edx, dword [eax*4 + 0x811358]
movzx eax, bl
mov ebx, dword [ebp + 8]
xor edx, dword [eax*4 + 0x811f58]
mov eax, ebx
xor edx, ecx
shr eax, 0x10
xor ecx, esi
mov dword [ebp - 8], ecx
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x811758]
xor ecx, dword [eax*4 + 0x811b58]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x811358]
movzx eax, bl
xor ecx, dword [eax*4 + 0x811f58]
mov ebx, dword [ebp - 8]
xor esi, edx
mov eax, esi
xor ecx, edx
and eax, 0xff0000
xor ebx, ecx
mov dword [ebp + 8], eax
xor edx, ebx
mov eax, esi
rol ebx, 0x10
shr eax, 0x10
xor dword [ebp + 8], eax
mov eax, esi
shr dword [ebp + 8], 8
and eax, 0xff00
shl esi, 0x10
xor eax, esi
mov esi, dword [ebp - 0xc]
shl eax, 8
xor dword [ebp + 8], eax
mov eax, edx
shr eax, 8
mov dword [ebp - 4], eax
mov eax, edx
shl eax, 8
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 0xff00ff
shl edx, 8
xor eax, edx
mov edx, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edx, ebx
xor ebx, eax
xor ecx, edx
xor eax, edx
xor ebx, ecx
xor ecx, dword [esi]
mov dword [ebp + 8], eax
mov eax, dword [esi + 4]
xor eax, ebx
mov dword [ebp - 0x10], ecx
xor ebx, dword [esi + 8]
xor edx, eax
mov eax, dword [ebp + 8]
xor eax, dword [esi + 0xc]
add esi, 0x10
dec edi
mov dword [ebp - 4], edx
mov dword [ebp - 8], ebx
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], esi
sub edi, 1
jne 0x588749
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
mov eax, ecx
shr eax, 0x10
movzx eax, al
mov eax, dword [eax*4 + 0x811f58]
shr eax, 8
movzx ecx, al
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x811b58]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax*4 + 0x811358]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax*4 + 0x811758]
or ecx, eax
xor ecx, dword [esi]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 4]
mov eax, ecx
shr eax, 0x10
movzx eax, al
mov eax, dword [eax*4 + 0x811f58]
shr eax, 8
movzx ebx, al
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x811b58]
shl eax, 8
or ebx, eax
mov eax, ecx
shr eax, 8
movzx eax, al
shl ebx, 8
movzx eax, byte [eax*4 + 0x811358]
or ebx, eax
movzx eax, cl
mov ecx, dword [ebp - 8]
shl ebx, 8
movzx eax, byte [eax*4 + 0x811758]
or ebx, eax
mov eax, ecx
shr eax, 0x10
movzx eax, al
xor ebx, dword [esi + 4]
mov eax, dword [eax*4 + 0x811f58]
shr eax, 8
movzx edx, al
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x811b58]
shl eax, 8
or edx, eax
mov eax, ecx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax*4 + 0x811358]
or edx, eax
movzx eax, cl
shl edx, 8
movzx eax, byte [eax*4 + 0x811758]
or edx, eax
xor edx, dword [esi + 8]
mov esi, dword [ebp + 8]
mov eax, esi
shr eax, 0x10
movzx eax, al
mov eax, dword [eax*4 + 0x811f58]
shr eax, 8
movzx ecx, al
mov eax, esi
shr eax, 0x18
movzx eax, byte [eax*4 + 0x811b58]
shl eax, 8
or ecx, eax
mov eax, esi
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax*4 + 0x811358]
or ecx, eax
mov eax, esi
mov esi, dword [ebp - 0xc]
movzx eax, al
shl ecx, 8
movzx eax, byte [eax*4 + 0x811758]
or ecx, eax
xor ecx, dword [esi + 0xc]
mov esi, dword [ebp - 0x14]
mov eax, esi
shr eax, 0x18
mov byte [edi], al
mov eax, esi
shr eax, 0x10
mov byte [edi + 1], al
mov eax, esi
shr eax, 8
mov byte [edi + 2], al
mov eax, esi
mov byte [edi + 3], al
mov eax, ebx
shr eax, 0x18
mov byte [edi + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 5], al
mov eax, ebx
shr eax, 8
mov byte [edi + 6], al
mov eax, edx
shr eax, 0x18
mov byte [edi + 8], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 9], al
mov eax, edx
shr eax, 8
mov byte [edi + 0xa], al
mov eax, ecx
shr eax, 0x18
mov byte [edi + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [edi + 7], bl
mov byte [edi + 0xb], dl
mov byte [edi + 0xe], al
mov byte [edi + 0xf], cl
pop ebx
pop edi
pop esi
leave
ret