Function at 0x1013b350
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x28]
xor edx, edx
xor eax, eax
xor ecx, ecx
mov dl, byte [ebp]
mov ah, byte [ebp + 1]
inc ebp
or edx, eax
inc ebp
xor eax, eax
push esi
push edi
mov cl, byte [ebp]
mov al, byte [ebp + 1]
shl ecx, 0x10
or edx, ecx
inc ebp
shl eax, 0x18
or edx, eax
inc ebp
xor ecx, ecx
xor eax, eax
mov cl, byte [ebp]
mov ah, byte [ebp + 1]
inc ebp
or ecx, eax
inc ebp
xor eax, eax
mov al, byte [ebp]
shl eax, 0x10
or ecx, eax
inc ebp
xor eax, eax
mov al, byte [ebp]
shl eax, 0x18
or ecx, eax
mov eax, dword [esp + 0x2c]
inc ebp
mov dword [esp + 0x30], ecx
lea ebx, [eax - 8]
test ebx, ebx
jl 0x1013b528
lea eax, [ebx + 8]
mov edi, dword [esp + 0x28]
shr eax, 3
mov esi, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
neg eax
lea ecx, [ebx + eax*8]
mov dword [esp + 0x10], ecx
xor eax, eax
xor ecx, ecx
mov al, byte [edi]
mov ch, byte [edi + 1]
inc edi
or eax, ecx
inc edi
xor ecx, ecx
xor ebx, ebx
mov cl, byte [edi]
shl ecx, 0x10
or eax, ecx
inc edi
xor ecx, ecx
mov cl, byte [edi]
shl ecx, 0x18
or eax, ecx
inc edi
xor ecx, ecx
xor eax, edx
mov cl, byte [edi]
mov bh, byte [edi + 1]
inc edi
or ecx, ebx
inc edi
xor ebx, ebx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x14], eax
mov bl, byte [edi]
mov eax, dword [esp + 0x20]
shl ebx, 0x10
or ecx, ebx
inc edi
xor ebx, ebx
mov bl, byte [edi]
shl ebx, 0x18
or ecx, ebx
inc edi
xor ecx, edx
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x20], ecx
call fcn.10139570
mov eax, dword [esp + 0x1c]
add esp, 8
mov byte [esi], al
mov ecx, eax
inc esi
mov edx, eax
shr ecx, 8
mov byte [esi], cl
mov ecx, eax
inc esi
shr ecx, 0x10
mov byte [esi], cl
inc esi
shr eax, 0x18
mov byte [esi], al
mov eax, dword [esp + 0x18]
inc esi
mov ebx, eax
shr ebx, 8
mov byte [esi], al
inc esi
mov ecx, eax
mov byte [esi], bl
mov ebx, eax
inc esi
mov dword [esp + 0x30], ecx
shr ebx, 0x10
mov byte [esi], bl
inc esi
shr eax, 0x18
mov byte [esi], al
mov eax, dword [esp + 0x2c]
inc esi
dec eax
mov dword [esp + 0x2c], eax
jne 0x1013b3d1
mov ebx, dword [esp + 0x10]
cmp ebx, 0xfffffff8
je 0x1013b5c3
lea eax, [edi + ebx + 8]
add ebx, 7
mov dword [esp + 0x28], eax
xor eax, eax
xor edi, edi
cmp ebx, 7
mov dword [esp + 0x24], eax
ja case.default.0x1013b4af
jmp dword [ebx*4 + 0x1013b608]
mov edi, dword [esp + 0x28]
xor eax, eax
dec edi
mov dword [esp + 0x28], edi
mov al, byte [edi]
shl eax, 0x18
mov ebx, dword [esp + 0x28]
dec ebx
mov dword [esp + 0x28], ebx
xor ebx, ebx
mov edi, dword [esp + 0x28]
mov bl, byte [edi]
shl ebx, 0x10
or eax, ebx
mov ebx, dword [esp + 0x28]
dec ebx
mov dword [esp + 0x28], ebx
xor ebx, ebx
mov edi, dword [esp + 0x28]
mov bh, byte [edi]
or eax, ebx
mov ebx, dword [esp + 0x28]
dec ebx
mov dword [esp + 0x28], ebx
xor ebx, ebx
mov edi, dword [esp + 0x28]
mov bl, byte [edi]
or eax, ebx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
xor ebx, ebx
dec eax
mov bl, byte [eax]
mov edi, ebx
xor ebx, ebx
mov bl, byte [eax - 1]
shl edi, 0x18
dec eax
shl ebx, 0x10
or edi, ebx
dec eax
xor ebx, ebx
mov bh, byte [eax]
or edi, ebx
jmp 0x1013b55d
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
jmp 0x1013b48a
mov eax, dword [esp + 0x28]
xor ebx, ebx
dec eax
mov bl, byte [eax]
shl ebx, 0x10
or edi, ebx
dec eax
xor ebx, ebx
mov bh, byte [eax]
or edi, ebx
jmp 0x1013b55d
mov eax, dword [esp + 0x28]
xor ebx, ebx
dec eax
mov bh, byte [eax]
or edi, ebx
jmp 0x1013b55d
mov eax, dword [esp + 0x28]
xor ebx, ebx
mov bl, byte [eax - 1]
mov eax, dword [esp + 0x24]
or edi, ebx
xor eax, ecx
xor edi, edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
call fcn.10139570
mov eax, dword [esp + 0x1c]
add esp, 8
mov byte [esi], al
mov ecx, eax
inc esi
mov edx, eax
shr ecx, 8
mov byte [esi], cl
mov ecx, eax
inc esi
shr ecx, 0x10
mov byte [esi], cl
inc esi
shr eax, 0x18
mov byte [esi], al
mov eax, dword [esp + 0x18]
inc esi
mov ebx, eax
shr ebx, 8
mov byte [esi], al
inc esi
mov ecx, eax
mov byte [esi], bl
mov ebx, eax
inc esi
shr ebx, 0x10
shr eax, 0x18
mov byte [esi], bl
mov byte [esi + 1], al
sub ebp, 8
mov eax, edx
shr eax, 8
mov byte [ebp], dl
inc ebp
pop edi
pop esi
mov byte [ebp], al
mov eax, edx
inc ebp
shr eax, 0x10
mov byte [ebp], al
inc ebp
shr edx, 0x18
mov byte [ebp], dl
inc ebp
mov edx, ecx
mov eax, ecx
mov byte [ebp], cl
inc ebp
shr edx, 8
mov byte [ebp], dl
inc ebp
shr eax, 0x10
shr ecx, 0x18
mov byte [ebp], al
mov byte [ebp + 1], cl
pop ebp
pop ebx
add esp, 0xc
ret