Function at 0x10135040
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.101b79b0
push esi
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x174]
mov eax, dword [esi + 0x170]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xc], eax
xor eax, eax
mov edx, ecx
add edx, dword [esi + 0x38]
adc eax, dword [esi + 0x3c]
cmp eax, 0xf
ja 0x101353b2
jb 0x10135085
cmp edx, 0xffffffe0
ja 0x101353b2
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x168]
xor edx, edx
cmp dword [esi + 0x16c], edx
mov dword [esp + 0x1c], eax
je 0x10135106
cmp ecx, edx
jne 0x101350c4
lea edx, [esi + 0x60]
push edx
lea eax, [esi + 0x40]
push eax
call fcn.101345d0
add esp, 8
mov dword [esi + 0x16c], 0
xor eax, eax
pop esi
add esp, 0x14
ret
mov eax, dword [esi + 0x40]
mov dword [esi + 0x178], eax
mov eax, dword [esi + 0x44]
mov dword [esi + 0x17c], eax
mov eax, dword [esi + 0x48]
mov dword [esi + 0x180], eax
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x1c], 0x10
mov dword [esi + 0x184], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x40], edx
mov dword [esi + 0x44], edx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x16c], edx
movzx edx, byte [esi + 0xe]
push ebx
xor ebx, ebx
mov bh, byte [esi + 0xc]
push ebp
mov ebp, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x2c]
mov bl, byte [esi + 0xd]
shl ebx, 8
or ebx, edx
movzx edx, byte [esi + 0xf]
shl ebx, 8
or ebx, edx
mov edx, eax
and edx, 0xf
mov dword [esp + 0x10], edx
je 0x101351a7
jmp 0x1013513c
mov edx, dword [esp + 0x10]
test ecx, ecx
je 0x10135178
mov cl, byte [edi]
mov byte [eax + esi + 0x178], cl
mov dl, byte [edx + esi + 0x10]
xor dl, cl
mov ecx, dword [esp + 0x34]
mov byte [ebp], dl
mov edx, dword [esp + 0x10]
sub ecx, 1
add edx, 1
add ebp, 1
add eax, 1
add edi, 1
and edx, 0xf
mov dword [esp + 0x34], ecx
mov dword [esp + 0x10], edx
jne 0x10135138
jmp 0x10135180
test edx, edx
jne 0x101353a2
push eax
lea eax, [esi + 0x60]
push eax
lea edx, [esi + 0x40]
lea ecx, [esi + 0x178]
push edx
call fcn.10134750
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x34]
add esp, 0xc
cmp ecx, 0x10
jb 0x101351d7
test eax, eax
je 0x101351d7
push eax
lea eax, [esi + 0x60]
push eax
lea edx, [esi + 0x40]
lea ecx, [esi + 0x178]
push edx
call fcn.10134750
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x34]
add esp, 0xc
cmp ecx, 0xc00
jb 0x1013528a
mov eax, 0xaaaaaaab
mul ecx
shr edx, 0xb
mov dword [esp + 0x20], edx
push 0xc00
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
mov ecx, edi
call fcn.10134750
add esp, 0xc
mov dword [esp + 0x1c], 0xc0
mov eax, dword [esp + 0x14]
push eax
lea eax, [esi + 0x10]
push eax
push esi
call dword [esp + 0x24]
add ebx, 1
mov byte [esi + 0xf], bl
mov ecx, ebx
shr ecx, 0x18
mov byte [esi + 0xc], cl
mov edx, ebx
shr edx, 0x10
mov byte [esi + 0xd], dl
mov eax, ebx
shr eax, 8
mov byte [esi + 0xe], al
mov ecx, dword [edi]
xor ecx, dword [esi + 0x10]
add esp, 0xc
mov dword [ebp], ecx
mov edx, dword [edi + 4]
xor edx, dword [esi + 0x14]
add ebp, 0x10
mov dword [ebp - 0xc], edx
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
add edi, 0x10
mov dword [ebp - 8], eax
mov ecx, dword [edi - 4]
xor ecx, dword [esi + 0x1c]
sub dword [esp + 0x1c], 1
mov dword [ebp - 4], ecx
jne 0x10135210
sub dword [esp + 0x34], 0xc00
sub dword [esp + 0x20], 1
jne 0x101351f1
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
mov edx, ecx
and edx, 0xfffffff0
je 0x1013532c
push edx
lea edx, [esi + 0x60]
push edx
lea eax, [esi + 0x40]
push eax
mov ecx, edi
call fcn.10134750
add esp, 0xc
cmp dword [esp + 0x34], 0x10
jb 0x10135324
mov eax, dword [esp + 0x34]
shr eax, 4
mov dword [esp + 0x20], eax
lea ebx, [ebx]
mov ecx, dword [esp + 0x14]
push ecx
lea eax, [esi + 0x10]
push eax
push esi
call dword [esp + 0x24]
add ebx, 1
mov byte [esi + 0xf], bl
sub dword [esp + 0x40], 0x10
mov edx, ebx
shr edx, 0x18
mov byte [esi + 0xc], dl
mov eax, ebx
shr eax, 0x10
mov byte [esi + 0xd], al
mov ecx, ebx
shr ecx, 8
mov byte [esi + 0xe], cl
mov edx, dword [edi]
xor edx, dword [esi + 0x10]
add esp, 0xc
mov dword [ebp], edx
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
add ebp, 0x10
mov dword [ebp - 0xc], eax
mov ecx, dword [edi + 8]
xor ecx, dword [esi + 0x18]
add edi, 0x10
mov dword [ebp - 8], ecx
mov edx, dword [edi - 4]
xor edx, dword [esi + 0x1c]
sub dword [esp + 0x20], 1
mov dword [ebp - 4], edx
jne 0x101352c0
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
test ecx, ecx
je 0x101353a2
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esi + 0x10]
push ecx
push esi
call dword [esp + 0x24]
add ebx, 1
mov edx, ebx
shr edx, 0x18
mov eax, ebx
shr eax, 0x10
mov byte [esi + 0xc], dl
mov edx, dword [esp + 0x1c]
mov ecx, ebx
shr ecx, 8
mov byte [esi + 0xd], al
add esp, 0xc
lea eax, [edx + ebp]
mov byte [esi + 0xe], cl
mov byte [esi + 0xf], bl
lea edx, [edx + esi + 0x10]
sub edi, ebp
lea esp, [esp]
mov cl, byte [edi + eax]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x34]
add dword [esp + 0x28], 1
mov byte [esi + ebx + 0x178], cl
mov bl, byte [edx]
xor bl, cl
sub ebp, 1
mov byte [eax], bl
add edx, 1
add eax, 1
test ebp, ebp
mov dword [esp + 0x34], ebp
jne 0x10135370
mov eax, dword [esp + 0x28]
pop edi
pop ebp
mov dword [esi + 0x168], eax
pop ebx
xor eax, eax
pop esi
add esp, 0x14
ret
or eax, 0xffffffff
pop esi
add esp, 0x14
ret