Function at 0x797438
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 0x79765b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
test eax, eax
je 0x797471
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 [0x404d18]
call fcn.0040d618
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 [0x737c0c]
call fcn.00739cac
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 8]
mov ecx, 1
mov edx, dword [0x404d18]
call fcn.0040d618
add esp, 4
lea eax, [ebp - 0xc]
mov edx, dword [0x404d18]
call fcn.0040d73c
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [0x735d34]
call fcn.00738400
push eax
lea eax, [ebp - 0x2c]
mov edx, ebx
call fcn.0040bcb0
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 [0x74d800]
call fcn.0074e3fc
mov dword [ebp - 0x1c], 1
cmp dword [ebp + 0x10], 0
jle 0x79760e
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, dword [ebp + 0x10]
jge 0x797535
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov dword [ebp - 0x14], eax
jmp 0x79753b
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 [0x737c0c]
call fcn.00739cac
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jle 0x7975f5
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 [0x404d18]
call fcn.0040d780
mov esi, dword [ebp - 0x14]
dec esi
test esi, esi
jl 0x7975f0
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 0x7975d8
dec dword [ebp - 0x24]
jne 0x7975ae
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 0x79751b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x797662
lea eax, [ebp - 0x30]
mov edx, dword [0x404d18]
call fcn.0040d73c
lea eax, [ebp - 0x2c]
call fcn.0040ac68
lea eax, [ebp - 0x28]
mov edx, dword [0x404d18]
call fcn.0040d73c
lea eax, [ebp - 0xc]
mov edx, dword [0x404d18]
mov ecx, 2
call fcn.0040c588
lea eax, [ebp - 4]
call fcn.0040f044
ret