Function at 0x66040f
Capabilities:
Encode data using xor

Disassembly:
push 0x68
mov eax, 0x7b4148
call fcn.00736d13
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [0x998768], 0x10
mov eax, 0x998754
push ebx
cmovae eax, dword [0x998754]
mov dword [0x998764], ebx
push ecx
lea ecx, [ebp - 0x40]
mov byte [eax], bl
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x40], bl
call fcn.00660961
cmp dword [ebp - 0x2c], 0x10
lea edi, [ebp - 0x40]
push 6
cmovae edi, dword [ebp - 0x40]
xor eax, eax
pop ecx
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x30], 0x19
cmovae eax, dword [ebp - 0x40]
mov byte [eax + 0x19], bl
mov dword [ebp - 4], ebx
lea ebx, [esi + 0x10]
mov eax, dword [ebx]
test eax, eax
je 0x660576
add eax, eax
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x74], eax
jb 0x66049d
mov esi, dword [esi]
xor ecx, ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], ecx
push eax
mov dword [ebp - 0x60], ecx
mov byte [ebp - 0x70], cl
lea ecx, [ebp - 0x70]
push esi
mov dword [ebp - 0x5c], 0xf
call fcn.00482805
mov byte [ebp - 4], 1
xor eax, eax
cmp dword [ebp - 0x5c], 0x10
lea edi, [ebp - 0x27]
mov byte [ebp - 0x28], 0
lea ecx, [ebp - 0x28]
stosd dword es:[edi], eax
push ecx
push dword [ebp - 0x74]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
call fcn.004045f0
xor eax, eax
lea ecx, [ebp - 0x58]
add esp, 0xc
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x58], al
lea eax, [ebp - 0x28]
push 0x14
push eax
mov dword [ebp - 0x44], 0xf
call fcn.00482805
mov byte [ebp - 4], 2
lea edi, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x58]
mov eax, dword [ebp - 0x48]
lea esi, [ebp - 0x58]
cmovae edi, dword [ebp - 0x40]
cmp dword [ebp - 0x44], 0x10
cmovae ecx, dword [ebp - 0x58]
add eax, ecx
cmp dword [ebp - 0x44], 0x10
mov edx, eax
cmovae esi, dword [ebp - 0x58]
xor ecx, ecx
and dword [ebp - 0x74], ecx
sub edx, esi
cmp esi, eax
cmova edx, dword [ebp - 0x74]
test edx, edx
je 0x660556
mov al, byte [ecx + esi]
mov byte [ecx + edi], al
inc ecx
cmp ecx, edx
jne 0x66054b
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
push 0
push 1
call fcn.0048287e
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
push 0
push 1
call fcn.0048287e
push 0x18
xor esi, esi
pop ecx
cmp dword [ebp - 0x2c], 0x10
lea edx, [ebp - 0x40]
mov eax, dword [ebp + 0xc]
cmovae edx, dword [ebp - 0x40]
sar eax, cl
sub ecx, 8
mov byte [edx + esi + 0x14], al
inc esi
cmp esi, 4
jb 0x66057b
cmp dword [ebx], 0
jne 0x6605a3
cmp dword [ebp + 0xc], 0
je 0x6605e3
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x40]
lea esi, [ebp - 0x40]
cmp ecx, 0x10
cmovae eax, edx
cmovae esi, edx
lea edi, [eax + 0x18]
test edi, edi
je 0x6605e9
mov byte [edi], 0
test esi, esi
je 0x6605e3
xor al, al
xor edx, edx
movzx ecx, byte [esi + edx]
movzx eax, al
xor ecx, eax
inc edx
mov al, byte [ecx + 0x8b96f0]
cmp edx, 0x18
jl 0x6605ca
xor al, 0x55
mov byte [edi], al
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
lea eax, [ebp - 0x40]
push ecx
cmovae eax, edx
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00660888
mov byte [ebp - 4], 3
mov ecx, 0x998754
push eax
call fcn.00485caf
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
push 0
push 1
call fcn.0048287e
cmp dword [0x998764], 0
setne bl
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00660916
mov al, bl
call fcn.00736cc2
ret 0xc