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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ed7cf
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x52610c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004b98e0
push 0x104
lea eax, [ebp - 0x114]
mov dword [ebp - 0x35c], 0x104
push 0
push eax
call fcn.004b98e0
add esp, 0x18
mov dword [ebp - 0x34c], 0x104
lea ecx, [ebp - 0x290]
mov dword [ebp - 0x27c], 0xf
mov dword [ebp - 0x280], 0
mov byte [ebp - 0x290], 0
push 0
push 0x507250
call fcn.00409af0
mov dword [ebp - 4], 0
movaps xmm0, xmmword [0x50c920]
movups xmmword [ebp - 0x308], xmm0
mov dword [ebp - 0x2e8], 0x1c07283e
movaps xmm0, xmmword [0x50c9e0]
movups xmmword [ebp - 0x2f8], xmm0
mov dword [ebp - 0x2e4], 0x183e363a
mov dword [ebp - 0x2e0], 0x323d3534
mov word [ebp - 0x2dc], 0x3c
mov byte [ebp - 4], 1
xor ecx, ecx
nop word [eax + eax]
movzx eax, byte [ebp + ecx - 0x307]
xor al, byte [ebp - 0x308]
mov byte [ebp + ecx - 0x2da], al
movzx eax, byte [ebp + ecx - 0x306]
xor al, byte [ebp - 0x308]
mov byte [ebp + ecx - 0x2d9], al
movzx eax, byte [ebp + ecx - 0x305]
xor al, byte [ebp - 0x308]
mov byte [ebp + ecx - 0x2d8], al
movzx eax, byte [ebp + ecx - 0x304]
xor al, byte [ebp - 0x308]
mov byte [ebp + ecx - 0x2d7], al
add ecx, 4
cmp ecx, 0x2c
jb 0x46e9d0
cmp byte [ebp - 0x2da], 0
mov byte [ebp - 0x2ae], 0
mov dword [ebp - 0x294], 0xf
mov dword [ebp - 0x298], 0
mov byte [ebp - 0x2a8], 0
jne 0x46ea5b
xor ecx, ecx
jmp 0x46ea6d
lea ecx, [ebp - 0x2da]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46ea64
sub ecx, edx
push ecx
lea eax, [ebp - 0x2da]
push eax
lea ecx, [ebp - 0x2a8]
call fcn.00409af0
push 0x2d
lea eax, [ebp - 0x307]
mov byte [ebp - 4], 3
push 0
push eax
call fcn.004b98e0
mov edi, dword [edi + 0x1c]
add esp, 0xc
mov eax, dword [edi]
mov dword [ebp - 0x360], eax
cmp eax, edi
je 0x46f0bb
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x348], 0
push 0x508594
lea eax, [ebp - 0x2a8]
mov dword [ebp - 0x358], ebx
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.00454670
add esp, 0xc
mov byte [ebp - 4], 4
cmp dword [ebx + 0x14], 0x10
jb 0x46eaec
mov ecx, dword [ebx]
jmp 0x46eaee
mov ecx, ebx
push ecx
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00407900
push str.Executable
push eax
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 5
push eax
call fcn.00407900
add esp, 0x18
mov eax, dword [ebp - 0x21c]
cmp eax, 0x10
jb 0x46eb33
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.004099a0
mov dword [ebp - 0x21c], 0xf
mov dword [ebp - 0x220], 0
mov byte [ebp - 0x230], 0
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x264]
cmp eax, 0x10
jb 0x46eb70
inc eax
lea ecx, [ebp - 0x278]
push eax
push dword [ebp - 0x278]
call fcn.004099a0
cmp dword [ebp - 0x234], 0x10
lea ecx, [ebp - 0x348]
push ecx
push 0x20119
lea eax, [ebp - 0x248]
mov dword [ebp - 0x264], 0xf
cmovae eax, dword [ebp - 0x248]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x268], 0
mov byte [ebp - 0x278], 0
call esi
test eax, eax
je 0x46ebe4
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x234]
cmp eax, 0x10
jb 0x46f0a2
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.004099a0
jmp 0x46f0a2
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x35c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push dword [ebp - 0x348]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x46ebb9
mov eax, dword [ebp - 0x348]
test eax, eax
je 0x46ec1d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
push 0x50ad98
lea ecx, [ebp - 0x338]
mov dword [ebp - 0x350], 0
mov dword [ebp - 0x324], 0xf
mov dword [ebp - 0x328], 0
mov byte [ebp - 0x338], 0
call fcn.00409af0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x320]
push 4
push str.Name
mov dword [ebp - 0x30c], 0xf
mov dword [ebp - 0x310], 0
mov byte [ebp - 0x320], 0
call fcn.00409af0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x308]
mov byte [ebp - 0x354], 0
lea ecx, [ebp - 0x344]
push dword [ebp - 0x354]
mov dword [ebp - 0x344], 0
push eax
lea eax, [ebp - 0x338]
mov dword [ebp - 0x340], 0
push eax
mov dword [ebp - 0x33c], 0
call fcn.0043de90
push fcn.004095a0
push 2
push 0x18
lea eax, [ebp - 0x338]
mov byte [ebp - 4], 0xc
push eax
call fcn.004a0a32
push 0x508594
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.00454670
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 0xd
push ecx
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00407900
add esp, 0x18
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x264]
cmp eax, 0x10
jb 0x46ed3b
inc eax
lea ecx, [ebp - 0x278]
push eax
push dword [ebp - 0x278]
call fcn.004099a0
cmp dword [ebp - 0x24c], 0x10
lea ecx, [ebp - 0x350]
push ecx
push 0x20119
lea eax, [ebp - 0x260]
mov dword [ebp - 0x264], 0xf
cmovae eax, dword [ebp - 0x260]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x268], 0
mov byte [ebp - 0x278], 0
call esi
test eax, eax
je 0x46edd6
mov eax, dword [ebp - 0x24c]
cmp eax, 0x10
jb 0x46eda2
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.004099a0
mov esi, dword [ebp - 0x344]
mov dword [ebp - 0x24c], 0xf
mov dword [ebp - 0x250], 0
mov byte [ebp - 0x260], 0
test esi, esi
je 0x46f07a
mov edx, dword [ebp - 0x340]
jmp 0x46f02b
mov eax, dword [ebp - 0x344]
mov esi, eax
mov ebx, dword [ebp - 0x340]
cmp eax, ebx
je 0x46efb5
nop dword [eax]
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 0xf
mov dword [ebp - 0x220], 0
mov byte [ebp - 0x230], 0
call fcn.00409690
lea ecx, [ebp - 0x34c]
mov byte [ebp - 4], 0x10
cmp dword [ebp - 0x21c], 0x10
lea eax, [ebp - 0x230]
push ecx
cmovae eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x114]
push ecx
push 0
push 0
push eax
push dword [ebp - 0x350]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46f130
mov eax, dword [ebp - 0x34c]
cmp eax, 0x104
jae 0x46f15b
mov byte [ebp + eax - 0x114], 0
cmp byte [ebp - 0x114], 0
jne 0x46ee80
xor eax, eax
jmp 0x46ee99
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46ee90
sub eax, edx
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x290]
call fcn.00409af0
cmp dword [ebp - 0x21c], 0x10
lea ecx, [ebp - 0x230]
mov ebx, dword [ebp - 0x220]
mov eax, 2
cmovae ecx, dword [ebp - 0x230]
cmp ebx, eax
cmovb eax, ebx
push eax
push 0x50ad98
push ecx
call fcn.00413f70
add esp, 0xc
test eax, eax
jne 0x46ef0d
cmp ebx, 2
jb 0x46ef0d
ja 0x46ef0d
mov ecx, dword [ebp - 0x358]
lea eax, [ebp - 0x290]
add ecx, 0x60
cmp ecx, eax
je 0x46ef0d
push 0xffffffffffffffff
push 0
push eax
call fcn.00409690
mov ebx, dword [ebp - 0x220]
cmp dword [ebp - 0x21c], 0x10
lea ecx, [ebp - 0x230]
mov eax, 4
cmovae ecx, dword [ebp - 0x230]
cmp ebx, eax
cmovb eax, ebx
push eax
push str.Name
push ecx
call fcn.00413f70
add esp, 0xc
test eax, eax
jne 0x46ef62
cmp ebx, 4
jb 0x46ef62
ja 0x46ef62
mov ecx, dword [ebp - 0x358]
lea eax, [ebp - 0x290]
add ecx, 0x48
cmp ecx, eax
je 0x46ef62
push 0xffffffffffffffff
push 0
push eax
call fcn.00409690
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004b98e0
mov byte [ebp - 4], 0xf
add esp, 0xc
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x34c], 0x104
cmp eax, 0x10
jb 0x46efa4
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.004099a0
mov ebx, dword [ebp - 0x340]
add esi, 0x18
cmp esi, ebx
jne 0x46edf0
push 0x104
lea eax, [ebp - 0x218]
mov dword [ebp - 0x35c], 0x104
push 0
push eax
call fcn.004b98e0
mov eax, dword [ebp - 0x350]
add esp, 0xc
test eax, eax
je 0x46efe6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x24c]
cmp eax, 0x10
jb 0x46f004
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.004099a0
mov esi, dword [ebp - 0x344]
mov dword [ebp - 0x24c], 0xf
mov dword [ebp - 0x250], 0
mov byte [ebp - 0x260], 0
test esi, esi
je 0x46f07a
mov edx, ebx
push dword [ebp - 0x354]
push ecx
mov ecx, esi
call fcn.004140c0
mov ecx, dword [ebp - 0x33c]
mov eax, 0x2aaaaaab
sub ecx, esi
add esp, 8
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.00414110
mov dword [ebp - 0x344], 0
mov dword [ebp - 0x33c], 0
mov dword [ebp - 0x340], 0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x234]
cmp eax, 0x10
jb 0x46f09c
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.004099a0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [ebp - 0x360]
call fcn.00413140
mov eax, dword [ebp - 0x360]
cmp eax, edi
jne 0x46eab0
mov eax, dword [ebp - 0x294]
cmp eax, 0x10
jb 0x46f0d9
inc eax
lea ecx, [ebp - 0x2a8]
push eax
push dword [ebp - 0x2a8]
call fcn.004099a0
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x294], 0xf
mov dword [ebp - 0x298], 0
mov byte [ebp - 0x2a8], 0
cmp eax, 0x10
jb 0x46f112
inc eax
lea ecx, [ebp - 0x290]
push eax
push dword [ebp - 0x290]
call fcn.004099a0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a04d5
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x21c]
cmp eax, 0x10
jb 0x46efaa
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.004099a0
jmp 0x46efaa
call fcn.004a0c45
int3