Function at 0x401000
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff0
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
sub esp, 0x8ec
mov dword [ebp - 0x8bc], eax
mov eax, dword [edi]
xor edi, edi
movdqa xmm0, xmmword [str._s___s___s___s]
mov dword [ebp - 0x8cc], edx
mov edx, 0x580032
mov dword [ebp - 0x894], edx
mov edx, 0x2e
movaps xmmword [ebp - 0x878], xmm0
movdqa xmm0, xmmword [0x40f0c0]
mov dword [ebp - 0x8c8], eax
mov eax, 0x300025
mov dword [ebp - 0x898], eax
mov eax, 0x2e002e
mov dword [ebp - 0x8a0], eax
mov eax, 0x20003d
mov dword [ebp - 0x89c], edx
mov edx, 0x730025
mov dword [ebp - 0x868], eax
lea eax, [ebp - 0x418]
mov dword [ebp - 0x8c4], ecx
mov dword [ebp - 0x890], 0x20
mov dword [ebp - 0x864], edx
mov word [ebp - 0x860], di
movaps xmmword [ebp - 0x888], xmm0
mov dword [ebp - 0x854], 1
mov dword [ebp - 0x840], 0x100
mov dword [ebp - 0x844], eax
mov dword [ebp - 0x858], 0xffff0002
mov dword [ebp - 0x85c], esi
mov dword [ebp - 0x8c0], esi
mov dword [ebp - 0x8b4], 0
mov esi, dword [sym.imp.user32.dll_wsprintfW]
jmp 0x40117f
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x818]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x8c4]
mov dword [esp + 8], eax
lea eax, [ebp - 0x878]
mov dword [esp + 4], eax
lea eax, [ebp - 0x418]
mov dword [esp], eax
mov eax, dword [ebp - 0x8b8]
call eax
lea edi, [ebp - 0x85c]
mov dword [esp + 8], 0
mov ebx, dword [sym.imp.user32.dll_SendMessageW]
mov dword [esp + 0xc], edi
mov dword [esp + 4], 0x1132
mov eax, dword [0x419008]
mov dword [esp], eax
call ebx
mov dword [ebp - 0x8c0], eax
mov eax, dword [ebp - 0x8c8]
sub esp, 0x10
test eax, eax
je 0x401178
cmp dword [ebp - 0x818], 0x700041
je 0x401250
add dword [ebp - 0x8b4], 1
mov dword [ebp - 0x8ac], 0x100
lea eax, [ebp - 0x8a8]
mov dword [ebp - 0x8a8], 0x200
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x618]
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x8a4]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x8ac]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x818]
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x8b4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x8bc]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumValueW]
sub esp, 0x20
test eax, eax
jne 0x40149d
cmp dword [ebp - 0x8a4], 3
mov dword [ebp - 0x8b8], esi
je 0x401408
mov edx, dword [ebp - 0x8ac]
lea eax, [ebp - 0x618]
test edx, edx
jne 0x4010f8
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x8c4]
mov dword [esp + 8], eax
lea eax, [ebp - 0x888]
mov dword [esp + 4], eax
lea eax, [ebp - 0x418]
mov dword [esp], eax
mov eax, dword [ebp - 0x8b8]
call eax
jmp 0x40112b
cmp dword [ebp - 0x814], 0x490070
jne 0x401178
cmp dword [ebp - 0x810], 0x44
jne 0x401178
xor eax, eax
nop
movzx edx, word [ebp + eax - 0x818]
mov word [ebp + eax - 0x418], dx
add eax, 2
test dx, dx
jne 0x401270
lea eax, [ebp - 0x618]
mov dword [esp + 8], 0x1f4
mov dword [esp + 4], eax
lea eax, [ebp - 0x60c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_memmove]
xor eax, eax
lea esi, [esi]
nop
movzx edx, word [eax + 0x40f094]
mov word [ebp + eax - 0x618], dx
add eax, 2
test dx, dx
jne 0x4012b0
lea eax, [ebp - 0x8b0]
mov ecx, 0x5c
mov word [ebp - 0x60e], cx
mov dword [esp + 8], eax
lea eax, [ebp - 0x618]
mov dword [esp + 4], eax
mov dword [esp], 0x80000000
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
jne 0x401178
mov dword [ebp - 0x85c], 0xffff0000
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov eax, dword [0x419008]
mov dword [esp], eax
call ebx
mov dword [ebp - 0x8ac], 0x200
mov dword [ebp - 0x85c], eax
lea eax, [ebp - 0x8ac]
sub esp, 0x10
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x818]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x8b0]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueW]
mov eax, dword [ebp - 0x8b0]
sub esp, 0x10
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea eax, [ebp - 0x818]
sub esp, 4
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x60c]
mov dword [esp + 8], eax
lea eax, [ebp - 0x888]
mov dword [esp + 4], eax
lea eax, [ebp - 0x418]
mov dword [esp], eax
mov eax, dword [ebp - 0x8b8]
call eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov eax, dword [0x419008]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x85c]
sub esp, 0x10
mov dword [esp + 8], 2
mov dword [esp + 4], 0x1102
mov dword [esp + 0xc], eax
mov eax, dword [0x419008]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x8cc]
sub esp, 0x10
mov dword [ebp - 0x85c], eax
jmp 0x401178
lea ebx, [ebp - 0x618]
lea edi, [ebp - 0x218]
lea esi, [esi]
movzx eax, byte [ebx]
mov dword [esp], edi
add edi, 6
add ebx, 2
mov dword [esp + 8], eax
lea eax, [ebp - 0x898]
mov dword [esp + 4], eax
call esi
lea eax, [ebp - 0x20]
cmp eax, edi
jne 0x401418
mov eax, dword [ebp - 0x8a8]
mov edx, 0xff
lea eax, [eax + eax*2]
cmp eax, edx
cmova eax, edx
xor ecx, ecx
mov word [ebp + eax*2 - 0x218], cx
xor eax, eax
lea esi, [esi]
movzx edx, word [ebp + eax - 0x218]
mov word [ebp + eax - 0x618], dx
add eax, 2
test dx, dx
jne 0x401460
xor eax, eax
lea esi, [esi]
movzx edx, word [ebp + eax - 0x8a0]
mov word [ebp + eax - 0x422], dx
add eax, 2
test dx, dx
jne 0x401480
jmp 0x401204
mov ebx, dword [ebp - 0x8b4]
test ebx, ebx
jne 0x4014d2
mov eax, dword [ebp - 0x8c4]
cmp word [eax], 0
je 0x4014d2
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x4014b8
mov ecx, dword [ebp - 0x8c4]
sub eax, ecx
cmp eax, 2
jg 0x401ab6
mov esi, dword [ebp - 0x8bc]
mov edi, 0xffffffff
lea eax, [ebp - 0x818]
add edi, 1
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x4015fc
lea eax, [ebp - 0x8b0]
mov dword [esp], esi
mov dword [esp + 8], eax
lea eax, [ebp - 0x818]
mov dword [esp + 4], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
jne 0x4014dd
mov ebx, dword [ebp - 0x8c8]
lea ecx, [ebp - 0x818]
mov dword [esp], ebx
mov edx, dword [ebp - 0x8c0]
mov eax, dword [ebp - 0x8b0]
call section..text
mov eax, dword [ebp - 0x8c0]
mov dword [esp + 8], 2
mov dword [esp + 4], 0x1102
mov dword [esp + 0xc], eax
mov eax, dword [0x419008]
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_SendMessageW]
mov dword [ebp - 0x8b4], eax
call eax
sub esp, 0x10
test ebx, ebx
je 0x401608
cmp dword [ebp - 0x818], 0x720050
je 0x40188a
mov eax, 1
mov edx, dword [ebp - 0x8b0]
test eax, eax
je 0x4017f0
lea eax, [ebp - 0x818]
mov dword [ebp - 0x8b8], edx
mov dword [esp + 8], 0x22
mov dword [esp + 4], str.ProxyStubClsid32
mov dword [esp], eax
call sub.ucrtbase.dll_memcmp
mov edx, dword [ebp - 0x8b8]
test eax, eax
je 0x4018c0
cmp dword [ebp - 0x818], 0x790054
je 0x401616
mov ebx, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [esp], edx
call ebx
sub esp, 4
jmp 0x4014dd
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov edx, dword [ebp - 0x8b0]
mov ebx, dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x4015ef
cmp dword [ebp - 0x814], 0x650070
jne 0x4015e9
cmp dword [ebp - 0x810], 0x69004c
jne 0x4015e9
cmp dword [ebp - 0x80c], 0x62
jne 0x4015e9
mov dword [ebp - 0x8a8], 0x200
lea eax, [ebp - 0x8a8]
mov dword [esp], edx
mov edx, dword [sym.imp.advapi32.dll_RegQueryValueW]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x618]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [ebp - 0x8b8], edx
call edx
mov eax, dword [ebp - 0x8b0]
sub esp, 0x10
mov ebx, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [esp], eax
call ebx
lea eax, [ebp - 0x8b0]
sub esp, 4
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40f03c
mov dword [esp], 0x80000000
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
lea eax, [ebp - 0x8ac]
mov dword [ebp - 0x8ac], 0x200
sub esp, 0xc
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x818]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x8b0]
mov dword [esp], eax
mov edx, dword [ebp - 0x8b8]
call edx
lea eax, [ebp - 0x818]
mov dword [ebp - 0x85c], 0xffff0000
sub esp, 0x10
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x888]
mov dword [esp + 4], eax
lea eax, [ebp - 0x418]
mov dword [esp + 8], 0x40f03c
mov dword [esp], eax
call dword [sym.imp.user32.dll_wsprintfW]
lea eax, [ebp - 0x85c]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x1132
mov eax, dword [0x419008]
mov dword [esp], eax
mov eax, dword [ebp - 0x8b4]
call eax
mov dword [ebp - 0x85c], eax
mov eax, dword [ebp - 0x8b0]
sub esp, 0x10
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x8a8]
lea ecx, [ebp - 0x618]
sub esp, 4
mov dword [esp + 4], ecx
lea ecx, [ebp - 0x608]
mov dword [esp], ecx
mov dword [esp + 8], eax
call dword [sym.imp.ucrtbase.dll_memmove]
mov eax, dword [0x40f03c]
lea ecx, [ebp - 0x8b0]
mov dword [ebp - 0x618], eax
mov eax, dword [0x40f040]
mov dword [ebp - 0x614], eax
mov eax, dword [0x40f044]
mov dword [ebp - 0x610], eax
mov eax, dword [0x40f048]
mov dword [ebp - 0x60c], eax
mov eax, 0x5c
mov word [ebp - 0x60a], ax
mov dword [esp + 8], ecx
lea ecx, [ebp - 0x618]
mov dword [esp + 4], ecx
mov dword [esp], 0x80000000
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
lea ecx, [ebp - 0x608]
sub esp, 0xc
mov dword [esp], 0
jmp 0x401a61
mov dword [ebp - 0x8a8], 0x200
lea eax, [ebp - 0x8a8]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x618]
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 0
call dword [sym.imp.advapi32.dll_RegQueryValueW]
mov eax, dword [ebp - 0x8b0]
sub esp, 0x10
mov ebx, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [esp], eax
call ebx
lea eax, [ebp - 0x8b0]
sub esp, 4
mov dword [esp + 8], eax
lea eax, [ebp - 0x618]
mov dword [esp + 4], eax
mov dword [esp], 0x80000000
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
jne 0x4014dd
mov dword [esp], 0
mov eax, dword [ebp - 0x8b0]
mov edx, 0xffff0000
lea ecx, [ebp - 0x618]
call section..text
mov edx, dword [ebp - 0x8b0]
jmp 0x4015ef
cmp dword [ebp - 0x814], 0x67006f
jne 0x401598
cmp dword [ebp - 0x810], 0x440049
jne 0x401598
xor eax, eax
cmp word [ebp - 0x80c], 0
je 0x40159d
jmp 0x401598
mov dword [ebp - 0x8a8], 0x200
lea eax, [ebp - 0x8a8]
mov dword [esp], edx
mov edx, dword [sym.imp.advapi32.dll_RegQueryValueW]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x618]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [ebp - 0x8b8], edx
call edx
mov eax, dword [ebp - 0x8b0]
sub esp, 0x10
mov ebx, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [esp], eax
call ebx
lea eax, [ebp - 0x8b0]
sub esp, 4
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40f094
mov dword [esp], 0x80000000
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
lea eax, [ebp - 0x8ac]
mov dword [ebp - 0x8ac], 0x200
sub esp, 0xc
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x818]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x8b0]
mov dword [esp], eax
mov edx, dword [ebp - 0x8b8]
call edx
lea eax, [ebp - 0x818]
mov dword [ebp - 0x85c], 0xffff0000
sub esp, 0x10
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x888]
mov dword [esp + 4], eax
lea eax, [ebp - 0x418]
mov dword [esp + 8], 0x40f094
mov dword [esp], eax
call dword [sym.imp.user32.dll_wsprintfW]
lea eax, [ebp - 0x85c]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x1132
mov eax, dword [0x419008]
mov dword [esp], eax
mov eax, dword [ebp - 0x8b4]
call eax
mov dword [ebp - 0x85c], eax
mov eax, dword [ebp - 0x8b0]
sub esp, 0x10
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x8a8]
lea ecx, [ebp - 0x618]
sub esp, 4
mov dword [esp + 4], ecx
lea ecx, [ebp - 0x60c]
mov dword [esp], ecx
mov dword [esp + 8], eax
call dword [sym.imp.ucrtbase.dll_memmove]
mov eax, dword [0x40f094]
mov edx, 0x5c
lea ecx, [ebp - 0x8b0]
mov dword [ebp - 0x618], eax
mov eax, dword [0x40f098]
mov dword [ebp - 0x614], eax
mov eax, dword [0x40f09c]
mov dword [ebp - 0x610], eax
mov word [ebp - 0x60e], dx
mov dword [esp + 8], ecx
lea ecx, [ebp - 0x618]
mov dword [esp + 4], ecx
mov dword [esp], 0x80000000
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
lea ecx, [ebp - 0x60c]
sub esp, 0xc
mov dword [esp], 0
mov edx, dword [ebp - 0x85c]
mov eax, dword [ebp - 0x8b0]
call section..text
mov eax, dword [ebp - 0x85c]
mov dword [esp + 8], 2
mov dword [esp + 4], 0x1102
mov dword [esp + 0xc], eax
mov eax, dword [0x419008]
mov dword [esp], eax
mov eax, dword [ebp - 0x8b4]
call eax
mov eax, dword [ebp - 0x8cc]
mov edx, dword [ebp - 0x8b0]
sub esp, 0x10
mov dword [ebp - 0x85c], eax
jmp 0x4015ef
lea eax, [ebp - 0x85c]
mov dword [ebp - 0x844], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov eax, dword [0x419008]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
mov dword [ebp - 0x8c0], eax
lea eax, [ebp - 0x418]
sub esp, 0x10
mov dword [ebp - 0x844], eax
jmp 0x4014d2