Function at 0x5e9de0
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 0x5e9e15
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 0x5e9ec6
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 0x5e9e93
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 0x5e9e60
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 0x5e9ec8
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 0x5e9eb0
jmp 0x5e9ec8
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 0x5ea0e2
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
cmp edx, 0x10
jae 0x5e9ef6
test edx, edx
jne 0x5e9f39
jmp 0x5ea09e
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 0x5ea09e
and eax, 0xfffffff0
add edi, eax
add ebx, eax
mov dword [esp + 8], ecx
mov ecx, esi
mov edx, dword [esp + 4]
call fcn.005e9d10
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 0x5e9fde
mov edx, ecx
or edx, 1
test byte [esp + 4], 1
je 0x5e9f9b
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 0x5ea091
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 0x5e9fb0
jmp 0x5ea091
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 0x5ea0ea
mov dh, byte [esp + 0x1c]
and byte [esp + 0xd], dh
jne 0x5ea0ea
and dl, byte [esp + 0x10]
mov esi, dword [ebp + 8]
mov edx, dword [esp + 4]
jne 0x5e9f60
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 0x5ea060
mov edx, dword [esp + 4]
cmp edx, ecx
jne 0x5e9f60
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 0x5e9f60