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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x45a06c]
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.00429740
add esp, 0xc
call fcn.0041a200
cmp eax, 3
jge 0x42576d
mov dword [ebp - 0x84], 0x44
jmp 0x4257d2
cmp dword [0x45bc2c], 0
mov dword [ebp - 0x84], 0x48
je 0x425792
cmp dword [0x45bc28], 0
je 0x425792
cmp dword [0x45bc30], 0
jne 0x4257d2
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 [0x45bc2c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DeleteProcThreadAttributeList
push esi
mov dword [0x45bc28], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x45bc30], eax
cmp dword [ebx + 0x38], 1
mov eax, dword [ebx + 0x3c]
sete byte [ebp - 0x25]
xor esi, esi
cmp eax, dword [ebx + 0x40]
je 0x4258f3
mov ecx, dword [ebx + 0x40]
mov esi, eax
mov eax, ecx
sub eax, esi
sar eax, 2
cmp eax, 0x3fffffff
jbe 0x425819
mov dword [edi], 0
mov byte [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
jne 0x425d65
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 0x425851
xor edi, edi
mov ebx, eax
push 1
push 1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x425843
int3
inc edi
add esi, 4
cmp edi, ebx
jne 0x425832
mov edi, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x24]
cmp dword [ebp - 0x84], 0x48
jne 0x4257fb
cmp dword [ebp - 0x40], 0
jne 0x4257fb
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
push 0
push 1
push 0
call dword [0x45bc2c]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4257fb
push eax
call fcn.00427a6a
add esp, 4
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x24]
push ecx
push 0
push 1
push eax
call dword [0x45bc2c]
test eax, eax
jne 0x4258b8
push dword [ebp - 0x40]
call fcn.00427423
add esp, 4
mov dword [ebp - 0x40], 0
jmp 0x4257fb
mov eax, dword [ebx + 0x40]
sub eax, dword [ebx + 0x3c]
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x4257fb
push 0
push 0
and eax, 0xfffffffc
push eax
push dword [ebx + 0x3c]
push 0x20002
push 0
push ecx
call dword [0x45bc28]
test eax, eax
je 0x4257fb
mov byte [ebp - 0x25], 1
mov esi, 0x80000
cmp byte [ebx + 0x4c], 0
mov eax, 0x450878
mov dword [ebp - 0x58], 1
cmove eax, dword [ebp - 0x7c]
mov dword [ebp - 0x7c], eax
xor eax, eax
cmp byte [ebx + 0x34], al
jne 0x42591e
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 0x425933
cmp dword [ebx + 0x58], eax
jne 0x425933
cmp dword [ebx + 0x5c], eax
je 0x425949
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 0x425962
or esi, 4
call fcn.0041a200
cmp eax, 5
jge 0x425962
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 0x42598d
mov dword [ebp - 0x24], 0
jmp 0x42599e
cmp dword [ebx + 0x30], 8
lea eax, [ebx + 0x1c]
mov dword [ebp - 0x24], eax
jb 0x42599e
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 0x4259c0
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
cmp esi, 8
jae 0x4259d9
movups xmm0, xmmword [ecx]
mov dword [ebp - 0x10], esi
mov esi, 7
movups xmmword [ebp - 0x20], xmm0
jmp 0x425a6f
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 0x425a0d
xor edx, edx
jmp 0x425a4b
cmp eax, 0x7fffffff
ja 0x425d91
add eax, eax
cmp eax, 0x1000
jb 0x425a40
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x425d96
push ecx
call fcn.0042769c
add esp, 4
lea edx, [eax + 0x23]
and edx, 0xffffffe0
mov dword [edx - 4], eax
jmp 0x425a4b
push eax
call fcn.0042769c
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.004291c0
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 0x425b5e
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 0x425b03
mov dword [edi], eax
mov byte [edi + 4], al
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
jne 0x425aae
int3
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x425d55
mov ecx, dword [ebp - 0x20]
inc eax
cmp eax, 0x7fffffff
ja 0x425d9b
add eax, eax
cmp eax, 0x1000
jb 0x425d4c
test cl, 0x1f
jne 0x425d9b
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x425d9b
sub ecx, eax
cmp ecx, 4
jb 0x425d9b
cmp ecx, 0x23
jbe 0x425d4a
jmp 0x425d9b
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 0x425b92
mov dword [edi], 0
mov byte [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x425d11
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 0x425b47
mov eax, dword [ebp - 0x94]
xor esi, esi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x425bc3
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 0x425be8
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 0x425cbc
push dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x425cb5
push dword [ebp - 0x24]
lea ecx, [ebp - 0x3c]
call fcn.00425630
cmp byte [ebp - 0x38], 0
mov ebx, dword [ebp - 0x3c]
je 0x425c21
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x425c23
mov eax, ebx
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x425c4c
cmp byte [ebp - 0x38], 0
je 0x425c3e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x425c40
mov eax, ebx
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [edi], 0
mov byte [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
jne 0x425c61
int3
test ebx, ebx
je 0x425c6e
cmp ebx, 0xffffffff
je 0x425c6e
mov al, 1
jmp 0x425c70
xor al, al
test al, al
je 0x425c87
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x425c80
int3
mov dword [ebp - 0x3c], 0
test esi, esi
je 0x425c94
cmp esi, 0xffffffff
je 0x425c94
mov al, 1
jmp 0x425c96
xor al, al
test al, al
je 0x425ca8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x425ca6
int3
xor esi, esi
test esi, esi
je 0x425d04
cmp esi, 0xffffffff
je 0x425d04
mov al, 1
jmp 0x425d06
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp byte [ebx], 0
je 0x425ccc
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x24]
mov ecx, edi
call fcn.00425630
test esi, esi
je 0x425ce3
cmp esi, 0xffffffff
je 0x425ce3
mov al, 1
jmp 0x425ce5
xor al, al
test al, al
je 0x425cf7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x425cf5
int3
xor esi, esi
test esi, esi
je 0x425d04
cmp esi, 0xffffffff
je 0x425d04
mov al, 1
jmp 0x425d06
xor al, al
test al, al
je 0x425d16
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x425d16
int3
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x425d55
mov ecx, dword [ebp - 0x20]
inc eax
cmp eax, 0x7fffffff
ja 0x425d9b
add eax, eax
cmp eax, 0x1000
jb 0x425d4c
test cl, 0x1f
jne 0x425d9b
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x425d9b
sub ecx, eax
cmp ecx, 4
jb 0x425d9b
cmp ecx, 0x23
ja 0x425d9b
mov ecx, eax
push ecx
call fcn.0042740d
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 0x425d7e
push eax
call dword [0x45bc30]
push dword [ebp - 0x40]
call fcn.00427423
add esp, 4
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427412
mov esp, ebp
pop ebp
ret
call fcn.00426e1c
call fcn.00426e1c
call fcn.0042c6c3
int3