Function at 0x100078d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0xc]
sub esp, 0x24
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
cmp eax, ecx
je 0x10007b0a
test al, 7
jne 0x10007b0a
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 0x10]
cmp ecx, 1
jne 0x100079cd
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
cmp eax, 8
jb 0x100079c4
mov ebx, dword [ebp + 8]
shr eax, 3
lea esi, [ebx - 7]
mov dword [esp + 0x10], eax
jmp 0x10007930
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.10007620
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
add esp, 8
lea eax, [esp + 0x14]
mov dword [esp + 0x24], ecx
push eax
mov ecx, edi
mov dword [esp + 0x2c], edx
call fcn.100072a0
mov eax, dword [esp + 0x14]
xor eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
xor ecx, dword [esp + 0x20]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x28]
add esi, 8
mov dword [esp + 0x20], edx
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 + 0x18], 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 + 0x14], 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 0x10007930
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp ecx, 2
jne 0x10007a8b
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
cmp eax, 8
jb 0x100079c4
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 + 0x1c]
push ecx
mov ecx, edi
call fcn.10006f20
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x24], eax
xor eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], ecx
xor ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
add esi, 8
mov dword [esp + 0x20], edx
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 + 0x18], 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 + 0x14], 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 0x100079f6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 8
jb 0x100079c4
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.100072a0
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 0x10007aa1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], 0x1003e870
call fcn.10022bda
push 0x10044944
lea eax, [esp + 0x28]
push eax
call fcn.10022f6a
int3