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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4e4
mov eax, dword [0x54e938]
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.0040c975
mov edx, dword [ebp - 0x38c]
mov esi, eax
mov eax, dword [edx + 0x2c]
add esp, 4
cmp eax, esi
je 0x4320e4
push eax
call fcn.00402d0e
mov eax, dword [ebp - 0x38c]
add esp, 4
mov dword [eax + 0x2c], esi
push ebx
call fcn.0040c975
add esp, 4
mov dword [ebp - 0x370], eax
test edi, edi
je 0x432102
push edi
call fcn.0040c975
add esp, 4
jmp 0x432104
xor eax, eax
mov dword [ebp - 0x374], eax
mov dword [ebp - 0x3a0], eax
mov eax, dword [0x5513c0]
mov dword [ebp - 0x378], 0x40c
test eax, eax
je 0x432152
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 0x432152
mov byte [ebp - 0x365], 1
jmp 0x43216d
mov byte [ebp - 0x365], 0
call fcn.004076a0
cmp eax, 5
jge 0x43216d
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.004e15a0
add esp, 0xc
test edi, edi
je 0x43219b
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.004e15a0
add esp, 0xc
lea ecx, [ebp - 0x434]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x408], 1
je 0x432337
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 0x4321f5
sub eax, ecx
push eax
push str.type
lea ecx, [ebp - 0x58]
call fcn.00407910
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 0x432221
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x3c]
call fcn.00406300
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.0045a2d0
add esp, 8
mov ecx, eax
call fcn.00407a10
mov ecx, str.compute_only_renderer
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x432264
sub ecx, esi
mov esi, dword [eax + 0x10]
mov edi, ecx
mov ecx, esi
cmp ecx, esi
jae 0x432278
mov ecx, esi
cmp esi, edi
jb 0x432280
mov ecx, edi
cmp dword [eax + 0x14], 0x10
jb 0x432288
mov eax, dword [eax]
push ecx
push str.compute_only_renderer
push eax
call fcn.00408180
add esp, 0xc
test eax, eax
jne 0x4322ad
cmp esi, edi
jae 0x4322a4
or eax, 0xffffffff
jmp 0x4322ab
xor eax, eax
cmp esi, edi
setne al
test eax, eax
mov esi, 0x10
sete bl
cmp dword [ebp - 0xc], esi
jb 0x4322c6
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406ec9
add esp, 4
lea ecx, [ebp - 0x98]
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x20], 0
call fcn.00438ee0
cmp dword [ebp - 0x28], 8
jb 0x4322f5
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00406ec9
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 0x43231a
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.00406ec9
add esp, 4
test bl, bl
je 0x432329
xor edx, edx
mov word [ebp - 0x3c0], dx
jmp 0x432337
mov ax, word [ebp - 0x404]
mov word [ebp - 0x3c0], ax
xor edi, edi
cmp byte [0x550358], 0
je 0x432357
mov eax, dword [0x550360]
test eax, eax
je 0x432357
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.004329d0
add esp, 4
test al, al
jne 0x43246f
call fcn.0040ecf0
test eax, eax
jg 0x432429
call fcn.0040ecf0
test eax, eax
jg 0x4323f9
push 0
push 0x108
push str.src_target_process.cc
lea ecx, [ebp - 0x4e4]
mov dword [ebp - 0x36c], 3
call fcn.00458750
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x20]
push str.0x_X
push edx
call fcn.0042c9e0
push str.security_descriptor___error:
add edi, 8
push edi
mov esi, eax
call fcn.004461c0
add esp, 0x14
cmp dword [esi + 0x14], 8
jb 0x4323ef
mov esi, dword [esi]
push esi
push eax
call fcn.004587e0
add esp, 8
mov ebx, dword [ebp - 0x36c]
test bl, 2
je 0x432412
lea ecx, [ebp - 0x4e4]
and ebx, 0xfffffffd
call fcn.00458cd0
test bl, 1
je 0x432429
cmp dword [ebp - 0xc], 8
jb 0x432429
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406ec9
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [ebp - 0x374]
test eax, eax
je 0x432444
push eax
call fcn.00402d0e
add esp, 4
mov eax, dword [ebp - 0x370]
test eax, eax
je 0x432457
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
lea ecx, [ebp - 0x388]
call fcn.004135c0
mov ebx, dword [ebp - 0x38c]
mov esi, dword [ebx + 0x10]
lea ecx, [ebp - 0x388]
call fcn.0042f960
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 0x4325d7
call fcn.0040ecf0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x43256a
call fcn.0040ecf0
test eax, eax
jg 0x43253e
push 0
push 0x126
push str.src_target_process.cc
lea ecx, [ebp - 0x4e4]
mov dword [ebp - 0x36c], 0xc
call fcn.00458750
mov edi, eax
call ebx
push eax
lea eax, [ebp - 0x20]
push str.0x_X
push eax
call fcn.0042c9e0
push str.Failed_to_create_sandbox_process___error:
add edi, 8
push edi
mov esi, eax
call fcn.004461c0
add esp, 0x14
cmp dword [esi + 0x14], 8
jb 0x432534
mov esi, dword [esi]
push esi
push eax
call fcn.004587e0
add esp, 8
test byte [ebp - 0x36c], 8
je 0x432559
and dword [ebp - 0x36c], 0xfffffff7
lea ecx, [ebp - 0x4e4]
call fcn.00458cd0
test byte [ebp - 0x36c], 4
je 0x43256a
lea ecx, [ebp - 0x20]
call fcn.0040a2c0
mov eax, dword [ebp - 0x398]
test eax, eax
je 0x432585
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.00432f90
push 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [ebp - 0x374]
test eax, eax
je 0x4325af
push eax
call fcn.00402d0e
add esp, 4
mov eax, dword [ebp - 0x370]
test eax, eax
je 0x4325c2
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 0x432600
cmp eax, 0xffffffff
je 0x432600
call fcn.00416c40
mov eax, dword [ebx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4325fd
call fcn.0040c5c0
mov dword [ebx + 0x10], esi
mov ecx, dword [ebp - 0x388]
push ecx
call fcn.00432cd0
mov eax, dword [ebp - 0x398]
add esp, 4
cmp eax, esi
je 0x432626
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x398], esi
cmp byte [ebp - 0x365], 0
jne 0x432745
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 0x432745
call fcn.0040ecf0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x4326e0
call fcn.0040ecf0
test eax, eax
jg 0x4326ba
push 0
push 0x13c
push str.src_target_process.cc
lea ecx, [ebp - 0x4e4]
mov dword [ebp - 0x36c], 0x30
call fcn.00458750
mov esi, eax
call edi
push eax
lea ecx, [ebp - 0x20]
push str.0x_X
push ecx
call fcn.0042c9e0
add esp, 0xc
push eax
push str.job_object___error:
add esi, 8
push esi
call fcn.004461c0
add esp, 8
push eax
call fcn.00448d60
add esp, 8
mov ebx, dword [ebp - 0x36c]
test bl, 0x20
je 0x4326d3
lea ecx, [ebp - 0x4e4]
and ebx, 0xffffffdf
call fcn.00458cd0
test bl, 0x10
je 0x4326e0
lea ecx, [ebp - 0x20]
call fcn.0040a2c0
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.00432f90
push 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [ebp - 0x374]
test eax, eax
je 0x432719
push eax
call fcn.00402d0e
add esp, 4
mov eax, dword [ebp - 0x370]
test eax, eax
je 0x4325c2
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 0x432865
call fcn.0040ecf0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x432800
call fcn.0040ecf0
test eax, eax
jg 0x4327d8
push 0
push 0x150
push str.src_target_process.cc
lea ecx, [ebp - 0x4e4]
mov dword [ebp - 0x36c], 0xc0
call fcn.00458750
mov esi, eax
call edi
push eax
lea edx, [ebp - 0x20]
push str.0x_X
push edx
call fcn.0042c9e0
add esp, 0xc
push eax
push str.set_thread_token___error:
add esi, 8
push esi
call fcn.004461c0
add esp, 8
push eax
call fcn.00448d60
add esp, 8
mov ebx, dword [ebp - 0x36c]
test bl, bl
jns 0x4327f3
lea ecx, [ebp - 0x4e4]
and ebx, 0xffffff7f
call fcn.00458cd0
test bl, 0x40
je 0x432800
lea ecx, [ebp - 0x20]
call fcn.0040a2c0
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.00432f90
push 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [ebp - 0x374]
test eax, eax
je 0x432839
push eax
call fcn.00402d0e
add esp, 4
mov eax, dword [ebp - 0x370]
test eax, eax
je 0x4325c2
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.004172f0
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 0x4328f8
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.00432f90
push 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [ebp - 0x374]
test eax, eax
je 0x4328cc
push eax
call fcn.00402d0e
add esp, 4
mov eax, dword [ebp - 0x370]
test eax, eax
je 0x4325c2
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.00432d70
test al, al
jne 0x432969
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.00432f90
push 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea ecx, [ebp - 0x3a0]
call fcn.00432fe0
lea ecx, [ebp - 0x370]
call fcn.00432fe0
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.00432ee0
mov dword [ebx + 0x28], eax
add esp, 8
lea eax, [ebp - 0x388]
push eax
mov ecx, ebx
call fcn.00432f40
lea ecx, [ebp - 0x388]
call fcn.00432f90
push 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea ecx, [ebp - 0x3a0]
call fcn.00432fe0
lea ecx, [ebp - 0x370]
call fcn.00432fe0
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