Function at 0x1015efc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 8]
xor ecx, ecx
push edi
mov edi, dword [ebp + 0x14]
mov eax, dword [esi + 0x174]
mov dword [ebp - 0x10], eax
mov eax, edi
add eax, dword [esi + 0x38]
adc ecx, dword [esi + 0x3c]
cmp ecx, 0xf
ja 0x1015f21e
jb 0x1015eff5
cmp eax, 0xffffffe0
ja 0x1015f21e
cmp dword [esi + 0x16c], 0
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
je 0x1015f01e
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.1015fef0
add esp, 8
mov dword [esi + 0x16c], 0
movzx ecx, byte [esi + 0xc]
movzx eax, byte [esi + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xf]
shl ecx, 8
push ebx
mov ebx, dword [esi + 0x168]
or ecx, eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x1015f0a9
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea ebx, [ebx]
test edi, edi
je 0x1015f08c
mov cl, byte [eax]
dec edi
inc eax
mov dword [ebp + 0x14], edi
mov dword [ebp - 4], eax
mov al, byte [ebx + esi + 0x10]
xor al, cl
mov byte [edx], al
inc edx
xor byte [ebx + esi + 0x40], cl
inc ebx
mov eax, dword [ebp - 4]
and ebx, 0xf
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], ebx
jne 0x1015f060
jmp 0x1015f094
test ebx, ebx
jne 0x1015f20f
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.1015fef0
mov ecx, dword [ebp - 4]
add esp, 8
jmp 0x1015f0b5
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
cmp edi, 0xc00
jb 0x1015f141
mov ebx, dword [ebp - 0xc]
mov eax, 0xaaaaaaab
mul edi
shr edx, 0xb
mov dword [ebp + 0x14], edx
push 0xc00
push ecx
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.1015fcc0
push esi
push dword [ebp - 0x10]
push 0xc0
push dword [ebp - 8]
push dword [ebp - 4]
call dword [ebp + 0x18]
mov ecx, dword [ebp - 4]
add ebx, 0xc0
add dword [ebp - 8], 0xc00
mov eax, ebx
shr eax, 0x18
add ecx, 0xc00
mov byte [esi + 0xc], al
add esp, 0x24
mov eax, ebx
mov byte [esi + 0xf], bl
shr eax, 0x10
sub edi, 0xc00
mov byte [esi + 0xd], al
mov eax, ebx
shr eax, 8
dec dword [ebp + 0x14]
mov byte [esi + 0xe], al
mov dword [ebp - 4], ecx
jne 0x1015f0d1
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebp + 0x14], edi
mov eax, edi
and eax, 0xfffffff0
mov dword [ebp - 0x14], eax
je 0x1015f1a1
push eax
mov edi, eax
lea eax, [esi + 0x60]
push ecx
push eax
lea eax, [esi + 0x40]
shr edi, 4
push eax
call fcn.1015fcc0
push esi
push dword [ebp - 0x10]
push edi
push dword [ebp - 8]
push dword [ebp - 4]
call dword [ebp + 0x18]
mov ecx, dword [ebp - 0xc]
add esp, 0x24
add ecx, edi
mov edi, dword [ebp + 0x14]
mov eax, ecx
mov dword [ebp - 0xc], ecx
shr eax, 0x18
mov byte [esi + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [esi + 0xe], al
mov eax, dword [ebp - 0x14]
add dword [ebp - 8], eax
add dword [ebp - 4], eax
sub edi, eax
mov byte [esi + 0xf], cl
test edi, edi
je 0x1015f20f
push dword [ebp - 0x10]
lea eax, [esi + 0x10]
push eax
mov eax, dword [esi + 0x170]
push esi
call eax
mov ecx, dword [ebp - 0xc]
add esp, 0xc
inc ecx
mov eax, ecx
mov byte [esi + 0xf], cl
shr eax, 0x18
mov byte [esi + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [esi + 0xe], al
mov eax, dword [ebp - 8]
sub dword [ebp - 4], eax
lea edx, [ebx + eax]
lea eax, [esi + 0x40]
mov esi, dword [ebp - 4]
mov dword [ebp + 0x14], eax
lea esp, [esp]
mov cl, byte [esi + edx]
lea edx, [edx + 1]
xor byte [eax + ebx], cl
mov eax, dword [ebp + 0x14]
mov al, byte [eax + ebx - 0x30]
inc ebx
xor al, cl
mov byte [edx - 1], al
mov eax, dword [ebp + 0x14]
dec edi
jne 0x1015f1f0
mov esi, dword [ebp + 8]
mov dword [esi + 0x168], ebx
xor eax, eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret