Function at 0x10150d40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 0x20], 0
push ebx
push esi
mov esi, dword [ebp + 0x1c]
push edi
mov esi, dword [esi]
je 0x10150e71
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], edx
test esi, esi
je 0x10150e66
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x20], ebx
test edi, edi
je 0x10150d96
movzx eax, byte [esi + eax]
dec edi
movzx ecx, byte [ebx]
inc ebx
xor ecx, eax
mov dword [ebp + 0x20], ebx
mov eax, dword [ebp + 0x18]
mov byte [esi + eax], cl
inc esi
mov byte [edx], cl
inc edx
mov dword [ebp - 4], edx
and esi, 7
jne 0x10150d72
mov ecx, dword [ebp + 0x20]
cmp edi, 8
jb 0x10150e0a
mov eax, ecx
mov ebx, edx
sub eax, dword [ebp + 0x18]
sub ebx, dword [ebp + 0x18]
mov dword [ebp - 8], eax
mov eax, edi
shr eax, 3
mov dword [ebp - 0xc], eax
shl eax, 3
add edx, eax
add ecx, eax
mov dword [ebp - 4], edx
mov dword [ebp + 0x20], ecx
push dword [ebp + 0x14]
push dword [ebp + 0x18]
call fcn.101523f0
add esp, 8
cmp esi, 8
jae 0x10150df9
mov eax, dword [ebp + 0x18]
mov edx, 7
sub edx, esi
add eax, esi
mov esi, dword [ebp - 8]
shr edx, 2
inc edx
mov ecx, dword [esi + eax]
lea eax, [eax + 4]
xor dword [eax - 4], ecx
mov ecx, dword [eax - 4]
mov dword [ebx + eax - 4], ecx
dec edx
jne 0x10150de6
add dword [ebp - 8], 8
sub edi, 8
add ebx, 8
xor esi, esi
dec dword [ebp - 0xc]
jne 0x10150dc0
test edi, edi
je 0x10150f90
push dword [ebp + 0x14]
push dword [ebp + 0x18]
call fcn.101523f0
mov eax, dword [ebp + 0x18]
add esp, 8
mov ebx, dword [ebp - 4]
sub dword [ebp + 0x20], eax
sub ebx, eax
lea edx, [esi + eax]
add esi, edi
mov dword [ebp - 0xc], esi
mov esi, dword [ebp + 0x20]
jmp 0x10150e40
movzx ecx, byte [edx + esi]
lea edx, [edx + 1]
movzx eax, byte [edx - 1]
xor ecx, eax
mov byte [edx - 1], cl
mov byte [edx + ebx - 1], cl
dec edi
jne 0x10150e40
mov eax, dword [ebp + 0x1c]
mov esi, dword [ebp - 0xc]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov dword [ebp + 0x20], ecx
jmp 0x10150d99
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edi
test esi, esi
je 0x10150eb7
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x20], edx
lea ebx, [ebx]
test ebx, ebx
je 0x10150ebd
mov al, byte [esi + eax]
dec ebx
mov cl, byte [edx]
inc edx
xor al, cl
mov dword [ebp + 0x20], edx
mov byte [edi], al
inc edi
mov eax, dword [ebp + 0x18]
mov dword [ebp - 4], edi
mov dword [ebp - 8], ebx
mov byte [esi + eax], cl
inc esi
and esi, 7
jne 0x10150e90
jmp 0x10150ebd
mov eax, dword [ebp + 8]
mov dword [ebp + 0x20], eax
mov edx, dword [ebp + 0x14]
cmp ebx, 8
jb 0x10150f4f
mov ecx, dword [ebp + 0x18]
mov eax, edi
sub eax, ecx
mov dword [ebp - 0xc], eax
mov eax, ebx
shr eax, 3
mov dword [ebp - 0x10], eax
jmp 0x10150ee3
mov ecx, dword [ebp + 0x18]
push edx
push ecx
call fcn.101523f0
add esp, 8
cmp esi, 8
jae 0x10150f31
mov edi, dword [ebp + 0x18]
mov eax, 7
mov edx, dword [ebp + 0x20]
sub eax, esi
sub edx, dword [ebp - 4]
add edi, esi
mov ebx, dword [ebp - 0xc]
mov esi, eax
shr esi, 2
mov dword [ebp - 0x18], edx
inc esi
mov dword [ebp - 0x14], eax
mov eax, dword [edi]
lea ecx, [ebx + edi]
mov edx, dword [ecx + edx]
lea edi, [edi + 4]
xor eax, edx
mov dword [ecx], eax
mov dword [edi - 4], edx
mov edx, dword [ebp - 0x18]
dec esi
jne 0x10150f13
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 4]
add dword [ebp - 0xc], 8
sub ebx, 8
add dword [ebp + 0x20], 8
add edi, 8
mov edx, dword [ebp + 0x14]
xor esi, esi
dec dword [ebp - 0x10]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edi
jne 0x10150ee0
test ebx, ebx
je 0x10150f90
push edx
push dword [ebp + 0x18]
call fcn.101523f0
mov ecx, dword [ebp + 0x18]
add esp, 8
sub dword [ebp + 0x20], edi
sub edi, ecx
lea eax, [esi + ecx]
add esi, ebx
mov dword [ebp - 0xc], esi
mov esi, dword [ebp + 0x20]
mov dword [ebp - 0x10], eax
lea ecx, [eax + edi]
mov al, byte [eax]
mov dl, byte [ecx + esi]
xor al, dl
mov byte [ecx], al
mov eax, dword [ebp - 0x10]
mov byte [eax], dl
inc eax
mov dword [ebp - 0x10], eax
dec ebx
jne 0x10150f75
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp + 0x1c]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret