Function at 0x42e52a
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.0044c79b
add esp, 0xc
push 0x46fdd8
call fcn.0042b534
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
xor esi, esi
test eax, eax
je 0x42e575
cmp dword [0x50b3c0], esi
je 0x42e575
call fcn.0042877f
test eax, eax
je 0x42e575
xor edi, edi
inc edi
jmp 0x42e577
xor edi, edi
mov dword [ebp - 4], esi
cmp edi, esi
je 0x42e58c
mov ecx, dword [0x50b378]
call fcn.0044656f
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.0042c8bd
push 0x451138
push str.LastKey
cmp edi, esi
je 0x42e5c2
push str.S_1_5_18SOFTWAREMicrosoftWindowsCurrentVersionAppletsRegedit
push 0x80000003
jmp 0x42e5cc
push str.SOFTWAREMicrosoftWindowsCurrentVersionAppletsRegedit
push 0x80000001
call fcn.00427ec3
cmp dword [0x4ff72c], esi
jne 0x42e5f9
push str.AdvApi32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, esi
je 0x42e5f9
push str.CreateProcessWithTokenW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4ff72c], eax
cmp edi, esi
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x260]
je 0x42e632
mov ebx, 0x508110
push ebx
push 0x453f14
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 0x42e657
push 0x508830
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.00446b72
add esp, 0xc
cmp dword [0x508708], 5
mov dword [ebp - 0x50], 0x451138
jne 0x42e692
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 0x42e6ff
mov eax, dword [0x50b378]
cmp dword [eax + 0x2c], esi
je 0x42e6ff
mov ecx, dword [0x4ff72c]
cmp ecx, esi
je 0x42e6d6
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 0x42e6fb
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 0x42e729
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 0x42e8c3
push 0x2710
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
test eax, eax
jne 0x42e8b3
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 0x42e8b3
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 0x42e792
push str.RegEdit_RegEdit
lea eax, [ebp - 0xa68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x42e79c
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42e74d
cmp ebx, esi
je 0x42e8b3
push esi
push 0x46f450
push esi
push ebx
call dword [sym.imp.USER32.dll_FindWindowExW]
mov dword [ebp + 8], eax
cmp eax, esi
je 0x42e8b3
cmp dword [0x508720], 0x500
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, 0x101
jne 0x42e832
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 0x42e7db
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 0x42e8b3
mov eax, dword [ebp - 4]
movzx eax, word [eax]
push 0
cmp ax, 0x5c
jne 0x42e880
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 0x42e894
push eax
call fcn.0042c9ae
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 0x42e853
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