Function at 0x43021c
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.0044fe2e
add esp, 0xc
push 0x4748c0
call fcn.0042cbd3
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
xor ebx, ebx
test eax, eax
je 0x430267
cmp dword [0x510c94], ebx
je 0x430267
call fcn.004299cd
test eax, eax
je 0x430267
xor edi, edi
inc edi
jmp 0x430269
xor edi, edi
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x43027e
mov ecx, dword [0x510c4c]
call fcn.0044973c
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.0042de68
mov esi, 0x4551b0
push esi
push str.LastKey
cmp edi, ebx
je 0x4302b5
push str.S_1_5_18SOFTWAREMicrosoftWindowsCurrentVersionAppletsRegedit
push 0x80000003
jmp 0x4302bf
push str.SOFTWAREMicrosoftWindowsCurrentVersionAppletsRegedit
push 0x80000001
call fcn.004290c0
cmp dword [0x5047b0], ebx
jne 0x4302ec
push str.AdvApi32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x4302ec
push str.CreateProcessWithTokenW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5047b0], eax
cmp edi, ebx
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x260]
je 0x430328
push 0x50da48
push 0x4580e8
push eax
call edi
lea eax, [ebp - 0xc68]
push eax
push 0x50da48
lea eax, [ebp - 0x468]
push str.__s___z_s
push eax
call edi
add esp, 0x1c
jmp 0x43034d
push 0x50e170
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.00449c78
add esp, 0xc
cmp dword [0x50e048], 5
mov dword [ebp - 0x50], esi
jne 0x430384
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 0x4303f5
mov eax, dword [0x510c4c]
cmp dword [eax + 0x2c], ebx
je 0x4303f5
mov ecx, dword [0x5047b0]
cmp ecx, ebx
je 0x4303c8
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 0x4303ed
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 0x4304be
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 0x4304be
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2e4
jne 0x430657
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.00449c78
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.0042de68
push 0x5c
lea eax, [ebp - 0x868]
push eax
call fcn.004288cd
lea eax, [ebp - 0x868]
push eax
push str.LastKey
push str.SOFTWAREMicrosoftWindowsCurrentVersionAppletsRegedit
push 0x80000001
call fcn.004290c0
push 1
push 0x50e170
push 0x47472c
lea eax, [ebp - 0x260]
push eax
push str.runas
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x430657
push 0x2710
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
test eax, eax
jne 0x430647
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 0x430647
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 0x430527
push str.RegEdit_RegEdit
lea eax, [ebp - 0x668]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x430531
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4304e2
cmp esi, ebx
je 0x430647
push ebx
push 0x473dd8
push ebx
push esi
call dword [sym.imp.USER32.dll_FindWindowExW]
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x430647
cmp dword [0x50e060], 0x500
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
jne 0x4305c8
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 0x43056b
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 0x430647
mov eax, dword [ebp - 4]
movzx eax, word [eax]
push ebx
cmp ax, 0x5c
jne 0x430618
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 0x43062c
push eax
call fcn.0042df59
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 0x4305e8
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