Function at 0x101b25e
Capabilities:
Encode data using xor

Disassembly:
push 0x1c
mov eax, 0x1054c44
call fcn.01022092
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov ecx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x10], ebx
call fcn.010155dc
mov ecx, dword [ebp + 8]
xor edi, edi
inc edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], edi
call fcn.01014eae
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
push ebx
push 3
push ebx
push edi
push 0x80000000
push eax
call dword [fcn.01001190]
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
je 0x101b3d8
push ebx
push eax
call dword [0x100116c]
mov edi, eax
cmp edi, 0xffffffff
je 0x101b3cf
push ebx
push edi
push ebx
push 2
push ebx
push dword [ebp - 0x20]
call dword [0x1001170]
cmp eax, ebx
mov dword [ebp - 0x28], eax
je 0x101b3cf
push edi
push ebx
push ebx
push 4
push eax
call dword [0x1001178]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x101b3c6
movzx ecx, word [eax]
mov dword [ebp - 0x1c], ecx
movzx ecx, cx
cmp ecx, 0xbbef
mov dword [ebp - 0x14], eax
je 0x101b326
cmp ecx, 0xfeff
je 0x101b31c
cmp ecx, 0xfffe
jne 0x101b3e3
shr edi, 1
dec edi
mov esi, edi
jmp 0x101b41e
cmp edi, 2
jbe 0x101b3e3
cmp byte [eax + 2], 0xbf
jne 0x101b3e3
add eax, 3
mov dword [ebp - 0x10], 0xfde9
mov dword [ebp - 0x14], eax
sub edi, 3
push ebx
push ebx
push edi
push dword [ebp - 0x14]
push ebx
push dword [ebp - 0x10]
mov ebx, dword [fcn.01001314]
call ebx
mov esi, eax
test esi, esi
je 0x101b3bd
mov ecx, dword [ebp + 8]
lea eax, [esi + 1]
push eax
call fcn.01015aa6
push esi
push eax
push edi
push dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
push 0
push dword [ebp - 0x10]
call ebx
test eax, eax
jne 0x101b38f
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
call fcn.01015124
and dword [ebp - 0x18], 0
xor ebx, ebx
mov edx, dword [ebp - 0x18]
cmp edx, ebx
je 0x101b3bd
cmp esi, ebx
mov eax, edx
jbe 0x101b3af
mov ecx, esi
cmp word [eax], bx
jne 0x101b3aa
mov word [eax], 0x20
inc eax
inc eax
dec ecx
jne 0x101b3a0
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
mov word [edx + esi*2], bx
call fcn.01015124
push dword [ebp + 0xc]
call dword [0x100111c]
push dword [ebp - 0x28]
call dword [fcn.01001320]
push dword [ebp - 0x20]
call dword [fcn.01001320]
mov eax, dword [ebp + 8]
call fcn.0102217e
ret 8
or dword [ebp - 0x18], 0xffffffff
lea ecx, [ebp - 0x18]
push ecx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x101b400
mov esi, edi
shr esi, 1
jmp 0x101b415
push edi
push dword [ebp + 0xc]
call fcn.0101ab95
neg eax
sbb eax, eax
and eax, 0xfde9
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x18], ebx
je 0x101b349
mov ecx, dword [ebp + 8]
lea eax, [esi + 1]
push eax
call fcn.01015aa6
cmp word [ebp - 0x1c], 0xfeff
mov edi, eax
mov dword [ebp - 0x18], edi
jne 0x101b444
lea eax, [esi + esi]
push eax
mov eax, dword [ebp + 0xc]
add eax, 2
push eax
jmp 0x101b482
cmp word [ebp - 0x1c], 0xfffe
jne 0x101b47b
mov eax, dword [ebp + 0xc]
add eax, 2
cmp esi, ebx
jbe 0x101b391
sub edi, eax
mov dword [ebp - 0x1c], esi
movzx cx, byte [eax + 1]
xor edx, edx
mov dh, byte [eax]
xor cx, dx
mov word [edi + eax], cx
inc eax
inc eax
dec dword [ebp - 0x1c]
jne 0x101b45f
jmp 0x101b391
lea eax, [esi + esi]
push eax
push dword [ebp + 0xc]
push edi
call fcn.01022800
add esp, 0xc
jmp 0x101b391