Function at 0x101020c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.10163610
mov ecx, dword [esp + 0x24]
push esi
mov esi, dword [esp + 0x1c]
xor edx, edx
mov eax, dword [esi + 0x170]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x174]
mov dword [esp + 4], eax
mov eax, ecx
add eax, dword [esi + 0x38]
adc edx, dword [esi + 0x3c]
cmp edx, 0xf
ja 0x10102380
jb 0x10102105
cmp eax, 0xffffffe0
ja 0x10102380
cmp dword [esi + 0x16c], 0
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
je 0x10102132
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.101031e0
mov ecx, dword [esp + 0x30]
add esp, 8
mov dword [esi + 0x16c], 0
movzx eax, byte [esi + 0xd]
mov edx, dword [esi + 0x168]
push ebx
movzx ebx, byte [esi + 0xc]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0xe]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0xf]
shl ebx, 8
push ebp
mov ebp, dword [esp + 0x2c]
or ebx, eax
push edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x18], edx
test edx, edx
je 0x101021b2
lea ebx, [ebx]
test ecx, ecx
je 0x1010219a
mov cl, byte [edi]
mov al, byte [edx + esi + 0x10]
xor al, cl
mov byte [ebp], al
xor byte [edx + esi + 0x40], cl
mov ecx, dword [esp + 0x34]
dec ecx
inc edx
inc edi
inc ebp
and edx, 0xf
mov dword [esp + 0x34], ecx
mov dword [esp + 0x18], edx
jne 0x10102170
jmp 0x101021a2
test edx, edx
jne 0x10102370
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.101031e0
add esp, 8
mov ecx, dword [esp + 0x34]
cmp ecx, 0xc00
jb 0x10102263
mov eax, 0xaaaaaaab
mul ecx
shr edx, 0xb
mov dword [esp + 0x20], edx
push 0xc00
push edi
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.10102fa0
add esp, 0x10
mov dword [esp + 0x1c], 0xc0
mov edi, edi
push dword [esp + 0x10]
lea eax, [esi + 0x10]
push eax
push esi
call dword [esp + 0x20]
inc ebx
mov eax, ebx
shr eax, 0x18
mov byte [esi + 0xc], al
mov byte [esi + 0xf], bl
mov eax, ebx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ebx
shr eax, 8
mov byte [esi + 0xe], al
mov eax, dword [esi + 0x10]
xor eax, dword [edi]
add esp, 0xc
mov dword [ebp], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
add ebp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
add edi, 0x10
mov dword [ebp - 8], eax
mov eax, dword [edi - 4]
xor eax, dword [esi + 0x1c]
dec dword [esp + 0x1c]
mov dword [ebp - 4], eax
jne 0x101021f0
mov ecx, dword [esp + 0x34]
sub ecx, 0xc00
dec dword [esp + 0x20]
mov dword [esp + 0x34], ecx
jne 0x101021d0
mov eax, ecx
and eax, 0xfffffff0
je 0x101022f9
push eax
push edi
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.10102fa0
mov ecx, dword [esp + 0x44]
add esp, 0x10
cmp ecx, 0x10
jb 0x101022f9
shr ecx, 4
lea eax, [esi + 0x10]
mov dword [esp + 0x20], ecx
push dword [esp + 0x10]
push eax
push esi
call dword [esp + 0x20]
inc ebx
mov eax, ebx
shr eax, 0x18
mov byte [esi + 0xc], al
mov byte [esi + 0xf], bl
mov ecx, dword [esp + 0x40]
mov eax, ebx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ebx
shr eax, 8
mov byte [esi + 0xe], al
mov eax, dword [esi + 0x10]
xor eax, dword [edi]
sub ecx, 0x10
mov dword [ebp], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
add esp, 0xc
mov dword [ebp + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
add ebp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [edi + 0xc]
xor eax, dword [esi + 0x1c]
add edi, 0x10
dec dword [esp + 0x20]
mov dword [ebp - 4], eax
mov dword [esp + 0x34], ecx
lea eax, [esi + 0x10]
jne 0x10102293
test ecx, ecx
je 0x1010236c
push dword [esp + 0x10]
lea eax, [esi + 0x10]
push eax
push esi
call dword [esp + 0x20]
mov edx, dword [esp + 0x24]
inc ebx
mov eax, ebx
shr eax, 0x18
mov byte [esi + 0xc], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ebx
shr eax, 8
mov byte [esi + 0xe], al
lea eax, [edx + ebp]
add esp, 0xc
mov byte [esi + 0xf], bl
mov ebx, dword [esp + 0x34]
sub edi, ebp
lea ebp, [esi + 0x40]
mov dword [esp + 0x20], eax
mov esi, eax
nop
mov cl, byte [edi + esi]
xor byte [edx + ebp], cl
lea eax, [edx + ebp]
mov al, byte [edx + ebp - 0x30]
xor al, cl
inc edx
mov byte [esi], al
lea esi, [esi + 1]
dec ebx
jne 0x10102340
mov esi, dword [esp + 0x28]
pop edi
pop ebp
pop ebx
mov dword [esi + 0x168], edx
xor eax, eax
pop esi
add esp, 0x14
ret
mov edx, dword [esp + 0x18]
pop edi
pop ebp
pop ebx
mov dword [esi + 0x168], edx
xor eax, eax
pop esi
add esp, 0x14
ret
or eax, 0xffffffff
pop esi
add esp, 0x14
ret