Function at 0x1015ecf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, dword [ebp + 0x14]
xor edx, edx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x170]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x174]
mov dword [ebp - 0xc], eax
mov eax, ecx
add eax, dword [esi + 0x38]
adc edx, dword [esi + 0x3c]
cmp edx, 0xf
ja 0x1015efb0
jb 0x1015ed2d
cmp eax, 0xffffffe0
ja 0x1015efb0
cmp dword [esi + 0x16c], 0
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
je 0x1015ed59
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.1015fef0
mov ecx, dword [ebp + 0x14]
add esp, 8
mov dword [esi + 0x16c], 0
movzx eax, byte [esi + 0xd]
push ebx
movzx ebx, byte [esi + 0xc]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0xe]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0xf]
shl ebx, 8
or ebx, eax
mov eax, dword [esi + 0x168]
mov dword [ebp - 8], eax
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
je 0x1015ede1
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], edx
test ecx, ecx
je 0x1015edbc
mov cl, byte [edi]
inc edi
mov al, byte [eax + esi + 0x10]
xor al, cl
mov byte [edx], al
inc edx
mov eax, dword [ebp - 8]
mov dword [ebp - 4], edx
xor byte [eax + esi + 0x40], cl
inc eax
mov ecx, dword [ebp + 0x14]
dec ecx
and eax, 0xf
mov dword [ebp + 0x14], ecx
mov dword [ebp - 8], eax
jne 0x1015ed90
jmp 0x1015edc0
test eax, eax
jne 0x1015edd2
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.1015fef0
add esp, 8
jmp 0x1015ede7
pop edi
mov dword [esi + 0x168], eax
xor eax, eax
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
cmp ecx, 0xc00
jb 0x1015ee92
mov eax, 0xaaaaaaab
mul ecx
shr edx, 0xb
mov dword [ebp - 0x18], edx
push 0xc00
push edi
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.1015fcc0
add esp, 0x10
mov dword [ebp - 0x14], 0xc0
push dword [ebp - 0xc]
lea eax, [esi + 0x10]
push eax
push esi
call dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
inc ebx
mov eax, ebx
mov byte [esi + 0xf], bl
shr eax, 0x18
add esp, 0xc
mov byte [esi + 0xc], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ebx
shr eax, 8
mov byte [esi + 0xe], al
mov eax, dword [edi]
xor eax, dword [esi + 0x10]
mov dword [ecx], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
mov dword [ecx + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
mov dword [ecx + 8], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esi + 0x1c]
mov dword [ecx + 0xc], eax
add ecx, 0x10
dec dword [ebp - 0x14]
mov dword [ebp - 4], ecx
jne 0x1015ee20
mov ecx, dword [ebp + 0x14]
sub ecx, 0xc00
dec dword [ebp - 0x18]
mov dword [ebp + 0x14], ecx
jne 0x1015ee03
mov eax, ecx
and eax, 0xfffffff0
je 0x1015ef26
push eax
push edi
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.1015fcc0
mov ecx, dword [ebp + 0x14]
add esp, 0x10
cmp ecx, 0x10
jb 0x1015ef26
shr ecx, 4
lea eax, [esi + 0x10]
mov dword [ebp - 0x18], ecx
push dword [ebp - 0xc]
push eax
push esi
call dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
inc ebx
mov eax, ebx
mov byte [esi + 0xf], bl
shr eax, 0x18
add esp, 0xc
mov byte [esi + 0xc], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ebx
shr eax, 8
mov byte [esi + 0xe], al
mov eax, dword [edi]
xor eax, dword [esi + 0x10]
mov dword [ecx], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
mov dword [ecx + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
mov dword [ecx + 8], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esi + 0x1c]
mov dword [ecx + 0xc], eax
add ecx, 0x10
mov dword [ebp - 4], ecx
lea eax, [esi + 0x10]
mov ecx, dword [ebp + 0x14]
sub ecx, 0x10
dec dword [ebp - 0x18]
mov dword [ebp + 0x14], ecx
jne 0x1015eec0
test ecx, ecx
je 0x1015ef9e
push dword [ebp - 0xc]
lea eax, [esi + 0x10]
push eax
push esi
call dword [ebp - 0x10]
mov edx, dword [ebp - 8]
inc ebx
mov eax, ebx
mov byte [esi + 0xf], bl
shr eax, 0x18
add esp, 0xc
mov byte [esi + 0xc], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ebx
mov ebx, dword [ebp + 0x14]
shr eax, 8
mov byte [esi + 0xe], al
mov eax, dword [ebp - 4]
sub edi, eax
lea ecx, [edx + eax]
lea eax, [esi + 0x40]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
mov esi, ecx
lea ecx, [ecx]
mov cl, byte [edi + esi]
lea esi, [esi + 1]
xor byte [eax + edx], cl
mov eax, dword [ebp - 0x18]
mov al, byte [eax + edx - 0x30]
inc edx
xor al, cl
mov byte [esi - 1], al
mov eax, dword [ebp - 0x18]
dec ebx
jne 0x1015ef70
mov esi, dword [ebp + 8]
xor eax, eax
pop edi
pop ebx
mov dword [esi + 0x168], edx
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 8]
xor eax, eax
pop edi
pop ebx
mov dword [esi + 0x168], edx
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret