Function at 0x6616c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7ba6e1
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1af0
call fcn.00790c80
mov eax, dword [0x831184]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0xd4], edi
mov dword [ebp - 0xd0], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2c]
push 0
mov byte [ebp - 0x34], 0
call fcn.004353e0
mov byte [ebp - 4], 2
cmp dword [esi + 0x10], 0
je 0x661790
push esi
lea ecx, [ebp - 0x84]
call fcn.0043f7c0
push 1
sub esp, 0x28
mov byte [ebp - 4], 3
mov eax, esp
lea ecx, [ebp - 0x24]
mov dword [eax + 0x24], 0
lea eax, [ebp - 0x84]
push eax
push ecx
call fcn.0043d0c0
mov cl, byte [ebp - 0x34]
add esp, 0x34
mov al, byte [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov byte [ebp - 0x34], al
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 0x24], cl
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], edx
call fcn.00434940
mov byte [ebp - 4], 4
jmp 0x661829
lea eax, [ebp - 0x1b00]
mov byte [ebp - 0x5d], 0
push eax
lea ecx, [ebp - 0x5d]
call fcn.00661b60
mov dword [ebp - 0x64], eax
xor edx, edx
lea esi, [eax + 4]
mov eax, dword [eax]
test eax, eax
je 0x6617c4
mov al, dl
lea ecx, [esi + edx]
sub al, 0x57
inc edx
xor byte [ecx], al
mov eax, dword [ebp - 0x64]
mov eax, dword [eax]
cmp edx, eax
jb 0x6617b1
push esi
lea ecx, [ebp - 0x84]
mov byte [eax + esi], 0
call fcn.0066e020
push 1
sub esp, 0x28
mov byte [ebp - 4], 5
mov eax, esp
lea ecx, [ebp - 0x24]
mov dword [eax + 0x24], 0
lea eax, [ebp - 0x84]
push eax
push ecx
call fcn.0043d0c0
mov cl, byte [ebp - 0x34]
add esp, 0x34
mov al, byte [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov byte [ebp - 0x34], al
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 0x24], cl
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], edx
call fcn.00434940
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x64], ecx
test ecx, ecx
je 0x661853
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x661853
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x64]
lock xadd dword [ecx + 8], esi
dec esi
jne 0x661853
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 2
xorps xmm0, xmm0
lea ecx, [ebp - 0x34]
push eax
movups xmmword [ebp - 0x24], xmm0
call fcn.00442070
lea eax, [ebp - 0x5c]
push eax
movups xmmword [ebp - 0x5c], xmm0
call fcn.00441ff0
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x24]
call fcn.00441f20
test al, al
je 0x661a0b
lea ecx, [ebp - 0x24]
call fcn.0045bcc0
mov esi, eax
push str.name
mov ecx, esi
call fcn.0045c640
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, eax
call fcn.0045c6e0
push dword [ebp - 0xd0]
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 7
push eax
call fcn.00405710
add esp, 8
lea ecx, [ebp - 0x4c]
cmp dword [ebp - 0x38], 0x10
cmovae ecx, dword [ebp - 0x4c]
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x6618d8
mov eax, dword [eax]
push dword [ebp - 0x3c]
push ecx
push edx
push eax
call fcn.0040ffd0
add esp, 0x10
mov byte [ebp - 0x5d], al
lea ecx, [ebp - 0x7c]
call fcn.00407a10
cmp byte [ebp - 0x5d], 0
je 0x6619d1
movaps xmm0, xmmword [0x7e5fb0]
mov ecx, 0x11
mov dword [ebp - 0x7c], ecx
xor eax, eax
movups xmmword [ebp - 0x78], xmm0
mov dword [ebp - 0x68], 0xbac0
lea ecx, [eax - 0x57]
xor byte [ebp + eax - 0x78], cl
inc eax
mov ecx, dword [ebp - 0x7c]
cmp eax, ecx
jb 0x661917
mov byte [ebp + ecx - 0x78], 0
lea eax, [ebp - 0x78]
cmp byte [esi], 1
mov dword [ebp - 0x64], eax
jne 0x661953
mov ecx, dword [esi + 8]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0045d880
mov ecx, dword [esi + 8]
mov eax, dword [eax]
cmp eax, dword [ecx]
je 0x661953
mov al, 1
jmp 0x661955
xor al, al
test al, al
je 0x6619d1
movaps xmm0, xmmword [0x7e5fb0]
mov eax, 0x11
mov dword [ebp - 0x7c], eax
xor edx, edx
movups xmmword [ebp - 0x78], xmm0
mov dword [ebp - 0x68], 0xbac0
mov al, dl
sub al, 0x57
xor byte [ebp + edx - 0x78], al
inc edx
mov eax, dword [ebp - 0x7c]
cmp edx, eax
jb 0x661975
mov byte [ebp + eax - 0x78], 0
mov ecx, esi
lea eax, [ebp - 0x78]
push eax
call fcn.0045c640
lea ecx, [ebp - 0xec]
push ecx
mov ecx, eax
call fcn.0045c6e0
push eax
push edi
mov byte [ebp - 4], 8
call fcn.004057b0
add esp, 8
lea ecx, [ebp - 0xec]
call fcn.00407a10
lea ecx, [ebp - 0x4c]
call fcn.00407a10
lea ecx, [ebp - 0x34]
call fcn.00434940
jmp 0x661b3e
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.00407a10
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
sub eax, 1
je 0x6619fe
sub eax, 1
je 0x6619f5
inc dword [ebp - 0x18]
jmp 0x661877
add dword [ebp - 0x1c], 0x10
jmp 0x661877
lea ecx, [ebp - 0x20]
call fcn.004284e0
jmp 0x661877
lea ecx, [ebp - 0x34]
call fcn.00434940
jmp 0x661a21
mov dword [ebp - 4], 0xffffffff
mov eax, 0x20
mov dword [ebp - 0xcc], eax
xor ecx, ecx
mov dword [ebp - 0xc8], 0x92009f
mov dword [ebp - 0xc4], 0x9900c8
mov dword [ebp - 0xc0], 0xcc00c8
mov dword [ebp - 0xbc], 0xd1009b
mov dword [ebp - 0xb8], 0x8700d0
mov dword [ebp - 0xb4], 0x8d0084
mov dword [ebp - 0xb0], 0x8500d3
mov dword [ebp - 0xac], 0x810081
mov dword [ebp - 0xa8], 0x8800dd
mov dword [ebp - 0xa4], 0x8c0082
mov dword [ebp - 0xa0], 0x8800db
mov dword [ebp - 0x9c], 0xa6008a
mov dword [ebp - 0x98], 0xf100f0
mov dword [ebp - 0x94], 0xa200fb
mov dword [ebp - 0x90], 0xf000f2
mov dword [ebp - 0x8c], 0xfe00f1
mov dword [ebp - 0x88], 0xc9
nop
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0xc8], ax
inc ecx
mov eax, dword [ebp - 0xcc]
cmp ecx, eax
jb 0x661ae0
xor ecx, ecx
mov word [ebp + eax*2 - 0xc8], cx
xor eax, eax
mov dword [edi + 0x10], ecx
lea ecx, [ebp - 0xc8]
mov dword [edi + 0x14], 7
lea edx, [ecx + 2]
mov word [edi], ax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x661b20
sub ecx, edx
lea eax, [ebp - 0xc8]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.004044f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret