Function at 0x42cd38
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.00449e4d
add esp, 0xc
push 0x46d830
call fcn.0042a20d
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
xor esi, esi
test eax, eax
je 0x42cd83
cmp dword [0x5080b8], esi
je 0x42cd83
call fcn.00427b70
test eax, eax
je 0x42cd83
xor edi, edi
inc edi
jmp 0x42cd85
xor edi, edi
mov dword [ebp - 4], esi
cmp edi, esi
je 0x42cd9a
mov ecx, dword [0x508070]
call fcn.00443d69
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.0042b4f8
push 0x44f0b8
push str.LastKey
cmp edi, esi
je 0x42cdd0
push str.S_1_5_18SOFTWAREMicrosoftWindowsCurrentVersionAppletsRegedit
push 0x80000003
jmp 0x42cdda
push str.SOFTWAREMicrosoftWindowsCurrentVersionAppletsRegedit
push 0x80000001
call fcn.004272b4
cmp dword [0x4fc6ec], esi
jne 0x42ce07
push str.AdvApi32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, esi
je 0x42ce07
push str.CreateProcessWithTokenW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4fc6ec], eax
cmp edi, esi
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x260]
je 0x42ce40
mov ebx, 0x5050d0
push ebx
push 0x451bbc
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 0x42ce65
push 0x505738
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.00444396
xor eax, eax
inc eax
add esp, 0xc
mov dword [ebp - 0x50], 0x46cf74
mov dword [ebp - 0x2c], eax
mov word [ebp - 0x28], ax
cmp dword [ebp - 4], esi
je 0x42cefd
mov eax, dword [0x508070]
cmp dword [eax + 0x2c], esi
je 0x42cefd
mov ecx, dword [0x4fc6ec]
cmp ecx, esi
je 0x42ced4
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 0x42cef9
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 0x42cf27
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 0x42d0af
push 0x2710
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
test eax, eax
jne 0x42d09f
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 0x42d09f
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 0x42cf90
push str.RegEdit_RegEdit
lea eax, [ebp - 0xa68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x42cf9a
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42cf4b
cmp ebx, esi
je 0x42d09f
push esi
push 0x46cec4
push esi
push ebx
call dword [sym.imp.USER32.dll_FindWindowExW]
mov dword [ebp + 8], eax
cmp eax, esi
je 0x42d09f
cmp dword [0x505628], 0x500
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, 0x101
jne 0x42d030
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 0x42cfd9
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]
cmp word [ebp - 0x868], 0
lea eax, [ebp - 0x868]
mov dword [ebp - 4], eax
je 0x42d09f
mov eax, dword [ebp - 4]
movzx eax, word [eax]
push 0
cmp ax, 0x5c
jne 0x42d070
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 0x42d084
push eax
call fcn.0042b5e9
movzx eax, ax
push eax
push 0x102
push dword [ebp + 8]
call esi
push 0x3e8
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
add dword [ebp - 4], 2
mov eax, dword [ebp - 4]
cmp word [eax], 0
jne 0x42d043
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