Function at 0x10007690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0xc]
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
cmp eax, ecx
je 0x100078a0
test al, 7
jne 0x100078a0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 0x10]
cmp ecx, 1
jne 0x10007771
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
cmp eax, 8
jb 0x10007768
mov ebx, dword [ebp + 8]
shr eax, 3
lea esi, [ebx - 7]
mov dword [esp + 0x10], eax
jmp 0x100076f0
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.10007620
mov ecx, dword [esp + 0x24]
xor dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x28]
xor dword [esp + 0x20], edx
add esp, 8
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.10006f20
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add esi, 8
mov byte [esi + 6], cl
mov edx, ecx
shr edx, 8
mov byte [esi + 5], dl
mov edx, ecx
shr edx, 0x10
mov byte [esi + 4], dl
mov dword [esp + 0x20], ecx
shr ecx, 0x18
mov byte [esi + 3], cl
mov ecx, eax
mov byte [esi + 2], al
mov edx, eax
shr ecx, 8
shr edx, 0x10
mov dword [esp + 0x1c], eax
mov byte [esi + 1], cl
shr eax, 0x18
add ebx, 8
sub dword [esp + 0x10], 1
mov byte [esi], dl
mov byte [esi - 1], al
jne 0x100076f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp ecx, 2
jne 0x10007821
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
cmp eax, 8
jb 0x10007768
mov ebx, dword [ebp + 8]
shr eax, 3
lea esi, [ebx - 7]
mov dword [esp + 0x10], eax
lea ebx, [ebx]
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call fcn.10006f20
lea ecx, [esp + 0x14]
push ecx
push ebx
call fcn.10007620
mov ecx, dword [esp + 0x20]
xor ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
xor eax, dword [esp + 0x24]
add esi, 8
mov byte [esi + 6], cl
mov edx, ecx
shr edx, 8
mov byte [esi + 5], dl
mov edx, ecx
shr edx, 0x10
mov byte [esi + 4], dl
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], ecx
shr ecx, 0x18
mov byte [esi + 3], cl
mov ecx, eax
mov byte [esi + 2], al
mov edx, eax
shr ecx, 8
shr edx, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov byte [esi + 1], cl
shr eax, 0x18
add esp, 8
add ebx, 8
sub dword [esp + 0x10], 1
mov byte [esi], dl
mov byte [esi - 1], al
jne 0x100077a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 8
jb 0x10007768
mov ebx, dword [ebp + 8]
shr eax, 3
lea esi, [ebx - 7]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.10007620
add esp, 8
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call fcn.10006f20
mov eax, dword [esp + 0x18]
add esi, 8
mov byte [esi + 6], al
mov edx, eax
mov ecx, eax
shr edx, 8
mov byte [esi + 5], dl
shr ecx, 0x10
mov byte [esi + 4], cl
shr eax, 0x18
mov byte [esi + 3], al
mov eax, dword [esp + 0x14]
mov edx, eax
mov byte [esi + 2], al
mov ecx, eax
shr edx, 8
shr ecx, 0x10
mov byte [esi + 1], dl
shr eax, 0x18
add ebx, 8
sub dword [esp + 0x10], 1
mov byte [esi], cl
mov byte [esi - 1], al
jne 0x10007837
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0x1003e870
call fcn.10022bda
push 0x10044944
lea eax, [esp + 0x20]
push eax
call fcn.10022f6a
int3