Function at 0x5bedd8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005c348
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x250
mov eax, ecx
mov dword [ebp - 0x1c], edx
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x10], ecx
push esi
test ecx, ecx
je 0x5bf02b
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
je 0x5bf02b
xor eax, eax
nop dword [eax]
nop dword [eax + eax]
mov byte [ebp + eax - 0x15c], al
inc eax
cmp eax, 0x100
jl 0x5bee28
push edi
mov edi, dword [esi + 0x14]
xor ecx, ecx
xor edx, edx
mov eax, esi
cmp edi, 0x10
jb 0x5bee48
mov eax, dword [esi]
mov al, byte [eax + ecx]
mov byte [ebp + edx - 0x25c], al
lea eax, [ecx + 1]
xor ecx, ecx
inc edx
cmp eax, dword [esi + 0x10]
cmovl ecx, eax
cmp edx, 0x100
jl 0x5bee3f
xor edi, edi
xor esi, esi
nop dword [eax]
nop word [eax + eax]
mov dl, byte [ebp + esi - 0x15c]
movzx eax, byte [ebp + esi - 0x25c]
add eax, edi
movzx ecx, dl
add ecx, eax
movzx edi, cl
mov al, byte [ebp + edi - 0x15c]
mov byte [ebp + esi - 0x15c], al
inc esi
mov byte [ebp + edi - 0x15c], dl
cmp esi, 0x100
jl 0x5bee78
xor edx, edx
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], edx
mov byte [ebp - 0x34], dl
mov dword [ebp - 4], edx
xor ecx, ecx
movaps xmm0, xmmword [0x1008ce60]
movups xmmword [ebp - 0x5a], xmm0
mov word [ebp - 0x4a], 0xd6
nop dword [eax]
mov al, byte [ebp - 0x5a]
xor byte [ebp + ecx - 0x59], al
inc ecx
cmp ecx, 0x10
jl 0x5beed8
xor eax, eax
mov byte [ebp - 0x49], 0
xor edi, edi
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], eax
jle 0x5beff9
inc eax
movzx eax, al
mov dword [ebp - 0x18], eax
mov cl, byte [ebp + eax - 0x15c]
mov eax, dword [ebp - 0x14]
movzx esi, cl
add eax, esi
mov dword [ebp - 0x38], esi
mov esi, dword [ebp - 0x18]
movzx eax, al
mov dword [ebp - 0x14], eax
mov al, byte [ebp + eax - 0x15c]
mov byte [ebp + esi - 0x15c], al
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x38]
mov byte [ebp + eax - 0x15c], cl
mov eax, dword [ebp - 0x1c]
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x5bef43
mov ecx, dword [eax]
mov eax, dword [ebp - 0x18]
movzx eax, byte [ebp + eax - 0x15c]
add eax, esi
movzx eax, al
movzx esi, byte [ebp + eax - 0x15c]
movzx eax, byte [ecx + edi]
mov ecx, dword [ebp - 0x20]
xor esi, eax
mov eax, esi
shr eax, 4
mov al, byte [ebp + eax - 0x59]
mov byte [ebp - 0x10], al
cmp edx, ecx
jae 0x5bef91
lea eax, [edx + 1]
cmp ecx, 0x10
mov cl, byte [ebp - 0x10]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
mov byte [eax + edx], cl
mov byte [eax + edx + 1], 0
jmp 0x5befa4
push dword [ebp - 0x10]
mov byte [ebp - 0x3c], 0
push dword [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x34]
call fcn.005bd5d8
mov ecx, dword [ebp - 0x24]
and esi, 0xf
mov dl, byte [ebp + esi - 0x59]
mov esi, dword [ebp - 0x20]
mov byte [ebp - 0x40], dl
cmp ecx, esi
jae 0x5befd2
lea eax, [ecx + 1]
cmp esi, 0x10
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
mov byte [eax + ecx], dl
mov byte [eax + ecx + 1], 0
jmp 0x5befe5
push dword [ebp - 0x40]
mov byte [ebp - 0x44], 0
push dword [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x34]
call fcn.005bd5d8
mov edx, dword [ebp - 0x1c]
inc edi
cmp edi, dword [edx + 0x10]
jge 0x5beff9
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
jmp 0x5beef9
mov eax, dword [ebp - 0x48]
movups xmm0, xmmword [ebp - 0x34]
pop edi
pop esi
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x24]
movq qword [eax + 0x10], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret