Function at 0x101356d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.101b79b0
push esi
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x174]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
xor ecx, ecx
mov edx, eax
add edx, dword [esi + 0x38]
adc ecx, dword [esi + 0x3c]
cmp ecx, 0xf
ja 0x101359d2
jb 0x1013570b
cmp edx, 0xffffffe0
ja 0x101359d2
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], ecx
mov ecx, dword [esi + 0x168]
xor edx, edx
cmp dword [esi + 0x16c], edx
mov dword [esp + 0x18], ecx
je 0x1013578c
cmp eax, edx
jne 0x1013574a
lea ecx, [esi + 0x60]
push ecx
lea edx, [esi + 0x40]
push edx
call fcn.101345d0
add esp, 8
mov dword [esi + 0x16c], 0
xor eax, eax
pop esi
add esp, 0x10
ret
mov ecx, dword [esi + 0x40]
mov dword [esi + 0x178], ecx
mov ecx, dword [esi + 0x44]
mov dword [esi + 0x17c], ecx
mov ecx, dword [esi + 0x48]
mov dword [esi + 0x180], ecx
mov ecx, dword [esi + 0x4c]
mov dword [esp + 0x18], 0x10
mov dword [esi + 0x184], ecx
mov ecx, dword [esp + 0x18]
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 + 0x28]
push edi
mov edi, dword [esp + 0x28]
mov bl, byte [esi + 0xd]
shl ebx, 8
or ebx, edx
movzx edx, byte [esi + 0xf]
shl ebx, 8
or ebx, edx
mov edx, ecx
and edx, 0xf
mov dword [esp + 0x10], edx
je 0x1013582d
jmp 0x101357c8
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x101357fe
mov al, byte [edi]
sub dword [esp + 0x30], 1
mov byte [ecx + esi + 0x178], al
mov dl, byte [edx + esi + 0x10]
xor dl, al
mov eax, dword [esp + 0x10]
mov byte [ebp], dl
add eax, 1
add ebp, 1
add ecx, 1
add edi, 1
and eax, 0xf
mov dword [esp + 0x10], eax
jne 0x101357c0
jmp 0x10135806
test edx, edx
jne 0x101359c2
push ecx
lea edx, [esi + 0x60]
push edx
lea eax, [esi + 0x40]
lea ecx, [esi + 0x178]
push eax
call fcn.10134750
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x30], 0
mov ecx, dword [esp + 0x30]
add esp, 0xc
cmp eax, 0x10
jb 0x1013585d
test ecx, ecx
je 0x1013585d
push ecx
lea edx, [esi + 0x60]
push edx
lea eax, [esi + 0x40]
lea ecx, [esi + 0x178]
push eax
call fcn.10134750
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x30], 0
mov ecx, dword [esp + 0x30]
add esp, 0xc
cmp eax, 0xc00
jb 0x101358e0
mov eax, 0xaaaaaaab
mul dword [esp + 0x30]
shr edx, 0xb
mov dword [esp + 0x18], edx
push 0xc00
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
mov ecx, edi
call fcn.10134750
mov ecx, dword [esp + 0x20]
push esi
push ecx
push 0xc0
push ebp
push edi
call dword [esp + 0x54]
sub dword [esp + 0x50], 0xc00
add ebx, 0xc0
mov edx, ebx
mov eax, ebx
mov ecx, ebx
shr edx, 0x18
shr eax, 0x10
shr ecx, 8
add esp, 0x20
add ebp, 0xc00
add edi, 0xc00
sub dword [esp + 0x18], 1
mov byte [esi + 0xc], dl
mov byte [esi + 0xd], al
mov byte [esi + 0xe], cl
mov byte [esi + 0xf], bl
jne 0x10135874
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
mov edx, eax
and edx, 0xfffffff0
mov dword [esp + 0x1c], edx
je 0x10135947
mov eax, edx
push edx
shr eax, 4
lea edx, [esi + 0x60]
mov dword [esp + 0x1c], eax
push edx
lea eax, [esi + 0x40]
push eax
mov ecx, edi
call fcn.10134750
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push esi
push ecx
push edx
push ebp
push edi
call dword [esp + 0x54]
add ebx, dword [esp + 0x38]
add esp, 0x20
mov eax, ebx
shr eax, 0x18
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 0xc], al
mov eax, dword [esp + 0x1c]
mov edx, ebx
shr edx, 8
mov byte [esi + 0xd], cl
mov ecx, dword [esp + 0x24]
add ebp, eax
add edi, eax
sub dword [esp + 0x30], eax
mov byte [esi + 0xe], dl
mov byte [esi + 0xf], bl
cmp dword [esp + 0x30], 0
je 0x101359c2
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 0x170]
push eax
lea ecx, [esi + 0x10]
push ecx
push esi
call edx
add ebx, 1
mov edx, ebx
shr edx, 8
mov eax, ebx
shr eax, 0x18
mov byte [esi + 0xe], dl
mov edx, dword [esp + 0x1c]
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 0xc], al
add esp, 0xc
lea eax, [edx + ebp]
mov byte [esi + 0xd], cl
mov byte [esi + 0xf], bl
lea edx, [edx + esi + 0x10]
sub edi, ebp
mov edi, edi
mov cl, byte [edi + eax]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x30]
add dword [esp + 0x24], 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 + 0x30], ebp
jne 0x10135990
mov ecx, dword [esp + 0x24]
pop edi
pop ebp
pop ebx
mov dword [esi + 0x168], ecx
xor eax, eax
pop esi
add esp, 0x10
ret
or eax, 0xffffffff
pop esi
add esp, 0x10
ret