Function at 0x646610
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7b7e5b
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x831184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xd0], esi
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x4c]
mov edi, dword [ebp + 8]
mov dword [ebp - 0xdc], edi
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xe4], 0
mov eax, dword [eax]
add eax, 0x64
push eax
call fcn.00404120
mov dword [ebp - 4], 0
lea eax, [ebp - 0x4c]
cmp dword [ebp - 0x38], 8
push dword [ebp - 0x3c]
cmovae eax, dword [ebp - 0x4c]
add esi, 8
push eax
mov ecx, esi
call fcn.004044f0
lea ecx, [ebp - 0x4c]
call fcn.00404490
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
push esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.00403b80
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 3
push eax
mov dword [ebp - 0xe4], 5
call fcn.00418540
add esp, 4
test al, al
je 0x646701
mov eax, dword [ebp - 0xd4]
mov byte [ebp - 0xa5], 1
mov eax, dword [eax]
cmp dword [eax + 0xa4], 4
je 0x646708
mov byte [ebp - 0xa5], 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.00404220
lea ecx, [ebp - 0x34]
call fcn.00404490
cmp byte [ebp - 0xa5], 0
je 0x64687a
mov eax, 0xe
mov dword [ebp - 0xc8], 0xc700f5
mov dword [ebp - 0xcc], eax
xor ecx, ecx
mov dword [ebp - 0xc4], 0xc200ca
mov dword [ebp - 0xc0], 0xc800c4
mov dword [ebp - 0xbc], 0xc300ca
mov dword [ebp - 0xb8], 0x9c00c5
mov dword [ebp - 0xb4], 0xc700d9
mov dword [ebp - 0xb0], 0xd800da
mov dword [ebp - 0xac], 0xb7
nop dword [eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0xc8], ax
inc ecx
mov eax, dword [ebp - 0xcc]
cmp ecx, eax
jb 0x646790
xor ecx, ecx
mov word [ebp + eax*2 - 0xc8], cx
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x4c]
push esi
push eax
call fcn.00421b40
add esp, 0xc
mov dword [ebp - 4], 4
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x34]
call fcn.00403b80
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 7
push eax
call fcn.00418540
add esp, 4
mov byte [ebp - 0xa5], al
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.00404220
lea ecx, [ebp - 0x34]
call fcn.00404490
cmp byte [ebp - 0xa5], 0
lea ecx, [ebp - 0x4c]
je 0x64686e
movups xmm0, xmmword [ebp - 0x4c]
mov dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
mov word [ebp - 0x4c], ax
movq xmm0, qword [ebp - 0x3c]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
call fcn.00404490
jmp 0x646f1a
mov dword [ebp - 4], 0xffffffff
call fcn.00404490
mov eax, dword [ebp - 0xd0]
lea ecx, [ebp - 0x4c]
mov eax, dword [eax]
add eax, 0x9c
push eax
call fcn.00404120
push 0x7cf384
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], 8
push eax
lea eax, [ebp - 0xc0]
push eax
call fcn.00408060
add esp, 0xc
mov byte [ebp - 4], 9
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x6468bd
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
mov ecx, eax
call fcn.00407c50
xor ecx, ecx
mov dword [ebp - 0xd8], 0x1c
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x5c], xmm0
movups xmmword [ebp - 0x74], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x74]
movq qword [ebp - 0xe0], xmm0
movq qword [ebp - 0x64], xmm0
cmp esi, eax
je 0x646938
mov ecx, esi
call fcn.00404490
movups xmm0, xmmword [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 7
movups xmmword [esi], xmm0
mov word [ebp - 0x74], ax
movq xmm0, qword [ebp - 0xe0]
movq qword [esi + 0x10], xmm0
lea ecx, [ebp - 0x74]
call fcn.00404490
lea ecx, [ebp - 0xc0]
call fcn.00404490
lea ecx, [ebp - 0x4c]
call fcn.00404490
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
push esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xb
call fcn.00403b80
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 0xc
push eax
call fcn.00418540
add esp, 4
mov byte [ebp - 0xa5], al
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.00404220
lea ecx, [ebp - 0x34]
call fcn.00404490
cmp byte [ebp - 0xa5], 0
je 0x646f07
mov eax, 0xe
mov dword [ebp - 0xc8], 0xc700f5
mov dword [ebp - 0xcc], eax
xor ecx, ecx
mov dword [ebp - 0xc4], 0xc200ca
mov dword [ebp - 0xc0], 0xc800c4
mov dword [ebp - 0xbc], 0xc300ca
mov dword [ebp - 0xb8], 0x9c00c5
mov dword [ebp - 0xb4], 0xc700d9
mov dword [ebp - 0xb0], 0xd800da
mov dword [ebp - 0xac], 0xb7
nop
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0xc8], ax
inc ecx
mov eax, dword [ebp - 0xcc]
cmp ecx, eax
jb 0x646a20
xor ecx, ecx
mov word [ebp + eax*2 - 0xc8], cx
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0xa4]
push esi
push eax
call fcn.00421b40
add esp, 0xc
mov dword [ebp - 4], 0xd
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 0xf
push eax
lea ecx, [ebp - 0x34]
call fcn.00403b80
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0x10
push eax
call fcn.00418540
add esp, 4
mov byte [ebp - 0xa5], al
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xd
call fcn.00404220
lea ecx, [ebp - 0x34]
call fcn.00404490
xor eax, eax
cmp byte [ebp - 0xa5], al
je 0x646b09
movups xmm0, xmmword [ebp - 0xa4]
mov dword [edi + 0x10], eax
lea ecx, [ebp - 0xa4]
mov dword [edi + 0x14], eax
movups xmmword [edi], xmm0
mov word [ebp - 0xa4], ax
movq xmm0, qword [ebp - 0x94]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], 7
call fcn.00404490
jmp 0x646f1a
xorps xmm0, xmm0
mov dword [ebp - 0x50], 0
movq qword [ebp - 0x58], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x12
call fcn.00403b80
lea edx, [ebp - 0x34]
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x58]
call fcn.00417ac0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x15
call fcn.00404220
lea ecx, [ebp - 0x34]
call fcn.00404490
mov ecx, dword [ebp - 0x54]
mov eax, 0x38e38e39
sub ecx, dword [ebp - 0x58]
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x646bad
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [ebp - 0x58]
call fcn.0041b0e0
lea ecx, [ebp - 0xa4]
call fcn.00404490
jmp 0x646f1a
push 0x7cf388
lea ecx, [ebp - 0x8c]
call fcn.004040b0
mov byte [ebp - 4], 0x16
mov esi, dword [ebp - 0x58]
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0xd0], esi
mov dword [ebp - 0xdc], eax
cmp esi, eax
je 0x646d21
nop dword [eax + eax]
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push esi
lea ecx, [ebp - 0x34]
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
call fcn.00404120
lea eax, [esi + 0x18]
mov byte [ebp - 4], 0x17
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403f00
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 0x18
push eax
lea ecx, [ebp - 0x34]
call fcn.00403640
mov esi, eax
mov eax, dword [ebp - 0xd4]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x19
mov eax, dword [eax]
add eax, 0xac
push eax
call fcn.00404120
or dword [ebp - 0xd8], 0x20
lea eax, [ebp - 0x4c]
cmp dword [ebp - 0x38], 8
mov edx, dword [esi + 0x10]
cmovae eax, dword [ebp - 0x4c]
cmp dword [esi + 0x14], 8
jb 0x646c57
mov esi, dword [esi]
push dword [ebp - 0x3c]
mov ecx, esi
push eax
push 0
call fcn.00408350
add esp, 0xc
lea ecx, [ebp - 0x4c]
mov esi, eax
call fcn.00404490
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 0x18
call fcn.00404490
cmp esi, 0xffffffff
jne 0x646cb6
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x16
call fcn.00404220
lea ecx, [ebp - 0x34]
call fcn.00404490
mov esi, dword [ebp - 0xd0]
add esi, 0x24
mov dword [ebp - 0xd0], esi
cmp esi, dword [ebp - 0xdc]
jne 0x646be0
jmp 0x646d1e
lea eax, [ebp - 0xc0]
push eax
lea ecx, [ebp - 0x34]
call fcn.004033d0
mov esi, eax
lea eax, [ebp - 0x8c]
cmp eax, esi
je 0x646cff
mov ecx, eax
call fcn.00404490
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x8c], xmm0
movq xmm0, qword [esi + 0x10]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
movq qword [ebp - 0x7c], xmm0
mov word [esi], ax
lea ecx, [ebp - 0xc0]
call fcn.00404490
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x16
call fcn.00404220
lea ecx, [ebp - 0x34]
call fcn.00404490
mov esi, dword [ebp - 0x58]
cmp dword [ebp - 0x7c], 0
jne 0x646d97
mov ecx, dword [ebp - 0x54]
mov eax, 0x38e38e39
sub ecx, esi
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*8]
lea eax, [eax - 9]
lea ecx, [esi + eax*4]
lea eax, [ebp - 0xc0]
push eax
call fcn.004033d0
mov esi, eax
lea eax, [ebp - 0x8c]
cmp eax, esi
je 0x646d8c
mov ecx, eax
call fcn.00404490
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x8c], xmm0
movq xmm0, qword [esi + 0x10]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
movq qword [ebp - 0x7c], xmm0
mov word [esi], ax
lea ecx, [ebp - 0xc0]
call fcn.00404490
mov eax, 0xe
mov dword [ebp - 0xc8], 0xc700f5
mov dword [ebp - 0xcc], eax
xor ecx, ecx
mov dword [ebp - 0xc4], 0xc200ca
mov dword [ebp - 0xc0], 0xc800c4
mov dword [ebp - 0xbc], 0xc300ca
mov dword [ebp - 0xb8], 0x9c00c5
mov dword [ebp - 0xb4], 0xc700d9
mov dword [ebp - 0xb0], 0xd800da
mov dword [ebp - 0xac], 0xb7
nop dword [eax]
nop dword [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0xc8], ax
inc ecx
mov eax, dword [ebp - 0xcc]
cmp ecx, eax
jb 0x646e00
xor ecx, ecx
mov word [ebp + eax*2 - 0xc8], cx
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00421b40
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 0x1c
push eax
lea ecx, [ebp - 0x34]
call fcn.00403b80
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0x1d
push eax
call fcn.00418540
add esp, 4
mov byte [ebp - 0xa5], al
lea ecx, [ebp - 0x1c]
call fcn.00404220
lea ecx, [ebp - 0x34]
call fcn.00404490
cmp byte [ebp - 0xa5], 0
lea ecx, [ebp - 0x74]
je 0x646ee4
movups xmm0, xmmword [ebp - 0x74]
mov dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
mov word [ebp - 0x74], ax
movq xmm0, qword [ebp - 0x64]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 7
call fcn.00404490
lea ecx, [ebp - 0x8c]
call fcn.00404490
jmp 0x646b95
call fcn.00404490
lea ecx, [ebp - 0x8c]
call fcn.00404490
lea ecx, [ebp - 0x58]
call fcn.0041b0e0
lea ecx, [ebp - 0xa4]
call fcn.00404490
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret 8