Function at 0x405b10
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
sub esp, 0x2ec
push ebx
push ebp
push esi
lea eax, [esp + 0x25c]
push edi
push eax
push 0xffffffffffffffff
push 0
mov dword [esp + 0x20], 0
mov word [esp + 0x290], 0x9c
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
mov ecx, dword [0x4197a0]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 2
push 0xffffffffffffffff
push 0x100c
push ecx
call ebx
mov edx, eax
cmp edx, 0xffffffff
je 0x405f80
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x58]
mov dword [esp + 0x24], 4
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x58]
push ecx
push edx
mov edx, dword [0x4197a0]
push 0x102d
push edx
mov dword [esp + 0x44], 0x104
mov dword [esp + 0x40], eax
call ebx
cmp byte [esp + 0x58], 0x30
jne 0x405bc6
mov eax, dword [esp + 0x300]
push 0x30
push 0x4132a8
push str.The_full_name_of_the_selected_key_or_value_is_not_available.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2ec
ret
push 4
lea ecx, [esp + 0x5c]
push 0x413a34
push ecx
call fcn.004095c0
add esp, 0xc
test eax, eax
jne 0x405c56
lea edx, [esp + 0x5c]
lea eax, [esp + 0x15c]
push edx
push str.HKEY_LOCAL_MACHINE_s
push eax
call fcn.004092a5
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x5d]
push ecx
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x405d9b
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x413670
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x15c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x405dc4
push 4
lea eax, [esp + 0x5c]
push 0x413a14
push eax
call fcn.004095c0
add esp, 0xc
test eax, eax
jne 0x405c9c
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x15c]
push ecx
push str.HKEY_CURRENT_USER_s
push edx
call fcn.004092a5
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x5d]
push eax
push ecx
push 0x80000001
jmp 0x405c07
push 4
lea edx, [esp + 0x5c]
push 0x4139f4
push edx
call fcn.004095c0
add esp, 0xc
test eax, eax
jne 0x405ce2
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x15c]
push eax
push str.HKEY_CURRENT_CONFIG_s
push ecx
call fcn.004092a5
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x5d]
push edx
push eax
push 0x80000005
jmp 0x405c07
push 4
lea ecx, [esp + 0x5c]
push 0x4139d4
push ecx
call fcn.004095c0
add esp, 0xc
test eax, eax
jne 0x405d28
lea edx, [esp + 0x5c]
lea eax, [esp + 0x15c]
push edx
push str.HKEY_CLASSES_ROOT_s
push eax
call fcn.004092a5
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x5d]
push ecx
push edx
push 0x80000000
jmp 0x405c07
push 3
lea eax, [esp + 0x5c]
push 0x4139b8
push eax
call fcn.004095c0
add esp, 0xc
test eax, eax
jne 0x405d6e
lea ecx, [esp + 0x5b]
lea edx, [esp + 0x15c]
push ecx
push str.HKEY_USERS_s
push edx
call fcn.004092a5
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x5c]
push eax
push ecx
push 0x80000003
jmp 0x405c07
lea edi, [esp + 0x58]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x15c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x405c15
lea eax, [esp + 0x15c]
push 0x5c
push eax
call fcn.00409ad0
lea ecx, [esp + 0x164]
inc eax
push 0x5c
push ecx
mov dword [esp + 0x24], eax
call fcn.00409ad0
add esp, 0x10
mov byte [eax], 0
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
push 0
push str.RegEdit_RegEdit
call esi
mov ebp, eax
test ebp, ebp
jne 0x405e57
mov ecx, 0xf
lea edi, [esp + 0x1c]
lea edx, [esp + 0x1c]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x20], 0x3c
mov dword [esp + 0x24], 0x40
mov dword [esp + 0x2c], str.open
mov dword [esp + 0x30], str.regedit.exe
mov dword [esp + 0x3c], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov eax, dword [esp + 0x54]
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push ebp
push str.RegEdit_RegEdit
call esi
mov ebp, eax
test ebp, ebp
jne 0x405e57
mov ecx, dword [esp + 0x300]
push 0x10
push 0x4132a8
push str.Regmon_was_unable_to_launch_Regedit.
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2ec
ret
push 5
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [sym.imp.USER32.dll_SetForegroundWindow]
push ebp
call edi
push 0
push str.SysTreeView32
push 0
push ebp
call dword [sym.imp.USER32.dll_FindWindowExA]
mov esi, eax
push esi
call edi
push esi
call dword [sym.imp.USER32.dll_SetFocus]
mov edi, 0x1e
push 0
push 0x25
push 0x100
push esi
call ebx
dec edi
jne 0x405e8a
mov edi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push 0xffffffffffffffff
call edi
push eax
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov al, byte [esp + 0x15c]
lea edx, [esp + 0x15c]
test al, al
mov dword [esp + 0x18], edx
je 0x405f08
mov eax, dword [esp + 0x18]
mov al, byte [eax]
cmp al, 0x5c
jne 0x405ee3
push 0
push 0x27
push 0x100
push esi
call ebx
push 0xffffffffffffffff
call edi
push eax
call dword [sym.imp.USER32.dll_WaitForInputIdle]
jmp 0x405efa
movsx ecx, al
push ecx
call fcn.00409a03
add esp, 4
push 0
push eax
push 0x102
push esi
call ebx
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp byte [eax], 0
jne 0x405ec0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x405f72
push 0
push str.SysListView32
push 0
push ebp
call dword [sym.imp.USER32.dll_FindWindowExA]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
call dword [sym.imp.USER32.dll_SetFocus]
push 0xffffffffffffffff
call edi
push eax
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push 0
push 0x24
push 0x100
push esi
call ebx
mov edi, dword [esp + 0x14]
mov edx, edi
mov al, byte [edx]
test al, al
je 0x405f72
movsx eax, al
push eax
call fcn.00409a03
add esp, 4
push 0
push eax
push 0x102
push esi
call ebx
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405f53
push ebp
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push ebp
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2ec
ret