Function at 0x452510
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
push 0xffffffffffffffff
push 0x4dbae8
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x513624]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0x10]
push 0x48
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0x80]
push 0
push eax
mov dword [ebp - 0x94], edi
call fcn.004a1d70
add esp, 0xc
call fcn.0044f470
cmp dword [eax], 3
jge 0x45257b
mov dword [ebp - 0x80], 0x44
jmp 0x4525dd
cmp dword [0x51b29c], 0
mov dword [ebp - 0x80], 0x48
je 0x45259d
cmp dword [0x51b2a0], 0
je 0x45259d
cmp dword [0x51b2a4], 0
jne 0x4525dd
push 0x4e3034
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.InitializeProcThreadAttributeList
push edi
call esi
push str.UpdateProcThreadAttribute
push edi
mov dword [0x51b29c], eax
call esi
push str.DeleteProcThreadAttributeList
push edi
mov dword [0x51b2a0], eax
call esi
mov edi, dword [ebp - 0x94]
mov dword [0x51b2a4], eax
mov dl, byte [edi + 8]
mov ecx, dword [edi + 4]
mov byte [ebp - 0x99], dl
xor edx, edx
mov dword [ebp - 4], 0
test ecx, ecx
je 0x452607
mov eax, dword [ecx]
cmp eax, dword [ecx + 4]
jne 0x45270d
mov byte [ebp - 0x99], dl
cmp byte [edi + 0x10], 0
mov eax, 0x4e283c
mov dword [ebp - 0x54], 1
cmove eax, dword [ebp - 0x78]
xor ecx, ecx
cmp byte [edi + 1], cl
mov dword [ebp - 0x78], eax
mov eax, 5
cmovne eax, ecx
mov word [ebp - 0x50], ax
mov eax, dword [edi + 0x18]
test eax, eax
jne 0x452640
cmp dword [edi + 0x1c], ecx
jne 0x452640
cmp dword [edi + 0x20], ecx
je 0x452659
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x44], eax
mov eax, dword [edi + 0x20]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x54], 0x101
mov dword [ebp - 0x40], eax
push dword [ebp - 0xa0]
mov eax, edx
xorps xmm0, xmm0
or eax, 0x1000004
cmp dword [edi + 0x14], ecx
movups xmmword [ebp - 0x90], xmm0
cmove eax, edx
mov esi, eax
or esi, 0x1000000
cmp byte [edi + 0x24], cl
lea ecx, [ebp - 0x38]
cmove esi, eax
call fcn.00414a20
mov eax, dword [edi + 0xc]
mov byte [ebp - 4], 0xf
test eax, eax
je 0x452800
push 0
push eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0
push eax
or esi, 0x400
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x45283b
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x80]
push eax
movzx eax, byte [ebp - 0x99]
lea ecx, [ebp - 0x38]
cmovae ecx, dword [ebp - 0x38]
push 0
push dword [ebp - 0x94]
push esi
push eax
push 0
push 0
push ecx
push 0
push dword [edi + 0xc]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push dword [ebp - 0x94]
mov esi, eax
call sub.USERENV.dll_DestroyEnvironmentBlock
test esi, esi
jmp 0x452832
call fcn.0044f470
cmp dword [eax], 3
jl 0x4527f1
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
sar ecx, 2
cmp ecx, 0x3fffffff
ja 0x4527f1
cmp dword [ebp - 0x80], 0x48
jne 0x4527f1
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
jne 0x4527f4
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], ecx
push eax
push ecx
push 1
push ecx
call dword [0x51b29c]
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x4527f1
push eax
call fcn.0046446d
add esp, 4
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x98]
push ecx
push 0
push 1
push eax
call dword [0x51b29c]
test eax, eax
jne 0x4527a9
push dword [ebp - 0x3c]
call fcn.00464476
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 0x99], cl
jmp 0x4529b4
mov eax, dword [edi + 4]
mov edx, dword [eax]
mov eax, dword [eax + 4]
sub eax, edx
sar eax, 2
test eax, eax
je 0x4529f2
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x4527f4
push 0
push 0
shl eax, 2
push eax
push edx
push 0x20002
push 0
push ecx
call dword [0x51b2a0]
test eax, eax
je 0x4527f1
mov byte [ebp - 0x99], 1
mov edx, 0x80000
jmp 0x452607
mov ecx, dword [ebp - 0x3c]
mov byte [ebp - 0x99], 0
jmp 0x4529b4
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x80]
push eax
movzx eax, byte [ebp - 0x99]
lea ecx, [ebp - 0x38]
cmovae ecx, dword [ebp - 0x38]
push 0
push 0
push esi
push eax
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x452847
mov dword [ebp - 4], 0xf
mov byte [ebp - 0x99], 0
jmp 0x452963
lea eax, [ebp - 0x90]
xorps xmm0, xmm0
push eax
lea ecx, [ebp - 0x20]
movups xmmword [ebp - 0x20], xmm0
call fcn.004426b0
mov eax, dword [edi + 0x14]
mov byte [ebp - 4], 0x14
test eax, eax
je 0x4528cf
push dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x4528c6
mov esi, dword [ebp - 0x20]
push 1
push esi
mov dword [ebp - 4], 0x14
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne cl
test eax, eax
je 0x4528b2
push 0xea60
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4528bd
mov dword [ebp - 4], 0x14
mov byte [ebp - 0x99], 0
jmp 0x452929
test cl, cl
jne 0x4528bd
mov dword [ebp - 4], 0x14
mov byte [ebp - 0x99], 0
jmp 0x452929
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp byte [edi], 0
je 0x4528df
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [ebp - 0xa4]
test edi, edi
je 0x452922
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
test esi, esi
je 0x45291a
cmp esi, 0xffffffff
je 0x45291a
call fcn.0044fea0
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.004573f0
add esp, 0x10
push esi
mov ecx, edi
call fcn.00455dc0
mov byte [ebp - 0x99], 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x18
call fcn.0044a190
lea ecx, [ebp - 0x1c]
call fcn.0044a190
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x19
call fcn.0044a190
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x1a
call fcn.0044a190
mov edx, dword [ebp - 0x24]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x45299d
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x452993
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4529f7
push edx
push ecx
call fcn.00463d78
add esp, 8
mov ecx, dword [ebp - 0x3c]
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
mov dword [ebp - 4], 0x1b
test ecx, ecx
je 0x4529d1
push ecx
call dword [0x51b2a4]
push dword [ebp - 0x3c]
call fcn.00464476
add esp, 4
mov al, byte [ebp - 0x99]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00464020
mov esp, ebp
pop ebp
ret
call fcn.0045b6b0
call fcn.004a52aa
int3