Function at 0x404fc0
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xa9c
mov word [ebp - 0xa52], ax
mov eax, dword [0x41b678]
mov dword [ebp - 0xa62], 0x280020
mov dword [ebp - 0xa50], eax
lea eax, [ebp - 0xa84]
mov dword [esp + 8], eax
mov eax, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [ebp - 0xa5e], 0x730025
mov dword [ebp - 0xa5a], 0x250020
mov dword [ebp - 0xa56], 0x290073
mov dword [ebp - 0xa6e], 0x730025
mov dword [ebp - 0xa6a], 0x25005c
mov dword [ebp - 0xa66], 0x73
mov dword [ebp - 0xa48], 5
mov dword [ebp - 0xa34], 0x100
mov dword [ebp - 0xa4c], 0xffff0001
mov dword [esp + 4], str.TypeLib_
mov dword [esp], 0x80000000
mov dword [ebp - 0xa8c], eax
call eax
sub esp, 0xc
test eax, eax
jne 0x405303
mov dword [ebp - 0xa90], 0xffffffff
lea ebx, [ebp - 0x80c]
lea esi, [esi]
add dword [ebp - 0xa90], 1
mov eax, dword [ebp - 0xa90]
mov dword [esp + 0xc], 0x100
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xa84]
mov dword [esp + 8], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x4052c7
lea eax, [ebp - 0xa80]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xa84]
mov dword [esp], eax
mov eax, dword [ebp - 0xa8c]
call eax
sub esp, 0xc
test eax, eax
jne 0x405088
mov dword [ebp - 0xa88], 0xffffffff
nop
add dword [ebp - 0xa88], 1
mov eax, dword [ebp - 0xa88]
lea esi, [ebp - 0xa0c]
mov dword [esp + 0xc], 0x100
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xa80]
mov dword [esp + 8], esi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x4052b0
lea eax, [ebp - 0xa7c]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xa80]
mov dword [esp], eax
mov eax, dword [ebp - 0xa8c]
call eax
sub esp, 0xc
test eax, eax
jne 0x4050f0
lea eax, [ebp - 0xa74]
lea esi, [ebp - 0x60c]
mov dword [ebp - 0xa74], 0x200
mov edi, dword [sym.imp.advapi32.dll_RegQueryValueW]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xa7c]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call edi
sub esp, 0x10
test eax, eax
jne 0x40519f
cmp word [ebp - 0x60c], 0
jne 0x40530b
lea eax, [ebp - 0xa0c]
lea edx, [ebp - 0x40c]
mov dword [ebp - 0xa38], eax
mov eax, dword [sym.imp.user32.dll_wsprintfW]
lea esi, [ebp - 0x20c]
mov dword [ebp - 0xa98], eax
mov eax, dword [ebp - 0xa7c]
mov dword [ebp - 0xa94], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov edx, dword [ebp - 0xa94]
lea eax, [ebp - 0xa0c]
sub esp, 4
mov dword [esp + 0xc], eax
lea eax, [ebp - 0xa6e]
mov dword [esp], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xa98]
mov dword [esp + 8], ebx
call eax
mov dword [esp + 4], 0x60c
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov edx, dword [ebp - 0xa94]
mov byte [eax], 2
mov ecx, eax
xor eax, eax
lea esi, [esi]
movzx edi, word [edx + eax]
mov word [ecx + eax + 2], di
add eax, 2
test di, di
jne 0x405228
xor eax, eax
lea esi, [esi]
nop
movzx edx, word [ebx + eax]
mov word [ecx + eax + 0x202], dx
add eax, 2
test dx, dx
jne 0x405240
xor eax, eax
lea esi, [esi]
lea esi, [esi]
movzx edx, word [esi + eax]
mov word [ecx + eax + 0x402], dx
add eax, 2
test dx, dx
jne 0x405260
lea eax, [ebp - 0xa50]
mov dword [ebp - 0xa24], ecx
mov dword [esp + 0xc], eax
mov eax, dword [0x41b030]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
jmp 0x4050f0
mov eax, dword [ebp - 0xa80]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x405088
mov eax, dword [ebp - 0xa84]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [0x41b678]
sub esp, 4
mov dword [esp + 0xc], eax
mov eax, dword [0x41b030]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1113
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x41b03c]
lea edx, [ebp - 0x40c]
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], edx
mov dword [ebp - 0xa94], edx
mov dword [esp + 4], 0xdd
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
mov edx, dword [ebp - 0xa94]
mov eax, esi
sub esp, 0x10
cmp word [ebp - 0x60c], 0
je 0x405359
nop
add eax, 2
cmp word [eax], 0
jne 0x405350
mov dword [esp], eax
lea ecx, [ebp - 0xa0c]
mov eax, dword [sym.imp.user32.dll_wsprintfW]
mov dword [esp + 0xc], ecx
lea ecx, [ebp - 0xa62]
mov dword [esp + 8], edx
mov dword [ebp - 0xa94], edx
mov dword [esp + 4], ecx
mov dword [ebp - 0xa98], eax
call eax
lea eax, [ebp - 0xa78]
mov dword [ebp - 0xa38], esi
lea esi, [ebp - 0x20c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xa7c]
mov dword [ebp - 0xa74], 0x100
mov dword [esp], eax
mov eax, dword [ebp - 0xa8c]
mov dword [esp + 4], str.0win32
call eax
lea eax, [ebp - 0xa74]
sub esp, 0xc
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xa78]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0xa78]
sub esp, 0x10
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov edx, dword [ebp - 0xa94]
sub esp, 4
jmp 0x4051c2