Function at 0x7716f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x771917
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
test eax, eax
je 0x77172d
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x4048f0]
call fcn.0040c2e0
add esp, 4
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 0x10]
push eax
xor ecx, ecx
mov edx, esi
mov eax, dword [0x665080]
call fcn.00667768
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 8]
mov ecx, 1
mov edx, dword [0x4048f0]
call fcn.0040c2e0
add esp, 4
lea eax, [ebp - 0xc]
mov edx, dword [0x4048f0]
call fcn.0040c404
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [0x663658]
call fcn.00665eb4
push eax
lea eax, [ebp - 0x2c]
mov edx, ebx
call fcn.0040ab24
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
pop eax
mov ebx, dword [eax]
call dword [ebx + 8]
mov ecx, dword [ebp - 0x28]
xor edx, edx
mov eax, dword [0x769320]
call fcn.00769dec
mov dword [ebp - 0x1c], 1
cmp dword [ebp + 0x10], 0
jle 0x7718ca
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, dword [ebp + 0x10]
jge 0x7717f1
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov dword [ebp - 0x14], eax
jmp 0x7717f7
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
shr ecx, 0x18
mov byte [eax + edx], cl
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
shr ecx, 0x10
mov byte [eax + edx + 1], cl
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
shr ecx, 8
mov byte [eax + edx + 2], cl
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
movzx ecx, byte [ebp - 0x1c]
mov byte [eax + edx + 3], cl
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [0x665080]
call fcn.00667768
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jle 0x7718b1
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x30]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0xc]
mov ecx, dword [0x4048f0]
call fcn.0040c448
mov esi, dword [ebp - 0x14]
dec esi
test esi, esi
jl 0x7718ac
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x18]
add eax, ebx
mov edx, dword [ebp + 8]
mov edx, dword [edx]
mov ecx, dword [ebp - 0xc]
movzx ecx, byte [ecx + ebx]
xor byte [edx + eax], cl
inc ebx
dec esi
jne 0x771894
dec dword [ebp - 0x24]
jne 0x77186a
mov eax, dword [ebp - 0x14]
sub dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x18], eax
inc dword [ebp - 0x1c]
cmp dword [ebp + 0x10], 0
jg 0x7717d7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x77191e
lea eax, [ebp - 0x30]
mov edx, dword [0x4048f0]
call fcn.0040c404
lea eax, [ebp - 0x2c]
call fcn.00409c54
lea eax, [ebp - 0x28]
mov edx, dword [0x4048f0]
call fcn.0040c404
lea eax, [ebp - 0xc]
mov edx, dword [0x4048f0]
mov ecx, 2
call fcn.0040b50c
lea eax, [ebp - 4]
call fcn.0040dcfc
ret