Function at 0x100077e0
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 0x100079f0
test al, 7
jne 0x100079f0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 0x10]
cmp ecx, 1
jne 0x100078c1
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
cmp eax, 8
jb 0x100078b8
mov ebx, dword [ebp + 8]
shr eax, 3
lea esi, [ebx - 7]
mov dword [esp + 0x10], eax
jmp 0x10007840
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.10007770
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.10007070
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 0x10007840
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp ecx, 2
jne 0x10007971
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
cmp eax, 8
jb 0x100078b8
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.10007070
lea ecx, [esp + 0x14]
push ecx
push ebx
call fcn.10007770
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 0x100078f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 8
jb 0x100078b8
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.10007770
add esp, 8
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call fcn.10007070
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 0x10007987
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], 0x1003e850
call fcn.10022d1a
push 0x10044924
lea eax, [esp + 0x20]
push eax
call fcn.100230aa
int3