Function at 0x427700
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Resume thread
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x45d06c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x84]
push esi
push edi
push 0x48
mov edi, ecx
mov dword [ebp - 0x30], edx
push 0
push eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x24], ebx
call fcn.0042b810
add esp, 0xc
call fcn.00419ea0
cmp dword [eax], 3
jge 0x42774d
mov dword [ebp - 0x84], 0x44
jmp 0x4277b2
cmp dword [0x45ecd8], 0
mov dword [ebp - 0x84], 0x48
je 0x427772
cmp dword [0x45eccc], 0
je 0x427772
cmp dword [0x45ecdc], 0
jne 0x4277b2
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
push str.InitializeProcThreadAttributeList
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UpdateProcThreadAttribute
push esi
mov dword [0x45ecd8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DeleteProcThreadAttributeList
push esi
mov dword [0x45eccc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x45ecdc], eax
cmp dword [ebx + 0x38], 1
mov eax, dword [ebx + 0x3c]
sete byte [ebp - 0x25]
xor esi, esi
cmp eax, dword [ebx + 0x40]
je 0x4278d3
mov ecx, dword [ebx + 0x40]
mov esi, eax
mov eax, ecx
sub eax, esi
sar eax, 2
cmp eax, 0x3fffffff
jbe 0x4277f9
mov dword [edi], 0
mov byte [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
jne 0x427d18
int3
mov eax, ecx
xor edx, edx
sub eax, esi
add eax, 3
shr eax, 2
cmp esi, ecx
cmova eax, edx
test eax, eax
je 0x427831
xor edi, edi
mov ebx, eax
push 1
push 1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x427823
int3
inc edi
add esi, 4
cmp edi, ebx
jne 0x427812
mov edi, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x24]
cmp dword [ebp - 0x84], 0x48
jne 0x4277db
cmp dword [ebp - 0x40], 0
jne 0x4277db
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
push 0
push 1
push 0
call dword [0x45ecd8]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4277db
push eax
call fcn.00429a9a
add esp, 4
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x24]
push ecx
push 0
push 1
push eax
call dword [0x45ecd8]
test eax, eax
jne 0x427898
push dword [ebp - 0x40]
call fcn.00429473
add esp, 4
mov dword [ebp - 0x40], 0
jmp 0x4277db
mov eax, dword [ebx + 0x40]
sub eax, dword [ebx + 0x3c]
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x4277db
push 0
push 0
and eax, 0xfffffffc
push eax
push dword [ebx + 0x3c]
push 0x20002
push 0
push ecx
call dword [0x45eccc]
test eax, eax
je 0x4277db
mov byte [ebp - 0x25], 1
mov esi, 0x80000
cmp byte [ebx + 0x4c], 0
mov eax, 0x452868
mov dword [ebp - 0x58], 1
cmove eax, dword [ebp - 0x7c]
mov dword [ebp - 0x7c], eax
xor eax, eax
cmp byte [ebx + 0x34], al
jne 0x4278fe
cmp byte [ebx + 0x35], al
sete al
lea eax, [eax*4 + 1]
mov word [ebp - 0x54], ax
mov eax, dword [ebx + 0x54]
test eax, eax
jne 0x427913
cmp dword [ebx + 0x58], eax
jne 0x427913
cmp dword [ebx + 0x5c], eax
je 0x427929
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 0x58]
mov dword [ebp - 0x48], eax
mov eax, dword [ebx + 0x5c]
mov dword [ebp - 0x58], 0x101
mov dword [ebp - 0x44], eax
cmp dword [ebx + 0x50], 0
je 0x427942
or esi, 4
call fcn.00419ea0
cmp dword [eax], 5
jge 0x427942
or esi, 0x1000000
mov edx, esi
xorps xmm0, xmm0
or edx, 0x1000000
cmp byte [ebx + 0x60], 0
movups xmmword [ebp - 0x94], xmm0
cmove edx, esi
cmp dword [ebx + 0x2c], 0
mov dword [ebp - 0x34], edx
jne 0x42796d
mov dword [ebp - 0x24], 0
jmp 0x42797e
cmp dword [ebx + 0x30], 8
lea eax, [ebx + 0x1c]
mov dword [ebp - 0x24], eax
jb 0x42797e
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
cmp dword [ecx + 0x14], 8
mov esi, dword [ecx + 0x10]
mov dword [ebp - 0x2c], esi
jb 0x4279a0
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
cmp esi, 8
jae 0x4279b9
movups xmm0, xmmword [ecx]
mov dword [ebp - 0x10], esi
mov esi, 7
movups xmmword [ebp - 0x20], xmm0
jmp 0x427a4f
mov eax, 0x7ffffffe
mov dword [ebp - 0x38], 0x7fffffff
or esi, 7
mov dword [ebp - 0x38], 8
cmp esi, eax
mov dword [ebp - 0x38], 0x7ffffffe
mov dword [ebp - 0x38], 0x7fffffff
cmova esi, eax
lea eax, [esi + 1]
test eax, eax
jne 0x4279ed
xor edx, edx
jmp 0x427a2b
cmp eax, 0x7fffffff
ja 0x427d44
add eax, eax
cmp eax, 0x1000
jb 0x427a20
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x427d49
push ecx
call fcn.004296cc
add esp, 4
lea edx, [eax + 0x23]
and edx, 0xffffffe0
mov dword [edx - 4], eax
jmp 0x427a2b
push eax
call fcn.004296cc
add esp, 4
mov edx, eax
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], edx
lea ecx, [ecx*2 + 2]
push ecx
push eax
push edx
call fcn.0042b290
mov eax, dword [ebp - 0x2c]
add esp, 0xc
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x48]
mov dword [ebp - 0xc], esi
test eax, eax
je 0x427b3e
push 0
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
or edx, 0x400
push eax
mov dword [ebp - 0x34], edx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x427ae3
mov dword [edi], eax
mov byte [edi + 4], al
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
jne 0x427a8e
int3
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x427d08
mov ecx, dword [ebp - 0x20]
inc eax
cmp eax, 0x7fffffff
ja 0x427d4e
add eax, eax
cmp eax, 0x1000
jb 0x427cff
test cl, 0x1f
jne 0x427d4e
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x427d4e
sub ecx, eax
cmp ecx, 4
jb 0x427d4e
cmp ecx, 0x23
jbe 0x427cfd
jmp 0x427d4e
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x24]
movzx eax, byte [ebp - 0x25]
lea ecx, [ebp - 0x20]
push dword [ebp - 0x30]
cmovae ecx, dword [ebp - 0x20]
push dword [ebp - 0x34]
push eax
push 0
push 0
push ecx
push 0
push dword [ebx + 0x48]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push dword [ebp - 0x30]
mov esi, eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
test esi, esi
jne 0x427b72
mov dword [edi], 0
mov byte [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x427cc4
lea eax, [ebp - 0x94]
cmp esi, 8
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x24]
movzx eax, byte [ebp - 0x25]
lea ecx, [ebp - 0x20]
cmovae ecx, dword [ebp - 0x20]
push 0
push edx
push eax
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jmp 0x427b27
mov eax, dword [ebp - 0x94]
xor esi, esi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x427ba3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x2c]
xor edx, edx
cmp eax, 0xffffffff
cmove eax, edx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x427bc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp - 0x2c]
xor ecx, ecx
cmp esi, 0xffffffff
cmove esi, ecx
mov eax, dword [ebx + 0x50]
test eax, eax
je 0x427c6f
push dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x427c68
push dword [ebp - 0x24]
lea ecx, [ebp - 0x3c]
call fcn.00427540
push 1
push 1
lea ecx, [ebp - 0x3c]
call fcn.004275c0
mov dword [edi], 0
mov byte [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
jne 0x427c11
int3
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x427c21
cmp eax, 0xffffffff
je 0x427c21
mov cl, 1
jmp 0x427c23
xor cl, cl
test cl, cl
je 0x427c3a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x427c33
int3
mov dword [ebp - 0x3c], 0
test esi, esi
je 0x427c47
cmp esi, 0xffffffff
je 0x427c47
mov al, 1
jmp 0x427c49
xor al, al
test al, al
je 0x427c5b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x427c59
int3
xor esi, esi
test esi, esi
je 0x427cb7
cmp esi, 0xffffffff
je 0x427cb7
mov al, 1
jmp 0x427cb9
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp byte [ebx], 0
je 0x427c7f
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x24]
mov ecx, edi
call fcn.00427540
test esi, esi
je 0x427c96
cmp esi, 0xffffffff
je 0x427c96
mov al, 1
jmp 0x427c98
xor al, al
test al, al
je 0x427caa
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x427ca8
int3
xor esi, esi
test esi, esi
je 0x427cb7
cmp esi, 0xffffffff
je 0x427cb7
mov al, 1
jmp 0x427cb9
xor al, al
test al, al
je 0x427cc9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x427cc9
int3
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x427d08
mov ecx, dword [ebp - 0x20]
inc eax
cmp eax, 0x7fffffff
ja 0x427d4e
add eax, eax
cmp eax, 0x1000
jb 0x427cff
test cl, 0x1f
jne 0x427d4e
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x427d4e
sub ecx, eax
cmp ecx, 4
jb 0x427d4e
cmp ecx, 0x23
ja 0x427d4e
mov ecx, eax
push ecx
call fcn.0042945d
add esp, 4
xor eax, eax
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], eax
mov word [ebp - 0x20], ax
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x427d31
push eax
call dword [0x45ecdc]
push dword [ebp - 0x40]
call fcn.00429473
add esp, 4
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429462
mov esp, ebp
pop ebp
ret
call fcn.0042a083
call fcn.0042a083
call fcn.0042e703
int3