Function at 0x1000207d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x100f0e3c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
xor ebx, ebx
push edi
inc ebx
cmp dword [eax + 4], 0
mov dword [ebp - 0x30], eax
push 0x20
jne 0x100020d5
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
pop eax
sub esp, 0x18
lea esi, [ebp - 0x1c]
push 6
pop ecx
mov edi, esp
mov byte [ebp - 5], bl
mov byte [ebp - 6], bl
mov word [ebp - 8], ax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x30]
jmp 0x1000223f
pop edx
cmp dword [eax + 4], ebx
jne 0x1000212c
mov esi, dword [eax]
cmp word [esi + 0x14], dx
jne 0x1000212c
mov edi, dword [ebp + 8]
cmp edi, dword [esi]
jne 0x100020fa
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x10], ecx
mov dword [esi + 0xc], ecx
mov al, bl
jmp 0x10002246
mov eax, dword [esi]
xor eax, edi
push 0x1f
pop edx
mov ecx, edx
js 0x10002110
mov eax, dword [esi]
dec ecx
xor eax, edi
shr eax, cl
test bl, al
je 0x10002105
mov eax, dword [ebp + 0xc]
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 0x10002244
mov eax, dword [eax]
mov ecx, eax
mov dword [ebp - 0x20], ecx
movzx edi, word [ecx + 0x14]
mov ecx, dword [ecx]
sub edx, edi
push edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
call fcn.10002051
mov ecx, dword [ebp + 8]
push edi
mov esi, eax
call fcn.10002051
mov edi, dword [ebp - 0x20]
cmp eax, esi
jne 0x100021a5
mov eax, dword [ebp + 8]
dec edx
mov esi, eax
mov ecx, edx
shr esi, cl
mov dword [ebp - 0x28], edx
and esi, ebx
mov dword [ebp - 0x2c], esi
cmp byte [esi + edi + 0x16], 0
jne 0x10002257
mov edi, dword [edi + esi*4 + 4]
imul edi, edi, 0x18
add edi, dword [ebp - 0x24]
mov ecx, eax
mov dword [ebp - 0x20], edi
movzx edi, word [edi + 0x14]
sub edx, edi
push edi
mov dword [ebp - 0x28], edx
call fcn.10002051
mov esi, eax
push edi
mov edi, dword [ebp - 0x20]
mov ecx, dword [edi]
call fcn.10002051
cmp esi, eax
je 0x10002159
movzx eax, word [edi + 0x14]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x34], eax
movzx eax, ax
dec eax
mov dword [ebp - 0x24], eax
lea ecx, [eax + edx]
mov eax, dword [edi]
mov dword [ebp - 0x2c], eax
xor eax, esi
shr eax, cl
test bl, al
jne 0x100021e1
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
dec edi
mov eax, edx
dec ecx
xor eax, esi
shr eax, cl
test bl, al
je 0x100021cc
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x24], edi
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
push 6
mov esi, edi
pop ecx
lea edi, [ebp - 0x1c]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x34]
sub ecx, eax
dec ecx
mov word [edi + 0x14], cx
lea ecx, [eax + edx]
mov edx, dword [ebp + 8]
mov esi, edx
shr esi, cl
mov word [ebp - 8], ax
mov eax, dword [ebp + 0xc]
push 2
and esi, ebx
mov dword [edi + esi*4 + 0xc], eax
mov byte [esi + edi + 0x16], bl
mov ebx, dword [ebp - 0x30]
mov eax, edi
sub eax, esi
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, [ebp - 0x1c]
push 6
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.1005b476
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b7060
leave
ret 8
mov ecx, dword [edi + esi*4 + 4]
mov dword [ebp - 0x24], ecx
cmp eax, ecx
jne 0x1000226e
mov eax, dword [ebp + 0xc]
mov dword [edi + esi*4 + 0xc], eax
jmp 0x100020f3
mov esi, dword [ebp - 0x24]
lea ecx, [edx - 1]
mov edx, dword [ebp + 8]
mov eax, esi
xor eax, edx
shr eax, cl
mov dword [ebp - 0x20], ecx
test bl, al
jne 0x10002292
mov eax, esi
dec ecx
xor eax, edx
shr eax, cl
test bl, al
je 0x10002284
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 0xc]
shr edx, cl
lea ecx, [ebp - 0xc]
and edx, ebx
mov esi, edx
shl esi, 2
sub ecx, esi
mov dword [ebp + esi - 0x10], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [edi + eax*4 + 0xc]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 5]
sub eax, edx
mov byte [eax], bl
mov eax, dword [ebp + 8]
mov byte [ebp + edx - 6], bl
mov ebx, dword [ebp - 0x30]
mov dword [ebp + esi - 0x18], eax
lea eax, [ebp - 0x14]
sub eax, esi
mov dword [ebp - 0x1c], ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x2c]
dec eax
mov byte [ecx + edi + 0x16], 0
mov word [ebp - 8], ax
mov eax, dword [ebx + 4]
mov dword [edi + ecx*4 + 4], eax
jmp 0x10002230