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
xor esi, esi
push ebx
mov ebx, edx
sub esp, 0x8ec
mov dword [ebp - 0x8bc], eax
mov eax, dword [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 [0x4100c0]
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], si
movaps xmmword [ebp - 0x888], xmm0
mov edi, dword [sym.imp.user32.dll_wsprintfW]
mov dword [ebp - 0x854], 1
mov dword [ebp - 0x840], 0x100
mov dword [ebp - 0x844], eax
mov dword [ebp - 0x858], 0xffff0002
mov dword [ebp - 0x85c], ebx
mov dword [ebp - 0x8c0], ebx
mov dword [ebp - 0x8b4], 0
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 esi, [ebp - 0x85c]
mov dword [esp + 8], 0
mov ebx, dword [sym.imp.user32.dll_SendMessageW]
mov dword [esp + 0xc], esi
mov dword [esp + 4], 0x1132
mov eax, dword [0x41a008]
mov dword [esp], eax
call ebx
sub esp, 0x10
mov dword [ebp - 0x8c0], eax
mov eax, dword [ebp - 0x8c8]
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 0x4014a5
cmp dword [ebp - 0x8a4], 3
mov dword [ebp - 0x8b8], edi
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, cs:[esi]
movzx edx, word [eax + 0x410094]
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], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov eax, dword [0x41a008]
mov dword [esp], eax
call ebx
sub esp, 0x10
mov dword [ebp - 0x85c], eax
mov dword [ebp - 0x8ac], 0x200
lea eax, [ebp - 0x8ac]
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], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov eax, dword [0x41a008]
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 [0x41a008]
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 esi, [ebp - 0x218]
lea esi, [esi]
movzx eax, byte [ebx]
mov dword [esp], esi
add esi, 6
add ebx, 2
mov dword [esp + 8], eax
lea eax, [ebp - 0x898]
mov dword [esp + 4], eax
call edi
lea eax, [ebp - 0x20]
cmp eax, esi
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
lea ebx, [ebp - 0x8a0]
xor eax, eax
lea ecx, [ebp - 0x422]
lea esi, cs:[esi]
nop
movzx edx, word [ebx + eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x401490
jmp 0x401204
mov ebx, dword [ebp - 0x8b4]
test ebx, ebx
jne 0x4014da
mov eax, dword [ebp - 0x8c4]
cmp word [eax], 0
je 0x4014da
lea esi, cs:[esi]
add eax, 2
cmp word [eax], 0
jne 0x4014c0
mov ecx, dword [ebp - 0x8c4]
sub eax, ecx
cmp eax, 2
jg 0x40188a
lea esi, [ebp - 0x8b0]
mov ebx, 0xffffffff
lea eax, [ebp - 0x818]
add ebx, 1
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov edi, dword [ebp - 0x8bc]
mov dword [esp], edi
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x4015f3
lea eax, [ebp - 0x818]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
jne 0x4014e5
mov edi, dword [ebp - 0x8c8]
lea ecx, [ebp - 0x818]
mov dword [esp], edi
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 [0x41a008]
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_SendMessageW]
mov dword [ebp - 0x8b8], eax
call eax
mov edx, dword [ebp - 0x8b0]
sub esp, 0x10
test edi, edi
je 0x4015e0
cmp dword [ebp - 0x818], 0x720050
je 0x4017c8
lea eax, [ebp - 0x818]
mov dword [ebp - 0x8b4], 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 - 0x8b4]
test eax, eax
je 0x4018d2
cmp dword [ebp - 0x818], 0x790054
je 0x4015ff
mov edi, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [esp], edx
call edi
sub esp, 4
jmp 0x4014e5
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
cmp dword [ebp - 0x814], 0x650070
jne 0x4015e0
cmp dword [ebp - 0x810], 0x69004c
jne 0x4015e0
cmp dword [ebp - 0x80c], 0x62
jne 0x4015e0
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 - 0x8b4], edx
call edx
mov eax, dword [ebp - 0x8b0]
sub esp, 0x10
mov edi, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [esp], eax
call edi
sub esp, 4
mov dword [esp + 8], esi
mov dword [esp + 4], 0x41003c
mov dword [esp], 0x80000000
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
lea eax, [ebp - 0x8ac]
sub esp, 0xc
mov dword [ebp - 0x8ac], 0x200
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 - 0x8b4]
call edx
lea eax, [ebp - 0x818]
sub esp, 0x10
mov dword [ebp - 0x85c], 0xffff0000
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x888]
mov dword [esp + 4], eax
lea eax, [ebp - 0x418]
mov dword [esp + 8], 0x41003c
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 [0x41a008]
mov dword [esp], eax
mov eax, dword [ebp - 0x8b8]
call eax
sub esp, 0x10
mov dword [ebp - 0x85c], eax
mov eax, dword [ebp - 0x8b0]
mov dword [esp], eax
call edi
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 [0x41003c]
lea ecx, [ebp - 0x618]
mov dword [ebp - 0x618], eax
mov eax, dword [0x410040]
mov dword [ebp - 0x614], eax
mov eax, dword [0x410044]
mov dword [ebp - 0x610], eax
mov eax, dword [0x410048]
mov dword [ebp - 0x60c], eax
mov eax, 0x5c
mov word [ebp - 0x60a], ax
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
mov dword [esp], 0x80000000
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
lea ecx, [ebp - 0x608]
sub esp, 0xc
mov dword [esp], 0
jmp 0x401a67
cmp dword [ebp - 0x814], 0x67006f
jne 0x4015a2
cmp dword [ebp - 0x810], 0x440049
jne 0x4015a2
cmp word [ebp - 0x80c], 0
jne 0x4015a2
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 edi, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [esp], eax
call edi
lea eax, [ebp - 0x618]
sub esp, 4
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], 0x80000000
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
jne 0x4014e5
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 0x4015e6
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 [0x41a008]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
mov dword [ebp - 0x8c0], eax
lea eax, [ebp - 0x418]
mov dword [ebp - 0x844], eax
jmp 0x4014da
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 - 0x8b4], edx
call edx
mov eax, dword [ebp - 0x8b0]
sub esp, 0x10
mov edi, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [esp], eax
call edi
sub esp, 4
mov dword [esp + 8], esi
mov dword [esp + 4], 0x410094
mov dword [esp], 0x80000000
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
lea eax, [ebp - 0x8ac]
sub esp, 0xc
mov dword [ebp - 0x8ac], 0x200
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 - 0x8b4]
call edx
lea eax, [ebp - 0x818]
sub esp, 0x10
mov dword [ebp - 0x85c], 0xffff0000
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x888]
mov dword [esp + 4], eax
lea eax, [ebp - 0x418]
mov dword [esp + 8], 0x410094
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 [0x41a008]
mov dword [esp], eax
mov eax, dword [ebp - 0x8b8]
call eax
sub esp, 0x10
mov dword [ebp - 0x85c], eax
mov eax, dword [ebp - 0x8b0]
mov dword [esp], eax
call edi
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 [0x410094]
lea ecx, [ebp - 0x618]
mov edx, 0x5c
mov dword [ebp - 0x618], eax
mov eax, dword [0x410098]
mov dword [ebp - 0x614], eax
mov eax, dword [0x41009c]
mov dword [ebp - 0x610], eax
mov word [ebp - 0x60e], dx
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
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 [0x41a008]
mov dword [esp], eax
mov eax, dword [ebp - 0x8b8]
call eax
mov eax, dword [ebp - 0x8cc]
sub esp, 0x10
mov edx, dword [ebp - 0x8b0]
mov dword [ebp - 0x85c], eax
jmp 0x4015e6