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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4e4
mov eax, dword [0x553948]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x38c], ecx
mov ecx, dword [ebp + 0x14]
push eax
mov dword [ebp - 0x390], eax
mov dword [ebp - 0x3a8], ebx
mov dword [ebp - 0x3a4], edi
mov dword [ebp - 0x3ac], ecx
mov dword [ebp - 0x36c], 0
call fcn.0040caf5
mov edx, dword [ebp - 0x38c]
mov esi, eax
mov eax, dword [edx + 0x2c]
add esp, 4
cmp eax, esi
je 0x4345c4
push eax
call fcn.00402d0e
mov eax, dword [ebp - 0x38c]
add esp, 4
mov dword [eax + 0x2c], esi
push ebx
call fcn.0040caf5
add esp, 4
mov dword [ebp - 0x370], eax
test edi, edi
je 0x4345e2
push edi
call fcn.0040caf5
add esp, 4
jmp 0x4345e4
xor eax, eax
mov dword [ebp - 0x374], eax
mov dword [ebp - 0x3a0], eax
mov eax, dword [0x5563e8]
mov dword [ebp - 0x378], 0x40c
test eax, eax
je 0x434632
lea esi, [eax + 4]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bl, byte [edi + 0x50]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [ebp - 0x3a4]
test bl, bl
mov ebx, dword [ebp - 0x3a8]
je 0x434632
mov byte [ebp - 0x365], 1
jmp 0x43464d
mov byte [ebp - 0x365], 0
call fcn.00407780
cmp eax, 5
jge 0x43464d
mov dword [ebp - 0x378], 0x100040c
push 0x40
lea ecx, [ebp - 0x3ec]
push 0
mov esi, 0x44
push ecx
mov dword [ebp - 0x3f0], esi
call fcn.004e41d0
add esp, 0xc
test edi, edi
je 0x43467b
mov edx, dword [ebp - 0x374]
mov dword [ebp - 0x3e8], edx
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x40
lea eax, [ebp - 0x430]
push 0
push eax
mov dword [ebp - 0x434], esi
call fcn.004e41d0
add esp, 0xc
lea ecx, [ebp - 0x434]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x408], 1
je 0x434817
or dword [ebp - 0x3c4], 1
xor esi, esi
mov eax, str.type
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], esi
mov byte [ebp - 0x58], 0
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4346d5
sub eax, ecx
push eax
push str.type
lea ecx, [ebp - 0x58]
call fcn.00407a90
xor edx, edx
mov eax, ebx
mov word [ebp - 0x3c], dx
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x434701
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x3c]
call fcn.004063e0
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x98]
push eax
call fcn.0045e050
add esp, 8
mov ecx, eax
call fcn.00407b90
mov ecx, str.compute_only_renderer
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x434744
sub ecx, esi
mov esi, dword [eax + 0x10]
mov edi, ecx
mov ecx, esi
cmp ecx, esi
jae 0x434758
mov ecx, esi
cmp esi, edi
jb 0x434760
mov ecx, edi
cmp dword [eax + 0x14], 0x10
jb 0x434768
mov eax, dword [eax]
push ecx
push str.compute_only_renderer
push eax
call fcn.00408300
add esp, 0xc
test eax, eax
jne 0x43478d
cmp esi, edi
jae 0x434784
or eax, 0xffffffff
jmp 0x43478b
xor eax, eax
cmp esi, edi
setne al
test eax, eax
mov esi, 0x10
sete bl
cmp dword [ebp - 0xc], esi
jb 0x4347a6
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406fa9
add esp, 4
lea ecx, [ebp - 0x98]
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x20], 0
call fcn.0043b680
cmp dword [ebp - 0x28], 8
jb 0x4347d5
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00406fa9
add esp, 4
xor eax, eax
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], ax
cmp dword [ebp - 0x44], esi
jb 0x4347fa
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.00406fa9
add esp, 4
test bl, bl
je 0x434809
xor edx, edx
mov word [ebp - 0x3c0], dx
jmp 0x434817
mov ax, word [ebp - 0x404]
mov word [ebp - 0x3c0], ax
xor edi, edi
cmp byte [0x55537c], 0
je 0x434837
mov eax, dword [0x555384]
test eax, eax
je 0x434837
or dword [ebp - 0x378], 0x400
mov edi, eax
xor eax, eax
lea ecx, [ebp - 0x39c]
push ecx
mov dword [ebp - 0x39c], 0
mov dword [ebp - 0x398], eax
mov dword [ebp - 0x394], eax
call fcn.00434ec0
add esp, 4
test al, al
jne 0x43494f
call fcn.0040ee70
test eax, eax
jg 0x434909
call fcn.0040ee70
test eax, eax
jg 0x4348d9
push 0
push 0x108
push str.src_target_process.cc
lea ecx, [ebp - 0x4e4]
mov dword [ebp - 0x36c], 3
call fcn.0045c530
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x20]
push str.0x_X
push edx
call fcn.0042eec0
push str.security_descriptor___error:
add edi, 8
push edi
mov esi, eax
call fcn.00449da0
add esp, 0x14
cmp dword [esi + 0x14], 8
jb 0x4348cf
mov esi, dword [esi]
push esi
push eax
call fcn.0045c5c0
add esp, 8
mov ebx, dword [ebp - 0x36c]
test bl, 2
je 0x4348f2
lea ecx, [ebp - 0x4e4]
and ebx, 0xfffffffd
call fcn.0045cab0
test bl, 1
je 0x434909
cmp dword [ebp - 0xc], 8
jb 0x434909
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406fa9
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [ebp - 0x374]
test eax, eax
je 0x434924
push eax
call fcn.00402d0e
add esp, 4
mov eax, dword [ebp - 0x370]
test eax, eax
je 0x434937
push eax
call fcn.00402d0e
add esp, 4
pop edi
pop esi
mov eax, 5
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret 0x10
mov eax, 0x8000
test dword [ebp - 0x408], eax
je 0x434962
or dword [ebp - 0x3c4], eax
lea ecx, [ebp - 0x388]
call fcn.00413760
mov ebx, dword [ebp - 0x38c]
mov esi, dword [ebx + 0x10]
lea ecx, [ebp - 0x388]
call fcn.00431e40
mov edx, dword [ebp - 0x378]
push eax
lea ecx, [ebp - 0x3f0]
push ecx
push 0
push edi
mov edi, dword [ebp - 0x390]
push edx
mov edx, dword [ebp - 0x370]
push 0
lea eax, [ebp - 0x39c]
push eax
mov ecx, eax
push ecx
push edx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x434aca
call fcn.0040ee70
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x434a5d
call fcn.0040ee70
test eax, eax
jg 0x434a31
push 0
push 0x12f
push str.src_target_process.cc
lea ecx, [ebp - 0x4e4]
mov dword [ebp - 0x36c], 0xc
call fcn.0045c530
mov edi, eax
call ebx
push eax
lea eax, [ebp - 0x20]
push str.0x_X
push eax
call fcn.0042eec0
push str.Failed_to_create_sandbox_process___error:
add edi, 8
push edi
mov esi, eax
call fcn.00449da0
add esp, 0x14
cmp dword [esi + 0x14], 8
jb 0x434a27
mov esi, dword [esi]
push esi
push eax
call fcn.0045c5c0
add esp, 8
test byte [ebp - 0x36c], 8
je 0x434a4c
and dword [ebp - 0x36c], 0xfffffff7
lea ecx, [ebp - 0x4e4]
call fcn.0045cab0
test byte [ebp - 0x36c], 4
je 0x434a5d
lea ecx, [ebp - 0x20]
call fcn.0040a440
mov eax, dword [ebp - 0x398]
test eax, eax
je 0x434a78
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x398], 0
call ebx
lea ecx, [ebp - 0x388]
mov esi, eax
call fcn.00435480
push 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [ebp - 0x374]
test eax, eax
je 0x434aa2
push eax
call fcn.00402d0e
add esp, 4
mov eax, dword [ebp - 0x370]
test eax, eax
je 0x434ab5
push eax
call fcn.00402d0e
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebx + 0x10]
xor esi, esi
cmp eax, esi
je 0x434af3
cmp eax, 0xffffffff
je 0x434af3
call fcn.00416dd0
mov eax, dword [ebx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x434af0
call fcn.0040c740
mov dword [ebx + 0x10], esi
mov ecx, dword [ebp - 0x388]
push ecx
call fcn.004351c0
mov eax, dword [ebp - 0x398]
add esp, 4
cmp eax, esi
je 0x434b19
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x398], esi
cmp byte [ebp - 0x365], 0
jne 0x434c38
mov edx, dword [ebp - 0x388]
mov eax, dword [ebx + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x434c38
call fcn.0040ee70
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x434bd3
call fcn.0040ee70
test eax, eax
jg 0x434bad
push 0
push 0x145
push str.src_target_process.cc
lea ecx, [ebp - 0x4e4]
mov dword [ebp - 0x36c], 0x30
call fcn.0045c530
mov esi, eax
call edi
push eax
lea ecx, [ebp - 0x20]
push str.0x_X
push ecx
call fcn.0042eec0
add esp, 0xc
push eax
push str.job_object___error:
add esi, 8
push esi
call fcn.00449da0
add esp, 8
push eax
call fcn.0044ca90
add esp, 8
mov ebx, dword [ebp - 0x36c]
test bl, 0x20
je 0x434bc6
lea ecx, [ebp - 0x4e4]
and ebx, 0xffffffdf
call fcn.0045cab0
test bl, 0x10
je 0x434bd3
lea ecx, [ebp - 0x20]
call fcn.0040a440
call edi
mov edx, dword [ebp - 0x388]
push 0
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [ebp - 0x388]
call fcn.00435480
push 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [ebp - 0x374]
test eax, eax
je 0x434c0c
push eax
call fcn.00402d0e
add esp, 4
mov eax, dword [ebp - 0x370]
test eax, eax
je 0x434ab5
push eax
call fcn.00402d0e
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x384]
mov dword [ebp - 0x390], eax
mov eax, dword [ebx + 0x14]
push eax
lea ecx, [ebp - 0x390]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
jne 0x434d58
call fcn.0040ee70
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x434cf3
call fcn.0040ee70
test eax, eax
jg 0x434ccb
push 0
push 0x159
push str.src_target_process.cc
lea ecx, [ebp - 0x4e4]
mov dword [ebp - 0x36c], 0xc0
call fcn.0045c530
mov esi, eax
call edi
push eax
lea edx, [ebp - 0x20]
push str.0x_X
push edx
call fcn.0042eec0
add esp, 0xc
push eax
push str.set_thread_token___error:
add esi, 8
push esi
call fcn.00449da0
add esp, 8
push eax
call fcn.0044ca90
add esp, 8
mov ebx, dword [ebp - 0x36c]
test bl, bl
jns 0x434ce6
lea ecx, [ebp - 0x4e4]
and ebx, 0xffffff7f
call fcn.0045cab0
test bl, 0x40
je 0x434cf3
lea ecx, [ebp - 0x20]
call fcn.0040a440
call edi
mov esi, eax
mov eax, dword [ebp - 0x388]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [ebp - 0x388]
call fcn.00435480
push 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [ebp - 0x374]
test eax, eax
je 0x434d2c
push eax
call fcn.00402d0e
add esp, 4
mov eax, dword [ebp - 0x370]
test eax, eax
je 0x434ab5
push eax
call fcn.00402d0e
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [ebx + 0x14]
call fcn.00417480
mov edx, dword [ebp - 0x384]
lea ecx, [ebp - 0x364]
push ecx
push edx
mov dword [ebp - 0x364], 0x1003f
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x434deb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x388]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [ebp - 0x388]
call fcn.00435480
push 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [ebp - 0x374]
test eax, eax
je 0x434dbf
push eax
call fcn.00402d0e
add esp, 4
mov eax, dword [ebp - 0x370]
test eax, eax
je 0x434ab5
push eax
call fcn.00402d0e
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [ebp - 0x2b4]
lea ecx, [ebp - 0x388]
push ecx
mov ecx, dword [ebp - 0x3ac]
call fcn.00435260
test al, al
jne 0x434e5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x388]
push 0
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [ebp - 0x388]
call fcn.00435480
push 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea ecx, [ebp - 0x3a0]
call fcn.004354d0
lea ecx, [ebp - 0x370]
call fcn.004354d0
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret 0x10
push esi
push edi
call fcn.004353d0
mov dword [ebx + 0x28], eax
add esp, 8
lea eax, [ebp - 0x388]
push eax
mov ecx, ebx
call fcn.00435430
lea ecx, [ebp - 0x388]
call fcn.00435480
push 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea ecx, [ebp - 0x3a0]
call fcn.004354d0
lea ecx, [ebp - 0x370]
call fcn.004354d0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00401316
mov esp, ebp
pop ebp
ret 0x10