Function at 0x101927f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov eax, edx
mov ebx, ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ebx
push esi
push edi
test eax, eax
je 0x101928e8
test byte [ebp + 0xc], 8
jne 0x101928e8
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
or dword [eax + 4], 1
mov eax, 0xd
mov ebx, dword [ebx + 0xc]
lea esi, [edi - 1]
mov dword [ebp - 8], ebx
test esi, esi
js 0x1019284a
mov edi, edx
movzx edx, byte [esi + edi]
lea ecx, [eax*8]
xor edx, ecx
xor eax, edx
sub esi, 1
jns 0x10192833
mov edi, dword [ebp + 8]
xor edx, edx
div dword [ebx + 0xc]
mov eax, dword [ebx + 0x14]
mov ebx, dword [eax + edx*4]
test ebx, ebx
je 0x101928be
nop dword [eax]
mov eax, dword [ebx + 0x14]
lea ecx, [ebx + 0x28]
inc eax
cmp edi, eax
jne 0x101928b8
mov edx, dword [ebp - 4]
mov esi, edi
sub esi, 4
jb 0x10192886
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1019288b
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10192875
cmp esi, 0xfffffffc
je 0x101928cc
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x101928b8
cmp esi, 0xfffffffd
je 0x101928cc
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x101928b8
cmp esi, 0xfffffffe
je 0x101928cc
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x101928b8
cmp esi, 0xffffffff
je 0x101928cc
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x101928cc
mov ebx, dword [ebx]
test ebx, ebx
jne 0x10192860
mov dword [ebp - 8], 0
xor ebx, ebx
jmp 0x10192954
mov ecx, dword [ebp - 8]
mov edx, ebx
call fcn.1018f810
lea eax, [edi + 0x29]
add eax, ebx
mov ebx, dword [ebx + 0x10]
sub ebx, edi
mov dword [ebp - 8], eax
sub ebx, 0x29
jmp 0x10192954
push dword [ebp + 8]
mov ecx, dword [ebx + 0xc]
call fcn.1018ffe0
mov ecx, dword [ebx + 0xc]
add esp, 4
mov dword [ebx + 0x24], eax
mov ebx, dword [ecx + 0x10]
test ebx, ebx
je 0x10192942
lea edi, [ebx + 0x28]
mov esi, edi
mov dword [ebp - 4], edi
lea edx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x10192910
sub esi, edx
mov edx, ebx
call fcn.1018f810
mov ebx, dword [ebx + 0x10]
lea eax, [edi + 1]
sub ebx, esi
add eax, esi
sub ebx, 0x29
mov dword [ebp - 8], eax
test edi, edi
je 0x10192952
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10192937
sub edi, ecx
jmp 0x10192954
mov dword [ebp - 4], 0
xor ebx, ebx
mov dword [ebp - 8], 0
xor edi, edi
cmp dword [ebp - 8], 0
je 0x101929f8
mov esi, dword [ebp + 0x10]
mov dword [esi + 0x40], 0
test edi, edi
je 0x1019299d
cmp edi, dword [esi + 0x44]
jbe 0x10192987
mov ecx, dword [ebp - 0xc]
lea edx, [esi + 0x3c]
push edi
add ecx, 0x24
call fcn.101891e0
add esp, 4
test eax, eax
jne 0x1019299d
mov eax, dword [esi + 0x40]
add eax, dword [esi + 0x3c]
push edi
push dword [ebp - 4]
push eax
call fcn.101ec960
add esp, 0xc
add dword [esi + 0x40], edi
mov edi, dword [ebp - 0xc]
push 0
push 0xc
lea ecx, [edi + 0x24]
call fcn.101895f0
mov esi, eax
add esp, 8
test esi, esi
je 0x10192a28
mov eax, dword [ebp - 8]
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov ebx, dword [ebp + 0x10]
mov dword [esi], eax
mov dword [ebx + 0xc], esi
lea edx, [ebx + 0x48]
mov ecx, dword [esi]
call fcn.100e3fa0
test byte [ebp + 0xc], 2
mov edx, ebx
movzx eax, al
mov ecx, edi
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 4]
mov dword [ebx + 0x28], eax
je 0x101929f1
or dword [ebx + 4], 2
call fcn.10191960
jmp 0x101929fe
call fcn.10191710
jmp 0x101929fe
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp - 0xc]
test byte [ebx + 4], 2
je 0x10192a12
mov dword [ebx + 0x18], 0x10191c00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
mov ecx, 0x10191e30
mov edx, 0x10191c80
cmp dword [eax + 0x30], 1
cmove ecx, edx
mov dword [ebx + 0x18], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret