Function at 0x1014bfc0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x6ec
mov eax, dword [esp + 0x6f0]
push ebx
push ebp
push esi
push edi
push eax
call fcn.1012c000
add esp, 4
dec eax
mov dword [esp + 0x14], eax
add eax, 7
cdq
and edx, 7
mov ecx, 0xf
add eax, edx
lea edi, [esp + 0x6d]
mov ebp, eax
xor eax, eax
mov byte [esp + 0x6c], 0
mov esi, dword [esp + 0x70c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ebx, dword [esp + 0x718]
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
sar ebp, 3
lea ecx, [esi + ebx + 2]
cmp ebp, ecx
stosb byte es:[edi], al
jge 0x1014c03b
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x6ec
ret
lea edx, [ebp + ebp*2]
push 1
lea eax, [edx + ebx*2]
sub eax, esi
add eax, 0xb
push eax
call fcn.10159572
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x1014c06a
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x6ec
ret
lea eax, [eax + ebx + 1]
mov ecx, dword [esp + 0x714]
mov edx, dword [esp + 0x710]
mov dword [esp + 0x10], eax
lea edi, [eax + esi]
push ecx
mov dword [esp + 0x2c], edi
lea eax, [esp + 0xb0]
lea edi, [edi + ebx + 9]
push edx
mov ebx, edi
push eax
sub ebx, esi
mov dword [esp + 0x2c], edi
add ebx, ebp
mov dword [esp + 0x30], ebx
sub ebx, esi
add ebx, ebp
call fcn.1012bdb0
mov eax, dword [esp + 0x70c]
lea ecx, [esp + 0xb8]
push eax
add eax, 0x328
push eax
lea edx, [esp + 0x3e8]
push ecx
push edx
call fcn.10130580
lea eax, [esp + 0x3f0]
push ebp
push eax
push ebx
call fcn.1012bd20
mov al, byte [ebx + ebp - 1]
add esp, 0x28
cmp al, 0xbc
je 0x1014c0f3
mov esi, 0xfffffffe
jmp 0x1014c271
mov eax, ebp
sub eax, esi
mov esi, ebx
mov dword [esp + 0x1c], eax
lea edx, [eax - 1]
mov ecx, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x70c]
and ecx, 3
sub ebx, eax
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
lea esi, [ebx + ebp - 1]
mov ebx, ecx
lea edi, [esp + 0x6c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, 0xff
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
shl ebp, 3
sub ecx, ebp
add ecx, 8
shl ebx, cl
mov cl, byte [esi]
test cl, bl
je 0x1014c158
mov esi, 0xfffffffd
jmp 0x1014c271
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x704]
push eax
lea eax, [esp + 0x70]
push eax
push edx
push ebx
push ecx
call fcn.1014b8d0
mov edi, dword [esp + 0x30]
add esp, 0x14
test edi, edi
jle 0x1014c18d
mov ecx, ebx
mov eax, esi
sub ecx, esi
mov edx, edi
mov bl, byte [ecx + eax]
xor byte [eax], bl
inc eax
dec edx
jne 0x1014c184
mov ecx, ebp
mov ebp, dword [esp + 0x14]
mov al, byte [esi]
sub ecx, ebp
mov edx, 0xff
sar edx, cl
mov ecx, 0
and al, dl
mov byte [esi], al
lea eax, [esi + 1]
jne 0x1014c1b4
mov dl, byte [eax]
inc ecx
inc eax
test dl, dl
je 0x1014c1ac
mov edx, dword [esp + 0x718]
dec eax
sub edi, edx
sub edi, 2
cmp ecx, edi
jne 0x1014c26c
cmp byte [eax], 1
jne 0x1014c26c
mov ecx, edx
lea esi, [eax + 1]
mov eax, dword [esp + 0x18]
mov ebx, ecx
mov edi, eax
mov ebp, dword [esp + 0x70c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x708]
mov ecx, ebp
add edi, 8
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, eax
mov eax, dword [esp + 0x28]
mov ecx, edx
lea edi, [eax + 8]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x704]
and ecx, 3
cmp eax, 2
rep movsb byte es:[edi], byte [esi]
lea ecx, [edx + ebp + 8]
mov edx, dword [esp + 0x10]
push ecx
lea eax, [esp + 0x30]
push edx
push eax
jne 0x1014c24b
call fcn.1014d6b0
jmp 0x1014c250
call fcn.10139070
add esp, 0xc
mov ecx, ebp
lea edi, [esp + 0x2c]
lea esi, [esp + 0x6c]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1014c268
sbb eax, eax
sbb eax, 0xffffffff
mov esi, eax
jmp 0x1014c271
mov esi, 0xfffffffc
mov ecx, dword [esp + 0x18]
push ecx
call fcn.10158e44
mov eax, esi
add esp, 4
neg eax
sbb eax, eax
pop edi
and al, 0xfa
pop esi
pop ebp
inc eax
pop ebx
add esp, 0x6ec
ret