Function at 0x61016940
Capabilities:
Create process on windows
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
movzx eax, byte [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov byte [ebp - 0x79], al
test byte [0x6110c854], 1
jne 0x61016980
xor eax, eax
cmp byte [0x61141990], 0
mov esi, 0x61141990
jne 0x610169c0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], 0x6110c854
mov eax, 0x61141990
mov esi, 0x61141990
mov dword [esp + 0x10], eax
mov eax, str.debugger_command__s
mov dword [esp + 0xc], eax
mov eax, str.int_try_to_debug_bool_
mov dword [esp + 8], eax
mov eax, 0x40
mov dword [esp + 4], eax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
xor eax, eax
cmp byte [0x61141990], 0
je 0x61016972
call fcn.61101110
test eax, eax
mov ebx, eax
jne 0x61016bc3
call sub.KERNEL32.dll_GetCurrentProcessId
mov edi, eax
mov eax, ebx
mov ah, al
mov al, byte [esi]
cmp al, ah
je 0x610169e7
inc esi
test al, al
jne 0x610169da
xor esi, esi
mov eax, esi
mov dword [esp + 8], edi
mov edx, eax
mov eax, 0x6111c2ed
mov dword [esp], edx
mov edi, 2
mov esi, 0x44
mov dword [esp + 4], eax
call sym.___small_sprintf
call sub.KERNEL32.dll_GetCurrentThread
mov dword [esp], eax
call sub.KERNEL32.dll_GetThreadPriority
mov dword [ebp - 0x80], eax
sub esp, 4
call sub.KERNEL32.dll_GetCurrentThread
mov dword [esp], eax
mov dword [esp + 4], edi
lea edi, [ebp - 0x28]
call sub.KERNEL32.dll_SetThreadPriority
cld
sub esp, 8
lea edx, [ebp - 0x78]
mov eax, ebx
mov ecx, 4
xor ebx, ebx
rep stosd dword es:[edi], eax
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
call sym.cygwin1.dll__memset
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x78], 0x44
call method.lock_ttys.release__
call sub.KERNEL32.dll_GetEnvironmentStrings
cmp byte [eax], 0
mov ebx, eax
je 0x61016ab1
cld
mov ecx, 7
mov esi, ebx
mov edi, 0x6111c2f1
repe cmpsb byte [esi], byte es:[edi]
je 0x61016c03
xor eax, eax
mov ah, al
mov al, byte [ebx]
cmp al, ah
je 0x61016aa6
inc ebx
test al, al
jne 0x61016a99
xor ebx, ebx
mov eax, ebx
cmp byte [eax + 1], 0
lea ebx, [eax + 1]
jne 0x61016a80
call sub.KERNEL32.dll_GetCurrentThreadId
mov ebx, eax
call sub.KERNEL32.dll_GetCurrentProcessId
mov ecx, eax
mov eax, dword [0x611650ec]
test byte [eax + 0x13], 4
je 0x61016acc
neg ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov dword [esp], str._starting_debugger_for_pid__u__tid__u_n
call sym._small_printf
mov dword [esp], 0
lea eax, [ebp - 0x28]
xor ecx, ecx
mov dword [esp + 0x24], eax
mov eax, 0x210
lea edx, [ebp - 0x78]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 0x20], edx
xor edx, edx
mov dword [esp + 8], eax
mov eax, 0x61141990
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_CreateProcessA
sub esp, 0x28
test eax, eax
mov ebx, eax
je 0x61016bd7
cmp byte [ebp - 0x79], 0
je 0x61016972
call sub.KERNEL32.dll_GetCurrentThread
mov dword [esp], eax
mov edx, 0xfffffff1
mov dword [esp + 4], edx
call sub.KERNEL32.dll_SetThreadPriority
sub esp, 8
jmp 0x61016b65
call sym._low_priority_sleep
call fcn.61101110
test eax, eax
je 0x61016b60
mov dword [esp], 0x7d0
call sub.KERNEL32.dll_Sleep
sub esp, 4
call sub.KERNEL32.dll_GetCurrentProcessId
mov ecx, eax
mov eax, dword [0x611650ec]
test byte [eax + 0x13], 4
je 0x61016b91
neg ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp], str._continuing_pid__u_from_debugger_call___d__n
call sym._small_printf
call sub.KERNEL32.dll_GetCurrentThread
mov edx, dword [ebp - 0x80]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.KERNEL32.dll_SetThreadPriority
sub esp, 8
mov eax, ebx
jmp 0x61016972
call sym._break_here
mov ebx, dword [ebp - 0xc]
xor eax, eax
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], 0x6110c854
mov edi, str.Failed_to_start_debugger___E
mov esi, str.int_try_to_debug_bool_
mov dword [esp + 0xc], edi
mov ecx, 0x8000
mov dword [esp + 8], esi
mov dword [esp + 4], ecx
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x61016b7d
mov dword [esp], ebx
mov eax, str.error_start
mov dword [esp + 4], eax
call sym.cygwin1.dll__strstr
test eax, eax
je 0x61016ab1
mov byte [eax], 0x5f
lea eax, [ebx + 7]
mov dword [esp + 4], eax
mov dword [esp], str.CYGWIN
call sub.KERNEL32.dll_SetEnvironmentVariableA
sub esp, 8
jmp 0x61016ab1