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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504c98
mov eax, dword fs:[0]
push eax
sub esp, 0x4a4
mov eax, dword [0x556620]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x374], edi
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x370], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x394], eax
xor eax, eax
mov dword [ebp - 0x378], esi
mov dword [ebp - 0x368], eax
mov dword [ebp - 0x364], eax
cmp byte [ebp + 0x14], al
je 0x43473d
call fcn.00408a10
cmp eax, 5
jge 0x43473d
mov eax, 0x57
jmp 0x4351ef
push esi
call fcn.0040df6a
mov esi, eax
add esp, 4
mov eax, dword [edi + 0x2c]
cmp eax, esi
je 0x43475b
push eax
call fcn.004039c2
add esp, 4
mov dword [edi + 0x2c], esi
push dword [ebp - 0x78]
call fcn.0040df6a
mov edi, eax
add esp, 4
mov dword [ebp - 0x3cc], edi
mov ecx, dword [ebp - 0x370]
mov eax, 0x8040c
mov esi, 0x40c
mov dword [ebp - 4], 0
cmp dword [ecx + 0x44], 0
cmovne esi, eax
mov eax, dword [0x55b408]
mov dword [ebp - 0x364], esi
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x4347d3
lea esi, [eax + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x7c]
push esi
mov al, byte [ecx + 0x48]
mov byte [ebp - 0x369], al
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp - 0x369], 0
je 0x4347cd
mov byte [ebp - 0x369], 1
jmp 0x4347f0
mov esi, dword [ebp - 0x364]
mov byte [ebp - 0x369], 0
call fcn.00408a10
cmp eax, 5
jge 0x4347f0
or esi, 0x1000000
mov dword [ebp - 0x364], esi
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x40
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 1
push 0
push eax
mov dword [ebp - 0x74], 0x44
call fcn.004dead0
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x48], 1
je 0x4349cf
mov eax, dword [ebp - 0x370]
mov dword [ebp - 0x39c], 0xf
mov dword [ebp - 0x3a0], 0
mov byte [ebp - 0x3b0], 0
or dword [eax + 0x2c], 1
cmp byte [str.type], 0
jne 0x434859
xor ecx, ecx
jmp 0x43486a
mov ecx, str.type
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x434861
sub ecx, edx
push ecx
push str.type
lea ecx, [ebp - 0x3b0]
call fcn.00408dc0
push dword [ebp - 0x78]
lea ecx, [ebp - 0x3c8]
mov byte [ebp - 4], 2
call fcn.00407370
lea eax, [ebp - 0x3c8]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x4ac]
push eax
call fcn.00447120
add esp, 8
lea ecx, [ebp - 0x3b0]
mov byte [ebp - 4], 4
push ecx
lea ecx, [ebp - 0x390]
push ecx
mov ecx, eax
call fcn.00408ec0
mov edx, eax
cmp byte [str.compute_only_renderer], 0
jne 0x4348cf
xor esi, esi
jmp 0x4348e0
mov esi, str.compute_only_renderer
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4348d7
sub esi, ecx
cmp dword [edx + 0x14], 0x10
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x7c], ecx
jb 0x4348ee
mov edx, dword [edx]
cmp ecx, esi
mov eax, esi
cmovb eax, ecx
push eax
push str.compute_only_renderer
push edx
call fcn.0040b860
add esp, 0xc
test eax, eax
jne 0x43491d
mov ecx, dword [ebp - 0x7c]
cmp ecx, esi
jae 0x434914
or eax, 0xffffffff
jmp 0x43491b
xor eax, eax
cmp ecx, esi
setne al
test eax, eax
sete byte [ebp - 0x36a]
cmp dword [ebp - 0x37c], 0x10
jb 0x43493b
push dword [ebp - 0x390]
call fcn.0040823e
add esp, 4
lea ecx, [ebp - 0x4ac]
mov dword [ebp - 0x37c], 0xf
mov dword [ebp - 0x380], 0
mov byte [ebp - 0x390], 0
mov byte [ebp - 4], 3
call fcn.0043bf70
cmp dword [ebp - 0x3b4], 8
jb 0x43497c
push dword [ebp - 0x3c8]
call fcn.0040823e
add esp, 4
xor eax, eax
mov dword [ebp - 0x3b4], 7
cmp dword [ebp - 0x39c], 0x10
mov dword [ebp - 0x3b8], 0
mov word [ebp - 0x3c8], ax
mov byte [ebp - 4], 1
jb 0x4349b4
push dword [ebp - 0x3b0]
call fcn.0040823e
add esp, 4
cmp byte [ebp - 0x36a], 0
mov ecx, dword [ebp - 0x370]
je 0x4349c7
xor eax, eax
jmp 0x4349cb
mov ax, word [ebp - 0x44]
mov word [ecx + 0x30], ax
cmp byte [0x55a334], 0
mov dword [ebp - 0x78], 0
je 0x4349f5
mov eax, dword [0x55a340]
test eax, eax
je 0x4349f5
or dword [ebp - 0x364], 0x400
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x90], xmm0
call fcn.00435210
add esp, 4
test al, al
jne 0x434b15
call fcn.00410920
test eax, eax
jg 0x434b0b
call fcn.00410920
test eax, eax
jg 0x434ab8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x390]
push str.0x_X
push eax
call fcn.0042e4d0
add esp, 0xc
mov esi, eax
push 0
push 0x113
push str.src_target_process.cc
lea ecx, [ebp - 0x47c]
mov byte [ebp - 4], 6
mov dword [ebp - 0x364], 1
call fcn.00461ff0
mov ecx, 3
mov dword [ebp - 4], 7
add eax, 8
mov dword [ebp - 0x368], ecx
push str.security_descriptor___error:
push eax
mov dword [ebp - 0x364], ecx
call fcn.004506c0
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x434aae
mov esi, dword [esi]
push esi
push eax
call fcn.00462450
add esp, 8
mov eax, dword [ebp - 0x368]
mov dword [ebp - 4], 6
test al, 2
je 0x434ae9
and eax, 0xfffffffd
lea ecx, [ebp - 0x47c]
mov dword [ebp - 0x368], eax
mov dword [ebp - 0x364], eax
call fcn.00462150
mov eax, dword [ebp - 0x368]
mov dword [ebp - 4], 1
test al, 1
je 0x434b0b
cmp dword [ebp - 0x37c], 8
jb 0x434b0b
push dword [ebp - 0x390]
call fcn.0040823e
add esp, 4
mov esi, 5
jmp 0x4351cd
mov ecx, dword [ebp - 0x374]
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x7c], eax
mov dword [ecx + 0x10], 0
call fcn.0040e530
mov eax, dword [ebp - 0x7c]
xor esi, esi
mov dword [ebp - 0x398], esi
test eax, eax
je 0x434b4e
cmp eax, 0xffffffff
je 0x434b4e
mov esi, eax
mov dword [ebp - 0x398], esi
call fcn.0040e530
cmp byte [ebp + 0x14], 0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x370]
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
push 0
push dword [ebp - 0x78]
movzx eax, al
push dword [ebp - 0x364]
mov byte [ebp - 4], 8
movdqu xmmword [ebp - 0x30], xmm0
push eax
je 0x434ca3
push 0
push 0
push edi
push dword [ebp - 0x378]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x434dcb
call fcn.00410920
test eax, eax
jg 0x434c77
call fcn.00410920
test eax, eax
jg 0x434c27
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x390]
push str.0x_X
push eax
call fcn.0042e4d0
add esp, 0xc
mov dword [ebp - 0x7c], eax
push 0
push 0x130
push str.src_target_process.cc
lea ecx, [ebp - 0x47c]
mov byte [ebp - 4], 9
mov dword [ebp - 0x364], 4
call fcn.00461ff0
push dword [ebp - 0x7c]
mov ecx, 0xc
mov dword [ebp - 4], 0xa
add eax, 8
mov dword [ebp - 0x368], ecx
push str.CreateProcess_failed_to_create_sandbox_process___error:
push eax
mov dword [ebp - 0x364], ecx
call fcn.004506c0
add esp, 8
push eax
call fcn.004533b0
add esp, 8
mov eax, dword [ebp - 0x368]
mov dword [ebp - 4], 9
test al, 8
je 0x434c58
and eax, 0xfffffff7
lea ecx, [ebp - 0x47c]
mov dword [ebp - 0x368], eax
mov dword [ebp - 0x364], eax
call fcn.00462150
mov eax, dword [ebp - 0x368]
mov dword [ebp - 4], 8
test al, 4
je 0x434c77
and eax, 0xfffffffb
lea ecx, [ebp - 0x390]
mov dword [ebp - 0x368], eax
call fcn.00408450
mov eax, dword [ebp - 0x90]
test eax, eax
je 0x434c92
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x90], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x364], eax
jmp 0x43518e
lea eax, [ebp - 0x94]
push eax
push eax
push edi
push dword [ebp - 0x378]
push esi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x434dcb
call fcn.00410920
test eax, eax
jg 0x434d9f
call fcn.00410920
test eax, eax
jg 0x434d4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x390]
push str.0x_X
push eax
call fcn.0042e4d0
add esp, 0xc
mov dword [ebp - 0x7c], eax
push 0
push 0x14f
push str.src_target_process.cc
lea ecx, [ebp - 0x47c]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x364], 0x10
call fcn.00461ff0
push dword [ebp - 0x7c]
mov ecx, 0x30
mov dword [ebp - 4], 0xc
add eax, 8
mov dword [ebp - 0x368], ecx
push str.CreateProcessAsUserW_failed_to_create_sandbox_process___error:
push eax
mov dword [ebp - 0x364], ecx
call fcn.004506c0
add esp, 8
push eax
call fcn.004533b0
add esp, 8
mov eax, dword [ebp - 0x368]
mov dword [ebp - 4], 0xb
test al, 0x20
je 0x434d80
and eax, 0xffffffdf
lea ecx, [ebp - 0x47c]
mov dword [ebp - 0x368], eax
mov dword [ebp - 0x364], eax
call fcn.00462150
mov eax, dword [ebp - 0x368]
mov dword [ebp - 4], 8
test al, 0x10
je 0x434d9f
and eax, 0xffffffef
lea ecx, [ebp - 0x390]
mov dword [ebp - 0x368], eax
call fcn.00408450
mov eax, dword [ebp - 0x90]
test eax, eax
je 0x434dba
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x90], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x364], eax
jmp 0x43518e
lea eax, [ebp - 0x30]
xorps xmm0, xmm0
push eax
lea ecx, [ebp - 0x20]
movdqu xmmword [ebp - 0x20], xmm0
call fcn.00435560
push dword [ebp - 0x20]
mov byte [ebp - 4], 0xd
call fcn.004356a0
mov eax, dword [ebp - 0x90]
add esp, 4
test eax, eax
je 0x434e09
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x90], 0
mov ecx, dword [ebp - 0x374]
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x434f35
cmp byte [ebp - 0x369], 0
jne 0x434f35
push dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x434f35
call fcn.00410920
test eax, eax
jg 0x434f19
call fcn.00410920
test eax, eax
jg 0x434ec7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x390]
push str.0x_X
push eax
call fcn.0042e4d0
add esp, 0xc
mov dword [ebp - 0x7c], eax
push 0
push 0x167
push str.src_target_process.cc
lea ecx, [ebp - 0x47c]
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x364], 0x40
call fcn.00461ff0
push dword [ebp - 0x7c]
mov ecx, 0xc0
mov dword [ebp - 4], 0xf
add eax, 8
mov dword [ebp - 0x368], ecx
push str.job_object___error:
push eax
mov dword [ebp - 0x364], ecx
call fcn.004506c0
add esp, 8
push eax
call fcn.004533b0
add esp, 8
mov eax, dword [ebp - 0x368]
mov dword [ebp - 4], 0xe
test al, al
jns 0x434efa
and eax, 0xffffff7f
lea ecx, [ebp - 0x47c]
mov dword [ebp - 0x368], eax
mov dword [ebp - 0x364], eax
call fcn.00462150
mov eax, dword [ebp - 0x368]
mov dword [ebp - 4], 0xd
test al, 0x40
je 0x434f19
and eax, 0xffffffbf
lea ecx, [ebp - 0x390]
mov dword [ebp - 0x368], eax
call fcn.00408450
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x364], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x435182
mov eax, dword [ebp - 0x374]
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x435084
cmp ecx, 0xffffffff
je 0x435084
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x7c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
jne 0x435076
call fcn.00410920
test eax, eax
jg 0x43505a
call fcn.00410920
test eax, eax
jg 0x435000
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x390]
push str.0x_X
push eax
call fcn.0042e4d0
add esp, 0xc
mov dword [ebp - 0x378], eax
push 0
push 0x17c
push str.src_target_process.cc
lea ecx, [ebp - 0x47c]
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x364], 0x100
call fcn.00461ff0
push dword [ebp - 0x378]
mov ecx, 0x300
mov dword [ebp - 4], 0x11
add eax, 8
mov dword [ebp - 0x368], ecx
push str.set_thread_token___error:
push eax
mov dword [ebp - 0x364], ecx
call fcn.004506c0
add esp, 8
push eax
call fcn.004533b0
add esp, 8
mov eax, dword [ebp - 0x368]
mov dword [ebp - 4], 0x10
test eax, 0x200
je 0x435036
and eax, 0xfffffdff
lea ecx, [ebp - 0x47c]
mov dword [ebp - 0x368], eax
mov dword [ebp - 0x364], eax
call fcn.00462150
mov eax, dword [ebp - 0x368]
mov dword [ebp - 4], 0xd
test eax, 0x100
je 0x43505a
and eax, 0xfffffeff
lea ecx, [ebp - 0x390]
mov dword [ebp - 0x368], eax
call fcn.00408450
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x364], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x435182
mov ecx, dword [ebp - 0x374]
lea ecx, [ecx + 0x14]
call fcn.004185b0
cmp byte [ebp + 0x14], 0
je 0x4350d9
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x78]
push eax
push str.NtSetInformationProcess
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x78], 0
call fcn.0042c9e0
add esp, 8
lea eax, [ebp - 0x80]
push 8
push eax
push 9
push dword [ebp - 0x20]
call dword [ebp - 0x78]
test eax, eax
jns 0x4350d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x364], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x435182
lea eax, [ebp - 0x360]
mov dword [ebp - 0x360], 0x1003f
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x435110
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x364], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x435182
mov eax, dword [ebp - 0x2b0]
mov ecx, dword [ebp - 0x394]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x20]
push eax
call fcn.00435760
test al, al
jne 0x435145
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x364], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x435182
push dword [ebp - 0x7c]
push dword [ebp - 0x378]
call fcn.004358f0
mov ecx, dword [ebp - 0x374]
add esp, 8
mov dword [ecx + 0x28], eax
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x20]
call fcn.00435980
mov ecx, dword [ebp - 0x374]
push eax
call fcn.004355d0
xor eax, eax
mov dword [ebp - 0x364], eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 8
call fcn.004359e0
mov byte [ebp - 4], 1
test esi, esi
je 0x4351c7
cmp esi, 0xffffffff
je 0x4351c7
call fcn.0040e530
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4351c7
call fcn.0040db10
test dword [ebp - 0x368], 0x800
je 0x4351c7
lea ecx, [ebp - 0x47c]
call fcn.00462150
mov esi, dword [ebp - 0x364]
push 0
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4351ed
push edi
call fcn.004039c2
add esp, 4
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.00401580
mov esp, ebp
pop ebp
ret 0x18