Function at 0x405c20
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 + 0x24], 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 0x406098
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 0x405cd6
mov eax, dword [esp + 0x300]
push 0x30
push str.Regmon
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 str.HKLM
push ecx
call fcn.004096e0
add esp, 0xc
test eax, eax
jne 0x405d66
lea edx, [esp + 0x5c]
lea eax, [esp + 0x15c]
push edx
push str.HKEY_LOCAL_MACHINE_s
push eax
call fcn.004093c5
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 0x405eab
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 0x405ed4
push 4
lea eax, [esp + 0x5c]
push str.HKCU
push eax
call fcn.004096e0
add esp, 0xc
test eax, eax
jne 0x405dac
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x15c]
push ecx
push str.HKEY_CURRENT_USER_s
push edx
call fcn.004093c5
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x5d]
push eax
push ecx
push 0x80000001
jmp 0x405d17
push 4
lea edx, [esp + 0x5c]
push str.HKCC
push edx
call fcn.004096e0
add esp, 0xc
test eax, eax
jne 0x405df2
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x15c]
push eax
push str.HKEY_CURRENT_CONFIG_s
push ecx
call fcn.004093c5
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x5d]
push edx
push eax
push 0x80000005
jmp 0x405d17
push 4
lea ecx, [esp + 0x5c]
push str.HKCR
push ecx
call fcn.004096e0
add esp, 0xc
test eax, eax
jne 0x405e38
lea edx, [esp + 0x5c]
lea eax, [esp + 0x15c]
push edx
push str.HKEY_CLASSES_ROOT_s
push eax
call fcn.004093c5
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x5d]
push ecx
push edx
push 0x80000000
jmp 0x405d17
push 3
lea eax, [esp + 0x5c]
push 0x4139b8
push eax
call fcn.004096e0
add esp, 0xc
test eax, eax
jne 0x405e7e
lea ecx, [esp + 0x5b]
lea edx, [esp + 0x15c]
push ecx
push str.HKEY_USERS_s
push edx
call fcn.004093c5
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x5c]
push eax
push ecx
push 0x80000003
jmp 0x405d17
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 0x405d25
lea eax, [esp + 0x15c]
push 0x5c
push eax
call fcn.00409bf0
lea ecx, [esp + 0x164]
inc eax
push 0x5c
push ecx
mov dword [esp + 0x28], eax
call fcn.00409bf0
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 0x405f67
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 0x405f67
mov ecx, dword [esp + 0x300]
push 0x10
push str.Regmon
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 0x405f9a
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 + 0x14], edx
je 0x406018
mov eax, dword [esp + 0x14]
mov al, byte [eax]
cmp al, 0x5c
jne 0x405ff3
push 0
push 0x27
push 0x100
push esi
call ebx
push 0xffffffffffffffff
call edi
push eax
call dword [sym.imp.USER32.dll_WaitForInputIdle]
jmp 0x40600a
movsx ecx, al
push ecx
call fcn.00409b23
add esp, 4
push 0
push eax
push 0x102
push esi
call ebx
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp byte [eax], 0
jne 0x405fd0
mov edi, dword [esp + 0x18]
test edi, edi
je 0x40608a
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]
cmp dword [esp + 0x2c8], 8
jbe 0x406055
push 0x2ee
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x24
push 0x100
push esi
call ebx
mov edx, dword [esp + 0x18]
mov al, byte [edx]
test al, al
je 0x40608a
movsx eax, al
push eax
call fcn.00409b23
add esp, 4
push 0
push eax
push 0x102
push esi
call ebx
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40606b
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