Function at 0x65ae30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7b9fb0
mov eax, dword fs:[0]
push eax
sub esp, 0x108
push ebx
push esi
push edi
mov eax, dword [0x831184]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.006595c0
test al, al
je 0x65b0a7
lea eax, [ebp - 0x9c]
push eax
call fcn.0065b0c0
mov esi, eax
xor ecx, ecx
mov edx, dword [esi]
lea edi, [esi + 4]
test edx, edx
je 0x65ae94
lea eax, [ecx + 0xa9]
xor word [edi + ecx*2], ax
inc ecx
mov edx, dword [esi]
cmp ecx, edx
jb 0x65ae83
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 0x65aeb0
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.0065b2a0
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00404490
lea eax, [ebp - 0x9c]
push eax
call fcn.0065b1b0
mov edi, eax
xor ecx, ecx
mov edx, dword [edi]
lea esi, [edi + 4]
test edx, edx
je 0x65af21
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [esi + ecx*2], ax
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jb 0x65af10
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 0x65af40
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.0065b2a0
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.0065b0c0
mov edi, eax
xor ecx, ecx
mov edx, dword [edi]
lea esi, [edi + 4]
test edx, edx
je 0x65afb1
lea eax, [ecx + 0xa9]
xor word [esi + ecx*2], ax
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jb 0x65afa0
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 0x65afd0
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.0065b2a0
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00404490
lea eax, [ebp - 0x114]
push eax
call fcn.0065b1b0
mov edi, eax
xor ecx, ecx
mov edx, dword [edi]
lea esi, [edi + 4]
test edx, edx
je 0x65b041
nop dword [eax]
lea eax, [ecx + 0xa9]
xor word [esi + ecx*2], ax
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jb 0x65b030
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 0x65b060
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.0065b2a0
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00404490
mov ecx, ebx
call fcn.0065a2d0
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