Function at 0x42f790
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d3d1d
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x82f084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x220], 0
push eax
push 0x75c10c
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.0042fe00
push 0xb
push str.__pipename
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
call fcn.0042ff20
cmp dword [esi + 0x30], 8
lea eax, [esi + 0x1c]
jb 0x42f812
mov eax, dword [esi + 0x1c]
push dword [esi + 0x2c]
lea ecx, [ebp - 0x230]
push eax
call fcn.0042ff20
xor eax, eax
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push 0
push eax
lea ecx, [ebp - 0x278]
call fcn.006129a0
add esp, 8
lea ecx, [ebp - 0x230]
push 7
push str.___pid
call fcn.0042ff20
cmp dword [ebp - 0x264], 8
lea eax, [ebp - 0x278]
push dword [ebp - 0x268]
cmovae eax, dword [ebp - 0x278]
lea ecx, [ebp - 0x230]
push eax
call fcn.0042ff20
push 0xa
push str.___locale
lea ecx, [ebp - 0x230]
call fcn.0042ff20
call fcn.0043b360
add eax, 0x100
lea ecx, [ebp - 0x248]
push eax
call fcn.0042fc50
mov byte [ebp - 4], 2
lea eax, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x230]
push dword [ebp - 0x238]
cmovae eax, dword [ebp - 0x248]
push eax
call fcn.0042ff20
lea ecx, [ebp - 0x248]
call fcn.0042fd70
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2e4]
push 4
push str.test
mov dword [ebp - 0x2d4], eax
mov dword [ebp - 0x2d0], 7
mov word [ebp - 0x2e4], ax
call fcn.0042fe00
mov byte [ebp - 4], 4
call fcn.0043b360
lea ecx, [eax + 0x13c]
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x2e4]
push eax
call fcn.0060d370
lea ecx, [ebp - 0x2e4]
mov byte [ebp - 4], 3
mov bl, al
call fcn.0042fd70
test bl, bl
je 0x42f9a7
push 8
push str.___test
lea ecx, [ebp - 0x230]
call fcn.0042ff20
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push dword [ebp - 0x238]
cmovae eax, dword [ebp - 0x248]
lea ecx, [ebp - 0x230]
push eax
call fcn.0042ff20
push 0x38
lea eax, [ebp - 0x2c8]
mov dword [ebp - 0x2cc], 0x3c
push 0
push eax
call fcn.00690450
xor eax, eax
mov dword [ebp - 0x2c8], 0x540
add esp, 0xc
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
push 0x104
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 5
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
test eax, eax
je 0x42fa32
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42fa10
sub eax, edx
lea ecx, [ebp - 0x260]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0042fe00
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
lea ecx, [ebp - 0x2d8]
cmovae eax, dword [ebp - 0x260]
mov dword [ebp - 0x2bc], eax
call fcn.0060d8f0
call fcn.0043b360
mov al, byte [eax + 0xdf]
test al, al
je 0x42fa8b
cmp dword [ebp - 0x2d8], 5
jne 0x42fa8b
mov eax, dword [ebp - 0x2d4]
cmp eax, 1
je 0x42fa7f
cmp eax, 2
jne 0x42fa8b
mov dword [ebp - 0x2c0], str.open
jmp 0x42fa95
mov dword [ebp - 0x2c0], str.runas
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
lea ecx, [ebp - 0x290]
cmovae eax, dword [ebp - 0x230]
mov dword [ebp - 0x2b8], eax
lea eax, [ebp - 0x260]
push eax
call fcn.0042fc50
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 6
call fcn.0060f900
cmp dword [ebp - 0x27c], 8
lea eax, [ebp - 0x290]
mov dword [ebp - 0x2b0], 0xa
cmovae eax, dword [ebp - 0x290]
xor bl, bl
mov dword [ebp - 0x2b4], eax
lea eax, [ebp - 0x2cc]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push dword [ebp - 0x294]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [ebp - 0x290]
call fcn.0042fd70
lea ecx, [ebp - 0x260]
call fcn.0042fd70
lea ecx, [ebp - 0x248]
call fcn.0042fd70
lea ecx, [ebp - 0x278]
call fcn.0042fd70
lea ecx, [ebp - 0x230]
call fcn.0042fd70
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0067d651
mov esp, ebp
pop ebp
ret