Function at 0x10013fe0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x38
mov eax, dword [0x1004a0b4]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
mov ebx, dword [esp + 0x44]
test ebx, ebx
mov dword [esp + 0x24], ebx
jne 0x1001400f
xor al, al
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.1002d777
add esp, 0x38
ret 8
push ebp
push esi
xor eax, eax
push edi
lea edi, [ecx + 0x30]
mov ecx, dword [esp + 0x4c]
shr ecx, 1
mov byte [esp + 0x34], 0
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov word [esp + 0x41], ax
mov byte [esp + 0x43], al
je 0x10014263
lea eax, [esp + 0x37]
sub eax, edi
mov dword [esp + 0x1c], eax
mov eax, 1
sub eax, edi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x36]
sub eax, edi
mov dword [esp + 0x10], eax
lea eax, [esp + 0x35]
sub eax, edi
mov dword [esp + 0x20], eax
or eax, 0xffffffff
sub eax, edi
mov dword [esp + 0x28], eax
lea eax, [esp + 0x34]
sub eax, edi
mov dword [esp + 0x18], eax
mov eax, 0xfffffffe
mov esi, 0xfffffffe
sub eax, edi
mov ebp, ebx
sub esi, ebx
mov dword [esp + 0x24], eax
sub ebp, edi
mov dword [esp + 0x2c], ecx
lea ecx, [ebx + 2]
mov eax, edi
jmp 0x100140a0
movzx ebx, byte [eax]
movzx edx, byte [eax + ebp]
xor edx, ebx
lea ebx, [esi + ecx]
and ebx, 3
shl ebx, 8
movzx edx, byte [edx + ebx + str.cw]
mov ebx, dword [esp + 0x18]
mov byte [eax + ebx], dl
movzx ebx, byte [ecx - 1]
movzx edx, byte [eax + 1]
xor edx, ebx
mov ebx, dword [esp + 0x14]
add ebx, eax
and ebx, 3
shl ebx, 8
movzx edx, byte [edx + ebx + str.cw]
mov ebx, dword [esp + 0x20]
mov byte [eax + ebx], dl
movzx ebx, byte [ecx]
movzx edx, byte [eax + 2]
xor edx, ebx
mov ebx, dword [esp + 0x24]
add ebx, eax
and ebx, 3
shl ebx, 8
movzx edx, byte [edx + ebx + str.cw]
mov ebx, dword [esp + 0x10]
mov byte [eax + ebx], dl
movzx ebx, byte [ecx + 1]
movzx edx, byte [eax + 3]
xor edx, ebx
mov ebx, dword [esp + 0x28]
add ebx, eax
and ebx, 3
shl ebx, 8
movzx edx, byte [edx + ebx + str.cw]
mov ebx, dword [esp + 0x1c]
add ecx, 4
mov byte [eax + ebx], dl
lea edx, [esi + ecx]
add eax, 4
cmp edx, 0x10
jb 0x100140a0
mov ebx, dword [esp + 0x30]
lea eax, [esp + 0x34]
push ebx
push eax
call fcn.10013e50
mov eax, 0x10
sub dword [esp + 0x2c], eax
sub dword [esp + 0x20], eax
sub dword [esp + 0x30], eax
sub dword [esp + 0x28], eax
sub dword [esp + 0x18], eax
sub dword [esp + 0x1c], eax
add edi, eax
sub ebp, eax
add esp, 8
sub dword [esp + 0x1c], eax
lea ecx, [ebx + 2]
mov eax, edi
lea ecx, [ecx]
movzx ebx, byte [eax]
movzx edx, byte [eax + ebp]
xor edx, ebx
mov ebx, dword [esp + 0x24]
add ebx, eax
and ebx, 3
shl ebx, 8
movzx edx, byte [edx + ebx + str.cw]
mov ebx, dword [esp + 0x18]
mov byte [ebx + eax], dl
movzx ebx, byte [ecx - 1]
movzx edx, byte [eax + 1]
xor edx, ebx
mov ebx, dword [esp + 0x28]
add ebx, eax
and ebx, 3
shl ebx, 8
movzx edx, byte [edx + ebx + str.cw]
mov ebx, dword [esp + 0x20]
mov byte [ebx + eax], dl
movzx ebx, byte [ecx]
movzx edx, byte [eax + 2]
xor edx, ebx
lea ebx, [esi + ecx]
and ebx, 3
shl ebx, 8
movzx edx, byte [edx + ebx + str.cw]
mov ebx, dword [esp + 0x10]
mov byte [ebx + eax], dl
movzx ebx, byte [ecx + 1]
movzx edx, byte [eax + 3]
xor edx, ebx
mov ebx, dword [esp + 0x14]
add ebx, eax
and ebx, 3
shl ebx, 8
movzx edx, byte [edx + ebx + str.cw]
mov ebx, dword [esp + 0x1c]
add ecx, 4
mov byte [ebx + eax], dl
lea edx, [esi + ecx]
add eax, 4
cmp edx, 0x10
jb 0x10014180
mov ebx, dword [esp + 0x30]
lea eax, [esp + 0x34]
push ebx
push eax
call fcn.10013e50
mov eax, 0x10
sub dword [esp + 0x2c], eax
sub dword [esp + 0x20], eax
sub dword [esp + 0x30], eax
sub dword [esp + 0x28], eax
sub dword [esp + 0x18], eax
sub dword [esp + 0x1c], eax
sub dword [esp + 0x24], eax
add esp, 8
add edi, eax
sub ebp, eax
sub dword [esp + 0x2c], 1
jne 0x10014093
lea ecx, [esp + 0x34]
push ecx
push ebx
call fcn.10013e50
lea edx, [esp + 0x3c]
mov ebp, edi
sub ebp, edx
lea eax, [esp + 0x3c]
mov edx, ebx
sub edx, eax
mov eax, edi
add esp, 8
xor ecx, ecx
sub eax, ebx
lea esi, [ebx + 1]
mov dword [esp + 0x2c], eax
mov edi, edi
lea eax, [esp + ecx + 0x34]
movzx ebx, byte [eax + ebp]
xor bl, byte [eax]
add ecx, 4
mov byte [edx + eax], bl
mov ebx, dword [esp + 0x2c]
movzx ebx, byte [ebx + esi]
xor bl, byte [eax + 1]
add esi, 4
mov byte [esi - 4], bl
movzx ebx, byte [edi + ecx - 2]
xor bl, byte [eax + 2]
mov byte [esi - 3], bl
movzx ebx, byte [edi + ecx - 1]
xor bl, byte [eax + 3]
cmp ecx, 0x10
mov byte [esi - 2], bl
jb 0x10014290
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.1002d777
add esp, 0x38
ret 8