Function at 0x42ecbe
Capabilities:
Check for time delay via gettickcount
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa68
push ebx
push esi
push edi
push dword [ebp + 8]
push str.StartRegedit__s_
push 2
call fcn.0044d31e
add esp, 0xc
push 0x470e20
call fcn.0042ba75
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
xor esi, esi
test eax, eax
je 0x42ed09
cmp dword [0x50c7dc], esi
je 0x42ed09
call fcn.00428b68
test eax, eax
je 0x42ed09
xor edi, edi
inc edi
jmp 0x42ed0b
xor edi, edi
mov dword [ebp - 4], esi
cmp edi, esi
je 0x42ed20
mov ecx, dword [0x50c794]
call fcn.004471c1
mov dword [ebp - 4], eax
push dword [ebp + 8]
lea eax, [ebp - 0x868]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x868]
push eax
call fcn.0042ce00
push 0x452148
push str.LastKey
cmp edi, esi
je 0x42ed56
push str.S_1_5_18SOFTWAREMicrosoftWindowsCurrentVersionAppletsRegedit
push 0x80000003
jmp 0x42ed60
push str.SOFTWAREMicrosoftWindowsCurrentVersionAppletsRegedit
push 0x80000001
call fcn.004282ac
cmp dword [0x500730], esi
jne 0x42ed8d
push str.AdvApi32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, esi
je 0x42ed8d
push str.CreateProcessWithTokenW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x500730], eax
cmp edi, esi
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x260]
je 0x42edc6
mov ebx, 0x509520
push ebx
push 0x454f0c
push eax
call edi
lea eax, [ebp - 0x868]
push eax
push ebx
lea eax, [ebp - 0x468]
push str.__s___z_s
push eax
call edi
add esp, 0x1c
jmp 0x42edeb
push 0x509c40
push str._s_regedit.exe
push eax
call edi
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x468]
push str.__s___m
push eax
call edi
add esp, 0x18
xor eax, eax
mov dword [ebp - 0x14], esi
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x3c
stosd dword es:[edi], eax
lea eax, [ebp - 0x50]
push esi
push eax
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x54], esi
call fcn.004476fd
add esp, 0xc
cmp dword [0x509b18], 5
mov dword [ebp - 0x50], 0x452148
jne 0x42ee26
mov dword [ebp - 0x50], str.Winsta0default
xor eax, eax
inc eax
mov dword [ebp - 0x2c], eax
mov word [ebp - 0x28], ax
cmp dword [ebp - 4], esi
je 0x42ee93
mov eax, dword [0x50c794]
cmp dword [eax + 0x2c], esi
je 0x42ee93
mov ecx, dword [0x500730]
cmp ecx, esi
je 0x42ee6a
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x58]
push edx
push esi
push esi
push esi
lea edx, [ebp - 0x468]
push edx
lea edx, [ebp - 0x260]
push edx
push esi
push dword [eax + 0x2c]
call ecx
jmp 0x42ee8f
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x58]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x468]
push ecx
lea ecx, [ebp - 0x260]
push ecx
push dword [eax + 0x2c]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp eax, esi
jne 0x42eebd
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, esi
je 0x42f057
push 0x2710
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
test eax, eax
jne 0x42f047
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 8], eax
mov edi, 0x100
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 8]
cmp eax, 0x1388
jae 0x42f047
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, eax
push edi
lea eax, [ebp - 0xa68]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x42ef26
push str.RegEdit_RegEdit
lea eax, [ebp - 0xa68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x42ef30
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42eee1
cmp ebx, esi
je 0x42f047
push esi
push 0x47049c
push esi
push ebx
call dword [sym.imp.USER32.dll_FindWindowExW]
mov dword [ebp + 8], eax
cmp eax, esi
je 0x42f047
cmp dword [0x509b30], 0x500
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, 0x101
jne 0x42efc6
mov dword [ebp - 4], 0x14
push 0
push 0x25
push edi
push dword [ebp + 8]
call esi
push 0xc0000000
push 0x25
push ebx
push dword [ebp + 8]
call esi
push 0x3e8
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
dec dword [ebp - 4]
jne 0x42ef6f
push 0
push 0x24
push edi
push dword [ebp + 8]
call esi
push 0xc0000000
push 0x24
push ebx
push dword [ebp + 8]
call esi
push 0x3e8
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x2710
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
cmp word [ebp - 0x868], 0
lea eax, [ebp - 0x868]
mov dword [ebp - 4], eax
je 0x42f047
mov eax, dword [ebp - 4]
movzx eax, word [eax]
push 0
cmp ax, 0x5c
jne 0x42f014
push 0x27
push edi
push dword [ebp + 8]
call esi
push 0xc0000000
push 0x27
push ebx
push dword [ebp + 8]
call esi
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42f028
push eax
call fcn.0042cef1
movzx eax, ax
push eax
push 0x102
push dword [ebp + 8]
call esi
xor eax, eax
push eax
push eax
push eax
push dword [ebp + 8]
call esi
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [ebp - 4], 2
mov eax, dword [ebp - 4]
cmp word [eax], 0
jne 0x42efe7
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
pop edi
pop esi
pop ebx
leave
ret 4