Function at 0x654120
Capabilities:
Encode data using xor
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7b97e7
mov eax, dword fs:[0]
push eax
sub esp, 0x1e8
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 edi, dword [ebp + 8]
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x34], edi
call fcn.00652430
push 0x30
lea eax, [ebp - 0x68]
mov dword [ebp - 4], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0x48], 0
xorps xmm0, xmm0
mov dword [ebp - 0x44], 7
add esp, 0xc
mov word [ebp - 0x58], ax
movups xmmword [ebp - 0x68], xmm0
mov word [ebp - 0x40], ax
mov byte [ebp - 0x3e], al
lea eax, [ebp - 0x1f4]
mov byte [ebp - 4], 1
push eax
call fcn.006546f0
mov esi, eax
xor ecx, ecx
mov eax, dword [esi]
lea edx, [esi + 4]
test eax, eax
je 0x6541c5
lea eax, [ecx + 0xa9]
xor word [edx + ecx*2], ax
inc ecx
mov eax, dword [esi]
cmp ecx, eax
jb 0x6541b4
xor ecx, ecx
mov word [edx + eax*2], cx
xor eax, eax
mov dword [ebp - 0x18], ecx
mov ecx, edx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x6541e0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004044f0
push 0xf003f
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
push SysReAllocString
lea ecx, [ebp - 0x68]
call fcn.0057f200
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x10d], al
mov byte [ebp - 4], 1
call fcn.00404490
cmp byte [ebp - 0x10d], 0
jne 0x6542c0
lea eax, [ebp - 0x10c]
mov ecx, edi
push eax
call fcn.00653280
mov eax, dword [ebp - 0x68]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x654259
push eax
call esi
mov dword [ebp - 0x68], 0
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x40], 0
call fcn.00404490
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x65427d
push eax
call esi
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
lea ecx, [ebp - 0x98]
call fcn.00404490
lea ecx, [ebp - 0xb4]
call fcn.00404490
lea ecx, [ebp - 0xd0]
call fcn.00404490
lea ecx, [ebp - 0xec]
call fcn.00404490
lea ecx, [ebp - 0x108]
call fcn.00404490
jmp 0x6546d0
mov dword [ebp - 0x130], 0xd
xor ecx, ecx
mov dword [ebp - 0x12c], 0xdf00e8
mov dword [ebp - 0x128], 0xc300df
mov dword [ebp - 0x124], 0xc100ee
mov dword [ebp - 0x120], 0xd600c1
mov dword [ebp - 0x11c], 0xd500d8
mov dword [ebp - 0x118], 0xe600e6
mov dword [ebp - 0x114], 0xb600f9
nop dword [eax]
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x12c], ax
inc ecx
mov eax, dword [ebp - 0x130]
cmp ecx, eax
jb 0x654320
xor ecx, ecx
mov word [ebp + eax*2 - 0x12c], cx
xor eax, eax
mov dword [ebp - 0x138], ecx
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x134], 7
lea edx, [ecx + 2]
mov word [ebp - 0x148], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x654365
sub ecx, edx
lea eax, [ebp - 0x12c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x148]
call fcn.004044f0
xor eax, eax
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 7
mov word [ebp - 0x160], ax
lea eax, [ebp - 0x160]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x178]
push eax
lea ecx, [ebp - 0x68]
call fcn.0057f450
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x80], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
movq qword [ebp - 0x70], xmm0
mov word [eax], cx
lea ecx, [ebp - 0x178]
call fcn.00404490
lea ecx, [ebp - 0x160]
call fcn.00404490
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 7
call fcn.00404490
mov ecx, dword [ebp - 0x70]
test ecx, ecx
je 0x654437
cmp dword [ebp - 0x6c], 8
lea eax, [ebp - 0x80]
push ecx
cmovae eax, dword [ebp - 0x80]
lea ecx, [ebp - 0x98]
push eax
mov dword [ebp - 0x10c], 2
call fcn.004044f0
mov dword [ebp - 0x12c], 0xb
xor ecx, ecx
mov dword [ebp - 0x128], 0xd800f9
mov dword [ebp - 0x124], 0xd400c4
mov dword [ebp - 0x120], 0xeb00d4
mov dword [ebp - 0x11c], 0xd100c1
mov dword [ebp - 0x118], 0xde00d3
mov dword [ebp - 0x114], 0xb400d6
nop
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x128], ax
inc ecx
mov eax, dword [ebp - 0x12c]
cmp ecx, eax
jb 0x654480
xor ecx, ecx
mov word [ebp + eax*2 - 0x128], cx
xor eax, eax
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x14], 7
lea edx, [ecx + 2]
mov word [ebp - 0x28], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x6544c0
sub ecx, edx
lea eax, [ebp - 0x128]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.004044f0
cmp byte [ebp - 0x40], 0
je 0x654525
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push ecx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x38], 4
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x654525
cmp dword [ebp - 0x34], 4
jne 0x654525
mov esi, dword [ebp - 0x30]
jmp 0x654527
xor esi, esi
lea ecx, [ebp - 0x28]
call fcn.00404490
test esi, esi
jne 0x654556
lea eax, [ebp - 0x10c]
mov ecx, edi
push eax
call fcn.00653280
lea ecx, [ebp - 0x80]
call fcn.00404490
lea ecx, [ebp - 0x68]
call fcn.0057eff0
jmp 0x654284
mov dword [ebp - 0x2c], 0xb
xor ecx, ecx
mov dword [ebp - 0x28], 0xd800f9
mov dword [ebp - 0x24], 0xd400c4
mov dword [ebp - 0x20], 0xfd00d4
mov dword [ebp - 0x1c], 0xc200ca
mov dword [ebp - 0x18], 0xd700c7
mov dword [ebp - 0x14], 0xb400c1
nop dword [eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x28], ax
inc ecx
mov eax, dword [ebp - 0x2c]
cmp ecx, eax
jb 0x654590
xor ecx, ecx
mov word [ebp + eax*2 - 0x28], cx
xor eax, eax
mov dword [ebp - 0x150], ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x160], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x6545d0
sub ecx, edx
lea eax, [ebp - 0x28]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x160]
call fcn.004044f0
xor eax, eax
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 7
mov word [ebp - 0x148], ax
lea eax, [ebp - 0x148]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x68]
call fcn.0057f450
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
movq qword [ebp - 0x18], xmm0
mov word [eax], cx
lea ecx, [ebp - 0x128]
call fcn.00404490
lea ecx, [ebp - 0x148]
call fcn.00404490
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 0xc
call fcn.00404490
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x65469f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x108]
push eax
call fcn.004044f0
mov dword [ebp - 0x10c], 1
lea eax, [ebp - 0x10c]
mov ecx, edi
push eax
call fcn.00653280
lea ecx, [ebp - 0x28]
call fcn.00404490
lea ecx, [ebp - 0x80]
call fcn.00404490
lea ecx, [ebp - 0x68]
call fcn.0057eff0
lea ecx, [ebp - 0x10c]
call fcn.00652560
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 4