Function at 0x42f1b9
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, 0xc68
push ebx
push esi
push edi
push dword [ebp + 8]
push str.StartRegedit__s_
push 2
call fcn.0044def7
add esp, 0xc
push 0x472060
call fcn.0042bda5
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
xor ebx, ebx
test eax, eax
je 0x42f204
cmp dword [0x50d83c], ebx
je 0x42f204
call fcn.00428dc5
test eax, eax
je 0x42f204
xor edi, edi
inc edi
jmp 0x42f206
xor edi, edi
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x42f21b
mov ecx, dword [0x50d7f4]
call fcn.00447cda
mov dword [ebp - 4], eax
push dword [ebp + 8]
lea eax, [ebp - 0xc68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0xc68]
push eax
call fcn.0042d055
mov esi, 0x453148
push esi
push str.LastKey
cmp edi, ebx
je 0x42f252
push str.S_1_5_18SOFTWAREMicrosoftWindowsCurrentVersionAppletsRegedit
push 0x80000003
jmp 0x42f25c
push str.SOFTWAREMicrosoftWindowsCurrentVersionAppletsRegedit
push 0x80000001
call fcn.00428494
cmp dword [0x501770], ebx
jne 0x42f289
push str.AdvApi32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x42f289
push str.CreateProcessWithTokenW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x501770], eax
cmp edi, ebx
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x260]
je 0x42f2c5
push 0x50a5f8
push 0x45609c
push eax
call edi
lea eax, [ebp - 0xc68]
push eax
push 0x50a5f8
lea eax, [ebp - 0x468]
push str.__s___z_s
push eax
call edi
add esp, 0x1c
jmp 0x42f2ea
push 0x50ad20
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], ebx
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 ebx
push eax
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x54], ebx
call fcn.00448216
add esp, 0xc
cmp dword [0x50abf8], 5
mov dword [ebp - 0x50], esi
jne 0x42f321
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], ebx
je 0x42f392
mov eax, dword [0x50d7f4]
cmp dword [eax + 0x2c], ebx
je 0x42f392
mov ecx, dword [0x501770]
cmp ecx, ebx
je 0x42f365
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x58]
push edx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x468]
push edx
lea edx, [ebp - 0x260]
push edx
push ebx
push dword [eax + 0x2c]
call ecx
jmp 0x42f38a
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x58]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
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, ebx
jne 0x42f45b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, ebx
jne 0x42f45b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2e4
jne 0x42f5f4
push 5
pop ecx
push 0x3ec
lea eax, [ebp - 0x854]
push ebx
mov esi, str.Computer_
lea edi, [ebp - 0x868]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00448216
add esp, 0xc
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.0042d055
push 0x5c
lea eax, [ebp - 0x868]
push eax
call fcn.00427ca0
lea eax, [ebp - 0x868]
push eax
push str.LastKey
push str.SOFTWAREMicrosoftWindowsCurrentVersionAppletsRegedit
push 0x80000001
call fcn.00428494
push 1
push 0x50ad20
push 0x471ecc
lea eax, [ebp - 0x260]
push eax
push str.runas
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x42f5f4
push 0x2710
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
test eax, eax
jne 0x42f5e4
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 0x42f5e4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
push edi
lea eax, [ebp - 0x668]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x42f4c4
push str.RegEdit_RegEdit
lea eax, [ebp - 0x668]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x42f4ce
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42f47f
cmp esi, ebx
je 0x42f5e4
push ebx
push 0x471618
push ebx
push esi
call dword [sym.imp.USER32.dll_FindWindowExW]
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x42f5e4
cmp dword [0x50ac10], 0x500
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
jne 0x42f565
mov dword [ebp - 4], 0x14
push ebx
push 0x25
push edi
push dword [ebp + 8]
call esi
push 0xc0000000
push 0x25
push 0x101
push dword [ebp + 8]
call esi
push 0x3e8
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
dec dword [ebp - 4]
jne 0x42f508
push ebx
push 0x24
push edi
push dword [ebp + 8]
call esi
push 0xc0000000
push 0x24
push 0x101
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]
lea eax, [ebp - 0xc68]
mov dword [ebp - 4], eax
cmp word [ebp - 0xc68], bx
je 0x42f5e4
mov eax, dword [ebp - 4]
movzx eax, word [eax]
push ebx
cmp ax, 0x5c
jne 0x42f5b5
push 0x27
push edi
push dword [ebp + 8]
call esi
push 0xc0000000
push 0x27
push 0x101
push dword [ebp + 8]
call esi
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42f5c9
push eax
call fcn.0042d146
movzx eax, ax
push eax
push 0x102
push dword [ebp + 8]
call esi
push ebx
push ebx
push ebx
push dword [ebp + 8]
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [ebp - 4], 2
mov eax, dword [ebp - 4]
cmp word [eax], bx
jne 0x42f585
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