Function at 0x402020
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
mov eax, dword [0x412004]
xor eax, ebp
mov dword [ebp - 0x44], eax
push edi
push 0
push str.EnableLUA
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000002
call fcn.00401ec0
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4020b7
push 0x3c
push 0
lea eax, [ebp - 0x40]
push eax
call fcn.004064d0
add esp, 0xc
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x500
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x34], str.runas
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x2c], edx
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov eax, dword [ebp - 0x20]
jmp 0x4022e3
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x254], ecx
lea edx, [ebp - 0x248]
mov dword [ebp - 0x258], edx
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x25c], eax
mov ecx, dword [ebp - 0x254]
mov dl, byte [ecx]
mov byte [ebp - 0x25d], dl
mov eax, dword [ebp - 0x258]
mov cl, byte [ebp - 0x25d]
mov byte [eax], cl
mov edx, dword [ebp - 0x254]
add edx, 1
mov dword [ebp - 0x254], edx
mov eax, dword [ebp - 0x258]
add eax, 1
mov dword [ebp - 0x258], eax
cmp byte [ebp - 0x25d], 0
jne 0x4020d8
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x264], ecx
mov edx, dword [ebp - 0x264]
add edx, 1
mov dword [ebp - 0x268], edx
mov eax, dword [ebp - 0x264]
mov cl, byte [eax]
mov byte [ebp - 0x269], cl
add dword [ebp - 0x264], 1
cmp byte [ebp - 0x269], 0
jne 0x402133
mov edx, dword [ebp - 0x264]
sub edx, dword [ebp - 0x268]
mov dword [ebp - 0x270], edx
cmp dword [ebp - 0x270], 2
jbe 0x402255
mov eax, dword [ebp + 0x10]
movsx ecx, byte [eax + 1]
cmp ecx, 0x3a
jne 0x402255
push 0x22
mov edx, dword [ebp + 0x10]
push edx
call fcn.00402910
add esp, 8
test eax, eax
jne 0x402255
push 0x20
mov eax, dword [ebp + 0x10]
push eax
call fcn.00402910
add esp, 8
test eax, eax
je 0x402255
mov byte [ebp - 0x248], 0x22
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x274], ecx
lea edx, [ebp - 0x247]
mov dword [ebp - 0x278], edx
mov eax, dword [ebp - 0x278]
mov dword [ebp - 0x27c], eax
mov ecx, dword [ebp - 0x274]
mov dl, byte [ecx]
mov byte [ebp - 0x27d], dl
mov eax, dword [ebp - 0x278]
mov cl, byte [ebp - 0x27d]
mov byte [eax], cl
mov edx, dword [ebp - 0x274]
add edx, 1
mov dword [ebp - 0x274], edx
mov eax, dword [ebp - 0x278]
add eax, 1
mov dword [ebp - 0x278], eax
cmp byte [ebp - 0x27d], 0
jne 0x4021d4
lea ecx, [ebp - 0x248]
add ecx, 0xffffffff
mov dword [ebp - 0x284], ecx
mov edx, dword [ebp - 0x284]
mov al, byte [edx + 1]
mov byte [ebp - 0x285], al
add dword [ebp - 0x284], 1
cmp byte [ebp - 0x285], 0
jne 0x402226
mov edi, dword [ebp - 0x284]
mov cx, word [0x410618]
mov word [edi], cx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x248]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x250], 0
jmp 0x402297
mov edx, dword [ebp - 0x250]
add edx, 1
mov dword [ebp - 0x250], edx
cmp dword [ebp - 0x250], 5
jge 0x4022dd
cmp dword [ebp - 0x24c], 0x20
jg 0x4022dd
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x248]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 0x24c], eax
jmp 0x402288
mov eax, dword [ebp - 0x24c]
pop edi
mov ecx, dword [ebp - 0x44]
xor ecx, ebp
call fcn.00402740
mov esp, ebp
pop ebp
ret