Function at 0x79d694
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov edi, ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x79da96
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x21], 0
mov edx, dword [ebp - 0x20]
mov eax, edx
test eax, eax
je 0x79d6d9
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov eax, edi
test eax, eax
je 0x79d6e7
sub eax, 4
mov eax, dword [eax]
mov esi, eax
movzx eax, byte [ebp + 8]
sub al, 1
jb 0x79d706
sub al, 2
je 0x79d7cf
dec al
je 0x79da39
jmp 0x79da62
cmp esi, 0xb
jle 0x79d716
cmp byte [edi], 0
jne 0x79d716
cmp byte [edi + 1], 1
je 0x79d729
mov cl, 0x62
mov dl, 1
mov eax, dword [0x73d640]
call fcn.0073e5d8
call fcn.0040a258
mov ebx, 2
cmp esi, ebx
jle 0x79d756
cmp byte [edi + ebx], 0
je 0x79d756
cmp byte [edi + ebx], 0xff
je 0x79d751
mov cl, 0x62
mov dl, 1
mov eax, dword [0x73d640]
call fcn.0073e5d8
call fcn.0040a258
inc ebx
cmp esi, ebx
jg 0x79d732
cmp esi, ebx
jne 0x79d76d
mov cl, 0x62
mov dl, 1
mov eax, dword [0x73d640]
call fcn.0073e5d8
call fcn.0040a258
inc ebx
lea eax, [ebp - 0x2c]
push eax
movzx edx, byte [ebp + 0xc]
lea ecx, [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
call fcn.0079dff0
sub esi, ebx
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x34]
cmp esi, eax
jne 0x79da75
cmp dword [ebp - 0x30], 0
je 0x79d7ad
lea edx, [edi + ebx]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
call fcn.0073f124
test eax, eax
jne 0x79da75
add ebx, dword [ebp - 0x2c]
lea edx, [edi + ebx]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x20]
call fcn.0073f124
test eax, eax
jne 0x79da75
mov byte [ebp - 0x21], 1
jmp 0x79da75
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x50]
call fcn.007483f4
dec eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 0x10]
add eax, dword [ebp - 0x34]
add eax, 2
cmp esi, eax
jge 0x79d804
mov cl, 0x62
mov dl, 1
mov eax, dword [0x73d640]
call fcn.0073e5d8
call fcn.0040a258
cmp byte [edi + esi - 1], 0xbc
jne 0x79da75
mov eax, esi
sub eax, dword [ebp - 0x34]
dec eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x404d18]
call fcn.0040d618
add esp, 4
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x10]
mov eax, edi
call fcn.00407340
mov eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x404d18]
call fcn.0040d618
add esp, 4
mov eax, dword [ebp - 0x38]
lea eax, [edi + eax]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 8]
call fcn.00407340
mov eax, esi
add eax, eax
add eax, eax
add eax, eax
sub eax, dword [ebp - 0x3c]
dec eax
test eax, eax
jl 0x79d895
inc eax
xor ebx, ebx
mov ecx, ebx
mov edx, 0x80
shr edx, cl
mov ecx, dword [ebp - 0x10]
test byte [ecx], dl
jne 0x79da75
inc ebx
dec eax
jne 0x79d87d
lea eax, [ebp - 0x14]
mov edx, dword [0x404d18]
call fcn.0040d73c
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x18]
movzx eax, byte [eax + 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 8]
call fcn.0079cc44
mov eax, dword [ebp - 0x38]
push eax
lea eax, [ebp - 0x18]
mov ecx, 1
mov edx, dword [0x404d18]
call fcn.0040d618
add esp, 4
mov eax, dword [ebp - 0x38]
dec eax
test eax, eax
jl 0x79d8fe
inc eax
xor ebx, ebx
mov edx, dword [ebp - 0x10]
movzx edx, byte [edx + ebx]
mov ecx, dword [ebp - 0x14]
xor dl, byte [ecx + ebx]
mov ecx, dword [ebp - 0x18]
mov byte [ecx + ebx], dl
inc ebx
dec eax
jne 0x79d8e7
mov eax, esi
add eax, eax
add eax, eax
add eax, eax
sub eax, dword [ebp - 0x3c]
dec eax
test eax, eax
jl 0x79d923
inc eax
xor ebx, ebx
mov ecx, ebx
mov edx, 0x7f
shr edx, cl
mov ecx, dword [ebp - 0x18]
and byte [ecx], dl
inc ebx
dec eax
jne 0x79d911
mov eax, esi
sub eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx + 0x18]
sub eax, dword [edx + 0x10]
sub eax, 3
test eax, eax
jl 0x79d94c
inc eax
xor ebx, ebx
mov edx, dword [ebp - 0x18]
cmp byte [edx + ebx], 0
jne 0x79da75
inc ebx
dec eax
jne 0x79d93b
sub esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x18]
mov ebx, dword [eax + 0x10]
sub esi, ebx
mov eax, dword [ebp - 0x18]
cmp byte [eax + esi - 2], 1
jne 0x79da75
add ebx, dword [ebp - 0x34]
add ebx, 8
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x404d18]
call fcn.0040d618
add esp, 4
xor ecx, ecx
mov edx, 8
mov eax, dword [ebp - 4]
call fcn.00408108
mov eax, dword [ebp - 4]
lea edx, [eax + 8]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x20]
call fcn.00407340
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 0x10]
test eax, eax
jle 0x79d9c9
mov edx, dword [ebp - 0x34]
add edx, 8
mov ecx, dword [ebp - 4]
lea edx, [ecx + edx]
mov ecx, eax
mov eax, dword [ebp - 0x18]
inc eax
call fcn.00407340
lea eax, [ebp - 0xc]
mov edx, dword [0x404d18]
call fcn.0040d73c
movzx edx, byte [ebp + 0xc]
mov eax, dword [0x74d800]
call fcn.0074e348
mov dword [ebp - 0x28], eax
xor eax, eax
push ebp
push 0x79da1a
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
call fcn.00749360
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x79da21
mov eax, dword [ebp - 0x28]
call fcn.00408cac
ret
mov eax, edx
test eax, eax
je 0x79da44
sub eax, 4
mov eax, dword [eax]
cmp esi, eax
jne 0x79da5b
mov ecx, esi
mov edx, edi
mov eax, dword [ebp - 0x20]
call fcn.0073f124
test eax, eax
sete al
jmp 0x79da5d
xor eax, eax
mov byte [ebp - 0x21], al
jmp 0x79da75
mov cl, 2
mov dl, 1
mov eax, dword [0x73d640]
call fcn.0073e5d8
call fcn.0040a258
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x79da9d
lea eax, [ebp - 0x18]
mov edx, dword [0x404d18]
mov ecx, 6
call fcn.0040c588
ret