Function at 0x1009b560
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.10112b60
push esi
mov esi, dword [esp + 0x18]
mov ecx, dword [esi + 0x174]
mov eax, dword [esi + 0x170]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 8], eax
xor eax, eax
add ecx, dword [esi + 0x38]
adc eax, dword [esi + 0x3c]
cmp eax, 0xf
ja 0x1009b824
jb 0x1009b5a3
cmp ecx, 0xffffffe0
ja 0x1009b824
cmp dword [esi + 0x16c], 0
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
je 0x1009b5cc
lea edx, [esi + 0x60]
push edx
lea eax, [esi + 0x40]
push eax
call fcn.1009ae90
add esp, 8
mov dword [esi + 0x16c], 0
movzx ecx, byte [esi + 0xd]
movzx edx, byte [esi + 0xe]
movzx eax, byte [esi + 0xf]
push ebx
movzx ebx, byte [esi + 0xc]
shl ebx, 8
or ebx, ecx
mov ecx, dword [esi + 0x168]
shl ebx, 8
or ebx, edx
shl ebx, 8
push ebp
mov ebp, dword [esp + 0x24]
or ebx, eax
push edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x24], ecx
test ecx, ecx
je 0x1009b656
jmp 0x1009b614
mov ecx, dword [esp + 0x24]
cmp dword [esp + 0x30], 0
je 0x1009b63a
mov al, byte [ecx + esi + 0x10]
xor al, byte [ebp]
dec dword [esp + 0x30]
mov byte [edi], al
xor byte [ecx + esi + 0x40], al
inc ecx
inc edi
inc ebp
and ecx, 0xf
mov dword [esp + 0x24], ecx
jne 0x1009b610
jmp 0x1009b642
test ecx, ecx
jne 0x1009b814
lea ecx, [esi + 0x60]
push ecx
lea edx, [esi + 0x40]
push edx
call fcn.1009ae90
mov ecx, dword [esp + 0x2c]
add esp, 8
mov edx, dword [esp + 0x30]
cmp edx, 0xc00
jb 0x1009b719
mov eax, 0xaaaaaaab
mul edx
shr edx, 0xb
mov dword [esp + 0x1c], edx
jmp 0x1009b680
mov dword [esp + 0x18], 0xc0
mov eax, dword [esp + 0x10]
push eax
lea eax, [esi + 0x10]
push eax
push esi
call dword [esp + 0x20]
inc ebx
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 [ebp]
xor ecx, dword [esi + 0x10]
add esp, 0xc
mov dword [edi], ecx
mov edx, dword [ebp + 4]
xor edx, dword [esi + 0x14]
add edi, 0x10
mov dword [edi - 0xc], edx
mov eax, dword [ebp + 8]
xor eax, dword [esi + 0x18]
add ebp, 0x10
mov dword [edi - 8], eax
mov ecx, dword [ebp - 4]
xor ecx, dword [esi + 0x1c]
dec dword [esp + 0x18]
mov dword [edi - 4], ecx
jne 0x1009b688
push 0xc00
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
lea ecx, [edi - 0xc00]
push eax
call fcn.1009b000
sub dword [esp + 0x3c], 0xc00
add esp, 0xc
dec dword [esp + 0x1c]
jne 0x1009b680
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x30]
mov eax, edx
and eax, 0xfffffff0
mov dword [esp + 0x18], eax
je 0x1009b7b6
cmp edx, 0x10
jb 0x1009b799
shr edx, 4
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x10]
push edx
lea eax, [esi + 0x10]
push eax
push esi
call dword [esp + 0x20]
inc ebx
mov byte [esi + 0xf], bl
sub dword [esp + 0x3c], 0x10
mov eax, ebx
shr eax, 0x18
mov byte [esi + 0xc], al
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 0xd], cl
mov edx, ebx
shr edx, 8
mov byte [esi + 0xe], dl
mov eax, dword [ebp]
xor eax, dword [esi + 0x10]
add esp, 0xc
mov dword [edi], eax
mov ecx, dword [ebp + 4]
xor ecx, dword [esi + 0x14]
add edi, 0x10
mov dword [edi - 0xc], ecx
mov edx, dword [ebp + 8]
xor edx, dword [esi + 0x18]
add ebp, 0x10
mov dword [edi - 8], edx
mov eax, dword [ebp - 4]
xor eax, dword [esi + 0x1c]
dec dword [esp + 0x1c]
mov dword [edi - 4], eax
jne 0x1009b734
mov eax, dword [esp + 0x18]
push eax
mov ecx, edi
lea edx, [esi + 0x60]
sub ecx, eax
push edx
lea eax, [esi + 0x40]
push eax
call fcn.1009b000
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
add esp, 0xc
test edx, edx
je 0x1009b814
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esi + 0x10]
push edx
push esi
call dword [esp + 0x20]
inc ebx
mov ecx, ebx
shr ecx, 0x10
mov edx, ebx
shr edx, 8
mov eax, ebx
shr eax, 0x18
mov byte [esi + 0xd], cl
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov byte [esi + 0xe], dl
mov byte [esi + 0xc], al
mov byte [esi + 0xf], bl
lea edx, [ecx + edi]
sub ebp, edi
movzx ebx, byte [edx + ebp]
movzx eax, byte [esi + ecx + 0x10]
mov edi, dword [esp + 0x30]
xor eax, ebx
mov byte [edx], al
xor byte [esi + ecx + 0x40], al
dec edi
inc ecx
inc edx
mov dword [esp + 0x30], edi
test edi, edi
jne 0x1009b7f0
mov dword [esp + 0x24], ecx
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