Function at 0x100078a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push dword [edi + 0xd4]
push dword [edi + 0xd0]
push 0
push esi
call fcn.100080b0
add esp, 8
push edx
push eax
call fcn.10007eb0
mov ebx, edx
mov dword [ebp - 8], eax
push 8
push esi
mov dword [ebp - 0x10], ebx
call fcn.100080b0
mov ecx, dword [edi + 0xd8]
mov esi, edx
mov dword [ebp - 4], eax
not ecx
mov eax, dword [edi + 0xdc]
add esp, 0x18
mov edi, dword [ebp + 0xc]
not eax
mov edx, dword [ebp - 4]
add edx, ecx
adc esi, eax
add edx, 1
mov ecx, edx
mov byte [edi + 7], dl
adc esi, 0
mov dword [ebp - 4], edx
mov eax, esi
shrd ecx, eax, 8
shr eax, 8
mov byte [edi + 6], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [edi + 5], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [edi + 4], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [edi + 3], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [edi + 2], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [edi + 1], cl
shrd ecx, eax, 8
shr eax, 8
mov eax, dword [ebp - 8]
mov byte [edi], cl
mov ecx, eax
mov byte [edi + 0xf], al
mov eax, ebx
shrd ecx, eax, 8
shr eax, 8
mov byte [edi + 0xe], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [edi + 0xd], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [edi + 0xc], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [edi + 0xb], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [edi + 0xa], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [edi + 9], cl
shrd ecx, eax, 8
mov byte [edi + 8], cl
mov ecx, 0xc
shr eax, 8
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], ecx
nop
xor eax, edx
movzx edi, cl
xor ebx, esi
mov dword [ebp - 0x18], eax
push ebx
push eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x1c], ebx
push dword [eax + edi*8 + 0x14]
push dword [eax + edi*8 + 0x10]
call fcn.10007cc0
mov ecx, dword [ebp + 0x10]
mov ebx, eax
mov eax, edx
mov dword [ebp - 0x20], eax
push dword [ecx + edi*8 + 0x1c]
push dword [ecx + edi*8 + 0x18]
mov edi, ebx
add edi, dword [ebp - 0x18]
adc eax, dword [ebp - 0x1c]
push eax
push edi
call fcn.10007cc0
mov ecx, dword [ebp - 0xc]
mov edi, eax
mov eax, dword [ebp + 0x10]
add edi, ebx
mov ebx, edx
mov dword [ebp - 0x1c], edx
adc ebx, dword [ebp - 0x20]
push dword [eax + ecx*8 + 4]
push dword [eax + ecx*8]
mov eax, ebx
mov ecx, edi
xor ecx, dword [ebp - 4]
xor eax, esi
push eax
push ecx
call fcn.10007eb0
mov ecx, dword [ebp + 0x10]
mov esi, edx
xor ebx, dword [ebp - 0x10]
add esp, 0x30
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ecx + eax*8 + 8]
mov ecx, dword [ecx + eax*8 + 0xc]
not edx
mov eax, dword [ebp - 8]
not ecx
xor eax, edi
add eax, edx
mov edx, dword [ebp - 4]
adc ebx, ecx
mov ecx, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 8], eax
adc ebx, 0
dec ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ecx
cmp ecx, 1
jge 0x100079b0
mov ecx, dword [ebp + 0xc]
mov eax, edx
pop edi
mov byte [ecx + 7], al
shrd eax, esi, 8
mov byte [ecx + 6], al
shr esi, 8
shrd eax, esi, 8
mov byte [ecx + 5], al
shr esi, 8
shrd eax, esi, 8
mov byte [ecx + 4], al
shr esi, 8
shrd eax, esi, 8
mov byte [ecx + 3], al
shr esi, 8
shrd eax, esi, 8
mov byte [ecx + 2], al
shr esi, 8
shrd eax, esi, 8
mov byte [ecx + 1], al
shr esi, 8
shrd eax, esi, 8
mov byte [ecx], al
mov eax, dword [ebp - 8]
mov byte [ecx + 0xf], al
shrd eax, ebx, 8
shr esi, 8
shr ebx, 8
mov byte [ecx + 0xe], al
shrd eax, ebx, 8
pop esi
shr ebx, 8
mov byte [ecx + 0xd], al
shrd eax, ebx, 8
shr ebx, 8
mov byte [ecx + 0xc], al
shrd eax, ebx, 8
shr ebx, 8
mov byte [ecx + 0xb], al
shrd eax, ebx, 8
shr ebx, 8
mov byte [ecx + 0xa], al
shrd eax, ebx, 8
shr ebx, 8
mov byte [ecx + 9], al
shrd eax, ebx, 8
shr ebx, 8
mov byte [ecx + 8], al
pop ebx
mov esp, ebp
pop ebp
ret