Function at 0x5eb3f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, dword [ebp + 8]
movzx eax, byte [esi]
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x18], ecx
mov edi, dword [esi + 0x2c]
mov byte [esp + 0xf], al
movzx ebx, al
test bl, 0x40
jne 0x5eb425
lea eax, [esi + 0x10]
push edi
push eax
push esi
call dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x14], edi
and ebx, 7
mov byte [esi], bl
mov eax, ebx
xor eax, 0xf
test ebx, ebx
mov dword [esp + 0x20], eax
je 0x5eb4d6
xor edi, edi
mov esi, 0xe
sub esi, eax
cmovb esi, edi
lea ebx, [esi + 1]
mov ecx, ebx
and ecx, 3
mov dword [esp + 4], ecx
mov ecx, eax
cmp esi, 3
jb 0x5eb4a3
and ebx, 0xfffffffc
mov ecx, dword [esp + 0x20]
mov eax, dword [ebp + 8]
nop dword [eax + eax]
movzx edi, byte [eax + ecx + 1]
mov word [eax + ecx], 0
movzx edx, byte [eax + ecx + 2]
movzx esi, byte [eax + ecx + 3]
mov word [eax + ecx + 2], 0
add ecx, 4
add ebx, 0xfffffffc
jne 0x5eb470
shl edi, 0x10
shl edx, 8
or edx, edi
or edx, esi
shl edx, 8
mov edi, edx
mov eax, dword [esp + 4]
test eax, eax
mov esi, dword [ebp + 8]
je 0x5eb4d8
add ecx, esi
xor ebx, ebx
nop word cs:[eax + eax]
movzx edx, byte [ecx + ebx]
or edx, edi
mov byte [ecx + ebx], 0
shl edx, 8
inc ebx
mov edi, edx
cmp eax, ebx
jne 0x5eb4c0
jmp 0x5eb4d8
xor edx, edx
movzx ecx, byte [esi + 0xf]
or ecx, edx
mov byte [esi + 0xf], 1
mov eax, 0xffffffff
mov edx, dword [ebp + 0x14]
cmp ecx, edx
jne 0x5eb6f2
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
cmp edx, 0x10
jae 0x5eb506
test edx, edx
jne 0x5eb549
jmp 0x5eb6ae
mov eax, dword [ebp + 0x18]
shr edx, 4
lea ecx, [esi + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
mov dword [esp + 0x10], edx
push edx
push edi
push ebx
call eax
mov eax, dword [ebp + 0x14]
add esp, 0x18
mov ecx, eax
and ecx, 0xf
je 0x5eb6ae
and eax, 0xfffffff0
add edi, eax
add ebx, eax
mov dword [esp + 8], ecx
mov ecx, esi
mov edx, dword [esp + 4]
call fcn.005eb320
mov edx, dword [esp + 8]
mov dword [esp + 4], edx
lea eax, [esp + 0x28]
push dword [esp + 0x14]
push eax
push esi
call dword [esp + 0x24]
mov edx, dword [esp + 0x10]
add esp, 0xc
lea eax, [esi + 0x10]
xor ecx, ecx
cmp edx, 8
jae 0x5eb5ee
mov edx, ecx
or edx, 1
test byte [esp + 4], 1
je 0x5eb5ab
mov dword [esp + 0x10], edx
movzx edx, byte [ebx + ecx]
mov byte [esp + 8], dl
movzx edx, byte [esp + 8]
xor dl, byte [esp + ecx + 0x28]
mov byte [esp + 8], dl
movzx edx, byte [esp + 8]
mov byte [edi + ecx], dl
movzx edx, byte [esp + 8]
xor byte [eax + ecx], dl
mov edx, dword [esp + 0x10]
mov ecx, edx
cmp dword [esp + 4], edx
je 0x5eb6a1
nop word cs:[eax + eax]
movzx edx, byte [ebx + ecx]
xor dl, byte [esp + ecx + 0x28]
mov byte [edi + ecx], dl
xor byte [esi + ecx + 0x10], dl
movzx edx, byte [ebx + ecx + 1]
xor dl, byte [esp + ecx + 0x29]
mov byte [edi + ecx + 1], dl
xor byte [esi + ecx + 0x11], dl
add ecx, 2
cmp dword [esp + 4], ecx
jne 0x5eb5c0
jmp 0x5eb6a1
lea esi, [edi + edx]
mov dword [esp + 0x1c], esi
mov esi, dword [ebp + 8]
add esi, edx
add esi, 0x10
mov dword [esp + 0x10], esi
add edx, ebx
mov dword [esp + 0x24], edx
cmp edi, esi
setb byte [esp + 8]
mov edx, dword [esp + 0x1c]
cmp eax, edx
setb byte [esp + 0xe]
mov esi, dword [esp + 0x24]
cmp edi, esi
setb byte [esp + 0xd]
cmp ebx, edx
setb byte [esp + 0x1c]
cmp eax, esi
setb dl
cmp ebx, dword [esp + 0x10]
setb byte [esp + 0x10]
mov dh, byte [esp + 0xe]
test byte [esp + 8], dh
jne 0x5eb6fa
mov dh, byte [esp + 0x1c]
and byte [esp + 0xd], dh
jne 0x5eb6fa
and dl, byte [esp + 0x10]
mov esi, dword [ebp + 8]
mov edx, dword [esp + 4]
jne 0x5eb570
mov ecx, edx
and ecx, 8
xor edx, edx
nop dword [eax]
movsd xmm0, qword [esp + edx + 0x28]
movsd xmm1, qword [ebx + edx]
xorps xmm1, xmm0
movlps qword [edi + edx], xmm1
movsd xmm0, qword [eax + edx]
xorps xmm0, xmm1
movlps qword [eax + edx], xmm0
add edx, 8
cmp ecx, edx
jne 0x5eb670
mov edx, dword [esp + 4]
cmp edx, ecx
jne 0x5eb570
push dword [esp + 0x14]
push eax
push eax
call dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x20]
lea eax, [esi + edx]
mov ecx, 0x10
sub ecx, edx
push ecx
push 0
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
lea eax, [esp + 0x28]
push dword [esp + 0x14]
push eax
push esi
call dword [esp + 0x24]
add esp, 0xc
movups xmm0, xmmword [esp + 0x28]
movups xmm1, xmmword [esi + 0x10]
xorps xmm1, xmm0
movups xmmword [esi + 0x10], xmm1
movzx eax, byte [esp + 0xf]
mov byte [esi], al
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [ebp + 8]
jmp 0x5eb570