Function at 0x101086a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x18
call fcn.101cf170
push esi
mov esi, dword [esp + 0x20]
mov edx, dword [esi + 0x164]
mov ecx, dword [esi + 0x174]
mov eax, dword [esi + 0x170]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
xor eax, eax
mov ecx, edx
add ecx, dword [esi + 0x38]
adc eax, dword [esi + 0x3c]
cmp eax, 0xf
ja 0x1010899c
jb 0x101086ef
cmp ecx, 0xffffffe0
ja 0x1010899c
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x168]
xor ecx, ecx
mov dword [esp + 0x20], eax
cmp dword [esi + 0x16c], ecx
je 0x10108773
cmp edx, ecx
jne 0x10108731
mov edx, dword [esi + 0x160]
lea eax, [esi + 0x60]
push eax
lea ecx, [esi + 0x40]
push ecx
call edx
add esp, 8
mov dword [esi + 0x16c], 0
xor eax, eax
pop esi
add esp, 0x18
ret
mov eax, dword [esi + 0x40]
mov edx, dword [esi + 0x44]
mov dword [esi + 0x178], eax
mov eax, dword [esi + 0x48]
mov dword [esi + 0x17c], edx
mov edx, dword [esi + 0x4c]
mov dword [esi + 0x180], eax
mov dword [esp + 0x20], 0x10
mov eax, dword [esp + 0x20]
mov dword [esi + 0x184], edx
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x16c], ecx
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
mov ebp, dword [esi + 0xc]
mov edx, eax
and edx, 0xf
push edi
mov edi, dword [esp + 0x30]
bswap ebp
mov dword [esp + 0x14], edx
je 0x101087f0
jmp 0x10108794
mov edx, dword [esp + 0x14]
cmp dword [esp + 0x38], 0
je 0x101087c3
mov cl, byte [edi]
dec dword [esp + 0x38]
mov byte [eax + esi + 0x178], cl
mov dl, byte [edx + esi + 0x10]
xor dl, cl
mov ecx, dword [esp + 0x14]
mov byte [ebx], dl
inc ecx
inc ebx
inc eax
inc edi
and ecx, 0xf
mov dword [esp + 0x14], ecx
jne 0x10108790
jmp 0x101087cb
test edx, edx
jne 0x1010898c
push eax
lea edx, [esi + 0x178]
push edx
lea eax, [esi + 0x60]
push eax
lea ecx, [esi + 0x40]
push ecx
call dword [esp + 0x20]
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x3c]
add esp, 0x10
xor ecx, ecx
cmp dword [esp + 0x38], 0x10
jb 0x1010881e
cmp eax, ecx
je 0x1010881e
push eax
lea edx, [esi + 0x178]
push edx
lea eax, [esi + 0x60]
push eax
lea ecx, [esi + 0x40]
push ecx
call dword [esp + 0x20]
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x3c]
add esp, 0x10
mov ecx, dword [esp + 0x38]
cmp ecx, 0xc00
jb 0x101088b9
mov eax, 0xaaaaaaab
mul ecx
shr edx, 0xb
mov dword [esp + 0x24], edx
lea esp, [esp]
push 0xc00
push edi
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call dword [esp + 0x20]
add esp, 0x10
mov dword [esp + 0x20], 0xc0
lea ecx, [ecx]
mov edx, dword [esp + 0x18]
push edx
lea eax, [esi + 0x10]
push eax
push esi
call dword [esp + 0x28]
inc ebp
mov eax, ebp
bswap eax
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0x10]
xor ecx, dword [edi]
add esp, 0xc
mov dword [ebx], ecx
mov edx, dword [edi + 4]
xor edx, dword [esi + 0x14]
add ebx, 0x10
mov dword [ebx - 0xc], edx
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
add edi, 0x10
mov dword [ebx - 8], eax
mov ecx, dword [edi - 4]
xor ecx, dword [esi + 0x1c]
dec dword [esp + 0x20]
mov dword [ebx - 4], ecx
jne 0x10108860
sub dword [esp + 0x38], 0xc00
dec dword [esp + 0x24]
jne 0x10108840
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
and ecx, 0xfffffff0
je 0x10108935
push ecx
push edi
lea edx, [esi + 0x60]
push edx
lea eax, [esi + 0x40]
push eax
call dword [esp + 0x20]
add esp, 0x10
cmp dword [esp + 0x38], 0x10
jb 0x10108931
mov eax, dword [esp + 0x38]
shr eax, 4
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x18]
push ecx
lea eax, [esi + 0x10]
push eax
push esi
call dword [esp + 0x28]
inc ebp
sub dword [esp + 0x44], 0x10
mov edx, ebp
bswap edx
mov dword [esi + 0xc], edx
mov eax, dword [esi + 0x10]
xor eax, dword [edi]
add esp, 0xc
mov dword [ebx], eax
mov ecx, dword [edi + 4]
xor ecx, dword [esi + 0x14]
add ebx, 0x10
mov dword [ebx - 0xc], ecx
mov edx, dword [edi + 8]
xor edx, dword [esi + 0x18]
add edi, 0x10
mov dword [ebx - 8], edx
mov eax, dword [edi - 4]
xor eax, dword [esi + 0x1c]
dec dword [esp + 0x24]
mov dword [ebx - 4], eax
jne 0x101088e5
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x38], 0
je 0x1010898c
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esi + 0x10]
push edx
push esi
call dword [esp + 0x28]
inc ebp
bswap ebp
mov dword [esi + 0xc], ebp
mov ebp, dword [esp + 0x20]
add esp, 0xc
lea eax, [ebx + ebp]
lea ebp, [esi + ebp + 0x10]
sub edi, ebx
mov cl, byte [edi + eax]
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x38]
inc dword [esp + 0x2c]
mov byte [esi + ebx + 0x178], cl
mov bl, byte [ebp]
xor bl, cl
dec edx
mov byte [eax], bl
inc ebp
inc eax
mov dword [esp + 0x38], edx
test edx, edx
jne 0x10108960
mov eax, dword [esp + 0x2c]
pop edi
pop ebp
mov dword [esi + 0x168], eax
pop ebx
xor eax, eax
pop esi
add esp, 0x18
ret
or eax, 0xffffffff
pop esi
add esp, 0x18
ret