Function at 0x49f020
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ee2f
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x5c7cec]
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]
xor esi, esi
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x134], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x114]
push eax
push 0xf01ff
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x114], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x49f7ad
mov eax, dword [ebp - 0x114]
xor edi, edi
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x128], edi
test eax, eax
je 0x49f115
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x110]
cmp eax, 0xffffffff
je 0x49f109
mov edi, eax
mov dword [ebp - 0x128], edi
call fcn.00411f30
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x118]
mov dword [ebp - 4], 0
push eax
push 1
push 1
push 0
push 0xf01ff
push edi
mov dword [ebp - 0x118], 0
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x49f788
mov esi, dword [ebp - 0x118]
mov dword [ebp - 0x11c], 0
test esi, esi
je 0x49f184
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x110], eax
cmp esi, 0xffffffff
je 0x49f17d
mov dword [ebp - 0x11c], esi
call fcn.00411f30
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x10c]
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
mov byte [ebp - 4], 1
mov byte [ebp - 0x1c], 0
mov eax, dword [eax]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18]
push eax
push str.NtSuspendProcess
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.0043ec10
lea eax, [ebp - 0x14]
push eax
push str.NtResumeProcess
call fcn.0043ec10
add esp, 0x10
cmp byte [ebp - 0x1c], 0
mov byte [ebp - 4], 2
jne 0x49f209
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x49f32a
cmp dword [ebp - 0x14], 0
je 0x49f32a
push dword [ebp - 0x20]
mov ecx, esi
call dword [0x5677a4]
call esi
test eax, eax
jne 0x49f320
mov byte [ebp - 0x1c], 1
push 0x78
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.005290f0
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x98], 0
mov esi, dword [eax + 4]
push 0x70
lea eax, [ebp - 0x90]
mov byte [ebp - 0x94], 0
push 0
push eax
call fcn.005290f0
add esp, 0x18
mov dword [ebp - 4], 3
call fcn.00411f30
push 2
push 0
push 0
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x49f283
mov dword [ebp - 0x98], eax
call fcn.00411f30
mov eax, dword [ebp - 0x98]
mov byte [ebp - 4], 5
test eax, eax
je 0x49f33b
cmp eax, 0xffffffff
je 0x49f33b
cmp byte [ebp - 0x94], 0
jne 0x49f348
push 0x70
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.005290f0
add esp, 0xc
lea eax, [ebp - 0x90]
push 0
push 0x70
push eax
push 9
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_QueryInformationJobObject]
test eax, eax
je 0x49f335
mov eax, dword [ebp - 0x80]
lea esi, [ebp - 0x90]
or eax, 0x800
lea edi, [ebp - 0x108]
mov ecx, 0x1c
rep movsd dword es:[edi], dword [esi]
push 0x70
mov dword [ebp - 0xf8], eax
lea eax, [ebp - 0x108]
push eax
push 9
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_SetInformationJobObject]
test eax, eax
je 0x49f335
mov byte [ebp - 0x94], 1
jmp 0x49f348
cmp byte [ebp - 0x1c], 0
jne 0x49f209
mov esi, dword [ebp - 0x11c]
jmp 0x49f734
mov eax, dword [ebp - 0x98]
cmp byte [ebp - 0x94], 0
je 0x49f6cc
call fcn.0040a420
cmp eax, 3
jl 0x49f51a
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x110], eax
xor eax, eax
mov dword [ebp - 0x120], eax
call fcn.0040a420
cmp eax, 3
jl 0x49f509
push 0x569a5c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x49f509
push str.InitializeProcThreadAttributeList
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x49f509
push str.UpdateProcThreadAttribute
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14c], eax
test eax, eax
je 0x49f509
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0
push eax
push 0
push 1
push 0
mov ecx, esi
call dword [0x5677a4]
call esi
mov eax, dword [ebp - 0x10c]
test eax, eax
je 0x49f509
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x49f509
lea eax, [ebp - 0x10c]
mov ecx, esi
push eax
push 0
push 1
push edi
call dword [0x5677a4]
call esi
test eax, eax
je 0x49f509
mov esi, dword [ebp - 0x14c]
lea eax, [ebp - 0x110]
push 0
push 0
push 4
push eax
push 0x20000
push 0
push edi
mov ecx, esi
call dword [0x5677a4]
call esi
test eax, eax
je 0x49f509
push 0x44
lea eax, [ebp - 0xdc]
push 0
push eax
call fcn.005290f0
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0xe0]
add esp, 0xc
mov esi, dword [ebp - 0x11c]
mov dword [ebp - 0x9c], edi
movups xmm0, xmmword [eax]
push dword [ebp - 0x130]
movups xmmword [ebp - 0xe0], xmm0
push ecx
movups xmm0, xmmword [eax + 0x10]
mov dword [ebp - 0xe0], 0x48
push dword [ebp - 0x134]
movups xmmword [ebp - 0xd0], xmm0
movups xmm0, xmmword [eax + 0x20]
push dword [ebp - 0x138]
movups xmmword [ebp - 0xc0], xmm0
movups xmm0, xmmword [eax + 0x30]
mov eax, dword [eax + 0x40]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0x20]
or eax, 0x1080000
push eax
push dword [ebp + 0x1c]
movups xmmword [ebp - 0xb0], xmm0
push dword [ebp - 0x13c]
push dword [ebp - 0x140]
push dword [ebp - 0x144]
push dword [ebp - 0x148]
push esi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x98]
jmp 0x49f6d2
mov esi, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x98]
jmp 0x49f6d2
xor eax, eax
mov dword [ebp - 0x120], eax
call fcn.0040a420
cmp eax, 3
jge 0x49f509
push 0x44
lea eax, [ebp - 0xdc]
push 0
push eax
call fcn.005290f0
mov esi, dword [ebp + 0x20]
add esp, 0xc
mov dword [ebp - 0xdc], 0x44
or esi, 0x1080000
mov byte [ebp - 0x10c], 0
mov eax, 1
lock xadd dword [0x5cd430], eax
inc eax
cmp eax, 1
sete byte [ebp - 0x10b]
mov cl, byte [ebp - 0x10b]
xor al, al
mov byte [ebp - 4], 6
mov edi, 0x5cd438
test cl, cl
je 0x49f660
cmp dword [0x5cd434], 0
jne 0x49f660
push 0x5cd434
push str.NtCreateProcessEx
call fcn.0043ec10
mov ecx, dword [0x5cd434]
add esp, 8
xor al, al
test ecx, ecx
je 0x49f65a
mov eax, dword [ebp - 0x110]
push ecx
push 0x49fac0
push str.NtCreateProcessEx
push 0x5759e8
push 0x569a5c
mov dword [0x5c78b8], eax
mov byte [ebp - 0x121], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.00411870
add esp, 0x14
test al, al
je 0x49f654
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xchg dword [edi], eax
push dword [ebp - 0x130]
lea eax, [ebp - 0xdc]
mov byte [ebp - 0x10c], 1
push eax
push dword [ebp - 0x134]
push dword [ebp - 0x138]
push esi
push dword [ebp + 0x1c]
mov esi, dword [ebp - 0x11c]
push dword [ebp - 0x13c]
push dword [ebp - 0x140]
push dword [ebp - 0x144]
push dword [ebp - 0x148]
push esi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov cl, byte [ebp - 0x10b]
mov dword [ebp - 0x120], eax
mov al, 1
jmp 0x49f666
mov al, byte [ebp - 0x121]
mov cl, byte [ebp - 0x10b]
mov esi, dword [ebp - 0x11c]
mov byte [ebp - 4], 7
test cl, cl
je 0x49f6bd
test al, al
je 0x49f6b2
xor eax, eax
xchg dword [edi], eax
push 0x49fac0
push dword [0x5cd434]
push str.NtCreateProcessEx
push 0x5759e8
push 0x569a5c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.00411870
mov ecx, dword [0x5cd434]
xor edx, edx
add esp, 0x14
test al, al
cmovne ecx, edx
mov dword [0x5cd434], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x5c78b8], eax
lock dec dword [0x5cd430]
mov eax, dword [ebp - 0x98]
jmp 0x49f6d2
mov esi, dword [ebp - 0x11c]
mov byte [ebp - 4], 8
test eax, eax
je 0x49f707
cmp eax, 0xffffffff
je 0x49f707
cmp byte [ebp - 0x94], 0
je 0x49f707
push 0x70
lea ecx, [ebp - 0x90]
push ecx
push 9
push eax
call dword [sym.imp.KERNEL32.dll_SetInformationJobObject]
mov eax, dword [ebp - 0x98]
mov byte [ebp - 0x94], 0
mov byte [ebp - 4], 9
test eax, eax
je 0x49f72e
cmp eax, 0xffffffff
je 0x49f72e
call fcn.00411f30
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x49f72e
call fcn.004013a0
mov edi, dword [ebp - 0x128]
cmp byte [ebp - 0x1c], 0
mov byte [ebp - 4], 0xa
je 0x49f760
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x12c], eax
test eax, eax
je 0x49f760
push dword [ebp - 0x20]
mov ecx, eax
call dword [0x5677a4]
call dword [ebp - 0x12c]
mov byte [ebp - 0x1c], 0
mov byte [ebp - 4], 0xb
test esi, esi
je 0x49f782
cmp esi, 0xffffffff
je 0x49f782
call fcn.00411f30
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x49f782
call fcn.004013a0
mov esi, dword [ebp - 0x120]
mov dword [ebp - 4], 0xc
test edi, edi
je 0x49f7ad
cmp edi, 0xffffffff
je 0x49f7ad
call fcn.00411f30
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x49f7ad
call fcn.004013a0
mov eax, esi
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.0040154f
mov esp, ebp
pop ebp
ret