Function at 0x10001ea0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100ebb10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov eax, dword [ebx + 8]
push esi
push edi
test eax, eax
jne 0x10001ef3
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], 0x1010020
call fcn.100248a0
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
lea ecx, [eax + eax*2]
lea eax, [edx + ecx*8]
mov ecx, dword [ebp - 8]
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], ecx
jmp 0x1000215a
mov ecx, 0x20
cmp eax, 1
jne 0x10001f65
mov edx, dword [ebx + 0xc]
cmp word [edx + 0x14], cx
jne 0x10001f65
mov eax, dword [edx]
mov esi, dword [ebp + 8]
cmp esi, eax
jne 0x10001f2d
mov eax, dword [ebp + 0xc]
pop edi
pop esi
mov dword [edx + 0x10], eax
mov dword [edx + 0xc], eax
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002c64e
mov esp, ebp
pop ebp
ret 8
xor eax, esi
mov ecx, 0x1f
js 0x10001f43
mov edi, dword [edx]
mov eax, edi
dec ecx
xor eax, esi
shr eax, cl
test al, 1
je 0x10001f38
mov eax, 0x1f
sub eax, ecx
mov word [edx + 0x14], ax
mov eax, esi
shr eax, cl
mov ecx, dword [ebp + 0xc]
and eax, 1
mov dword [edx + eax*4 + 0xc], ecx
mov dword [edx + eax*4 + 4], esi
jmp 0x1000215d
mov edi, dword [ebx + 0xc]
movzx esi, word [edi + 0x14]
mov edx, dword [edi]
sub ecx, esi
mov dword [ebp - 0x24], ecx
call fcn.10001cf0
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x20], eax
call fcn.10001cf0
cmp eax, dword [ebp - 0x20]
jne 0x10001fdb
jmp 0x10001f90
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp + 8]
dec ecx
mov esi, eax
shr esi, cl
mov dword [ebp - 0x24], ecx
and esi, 1
cmp byte [esi + edi + 0x16], 0
jne 0x1000207b
mov edi, dword [edi + esi*4 + 4]
mov esi, dword [ebx + 0xc]
lea edx, [edi + edi*2]
lea edi, [esi + edx*8]
movzx esi, word [edi + 0x14]
sub ecx, esi
mov edx, eax
mov dword [ebp - 0x24], ecx
call fcn.10001cf0
mov ecx, dword [ebp - 0x24]
mov edx, dword [edi]
mov dword [ebp - 0x20], eax
call fcn.10001cf0
cmp dword [ebp - 0x20], eax
je 0x10001f90
movzx eax, word [edi + 0x14]
mov ecx, dword [ebp - 0x24]
lea esi, [eax - 1]
lea edx, [esi + ecx]
mov ecx, edx
mov edx, dword [edi]
xor edx, dword [ebp + 8]
shr edx, cl
test dl, 1
jne 0x10002013
mov dword [ebp - 0x20], ecx
lea esp, [esp]
dec dword [ebp - 0x20]
mov edx, dword [edi]
xor edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
shr edx, cl
dec esi
test dl, 1
je 0x10002000
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [edi + 8]
sub eax, esi
mov dword [ebp - 0x18], edx
mov edx, dword [edi + 0xc]
dec eax
mov dword [ebp - 0x14], ecx
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x10], edx
mov edx, dword [edi + 0x14]
mov word [edi + 0x14], ax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 8], edx
mov edx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
lea ecx, [esi + eax]
mov eax, edx
shr eax, cl
mov ecx, dword [ebp + 0xc]
mov word [ebp - 8], si
and eax, 1
mov dword [edi + eax*4 + 0xc], ecx
mov byte [eax + edi + 0x16], 1
mov ecx, edi
sub ecx, eax
mov byte [ecx + 0x17], 0
mov dword [edi + eax*4 + 4], edx
mov edx, 2
sub edx, eax
mov eax, dword [ebx + 8]
mov dword [edi + edx*4], eax
jmp 0x10002124
mov edx, dword [edi + esi*4 + 4]
cmp eax, edx
jne 0x1000209f
mov eax, dword [ebp + 0xc]
mov dword [edi + esi*4 + 0xc], eax
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002c64e
mov esp, ebp
pop ebp
ret 8
dec ecx
xor edx, eax
shr edx, cl
mov dword [ebp - 0x20], ecx
test dl, 1
jne 0x100020c4
lea esp, [esp]
mov ecx, dword [ebp - 0x20]
mov edx, dword [edi + esi*4 + 4]
dec ecx
xor edx, eax
shr edx, cl
mov dword [ebp - 0x20], ecx
test dl, 1
je 0x100020b0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp + 0xc]
shr eax, cl
and eax, 1
lea ecx, [eax*4]
mov dword [ebp + ecx - 0x10], edx
mov dword [ebp - 0x28], ecx
lea edx, [ebp - 0xc]
sub edx, ecx
mov ecx, dword [edi + esi*4 + 0xc]
mov dword [edx], ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 5]
sub edx, eax
mov byte [edx], 1
mov byte [ebp + eax - 6], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp + eax - 0x18], ecx
mov ecx, dword [edi + esi*4 + 4]
lea edx, [ebp - 0x14]
sub edx, eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], ecx
dec eax
mov dword [edx], ecx
mov byte [esi + edi + 0x16], 0
mov word [ebp - 8], ax
mov eax, dword [ebx + 8]
mov dword [edi + esi*4 + 4], eax
mov ecx, ebx
call fcn.100248a0
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
lea ecx, [eax + eax*2]
lea eax, [edx + ecx*8]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 8]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
inc dword [ebx + 8]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.1002c64e
mov esp, ebp
pop ebp
ret 8