Function at 0x65b980
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7b8a02
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
push ebx
push esi
push edi
mov eax, dword [0x82f184]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x78], esi
push 0
push 1
call fcn.0059d890
mov dword [ebp - 4], 0
mov dword [esi], vtable.n.0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 0
mov byte [ebp - 4], 1
xor ecx, ecx
mov dword [ebp - 0x5c], 0x25
mov dword [ebp - 0x58], 0xd500c3
mov dword [ebp - 0x54], 0xdf00db
mov dword [ebp - 0x50], 0xe100c1
mov dword [ebp - 0x4c], 0xcd00f1
mov dword [ebp - 0x48], 0xa800a2
mov dword [ebp - 0x44], 0xb600b6
mov dword [ebp - 0x40], 0x9900a9
mov dword [ebp - 0x3c], 0xb70087
mov dword [ebp - 0x38], 0xa500b8
mov dword [ebp - 0x34], 0xa800a3
mov dword [ebp - 0x30], 0xb900ad
mov dword [ebp - 0x2c], 0xa000a7
mov dword [ebp - 0x28], 0x8d00be
mov dword [ebp - 0x24], 0xa100bd
mov dword [ebp - 0x20], 0xbc00b6
mov dword [ebp - 0x1c], 0xa200a2
mov dword [ebp - 0x18], 0xf700b5
mov dword [ebp - 0x14], 0xa300bf
mov dword [ebp - 0x10], 0xdd00b9
nop word [eax + eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x58], ax
inc ecx
mov eax, dword [ebp - 0x5c]
cmp ecx, eax
jb 0x65ba80
xor ecx, ecx
mov dword [ebp - 0x60], 7
mov word [ebp + eax*2 - 0x58], cx
xor eax, eax
mov dword [ebp - 0x64], ecx
lea ecx, [ebp - 0x58]
mov word [ebp - 0x74], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x65bab0
sub ecx, edx
lea eax, [ebp - 0x58]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x74]
call fcn.004044f0
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.00426a70
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x90]
call fcn.00404120
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 4
push eax
lea ecx, [esi + 0x88]
call fcn.00406920
lea ecx, [ebp - 0x90]
call fcn.00404490
lea ecx, [ebp - 0xa8]
call fcn.00404490
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
call fcn.00404490
mov ecx, 0x24
mov dword [ebp - 0x58], 0xd500c3
mov dword [ebp - 0x5c], ecx
xor eax, eax
mov dword [ebp - 0x54], 0xdf00db
mov dword [ebp - 0x50], 0xe100c1
mov dword [ebp - 0x4c], 0xcd00f1
mov dword [ebp - 0x48], 0xa800a2
mov dword [ebp - 0x44], 0xb600b6
mov dword [ebp - 0x40], 0x9900a9
mov dword [ebp - 0x3c], 0xb70087
mov dword [ebp - 0x38], 0xa500b8
mov dword [ebp - 0x34], 0xa800a3
mov dword [ebp - 0x30], 0xb900ad
mov dword [ebp - 0x2c], 0xa000a7
mov dword [ebp - 0x28], 0x8d00be
mov dword [ebp - 0x24], 0xbb00b1
mov dword [ebp - 0x20], 0xba00a6
mov dword [ebp - 0x1c], 0xb200bb
mov dword [ebp - 0x18], 0xbc00f6
mov dword [ebp - 0x14], 0xbe00a2
mov dword [ebp - 0x10], 0xdc
nop dword [eax]
lea ecx, [eax + 0xb8]
xor word [ebp + eax*2 - 0x58], cx
inc eax
mov ecx, dword [ebp - 0x5c]
cmp eax, ecx
jb 0x65bbc0
xor eax, eax
mov dword [ebp - 0x60], 7
mov word [ebp + ecx*2 - 0x58], ax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x64], eax
lea edx, [ecx + 2]
mov word [ebp - 0x74], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x65bbf0
sub ecx, edx
lea eax, [ebp - 0x58]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x74]
call fcn.004044f0
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.00426a70
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0xa8]
call fcn.00404120
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 7
push eax
lea ecx, [esi + 0x88]
call fcn.00406920
lea ecx, [ebp - 0xa8]
call fcn.00404490
lea ecx, [ebp - 0x90]
call fcn.00404490
lea ecx, [ebp - 0x74]
call fcn.00404490
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret