Function at 0x10155690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [ebp + 0x1c]
lea edx, [eax + 1]
movzx ebx, byte [edx + 3]
movzx ecx, byte [eax]
movzx eax, byte [edx]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edx + 2]
shl eax, 0x18
or ecx, eax
movzx eax, byte [edx + 4]
shl eax, 8
or ebx, eax
mov dword [ebp - 8], ecx
movzx ecx, byte [edx + 6]
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 0x20]
lea edx, [eax + 1]
shl ecx, 0x10
or ebx, ecx
mov dword [ebp - 0xc], ebx
movzx ecx, byte [eax]
movzx eax, byte [edx]
movzx ebx, byte [edx + 3]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edx + 2]
shl eax, 0x18
or ecx, eax
movzx eax, byte [edx + 4]
mov dword [ebp + 0x20], ecx
movzx ecx, byte [edx + 6]
shl eax, 8
or ebx, eax
shl ecx, 8
movzx eax, byte [edx + 5]
or ecx, eax
mov eax, dword [ebp + 0x18]
shl ecx, 0x10
or ebx, ecx
cmp dword [ebp + 0x24], 0
mov dword [ebp - 4], ebx
je 0x1015596f
movzx ebx, byte [eax]
lea edx, [eax + 1]
movzx eax, byte [edx]
movzx ecx, byte [edx + 3]
shl eax, 8
or ebx, eax
mov esi, dword [ebp + 0xc]
movzx eax, byte [edx + 1]
shl eax, 0x10
or ebx, eax
mov edi, dword [ebp + 8]
movzx eax, byte [edx + 2]
shl eax, 0x18
or ebx, eax
movzx eax, byte [edx + 4]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 5]
mov dword [ebp + 0x1c], ecx
movzx ecx, byte [edx + 6]
mov edx, dword [ebp + 0x1c]
shl ecx, 8
or ecx, eax
shl ecx, 0x10
or edx, ecx
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff8
mov dword [ebp + 0x1c], edx
mov dword [ebp + 0x24], ecx
js 0x10155859
lea eax, [ecx + 8]
shr eax, 3
mov dword [ebp + 0x10], eax
neg eax
lea ecx, [ecx + eax*8]
mov dword [ebp + 0x24], ecx
movzx eax, byte [edi + 1]
movzx edx, byte [edi]
movzx ecx, byte [edi + 4]
shl eax, 8
or edx, eax
movzx eax, byte [edi + 2]
shl eax, 0x10
or edx, eax
movzx eax, byte [edi + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [edi + 5]
shl eax, 8
xor edx, ebx
xor edx, dword [ebp - 8]
or ecx, eax
movzx eax, byte [edi + 6]
shl eax, 0x10
or ecx, eax
mov dword [ebp - 0x24], edx
movzx eax, byte [edi + 7]
add edi, 8
shl eax, 0x18
or ecx, eax
lea eax, [ebp - 0x24]
xor ecx, dword [ebp + 0x1c]
xor ecx, dword [ebp - 0xc]
push 1
push dword [ebp + 0x14]
mov dword [ebp - 0x20], ecx
push eax
call fcn.1013d2f0
mov ebx, dword [ebp - 0x24]
add esp, 0xc
xor ebx, dword [ebp + 0x20]
mov edx, dword [ebp - 0x20]
mov eax, ebx
xor edx, dword [ebp - 4]
shr eax, 8
mov byte [esi], bl
mov byte [esi + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, ebx
shr eax, 0x18
mov byte [esi + 3], al
mov eax, edx
shr eax, 8
mov byte [esi + 4], dl
mov byte [esi + 5], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, edx
shr eax, 0x18
mov byte [esi + 7], al
add esi, 8
dec dword [ebp + 0x10]
mov dword [ebp + 0x1c], edx
jne 0x101557a4
mov ecx, dword [ebp + 0x24]
cmp ecx, 0xfffffff8
je 0x10155934
mov edx, dword [ebp + 0x24]
add ecx, 8
add ecx, edi
add edx, 7
xor eax, eax
mov dword [ebp + 0x24], edx
xor edi, edi
mov dword [ebp + 0x10], eax
cmp edx, 7
ja case.default.0x1015587c
jmp dword [edx*4 + 0x10155be0]
movzx edi, byte [ecx - 1]
dec ecx
shl edi, 0x18
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x18
mov dword [ebp + 0x10], eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or dword [ebp + 0x10], eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or dword [ebp + 0x10], eax
movzx eax, byte [ecx - 1]
or dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x10]
xor edi, dword [ebp + 0x1c]
xor eax, ebx
xor eax, dword [ebp - 8]
xor edi, dword [ebp - 0xc]
push 1
push dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x20], edi
call fcn.1013d2f0
mov ebx, dword [ebp - 0x24]
add esp, 0xc
xor ebx, dword [ebp + 0x20]
mov edx, dword [ebp - 0x20]
mov eax, ebx
xor edx, dword [ebp - 4]
shr eax, 8
mov byte [esi], bl
mov byte [esi + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, ebx
shr eax, 0x18
mov byte [esi + 3], al
mov eax, edx
shr eax, 8
mov byte [esi + 4], dl
mov byte [esi + 5], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, edx
shr eax, 0x18
mov byte [esi + 7], al
mov esi, dword [ebp + 0x18]
mov eax, ebx
shr eax, 8
pop edi
mov byte [esi], bl
mov byte [esi + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, edx
shr ebx, 0x18
mov byte [esi + 3], bl
mov byte [esi + 4], dl
shr eax, 8
mov byte [esi + 5], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 6], al
shr edx, 0x18
mov byte [esi + 7], dl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, byte [eax]
lea esi, [eax + 1]
mov edx, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1c], esi
movzx eax, byte [edx]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edx + 2]
shl eax, 0x18
or ecx, eax
movzx eax, byte [edx + 4]
mov dword [ebp + 0x24], ecx
movzx ecx, byte [edx + 3]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 5]
mov dword [ebp + 0x1c], ecx
movzx ecx, byte [edx + 6]
mov edx, dword [ebp + 0x1c]
shl ecx, 8
or ecx, eax
shl ecx, 0x10
or edx, ecx
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff8
mov dword [ebp + 0x1c], edx
mov dword [ebp - 0x10], ecx
test ecx, ecx
jle 0x10155ace
lea eax, [ecx - 1]
shr eax, 3
inc eax
mov dword [ebp - 0x14], eax
neg eax
lea ecx, [ecx + eax*8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
mov dword [ebp + 0x10], eax
jmp 0x101559f0
movzx eax, byte [ebx + 1]
movzx edi, byte [ebx]
shl eax, 8
or edi, eax
movzx esi, byte [ebx + 4]
movzx eax, byte [ebx + 2]
shl eax, 0x10
or edi, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
or edi, eax
mov eax, edi
mov dword [ebp - 0x18], edi
xor eax, dword [ebp + 0x20]
mov dword [ebp - 0x24], eax
movzx eax, byte [ebx + 5]
shl eax, 8
or esi, eax
movzx eax, byte [ebx + 6]
shl eax, 0x10
or esi, eax
movzx eax, byte [ebx + 7]
shl eax, 0x18
add ebx, 8
or esi, eax
mov eax, esi
xor eax, dword [ebp - 4]
push 0
push dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
call fcn.1013d2f0
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov ecx, dword [ebp - 0x24]
xor ecx, dword [ebp + 0x24]
xor ecx, dword [ebp - 8]
mov byte [eax], cl
inc eax
mov edx, dword [ebp - 0x20]
xor edx, dword [ebp + 0x1c]
xor edx, dword [ebp - 0xc]
mov dword [ebp + 0x10], eax
mov eax, ecx
mov edi, dword [ebp + 0x10]
inc dword [ebp + 0x10]
shr eax, 8
mov byte [edi], al
mov eax, ecx
mov edi, dword [ebp + 0x10]
shr eax, 0x10
shr ecx, 0x18
mov byte [edi], al
mov eax, edi
inc eax
mov dword [ebp + 0x10], eax
mov byte [eax], cl
mov ecx, eax
mov eax, edx
shr eax, 8
mov byte [ecx + 1], dl
mov byte [ecx + 2], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [ecx + 3], al
mov byte [ecx + 4], dl
add ecx, 5
dec dword [ebp - 0x14]
mov edx, esi
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 0x24], ecx
mov dword [ebp + 0x1c], edx
jne 0x101559f0
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp + 0x10]
jmp 0x10155ad4
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x24]
cmp dword [ebp - 0x10], 0xfffffff8
je 0x10155ba3
movzx eax, byte [ebx + 1]
movzx ecx, byte [ebx]
movzx edx, byte [ebx + 4]
shl eax, 8
or ecx, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
or ecx, eax
movzx eax, byte [ebx + 5]
mov dword [ebp + 0x10], ecx
xor ecx, dword [ebp + 0x20]
mov dword [ebp - 0x24], ecx
movzx ecx, byte [ebx + 7]
shl eax, 8
or edx, eax
shl ecx, 8
movzx eax, byte [ebx + 6]
or ecx, eax
lea eax, [ebp - 0x24]
shl ecx, 0x10
or edx, ecx
push 0
push dword [ebp + 0x14]
mov dword [ebp + 0x20], edx
xor edx, dword [ebp - 4]
push eax
mov dword [ebp - 0x20], edx
call fcn.1013d2f0
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov edx, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x20]
xor edx, dword [ebp + 0x24]
xor ebx, dword [ebp + 0x1c]
lea ecx, [eax + 8]
xor edx, dword [ebp - 8]
add eax, 7
xor ebx, dword [ebp - 0xc]
add ecx, edi
cmp eax, 7
ja case.default.0x10155b60
jmp dword [eax*4 + 0x10155c00]
dec ecx
mov eax, ebx
shr eax, 0x18
mov byte [ecx], al
dec ecx
mov eax, ebx
shr eax, 0x10
mov byte [ecx], al
dec ecx
mov eax, ebx
shr eax, 8
mov byte [ecx], al
dec ecx
mov byte [ecx], bl
dec ecx
mov eax, edx
shr eax, 0x18
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 0x10
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 8
mov byte [ecx], al
mov byte [ecx - 1], dl
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
pop edi
mov byte [eax], cl
mov eax, ecx
shr eax, 8
mov byte [esi], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 1], al
mov eax, edx
shr ecx, 0x18
mov byte [esi + 2], cl
mov byte [esi + 3], dl
shr eax, 8
mov byte [esi + 4], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 5], al
shr edx, 0x18
mov byte [esi + 6], dl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret