Function at 0x101089b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.101cf170
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0x174]
mov ecx, dword [esi + 0x164]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], ecx
xor ecx, ecx
mov edx, eax
add edx, dword [esi + 0x38]
adc ecx, dword [esi + 0x3c]
cmp ecx, 0xf
ja 0x10108c50
jb 0x101089f5
cmp edx, 0xffffffe0
ja 0x10108c50
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], ecx
mov ecx, dword [esi + 0x168]
xor edx, edx
mov dword [esp + 0x1c], ecx
cmp dword [esi + 0x16c], edx
je 0x10108a79
cmp eax, edx
jne 0x10108a37
mov ecx, dword [esi + 0x160]
lea edx, [esi + 0x60]
push edx
lea eax, [esi + 0x40]
push eax
call ecx
add esp, 8
mov dword [esi + 0x16c], 0
xor eax, eax
pop esi
add esp, 0x14
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 + 0x1c], 0x10
mov dword [esi + 0x184], ecx
mov ecx, 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
push ebx
mov ebx, dword [esi + 0xc]
push ebp
mov ebp, dword [esp + 0x28]
mov edx, ecx
and edx, 0xf
push edi
mov edi, dword [esp + 0x30]
bswap ebx
mov dword [esp + 0x18], edx
je 0x10108af4
jmp 0x10108a9e
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x10108ac5
mov al, byte [edx + esi + 0x10]
xor al, byte [ebp]
dec dword [esp + 0x34]
mov byte [edi], al
mov byte [ecx + esi + 0x178], al
inc edx
inc ecx
inc edi
inc ebp
and edx, 0xf
mov dword [esp + 0x18], edx
jne 0x10108a96
jmp 0x10108acd
test edx, edx
jne 0x10108c40
push ecx
lea edx, [esi + 0x178]
push edx
lea eax, [esi + 0x60]
push eax
lea ecx, [esi + 0x40]
push ecx
call dword [esp + 0x20]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x38], 0
mov ecx, dword [esp + 0x38]
add esp, 0x10
cmp eax, 0x10
jb 0x10108b24
test ecx, ecx
je 0x10108b24
push ecx
lea edx, [esi + 0x178]
push edx
lea eax, [esi + 0x60]
push eax
lea ecx, [esi + 0x40]
push ecx
call dword [esp + 0x20]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x38], 0
mov ecx, dword [esp + 0x38]
add esp, 0x10
cmp eax, 0xc00
jb 0x10108b95
mov eax, 0xaaaaaaab
mul dword [esp + 0x34]
shr edx, 0xb
mov dword [esp + 0x1c], edx
jmp 0x10108b40
mov edx, dword [esp + 0x14]
push esi
push edx
push 0xc0
push edi
push ebp
call dword [esp + 0x4c]
add ebx, 0xc0
mov eax, ebx
bswap eax
push 0xc00
mov dword [esi + 0xc], eax
push edi
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call dword [esp + 0x34]
sub dword [esp + 0x58], 0xc00
add esp, 0x24
add edi, 0xc00
add ebp, 0xc00
dec dword [esp + 0x1c]
jne 0x10108b40
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
mov edx, eax
and edx, 0xfffffff0
mov dword [esp + 0x1c], edx
je 0x10108be8
mov ecx, dword [esp + 0x14]
push esi
mov eax, edx
push ecx
shr eax, 4
push eax
push edi
push ebp
mov dword [esp + 0x34], eax
call dword [esp + 0x4c]
mov eax, dword [esp + 0x30]
add ebx, dword [esp + 0x34]
sub dword [esp + 0x48], eax
push eax
add ebp, eax
push edi
lea eax, [esi + 0x60]
mov edx, ebx
push eax
lea ecx, [esi + 0x40]
bswap edx
push ecx
mov dword [esi + 0xc], edx
call dword [esp + 0x34]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x58]
add esp, 0x24
add edi, dword [esp + 0x1c]
test eax, eax
je 0x10108c40
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x170]
push edx
lea eax, [esi + 0x10]
push eax
push esi
call ecx
mov edx, dword [esp + 0x24]
inc ebx
bswap ebx
add esp, 0xc
lea ecx, [edx + edi]
mov dword [esi + 0xc], ebx
lea edx, [edx + esi + 0x10]
sub ebp, edi
movzx ebx, byte [edx]
movzx eax, byte [ecx + ebp]
mov edi, dword [esp + 0x34]
xor eax, ebx
mov ebx, dword [esp + 0x28]
mov byte [ecx], al
dec edi
mov byte [esi + ebx + 0x178], al
inc ebx
inc edx
inc ecx
mov dword [esp + 0x34], edi
mov dword [esp + 0x28], ebx
test edi, edi
jne 0x10108c14
mov ecx, ebx
pop edi
pop ebp
pop ebx
mov dword [esi + 0x168], ecx
xor eax, eax
pop esi
add esp, 0x14
ret
or eax, 0xffffffff
pop esi
add esp, 0x14
ret