Function at 0x401b40
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x43a00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, edx
xor eax, eax
mov dword [ebp - 0x78], 0x44
mov word [ebp - 0x36], ax
xor edi, edi
mov word [ebp - 0x48], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x2c]
movlpd qword [ebp - 0x74], xmm0
push eax
lea eax, [ebp - 0x78]
movlpd qword [ebp - 0x6c], xmm0
push eax
push edi
push edi
push 0x8000000
push edi
push edi
push edi
push ecx
push edi
movlpd qword [ebp - 0x64], xmm0
movlpd qword [ebp - 0x5c], xmm0
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x46], xmm0
movlpd qword [ebp - 0x3e], xmm0
mov dword [ebp - 0x4c], 0x101
movups xmmword [ebp - 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401c40
cmp dword [0x43ba80], edi
je 0x401c2d
lea ecx, [ebp - 0x1c]
call fcn.004011a0
mov esi, eax
cmp dword [esi + 0x14], 0x10
jb 0x401bd4
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x190
push str.D:qianliu_agentworkspace0mq_gitlab7538NetProxyInstCacommon_fun.cpp
push esi
push str._ERROR___s__s:_d_tCreateProcess_failed__LastError_d_n
push dword [0x43ba80]
call fcn.00402120
mov edx, dword [ebp - 8]
add esp, 0x18
cmp edx, 0x10
jb 0x401c2d
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401c23
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401d75
push edx
push ecx
call fcn.0040f6ee
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f469
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401cd3
cmp dword [0x43ba80], edi
je 0x401cc6
lea ecx, [ebp - 0x1c]
call fcn.004011a0
mov esi, eax
cmp dword [esi + 0x14], 0x10
jb 0x401c6d
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x198
push str.D:qianliu_agentworkspace0mq_gitlab7538NetProxyInstCacommon_fun.cpp
push esi
push str._ERROR___s__s:_d_tWaitForSingleObject_Process_failed__LastError_d_n
push dword [0x43ba80]
call fcn.00402120
mov edx, dword [ebp - 8]
add esp, 0x18
cmp edx, 0x10
jb 0x401cc6
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401cbc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401d7a
push edx
push ecx
call fcn.0040f6ee
add esp, 8
push 0
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x401d50
push esi
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x401d53
cmp dword [0x43ba80], edi
je 0x401d50
lea ecx, [ebp - 0x1c]
call fcn.004011a0
mov esi, eax
cmp dword [esi + 0x14], 0x10
jb 0x401cfb
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x19e
push str.D:qianliu_agentworkspace0mq_gitlab7538NetProxyInstCacommon_fun.cpp
push esi
push str._ERROR___s__s:_d_tGetExitCodeProcess_failed__LastError_d_n
push dword [0x43ba80]
call fcn.00402120
mov edx, dword [ebp - 8]
add esp, 0x18
cmp edx, 0x10
jb 0x401d50
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401d46
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401d7f
push edx
push ecx
call fcn.0040f6ee
add esp, 8
or edi, 0xffffffff
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x28]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0040f469
mov esp, ebp
pop ebp
ret
call fcn.00415003
call fcn.00415003
call fcn.00415003
int3