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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov esi, 0x25
mov edi, 0x30
xor ebx, ebx
sub esp, 0x8ec
mov dword [ebp - 0x8c0], eax
mov eax, 0x32
mov word [ebp - 0x88e], ax
mov eax, 0x58
mov dword [ebp - 0x8c8], ecx
mov word [ebp - 0x88c], ax
mov eax, 0x20
mov word [ebp - 0x892], si
mov word [ebp - 0x88a], ax
xor eax, eax
mov word [ebp - 0x890], di
mov word [ebp - 0x888], ax
mov eax, 0x2e
mov ecx, 0x2e
mov word [ebp - 0x89a], ax
mov eax, 0x2e
mov esi, 0x25
mov word [ebp - 0x898], ax
mov eax, 0x20
mov edi, 0x73
mov word [ebp - 0x872], ax
mov eax, 0x5b
mov word [ebp - 0x896], cx
mov word [ebp - 0x870], ax
mov eax, 0x25
mov word [ebp - 0x894], bx
mov word [ebp - 0x86e], ax
mov eax, 0x73
mov word [ebp - 0x876], si
mov word [ebp - 0x86c], ax
mov eax, 0x5d
mov word [ebp - 0x874], di
mov word [ebp - 0x86a], ax
mov eax, 0x20
mov ecx, 0x3d
mov word [ebp - 0x868], ax
xor eax, eax
mov ebx, 0x20
mov word [ebp - 0x85e], ax
mov eax, 0x25
mov esi, 0x25
mov word [ebp - 0x886], ax
mov edi, 0x73
mov eax, 0x73
mov word [ebp - 0x866], cx
mov word [ebp - 0x864], bx
mov ecx, 0x25
mov word [ebp - 0x862], si
mov dword [ebp - 0x8cc], edx
mov ebx, 0x73
mov word [ebp - 0x860], di
mov word [ebp - 0x884], ax
mov eax, 0x20
mov word [ebp - 0x882], ax
mov word [ebp - 0x87c], cx
mov eax, 0x3d
lea ecx, [ebp - 0x418]
mov word [ebp - 0x880], ax
xor esi, esi
mov eax, 0x20
mov word [ebp - 0x87a], bx
mov word [ebp - 0x878], si
mov word [ebp - 0x87e], ax
mov dword [ebp - 0x854], 1
mov dword [ebp - 0x840], 0x100
mov dword [ebp - 0x844], ecx
mov dword [ebp - 0x858], 0xffff0002
mov dword [ebp - 0x85c], edx
mov dword [ebp - 0x8c4], edx
mov dword [ebp - 0x8bc], 0
jmp 0x401265
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x818]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x8c8]
mov dword [esp + 8], eax
lea eax, [ebp - 0x876]
mov dword [esp + 4], eax
lea eax, [ebp - 0x418]
mov dword [esp], eax
call ebx
mov eax, dword [0x41a4a8]
lea esi, [ebp - 0x85c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov edi, dword [sym.imp.user32.dll_SendMessageW]
mov dword [esp + 0xc], esi
mov dword [esp], eax
call edi
mov dword [ebp - 0x8c4], eax
mov eax, dword [ebp + 8]
sub esp, 0x10
test eax, eax
je 0x40125e
lea eax, [ebp - 0x818]
mov dword [esp + 8], 0xc
mov dword [esp + 4], str.AppID
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_memcmp]
test eax, eax
je 0x401330
add dword [ebp - 0x8bc], 1
lea eax, [ebp - 0x8a4]
mov dword [ebp - 0x8a8], 0x100
mov dword [ebp - 0x8a4], 0x200
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x618]
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x8a0]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x8a8]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x818]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x8bc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x8c0]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumValueW]
sub esp, 0x20
test eax, eax
jne 0x40154d
cmp dword [ebp - 0x8a0], 3
mov ebx, dword [sym.imp.user32.dll_wsprintfW]
je 0x4014c0
mov edx, dword [ebp - 0x8a8]
lea eax, [ebp - 0x618]
test edx, edx
jne 0x4011d0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x8c8]
mov dword [esp + 8], eax
lea eax, [ebp - 0x886]
mov dword [esp + 4], eax
lea eax, [ebp - 0x418]
mov dword [esp], eax
call ebx
jmp 0x4011fd
movzx edx, word [ebp + eax - 0x818]
mov word [ebp + eax - 0x418], dx
add eax, 2
test dx, dx
jne 0x401330
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
mov edx, 0x43
jmp 0x401379
movzx edx, word [eax + 0x410094]
mov word [ebp + eax - 0x618], dx
add eax, 2
test dx, dx
jne 0x401372
mov eax, 0x5c
mov dword [esp], 0x80000000
mov word [ebp - 0x60e], ax
lea eax, [ebp - 0x8ac]
mov dword [esp + 8], eax
lea eax, [ebp - 0x618]
mov dword [esp + 4], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
jne 0x40125e
mov eax, dword [0x41a4a8]
mov dword [ebp - 0x85c], 0xffff0000
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov dword [esp], eax
call edi
mov dword [ebp - 0x85c], eax
lea eax, [ebp - 0x8a8]
sub esp, 0x10
mov dword [ebp - 0x8a8], 0x200
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x818]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x8ac]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueW]
mov eax, dword [ebp - 0x8ac]
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 - 0x886]
mov dword [esp + 4], eax
lea eax, [ebp - 0x418]
mov dword [esp], eax
call ebx
mov eax, dword [0x41a4a8]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov dword [esp], eax
call edi
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 [0x41a4a8]
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x8cc]
sub esp, 0x10
mov dword [ebp - 0x85c], eax
jmp 0x40125e
lea esi, [ebp - 0x618]
lea edi, [ebp - 0x218]
lea esi, [esi]
movzx eax, byte [esi]
mov dword [esp], edi
add edi, 6
add esi, 2
mov dword [esp + 8], eax
lea eax, [ebp - 0x892]
mov dword [esp + 4], eax
call ebx
lea eax, [ebp - 0x20]
cmp eax, edi
jne 0x4014d0
mov eax, dword [ebp - 0x8a4]
mov edx, 0xff
lea eax, [eax + eax*2]
cmp eax, 0xff
cmova eax, edx
xor ecx, ecx
mov word [ebp + eax*2 - 0x218], cx
xor eax, eax
movzx edx, word [ebp + eax - 0x218]
mov word [ebp + eax - 0x618], dx
add eax, 2
test dx, dx
jne 0x401515
xor eax, eax
nop
movzx edx, word [ebp + eax - 0x89a]
mov word [ebp + eax - 0x422], dx
add eax, 2
test dx, dx
jne 0x401530
jmp 0x4012ea
mov ebx, dword [ebp - 0x8bc]
test ebx, ebx
jne 0x40157b
mov eax, dword [ebp - 0x8c8]
cmp word [eax], 0
je 0x40157b
add eax, 2
cmp word [eax], 0
jne 0x401563
sub eax, dword [ebp - 0x8c8]
cmp eax, 3
jg 0x401ac3
lea esi, [ebp - 0x8ac]
mov edi, 0xffffffff
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [ebp - 0x8c0]
lea eax, [ebp - 0x818]
add edi, 1
mov dword [esp + 0xc], 0x100
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp], ebx
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x4016bd
lea eax, [ebp - 0x818]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
jne 0x401590
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0x8c4]
lea ecx, [ebp - 0x818]
mov dword [esp], eax
mov eax, dword [ebp - 0x8ac]
mov edx, ebx
call dbg.CreateRegRec
mov eax, dword [0x41a4a8]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 2
mov dword [esp + 4], 0x1102
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_SendMessageW]
mov dword [ebp - 0x8bc], eax
call eax
mov ecx, dword [ebp + 8]
sub esp, 0x10
mov ebx, dword [sym.imp.advapi32.dll_RegCloseKey]
test ecx, ecx
je 0x4016aa
lea eax, [ebp - 0x818]
mov dword [esp + 8], 0xe
mov dword [esp + 4], str.ProgID
mov ebx, dword [sym.imp.ucrtbase.dll_memcmp]
mov dword [esp], eax
call ebx
test eax, eax
je 0x4016c5
lea eax, [ebp - 0x818]
mov dword [esp + 8], 0x22
mov dword [esp + 4], str.ProxyStubClsid32
mov dword [esp], eax
call ebx
test eax, eax
je 0x401759
lea eax, [ebp - 0x818]
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0x41003c
mov dword [esp], eax
call ebx
test eax, eax
mov ebx, dword [sym.imp.advapi32.dll_RegCloseKey]
je 0x401945
mov eax, dword [ebp - 0x8ac]
mov dword [esp], eax
call ebx
sub esp, 4
jmp 0x401590
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x8a4]
mov dword [ebp - 0x8a4], 0x200
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x618]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x8ac]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueW]
mov eax, dword [ebp - 0x8ac]
sub esp, 0x10
mov ebx, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [esp], eax
call ebx
lea eax, [ebp - 0x618]
sub esp, 4
mov dword [esp + 8], esi
mov dword [esp], 0x80000000
mov dword [esp + 4], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
jne 0x401590
mov eax, dword [ebp - 0x8ac]
lea ecx, [ebp - 0x618]
mov dword [esp], 0
mov edx, 0xffff0000
call dbg.CreateRegRec
jmp 0x4016aa
lea eax, [ebp - 0x8a4]
mov edx, dword [sym.imp.advapi32.dll_RegQueryValueW]
mov dword [ebp - 0x8a4], 0x200
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x618]
mov dword [ebp - 0x8c8], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x8ac]
mov dword [esp], eax
call edx
mov eax, dword [ebp - 0x8ac]
sub esp, 0x10
mov ebx, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [esp], eax
call ebx
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 - 0x8a8]
sub esp, 0xc
mov edx, dword [ebp - 0x8c8]
mov dword [ebp - 0x8a8], 0x200
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x818]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x8ac]
mov dword [esp], eax
call edx
lea eax, [ebp - 0x818]
sub esp, 0x10
mov dword [ebp - 0x85c], 0xffff0000
mov dword [esp + 8], 0x410094
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x886]
mov dword [esp + 4], eax
lea eax, [ebp - 0x418]
mov dword [esp], eax
call dword [sym.imp.user32.dll_wsprintfW]
lea eax, [ebp - 0x85c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov dword [esp + 0xc], eax
mov eax, dword [0x41a4a8]
mov dword [esp], eax
call dword [ebp - 0x8bc]
mov dword [ebp - 0x85c], eax
mov eax, dword [ebp - 0x8ac]
sub esp, 0x10
mov dword [esp], eax
call ebx
lea ecx, [ebp - 0x618]
sub esp, 4
mov eax, dword [ebp - 0x8a4]
mov dword [esp + 4], ecx
lea ecx, [ebp - 0x60c]
mov dword [esp + 8], eax
mov dword [esp], ecx
mov dword [ebp - 0x8c8], ecx
call dword [sym.imp.ucrtbase.dll_memmove]
mov eax, dword [0x410094]
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
lea ecx, [ebp - 0x618]
mov dword [esp + 8], esi
mov dword [esp], 0x80000000
mov dword [esp + 4], ecx
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov ecx, dword [ebp - 0x8c8]
mov edx, dword [ebp - 0x85c]
sub esp, 0xc
mov eax, dword [ebp - 0x8ac]
mov dword [esp], 0
call dbg.CreateRegRec
mov eax, dword [ebp - 0x85c]
mov dword [esp + 8], 2
mov dword [esp + 4], 0x1102
mov dword [esp + 0xc], eax
mov eax, dword [0x41a4a8]
mov dword [esp], eax
call dword [ebp - 0x8bc]
mov eax, dword [ebp - 0x8cc]
sub esp, 0x10
mov dword [ebp - 0x85c], eax
jmp 0x4016aa
lea eax, [ebp - 0x8a4]
mov edx, dword [sym.imp.advapi32.dll_RegQueryValueW]
mov dword [ebp - 0x8a4], 0x200
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x618]
mov dword [ebp - 0x8c8], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x8ac]
mov dword [esp], eax
call edx
mov eax, dword [ebp - 0x8ac]
sub esp, 0x10
mov dword [esp], eax
call ebx
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 - 0x8a8]
sub esp, 0xc
mov edx, dword [ebp - 0x8c8]
mov dword [ebp - 0x8a8], 0x200
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x818]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x8ac]
mov dword [esp], eax
call edx
lea eax, [ebp - 0x818]
sub esp, 0x10
mov dword [ebp - 0x85c], 0xffff0000
mov dword [esp + 8], 0x41003c
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x886]
mov dword [esp + 4], eax
lea eax, [ebp - 0x418]
mov dword [esp], eax
call dword [sym.imp.user32.dll_wsprintfW]
lea eax, [ebp - 0x85c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov dword [esp + 0xc], eax
mov eax, dword [0x41a4a8]
mov dword [esp], eax
call dword [ebp - 0x8bc]
mov dword [ebp - 0x85c], eax
mov eax, dword [ebp - 0x8ac]
sub esp, 0x10
mov dword [esp], eax
call ebx
lea ecx, [ebp - 0x618]
sub esp, 4
mov eax, dword [ebp - 0x8a4]
mov dword [esp + 4], ecx
lea ecx, [ebp - 0x608]
mov dword [esp + 8], eax
mov dword [esp], ecx
mov dword [ebp - 0x8c8], ecx
call dword [sym.imp.ucrtbase.dll_memmove]
mov eax, dword [0x41003c]
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
jmp 0x4018cd
mov eax, dword [ebp - 0x8c8]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov dword [ebp - 0x844], eax
lea eax, [ebp - 0x85c]
mov dword [esp + 0xc], eax
mov eax, dword [0x41a4a8]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
mov dword [ebp - 0x8c4], eax
lea eax, [ebp - 0x418]
sub esp, 0x10
mov dword [ebp - 0x844], eax
jmp 0x40157b