Function at 0x6104c4b0
Capabilities:
Create process on windows
Resume thread
Terminate process

Disassembly:
push ebp
xor ecx, ecx
mov ebp, esp
push edi
xor edx, edx
push esi
push ebx
sub esp, 0xec
mov ebx, 0xffffffff
mov eax, dword [ebp + 8]
mov dword [eax + 0x12c], ebx
mov dword [eax + 0x128], ecx
mov dword [eax + 0x130], edx
mov dword [ebp - 0xa0], eax
call method.pthread.atforkprepare__
mov eax, dword [0x61105584]
mov dword [esp], eax
call sub.KERNEL32.dll_GetPriorityClass
sub esp, 4
test byte [0x6110a820], 1
mov ebx, eax
jne 0x6104cc3e
mov dword [esp], 0x61123df9
xor eax, eax
mov edi, 0x40000000
mov dword [esp + 0x18], eax
mov eax, pe_nt_image_headers32
mov dword [esp + 0x14], eax
mov eax, 3
mov dword [esp + 0x10], eax
mov eax, 0x61107420
mov dword [esp + 0xc], eax
mov eax, 2
mov dword [esp + 8], eax
mov dword [esp + 4], edi
call sub.KERNEL32.dll_CreateFileA
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x6104cc36
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [0x61104ec4]
add eax, 0x198
mov esi, dword [eax + 0x14]
test esi, esi
jle 0x6104c56e
or ebx, 4
mov eax, dword [0x611055b4]
mov edx, dword [ebp - 0xa0]
mov ecx, dword [0x611056f8]
mov dword [edx], eax
xor eax, eax
test ecx, ecx
je 0x6104c5a0
mov edx, dword [0x611056f4]
test edx, edx
jne 0x6104cb53
lea esi, [esi]
lea edi, [edi]
mov ecx, dword [ebp - 0xa0]
xor edi, edi
xor esi, esi
mov byte [ecx + 4], al
mov eax, dword fs:[4]
mov eax, dword [eax - 0x2ff0]
mov dword [esp], eax
call sym._fflush_1
mov dword [esp + 8], edi
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 4], esi
mov dword [esp], 0x61107414
call sub.KERNEL32.dll_CreateEventA
mov dword [ebp - 0xa4], eax
sub esp, 0x10
test eax, eax
je 0x6104cfb0
mov edi, dword [ebp - 0xa0]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [edi + 0x44], eax
mov eax, dword fs:[4]
mov dword [edi + 0x11c], edx
mov edx, eax
sub edx, ecx
mov dword [edi + 0x120], eax
mov dword [edi + 0x48], edx
test byte [0x6110a820], 1
jne 0x6104ccd9
mov eax, 0x44
lea ecx, [ebp - 0x98]
mov esi, 0x44
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp], ecx
call sym.cygwin1.dll__memset
mov dword [ebp - 0x98], esi
mov esi, edi
mov word [ebp - 0x66], 0x120
add esi, 8
test byte [0x6110a820], 1
mov dword [ebp - 0x64], esi
jne 0x6104cc88
mov edx, 0xffffffff
mov eax, 0x61106b24
call method.muto.acquire_unsigned_long_
mov dword [esp], 0
test eax, eax
setne byte [ebp - 0xa5]
call sym._time_1
mov dword [ebp - 0xac], eax
mov eax, dword [0x61104ec4]
add eax, 0x88
mov ecx, dword [eax + 0xd4]
test ecx, ecx
je 0x6104c6f4
jmp 0x6104cc6e
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebp - 0x40]
sub esp, 4
mov edx, esi
mov dword [esp], eax
mov eax, 0x6110a820
call method.strace.write_childpid_child_info__unsigned_long_
mov dword [esp], 0x493e0
mov edx, dword [ebp - 0x40]
mov ecx, edi
mov eax, esi
call method.child_info.sync_int__void__unsigned_long_
test al, al
jne 0x6104c7c1
mov edx, dword [ebp - 0x48]
mov eax, esi
call method.child_info.proc_retry_void_
test eax, eax
jne 0x6104cb60
mov dword [esp + 0x14], ebx
mov eax, dword [0x61107154]
lea edx, [ebp - 0x98]
mov dword [esp + 0x20], edx
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x1c], edx
mov edx, 1
add eax, 0x18
mov dword [esp + 0x18], ecx
lea edi, [ebp - 0x48]
mov ecx, 0x61107420
mov dword [esp + 0x10], edx
mov edx, 0x61107420
mov dword [esp + 0x24], edi
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], eax
call sub.KERNEL32.dll_CreateProcessA
mov dword [ebp - 0xbc], eax
sub esp, 0x28
test eax, eax
je 0x6104cd90
test bl, 4
je 0x6104c6a7
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], eax
mov eax, dword [0x61104ec4]
add eax, 0x198
mov dword [esp], eax
call method.dtable.fixup_before_fork_unsigned_long_
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call sub.KERNEL32.dll_ResumeThread
mov eax, dword [ebp - 0x44]
sub esp, 4
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebp - 0x40]
sub esp, 4
mov edx, esi
mov dword [esp], eax
mov eax, 0x6110a820
call method.strace.write_childpid_child_info__unsigned_long_
mov dword [esp], 0x493e0
mov edx, dword [ebp - 0x40]
lea ecx, [ebp - 0x48]
mov eax, esi
call method.child_info.sync_int__void__unsigned_long_
test al, al
je 0x6104c6e2
mov eax, dword [0x61104ec4]
add eax, 0x88
mov eax, dword [eax + 0xd4]
test eax, eax
jne 0x6104c7da
mov eax, dword [0x61105578]
mov dword [esp], eax
call fcn.610fd4b8
mov eax, dword [0x611630ec]
sub esp, 4
mov ecx, dword [ebp - 0x40]
test byte [eax + 0x13], 4
mov edx, ecx
je 0x6104c7f7
neg edx
mov edi, dword [ebp - 0xa0]
lea eax, [ebp - 0x38]
mov ecx, 1
mov dword [ebp - 0xb0], eax
mov dword [edi + 0x12c], edx
mov dword [esp], 0
call method.pinfo.init_int__unsigned_long__void_
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x6104cf5a
mov edx, dword [ebp - 0xac]
mov eax, dword [0x61107154]
mov dword [ecx + 0x134], edx
mov edx, dword [eax + 0x1c8]
add eax, 0x18
mov dword [ecx + 0x1c8], edx
lea edx, [ecx + 0x18]
mov dword [esp], edx
mov dword [esp + 4], eax
call sym.cygwin1.dll__strcpy
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0xb0]
mov dword [ebp - 0x28], eax
mov eax, 1
call sym.__Z12proc_subprocmm_8
test eax, eax
sete byte [ebp - 0x30]
je 0x6104ce8b
test byte [0x6110a820], 1
jne 0x6104ce28
mov eax, dword fs:[4]
sub eax, 0x319c
cmp eax, dword [0x61105554]
je 0x6104ce54
mov eax, dword [sym.cygwin1.dll__impure_ptr]
mov ecx, str.impure
lea edx, [eax + 0x428]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp - 0xa0]
xor ebx, ebx
mov dword [esp + 0x1c], edx
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x120]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
mov eax, str.stack
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
call sym.child_copy_void__bool__..._
movzx eax, al
mov dword [ebp - 0xbc], eax
mov eax, 0x61106b24
call method.muto.release__
mov edi, dword [ebp - 0xbc]
test edi, edi
je 0x6104ceb8
mov edi, dword [0x611055b4]
mov ebx, 1
mov edx, 0x611055a8
mov dword [0x611055b0], ebx
test edi, edi
mov dword [0x611055ac], edi
jne 0x6104c955
jmp 0x6104c9fe
mov eax, dword [edi]
test eax, eax
mov dword [edx + 4], eax
je 0x6104cdf1
mov edi, dword [0x611055ac]
cmp dword [edi + 0x30], 1
jne 0x6104c942
test edi, edi
je 0x6104c9fe
test byte [0x6110a820], 1
jne 0x6104cdfc
xor ecx, ecx
mov edx, str.linked_dll_bss
mov dword [esp + 0x20], ecx
mov eax, dword [edi + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0xc], eax
mov eax, str.linked_dll_data
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
call sym.child_copy_void__bool__..._
test al, al
je 0x6104cffb
mov eax, dword [0x611055ac]
mov edi, dword [eax]
test edi, edi
mov dword [0x611055ac], edi
je 0x6104c9fe
mov eax, dword [0x611055b0]
lea esi, [esi]
lea edi, [edi]
cmp eax, 3
je 0x6104c95b
cmp dword [edi + 0x30], eax
je 0x6104c95b
mov edi, dword [edi]
test edi, edi
mov dword [0x611055ac], edi
jne 0x6104c9e0
mov eax, dword [ebp - 0xa4]
call sym.resume_child_void_
mov dword [esp], 0x493e0
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x48]
mov edx, dword [eax]
mov eax, esi
call method.child_info.sync_int__void__unsigned_long_
test al, al
je 0x6104ce5f
mov edx, dword [ebp - 0xa0]
cmp byte [edx + 4], 0
je 0x6104cb19
mov edi, dword [0x611055b4]
mov eax, 2
mov edx, 0x611055a8
mov dword [0x611055b0], eax
test edi, edi
mov dword [0x611055ac], edi
jne 0x6104ca73
jmp 0x6104cb0e
mov eax, dword [edi]
test eax, eax
mov dword [edx + 4], eax
je 0x6104ce80
mov edi, dword [0x611055ac]
cmp dword [edi + 0x30], 2
jne 0x6104ca60
test edi, edi
je 0x6104cb0e
test byte [0x6110a820], 1
jne 0x6104cf2e
xor ecx, ecx
mov edx, str.loaded_dll_bss
mov dword [esp + 0x20], ecx
mov eax, dword [edi + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0xc], eax
mov eax, str.loaded_dll_data
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
call sym.child_copy_void__bool__..._
test al, al
je 0x6104d013
mov eax, dword [0x611055ac]
mov edi, dword [eax]
test edi, edi
mov dword [0x611055ac], edi
je 0x6104cb0e
mov eax, dword [0x611055b0]
cmp eax, 3
je 0x6104ca79
cmp dword [edi + 0x30], eax
je 0x6104ca79
mov edi, dword [edi]
test edi, edi
mov dword [0x611055ac], edi
jne 0x6104caf4
mov eax, dword [ebp - 0xa4]
call sym.resume_child_void_
mov edi, dword [ebp - 0xa4]
mov dword [esp], edi
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
call method.pthread.atforkparent__
cmp byte [ebp - 0x30], 0
mov eax, dword [ebp - 0xa0]
mov ebx, dword [eax + 0x12c]
je 0x6104cb4c
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x6104cddc
mov eax, ebx
jmp 0x6104cc2c
mov al, 1
jmp 0x6104c5a0
mov ecx, dword [ebp - 0xa0]
mov esi, 0xb
mov ebx, str.died_waiting_for_longjmp_before_initialization__retry__d__exit_code__p
mov dword [ecx + 0x130], esi
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 0x3c]
mov dword [esp + 4], ebx
mov dword [esp], 0x6113ff00
mov dword [esp + 8], eax
call sym.___small_sprintf
mov edi, dword [ebp - 0xa0]
mov ecx, 0x6113ff00
mov dword [edi + 0x128], ecx
lea eax, [ebp - 0x38]
mov dword [ebp - 0xb0], eax
mov eax, dword [0x61104ec4]
add eax, 0x88
mov eax, dword [eax + 0xd4]
test eax, eax
jne 0x6104cbc4
mov eax, dword [0x61105578]
mov dword [esp], eax
call fcn.610fd4b8
sub esp, 4
cmp byte [ebp - 0xa5], 0
jne 0x6104cd6e
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x6104cbee
mov edx, dword [ebp - 0x28]
test edx, edx
je 0x6104cdcc
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x6104cc09
mov edx, dword [ebp - 0xa4]
mov dword [esp], edx
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
test byte [0x6110a820], 1
jne 0x6104cd42
cmp byte [ebp - 0x30], 0
je 0x6104cc27
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x6104cd7d
mov eax, 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
or ebx, 8
jmp 0x6104c55a
mov dword [esp + 0x10], eax
mov eax, 0x61123e93
mov edi, 0x40
mov dword [esp + 0xc], eax
mov eax, str.int_frok::parent_void_
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], 0x6110a820
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x6104c504
call fcn.610fda08
mov eax, dword [0x61105578]
mov dword [esp], eax
call fcn.610fd4b8
sub esp, 4
jmp 0x6104c6f4
mov dword [esp + 0x18], ebx
mov eax, dword [0x61107154]
lea edx, [ebp - 0x48]
mov dword [esp + 0x20], edx
lea ecx, [ebp - 0x98]
mov edi, 0x10
mov dword [esp + 0x1c], ecx
add eax, 0x18
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov eax, str.CreateProcess___s___s__0__0__1___p__0__0___p___p_
mov dword [esp + 0xc], eax
mov eax, str.int_frok::parent_void_
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], 0x6110a820
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x6104c664
mov dword [esp + 0x18], edx
mov edi, dword [ebp + 0xc]
mov ecx, str.stack___bottom__p__top__p__size__d
mov dword [esp + 0x10], eax
mov edx, str.int_frok::parent_void_
mov eax, 0x40
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp + 0x14], edi
mov dword [esp], 0x6110a820
call method.strace.prntf_unsigned_int__char_const__char_const__..._
mov eax, 0x44
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
lea eax, [ebp - 0x98]
mov dword [esp], eax
call sym.cygwin1.dll__memset
mov esi, dword [ebp - 0xa0]
mov eax, 0x44
mov dword [ebp - 0x98], eax
jmp 0x6104c64b
mov dword [esp], 0x6110a820
mov esi, str.returning__1
mov ebx, str.int_frok::parent_void_
mov dword [esp + 0xc], esi
mov ecx, 0x40
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x6104cc16
mov eax, 0x61106b24
call method.muto.release__
jmp 0x6104cbdc
mov edx, dword [ebp - 0xb0]
mov dword [esp], edx
call method.pinfo.release__
jmp 0x6104cc27
call sub.KERNEL32.dll_GetLastError
mov edx, 0xd
mov edi, str.CreateProcessA_failed
call sym.__Z23geterrno_from_win_errormi_8
cld
mov edx, dword [ebp - 0xa0]
mov ecx, 4
mov dword [edx + 0x130], eax
mov eax, dword [ebp - 0xbc]
mov dword [edx + 0x128], edi
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
jmp 0x6104cba2
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
jmp 0x6104cbee
mov edx, dword [ebp - 0xb0]
mov dword [esp], edx
call method.pinfo.release__
mov eax, ebx
jmp 0x6104cc2c
mov edi, dword [0x611055ac]
jmp 0x6104c95b
mov dword [esp], 0x6110a820
mov eax, str.copying_data_bss_of_a_linked_dll
mov dword [esp + 0xc], eax
mov eax, str.int_frok::parent_void_
mov dword [esp + 8], eax
mov eax, 0x40
mov dword [esp + 4], eax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x6104c970
mov dword [esp], 0x6110a820
mov eax, str.child_is_alive__but_stopped_
mov dword [esp + 0xc], eax
mov eax, str.int_frok::parent_void_
mov dword [esp + 8], eax
mov eax, 0x40
mov dword [esp + 4], eax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x6104c88f
xor ecx, ecx
xor edx, edx
xor eax, eax
jmp 0x6104c8b6
mov ecx, dword [ebp - 0xa0]
mov esi, 0xb
mov ebx, str.died_waiting_for_dll_loading
mov dword [ecx + 0x130], esi
mov dword [ecx + 0x128], ebx
jmp 0x6104cbdc
mov edi, dword [0x611055ac]
jmp 0x6104ca79
mov eax, 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
call sub.KERNEL32.dll_TerminateProcess
mov ecx, dword [ebp - 0xa0]
mov eax, 0xb
sub esp, 8
mov dword [ecx + 0x130], eax
jmp 0x6104cbcf
call sym.cygwin1.dll___errno
mov eax, dword [eax]
mov edi, dword [ebp - 0xa0]
mov dword [edi + 0x130], eax
lea eax, [ebp - 0x9c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
call sub.KERNEL32.dll_GetExitCodeProcess
sub esp, 8
test eax, eax
jne 0x6104cef2
mov edi, 0xdeadbeef
mov dword [ebp - 0x9c], edi
mov dword [esp], 0x6113ff00
mov eax, dword [ebp - 0x9c]
mov esi, str.pid__u__exitval__p
mov dword [esp + 4], esi
mov ebx, 0x6113ff00
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 8], eax
call sym.___small_sprintf
mov eax, dword [ebp - 0xa0]
mov dword [eax + 0x128], ebx
jmp 0x6104cbdc
mov dword [esp], 0x6110a820
mov eax, str.copying_data_bss_for_a_loaded_dll
mov dword [esp + 0xc], eax
mov eax, str.int_frok::parent_void_
mov dword [esp + 8], eax
mov eax, 0x40
mov dword [esp + 4], eax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x6104ca8e
call sym.cygwin1.dll___errno
cmp dword [eax], 0xc
mov edx, dword [ebp - 0xa0]
sete al
movzx eax, al
add eax, 0xb
mov dword [edx + 0x130], eax
test byte [0x6110a820], 1
je 0x6104cbcf
mov dword [esp], 0x6110a820
mov ecx, 0x61123fb6
mov edx, str.int_frok::parent_void_
mov dword [esp + 0xc], ecx
mov eax, 0x10
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x6104cbcf
call sub.KERNEL32.dll_GetLastError
mov edx, 0xd
mov esi, str.unable_to_allocate_forker_finished_event
call sym.__Z23geterrno_from_win_errormi_8
cmp byte [ebp - 0x30], 0
mov ecx, dword [ebp - 0xa0]
mov dword [ecx + 0x130], eax
lea eax, [ebp - 0x38]
mov dword [ecx + 0x128], esi
je 0x6104cc27
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x6104cc27
mov dword [esp], eax
call method.pinfo.release__
jmp 0x6104cc27
call sym.cygwin1.dll___errno
mov eax, dword [eax]
mov ecx, dword [ebp - 0xa0]
mov dword [ecx + 0x130], eax
jmp 0x6104cbdc
call sym.cygwin1.dll___errno
mov eax, dword [eax]
mov edi, dword [ebp - 0xa0]
mov dword [edi + 0x130], eax
jmp 0x6104cbdc