Function at 0x449820
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xc0
mov eax, dword [0x4d1028]
mov esi, dword [ebp + 0xc]
mov edi, ecx
xor eax, ebp
mov dword [esp + 0xb8], eax
push dword [ebp + 8]
call fcn.0047b29f
add esp, 4
mov ecx, dword [edi + 0x2c]
mov dword [edi + 0x2c], eax
test ecx, ecx
je 0x449860
push ecx
call fcn.0041ba90
add esp, 4
push esi
call fcn.0047b29f
add esp, 4
mov ecx, dword [ebp + 0x14]
xor esi, esi
xor ebx, ebx
mov dword [esp + 0x18], eax
cmp dword [ecx + 0x44], esi
setne bl
shl ebx, 0x13
or ebx, 0x40c
cmp dword [edi + 0x1c], esi
je 0x449899
call fcn.0041b9c0
lea ecx, [ebx + 0x1000000]
cmp eax, 5
cmovl ebx, ecx
movzx eax, byte [ebp + 0x10]
lea ecx, [esp + 0x30]
xorps xmm0, xmm0
movaps xmmword [ecx], xmm0
push ecx
push dword [ebp + 0x14]
push esi
push esi
push ebx
push eax
push esi
push esi
mov ebx, dword [esp + 0x38]
push ebx
push dword [ebp + 8]
push dword [edi + 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x4499aa
lea eax, [esp + 0x30]
lea ecx, [esp + 0x20]
push eax
call fcn.00449380
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x4498f2
push dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x4499bf
mov ecx, dword [edi + 0x14]
mov esi, dword [ebp + 0x1c]
lea eax, [ecx + 1]
cmp eax, 2
jb 0x449aa2
lea eax, [esp + 0x44]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], 0
push eax
push 8
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x449a73
mov eax, dword [esp + 0x44]
lea ebx, [esp + 0x40]
xor ecx, ecx
mov dword [esp + 0x10], edi
mov dword [ebx], ecx
mov ecx, ebx
push eax
call fcn.00408e70
mov eax, dword [ebx]
mov edi, 0x48
mov dword [esp + 0xc], eax
push edi
call fcn.0046d61c
add esp, 4
mov ebx, eax
lea esi, [eax + edi]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], esi
push edi
xor eax, eax
push eax
push ebx
call fcn.00472a40
add esp, 0xc
lea eax, [esp + 0x48]
mov dword [esp + 0x50], esi
push eax
push edi
push ebx
push 0x1f
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x4499e0
mov esi, dword [ebx]
test esi, esi
je 0x4499e0
push 0x44
call fcn.0046d61c
add esp, 4
mov dword [esp + 0xc], eax
mov ecx, eax
push esi
call fcn.00445d34
mov bl, 1
jmp 0x4499ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x1c]
mov edi, 0x12
mov dword [ecx], eax
jmp 0x449b5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
push 0
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x14
jmp 0x449b53
mov dword [esp + 0xc], 0
xor ebx, ebx
mov edi, dword [esp + 0x10]
mov esi, dword [ebp + 0x1c]
lea ecx, [esp + 0x4c]
call fcn.00405a2e
lea ecx, [esp + 0x40]
call fcn.00439130
test bl, bl
je 0x449a5e
lea eax, [edi + 0x30]
lea ecx, [esp + 0x4c]
mov ebx, ecx
push eax
push dword [esp + 0x10]
call fcn.00449e20
lea eax, [esp + 0x1c]
xor ecx, ecx
push eax
push ecx
push ecx
push ebx
push ecx
mov ebx, dword [esp + 0x28]
push ebx
call fcn.00438bf5
add esp, 0x18
lea ecx, [esp + 0x4c]
mov dword [esp + 0x10], eax
call fcn.00449f26
push dword [esp + 0xc]
call fcn.0046d64c
mov edx, ebx
add esp, 4
cmp dword [esp + 0x10], 0
jne 0x449a58
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
jmp 0x449a77
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x18]
test eax, eax
je 0x449a73
push eax
call fcn.0046d64c
add esp, 4
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x4c]
mov dword [ecx], eax
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
je 0x449b31
lea ecx, [edi + 0x14]
call fcn.00439130
lea ecx, [esp + 0x1c]
call fcn.00439130
mov ecx, dword [ebp + 0x18]
lea eax, [esp + 0x20]
push eax
call fcn.00449540
test al, al
je 0x449acb
call fcn.0041b9c0
cmp eax, 3
jl 0x449ae6
push dword [esp + 0x20]
call fcn.0044727d
add esp, 4
jmp 0x449af5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
push 0
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x17
jmp 0x449b53
push dword [ebp + 8]
push dword [esp + 0x28]
call fcn.00447360
add esp, 8
test eax, eax
mov dword [edi + 0x28], eax
je 0x449b16
lea esi, [esp + 0x4c]
lea ecx, [esp + 0x20]
push esi
call fcn.00449600
mov ecx, edi
push esi
call fcn.004493d0
xor edi, edi
jmp 0x449b53
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
push 0
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x2b
jmp 0x449b53
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
push 0
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [esp + 0x1c]
call fcn.00439130
mov edi, 0x15
lea ecx, [esp + 0x20]
call fcn.00449420
test ebx, ebx
je 0x449b69
push ebx
call fcn.0041ba90
add esp, 4
mov ecx, dword [esp + 0xb8]
xor ecx, ebp
call fcn.0046d691
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x18