Function at 0x100019c6
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
push ebx
push ebp
mov edx, ecx
xor ebx, ebx
push esi
push edi
inc ebx
mov dword [esp + 0x1c], edx
cmp dword [edx + 4], 0
push 0x20
jne 0x10001a1d
mov eax, dword [esp + 0x40]
lea esi, [esp + 0x24]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
pop eax
sub esp, 0x18
mov byte [esp + 0x4f], bl
mov byte [esp + 0x4e], bl
mov word [esp + 0x4c], ax
push 6
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x10001b76
pop ebp
cmp dword [edx + 4], ebx
jne 0x10001a77
mov esi, dword [edx]
cmp word [esi + 0x14], bp
jne 0x10001a77
mov edi, dword [esp + 0x3c]
cmp edi, dword [esi]
jne 0x10001a44
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x10], ecx
mov dword [esi + 0xc], ecx
mov al, bl
jmp 0x10001b7d
mov eax, dword [esi]
xor eax, edi
push 0x1f
pop edx
mov ecx, edx
js 0x10001a5a
mov eax, dword [esi]
dec ecx
xor eax, edi
shr eax, cl
test bl, al
je 0x10001a4f
mov eax, dword [esp + 0x40]
sub edx, ecx
mov word [esi + 0x14], dx
mov edx, edi
shr edx, cl
and edx, ebx
mov dword [esi + edx*4 + 0xc], eax
mov dword [esi + edx*4 + 4], edi
jmp 0x10001b7b
mov eax, dword [edx]
mov edi, eax
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
movzx edi, word [edi + 0x14]
sub ebp, edi
push edi
mov edx, ebp
call fcn.1000199d
jmp 0x10001ad0
mov esi, dword [esp + 0x3c]
dec ebp
mov edx, esi
mov ecx, ebp
shr edx, cl
and edx, ebx
mov dword [esp + 0x18], edx
cmp byte [edx + edi + 0x16], 0
jne 0x10001b87
imul edi, dword [edi + edx*4 + 4], 0x18
mov ecx, esi
add edi, dword [esp + 0x14]
mov dword [esp + 0x10], edi
movzx edi, word [edi + 0x14]
sub ebp, edi
push edi
mov edx, ebp
call fcn.1000199d
push edi
mov edi, dword [esp + 0x14]
mov esi, eax
mov ecx, dword [edi]
call fcn.1000199d
cmp esi, eax
je 0x10001a97
movzx eax, word [edi + 0x14]
mov edx, dword [esp + 0x3c]
movzx esi, ax
dec esi
mov dword [esp + 0x14], eax
mov eax, dword [edi]
xor eax, edx
mov dword [esp + 0x18], esi
lea ecx, [esi + ebp]
shr eax, cl
test bl, al
jne 0x10001b13
mov eax, dword [edi]
dec esi
dec ecx
xor eax, edx
shr eax, cl
test bl, al
je 0x10001b03
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x18]
mov esi, edi
push 6
pop ecx
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x10]
mov esi, edx
mov ecx, dword [esp + 0x14]
sub ecx, eax
mov word [esp + 0x34], ax
dec ecx
mov word [edi + 0x14], cx
lea ecx, [eax + ebp]
mov eax, dword [esp + 0x40]
shr esi, cl
and esi, ebx
push 2
mov dword [edi + esi*4 + 0xc], eax
mov eax, edi
sub eax, esi
mov byte [esi + edi + 0x16], bl
mov ebx, dword [esp + 0x20]
mov byte [eax + 0x17], 0
mov dword [edi + esi*4 + 4], edx
mov eax, dword [ebx + 4]
pop edx
sub edx, esi
mov dword [edi + edx*4], eax
sub esp, 0x18
lea esi, [esp + 0x38]
push 6
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.1005cc6b
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8
mov eax, dword [edi + edx*4 + 4]
mov dword [esp + 0x10], eax
cmp esi, eax
jne 0x10001ba0
mov eax, dword [esp + 0x40]
mov dword [edi + edx*4 + 0xc], eax
jmp 0x10001a3d
lea ecx, [ebp - 1]
xor eax, esi
shr eax, cl
mov dword [esp + 0x14], ecx
test bl, al
jne 0x10001bc2
mov edx, dword [esp + 0x10]
mov eax, edx
dec ecx
xor eax, esi
shr eax, cl
test bl, al
je 0x10001bb3
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x40]
mov edx, esi
shr edx, cl
lea ecx, [esp + 0x30]
and edx, ebx
sub ebp, dword [esp + 0x14]
mov esi, edx
shl esi, 2
sub ecx, esi
mov dword [esp + esi + 0x2c], eax
mov eax, dword [esp + 0x18]
mov eax, dword [edi + eax*4 + 0xc]
mov dword [ecx], eax
lea eax, [esp + 0x37]
mov ecx, dword [esp + 0x10]
sub eax, edx
mov byte [eax], bl
mov eax, dword [esp + 0x3c]
mov byte [esp + edx + 0x36], bl
mov ebx, dword [esp + 0x1c]
mov dword [esp + esi + 0x24], eax
lea eax, [esp + 0x28]
sub eax, esi
mov dword [esp + 0x20], ecx
dec ebp
mov dword [eax], ecx
mov ecx, dword [esp + 0x18]
mov word [esp + 0x34], bp
mov byte [ecx + edi + 0x16], 0
mov eax, dword [ebx + 4]
mov dword [edi + ecx*4 + 4], eax
jmp 0x10001b66