Function at 0x100079b4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
push edi
push ebx
call fcn.1000476f
pop ecx
test eax, eax
jne 0x10007c4c
push dword [ebp + 0x18]
call fcn.10007587
pop ecx
test eax, eax
jne 0x10007c4c
imul eax, ebx, 0x68
push 0
pop ebx
mov dword [ebp - 4], eax
mov ecx, dword [eax + 0x10017df8]
mov eax, dword [ebp + 0x20]
dec eax
mov dword [ebp - 8], ecx
test al, 7
mov dword [ebp + 0x20], eax
setne bl
shr eax, 3
add ebx, eax
mov eax, dword [ebp + 0x10]
cmp eax, ebx
ja 0x10007c49
add eax, 2
add eax, ecx
cmp ebx, eax
jb 0x10007c49
push ebx
call sub.msvcrt.dll_malloc
push ebx
mov edi, eax
call sub.msvcrt.dll_malloc
push ebx
mov dword [ebp - 0xc], eax
call sub.msvcrt.dll_malloc
mov esi, eax
push ebx
mov dword [ebp - 0x14], esi
call sub.msvcrt.dll_malloc
add esp, 0x10
mov dword [ebp - 0x10], eax
test edi, edi
je 0x10007c1e
cmp dword [ebp - 0xc], 0
je 0x10007c17
test esi, esi
je 0x10007c17
test eax, eax
je 0x10007c17
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10007a8e
imul eax, dword [ebp + 0x18], 0x28
push dword [ebp + 0x14]
push ecx
push esi
call dword [eax + 0x10018b04]
add esp, 0xc
cmp eax, dword [ebp + 0x10]
je 0x10007a8e
push 9
pop esi
jmp 0x10007bf2
lea eax, [ebp - 0x1b8]
push eax
mov eax, dword [ebp - 4]
call dword [eax + 0x10017e44]
mov esi, eax
pop ecx
test esi, esi
jne 0x10007bf2
push 8
push edi
call fcn.10004794
push 8
lea eax, [ebp - 0x1b8]
push edi
push eax
mov eax, dword [ebp - 4]
call dword [eax + 0x10017e48]
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x10007bf2
push dword [ebp + 0xc]
lea eax, [ebp - 0x1b8]
push dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call dword [eax + 0x10017e48]
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10007bf2
push dword [ebp + 0x10]
lea eax, [ebp - 0x1b8]
push dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
call dword [eax + 0x10017e48]
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10007bf2
push dword [ebp - 0x10]
lea eax, [ebp - 0x1b8]
push eax
mov eax, dword [ebp - 4]
call dword [eax + 0x10017e4c]
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10007bf2
mov esi, ebx
sub esi, dword [ebp - 8]
mov eax, esi
sub eax, dword [ebp + 0x10]
sub eax, 2
push eax
push 0
push edi
call sub.msvcrt.dll_memset
mov ecx, dword [ebp + 0x10]
mov eax, edi
sub eax, dword [ebp - 8]
sub eax, ecx
push ecx
push dword [ebp - 0x14]
mov byte [eax + ebx - 2], 1
dec eax
add eax, ebx
push eax
call sub.msvcrt.dll_memcpy
lea eax, [esi - 1]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 4], eax
push dword [ebp - 8]
push dword [ebp - 0x10]
push dword [ebp + 0x1c]
call fcn.100096e6
mov esi, eax
add esp, 0x2c
test esi, esi
jne 0x10007bf2
mov edx, dword [ebp - 4]
test edx, edx
je 0x10007ba5
mov esi, dword [ebp - 0xc]
mov ecx, edi
sub esi, edi
mov al, byte [ecx + esi]
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x10007b97
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x28]
cmp dword [eax], ebx
jae 0x10007bb1
push 6
pop esi
jmp 0x10007bf0
mov esi, dword [ebp + 0x24]
push edx
push edi
push esi
call sub.msvcrt.dll_memcpy
push dword [ebp - 8]
mov eax, dword [ebp - 4]
push dword [ebp - 0x10]
add eax, esi
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 4]
mov ecx, ebx
add eax, dword [ebp - 8]
add esp, 0x18
shl ecx, 3
sub ecx, dword [ebp + 0x20]
mov byte [eax + esi], 0xbc
mov eax, 0xff
sar eax, cl
and byte [esi], al
xor esi, esi
mov eax, dword [ebp + 0x28]
mov dword [eax], ebx
push dword [ebp - 0x10]
call sub.msvcrt.dll_free
push dword [ebp - 0x14]
call sub.msvcrt.dll_free
push dword [ebp - 0xc]
call sub.msvcrt.dll_free
push edi
call sub.msvcrt.dll_free
add esp, 0x10
mov eax, esi
jmp 0x10007c4c
push edi
call sub.msvcrt.dll_free
pop ecx
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x10007c2c
push eax
call sub.msvcrt.dll_free
pop ecx
test esi, esi
je 0x10007c37
push esi
call sub.msvcrt.dll_free
pop ecx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10007c45
push eax
call sub.msvcrt.dll_free
pop ecx
push 0xd
jmp 0x10007c4b
push 0x16
pop eax
pop edi
pop esi
pop ebx
leave
ret