Function at 0x65d150
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7b8cac
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x82f184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x160]
mov dword [ebp - 4], 0
push eax
call fcn.0065ca70
mov edi, eax
xor ecx, ecx
mov edx, dword [edi]
lea esi, [edi + 4]
test edx, edx
je 0x65d1d2
lea eax, [ecx + 0xb8]
xor word [esi + ecx*2], ax
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jb 0x65d1c1
xor eax, eax
mov dword [ebp - 0x20], 7
mov ecx, esi
mov word [esi + edx*2], ax
mov dword [ebp - 0x24], eax
mov word [ebp - 0x34], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x65d1f0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x34]
call fcn.004044f0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], eax
je 0x65d247
movups xmm0, xmmword [ebp - 0x34]
mov dword [eax + 0x10], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x24]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [ebp - 0x18], 0x18
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
jmp 0x65d254
lea ecx, [ebp - 0x34]
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.004081e0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.00404490
lea eax, [ebp - 0x158]
push eax
call fcn.0065cb40
mov edi, eax
xor ecx, ecx
mov edx, dword [edi]
lea esi, [edi + 4]
test edx, edx
je 0x65d291
nop dword [eax]
lea eax, [ecx + 0xb8]
xor word [esi + ecx*2], ax
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jb 0x65d280
xor eax, eax
mov dword [ebp - 0x20], 7
mov ecx, esi
mov word [esi + edx*2], ax
mov dword [ebp - 0x24], eax
mov word [ebp - 0x34], ax
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x65d2b0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x34]
call fcn.004044f0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], eax
je 0x65d307
movups xmm0, xmmword [ebp - 0x34]
mov dword [eax + 0x10], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x24]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [ebp - 0x18], 0x18
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
jmp 0x65d314
lea ecx, [ebp - 0x34]
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.004081e0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.00404490
lea eax, [ebp - 0x158]
push eax
call fcn.0065cc00
mov edi, eax
xor ecx, ecx
mov edx, dword [edi]
lea esi, [edi + 4]
test edx, edx
je 0x65d351
nop dword [eax]
lea eax, [ecx + 0xb8]
xor word [esi + ecx*2], ax
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jb 0x65d340
xor eax, eax
mov dword [ebp - 0x20], 7
mov ecx, esi
mov word [esi + edx*2], ax
mov dword [ebp - 0x24], eax
mov word [ebp - 0x34], ax
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x65d370
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x34]
call fcn.004044f0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], eax
je 0x65d3c7
movups xmm0, xmmword [ebp - 0x34]
mov dword [eax + 0x10], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x24]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [ebp - 0x18], 0x18
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
jmp 0x65d3d4
lea ecx, [ebp - 0x34]
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.004081e0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.00404490
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0xa0], edi
cmp esi, edi
je 0x65d740
nop word [eax + eax]
push esi
lea ecx, [ebp - 0x94]
call fcn.00404120
push 1
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 4
push eax
call fcn.0065ccc0
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0
call fcn.00404490
add esi, 0x18
cmp esi, edi
jne 0x65d400
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0x9c], esi
cmp esi, edi
je 0x65d740
nop
push esi
lea ecx, [ebp - 0x94]
call fcn.00404120
push 0x30
lea eax, [ebp - 0x64]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0x64], 0
add esp, 0xc
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 7
mov word [ebp - 0x54], ax
mov word [ebp - 0x3c], ax
mov byte [ebp - 0x3a], al
mov byte [ebp - 4], 6
xor ecx, ecx
mov dword [ebp - 0xbc], 0xb
mov dword [ebp - 0xb8], 0xf000e4
mov dword [ebp - 0xb4], 0xcf00d4
mov dword [ebp - 0xb0], 0xcf00d9
mov dword [ebp - 0xac], 0xde00d8
mov dword [ebp - 0xa8], 0xa400a3
mov dword [ebp - 0xa4], 0xc300b1
nop
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0xb8], ax
inc ecx
mov eax, dword [ebp - 0xbc]
cmp ecx, eax
jb 0x65d4f0
xor ecx, ecx
mov word [ebp + eax*2 - 0xb8], cx
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00421b40
add esp, 0xc
push 0xf003f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 7
call fcn.0057e080
lea ecx, [ebp - 0x7c]
mov byte [ebp - 0x95], al
mov byte [ebp - 4], 6
call fcn.00404490
cmp byte [ebp - 0x95], 0
je 0x65d6dc
lea eax, [ebp - 0x28]
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x64]
push eax
movq qword [ebp - 0x28], xmm0
call fcn.0057f200
mov byte [ebp - 4], 8
mov edi, dword [ebp - 0x28]
cmp edi, dword [ebp - 0x24]
je 0x65d6ce
push edi
lea ecx, [ebp - 0x7c]
call fcn.00404120
mov byte [ebp - 4], 9
mov ecx, 0xc
mov dword [ebp - 0xdc], ecx
xor eax, eax
mov dword [ebp - 0xd8], 0xf000e4
mov dword [ebp - 0xd4], 0xcf00d4
mov dword [ebp - 0xd0], 0xcf00d9
mov dword [ebp - 0xcc], 0xde00d8
mov dword [ebp - 0xc8], 0xa400a3
mov dword [ebp - 0xc4], 0x9f00b1
mov dword [ebp - 0xc0], 0xc4
lea ecx, [eax + 0xb8]
xor word [ebp + eax*2 - 0xd8], cx
inc eax
mov ecx, dword [ebp - 0xdc]
cmp eax, ecx
jb 0x65d5f0
xor eax, eax
mov word [ebp + ecx*2 - 0xd8], ax
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00421b40
add esp, 0xc
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x7c]
cmp dword [ebp - 0x68], 8
push dword [ebp - 0x6c]
cmovae ecx, dword [ebp - 0x7c]
push ecx
mov ecx, eax
call fcn.00407c50
mov dword [ebp - 0xe4], 0
xor ecx, ecx
mov dword [ebp - 0xe0], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xf4], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xe4], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push 1
lea eax, [ebp - 0xf4]
mov byte [ebp - 4], 0xb
push eax
call fcn.0065ccc0
lea ecx, [ebp - 0xf4]
call fcn.00404490
lea ecx, [ebp - 0xb8]
call fcn.00404490
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 8
call fcn.00404490
add edi, 0x18
cmp edi, dword [ebp - 0x24]
jne 0x65d590
mov esi, dword [ebp - 0x9c]
lea ecx, [ebp - 0x28]
call fcn.00404220
mov edi, dword [ebp - 0xa0]
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x65d6f1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x64], 0
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x3c], 0
call fcn.00404490
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x65d719
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x64], 0
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x60], 0
mov byte [ebp - 4], 0
call fcn.00404490
add esi, 0x18
mov dword [ebp - 0x9c], esi
cmp esi, edi
jne 0x65d450
lea ecx, [ebp - 0x1c]
call fcn.00404220
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.0076d59e
mov esp, ebp
pop ebp
ret