Function at 0x65a120
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7b8880
mov eax, dword fs:[0]
push eax
sub esp, 0x108
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 ebx, ecx
call fcn.006588b0
test al, al
je 0x65a397
lea eax, [ebp - 0x9c]
push eax
call fcn.0065a3b0
mov esi, eax
xor ecx, ecx
mov edx, dword [esi]
lea edi, [esi + 4]
test edx, edx
je 0x65a184
lea eax, [ecx + 0xb8]
xor word [edi + ecx*2], ax
inc ecx
mov edx, dword [esi]
cmp ecx, edx
jb 0x65a173
xor eax, eax
mov dword [ebp - 0x10], 7
mov ecx, edi
mov word [edi + edx*2], ax
mov dword [ebp - 0x14], eax
mov word [ebp - 0x24], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x65a1a0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x24]
call fcn.004044f0
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
push dword [ebx + 4]
push dword [ebp + 8]
call fcn.0065a590
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00404490
lea eax, [ebp - 0x9c]
push eax
call fcn.0065a4a0
mov edi, eax
xor ecx, ecx
mov edx, dword [edi]
lea esi, [edi + 4]
test edx, edx
je 0x65a211
nop word [eax + eax]
lea eax, [ecx + 0xb8]
xor word [esi + ecx*2], ax
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jb 0x65a200
xor eax, eax
mov dword [ebp - 0x10], 7
mov ecx, esi
mov word [esi + edx*2], ax
mov dword [ebp - 0x14], eax
mov word [ebp - 0x24], ax
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x65a230
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x24]
call fcn.004044f0
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 1
push eax
push dword [ebx + 4]
push dword [ebp + 8]
call fcn.0065a590
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00404490
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x9c]
push eax
call fcn.0065a3b0
mov edi, eax
xor ecx, ecx
mov edx, dword [edi]
lea esi, [edi + 4]
test edx, edx
je 0x65a2a1
lea eax, [ecx + 0xb8]
xor word [esi + ecx*2], ax
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jb 0x65a290
xor eax, eax
mov dword [ebp - 0x10], 7
mov ecx, esi
mov word [esi + edx*2], ax
mov dword [ebp - 0x14], eax
mov word [ebp - 0x24], ax
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x65a2c0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x24]
call fcn.004044f0
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 2
push eax
push reloc.OLEAUT32.dll_SysReAllocString
push dword [ebp + 8]
call fcn.0065a590
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00404490
lea eax, [ebp - 0x114]
push eax
call fcn.0065a4a0
mov edi, eax
xor ecx, ecx
mov edx, dword [edi]
lea esi, [edi + 4]
test edx, edx
je 0x65a331
nop dword [eax]
lea eax, [ecx + 0xb8]
xor word [esi + ecx*2], ax
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jb 0x65a320
xor eax, eax
mov dword [ebp - 0x10], 7
mov ecx, esi
mov word [esi + edx*2], ax
mov dword [ebp - 0x14], eax
mov word [ebp - 0x24], ax
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x65a350
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x24]
call fcn.004044f0
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 3
push eax
push reloc.OLEAUT32.dll_SysReAllocString
push dword [ebp + 8]
call fcn.0065a590
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00404490
mov ecx, ebx
call fcn.006595c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4