Function at 0x6108d520
Capabilities:
Create process on windows
Create process suspended
Read file on windows
Resume thread

Disassembly:
push ebp
mov eax, 0x12fc
mov ebp, esp
push edi
push esi
push ebx
call sym.cygwin1.dll__alloca
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x6108efa7
mov eax, dword [0x610f08a0]
test eax, eax
jne 0x6108ef70
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x6108ef2d
cld
mov eax, 0xffffffff
mov byte [ebp - 0x11c], 0
xor edi, edi
xor ecx, ecx
mov dword [ebp - 0x368], eax
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x140], edi
xor eax, eax
xor edx, edx
mov dword [ebp - 0x148], eax
lea edi, [ebp - 0x3c8]
xor eax, eax
mov dword [ebp - 0x144], eax
xor eax, eax
mov dword [ebp - 0x374], ecx
mov ecx, 0x11
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x378], ebx
mov dword [ebp - 0x370], edx
rep stosd dword es:[edi], eax
xor eax, eax
lea ecx, [ebp - 0x418]
cmp dword [ebp + 0x14], 3
mov dword [ebp - 0x3d4], eax
mov eax, 0x4c
mov dword [ebp - 0x394], ecx
mov word [ebp - 0x396], ax
je 0x6108eef9
xor eax, eax
mov ebx, 1
mov dword [ebp - 0x12bc], eax
cmp dword [ebp + 0x14], 3
mov eax, 1
je 0x6108eeed
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x12bc]
lea ecx, [ebp - 0x418]
mov dword [esp + 4], ecx
mov dword [esp], ebx
mov dword [esp + 0xc], edx
call fcn.6108ac70
sub esp, 0x10
lea eax, [ebp - 0x3ec]
mov dword [esp + 0xc], eax
mov eax, dword [0x610eda80]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov dword [esp], eax
call sub.KERNEL32.dll_DuplicateHandle
sub esp, 0x1c
test eax, eax
je 0x6108eec4
mov edx, 1
mov ecx, 0x18
mov eax, 0xc
call fcn.61002bd0
mov dword [eax], 0
mov edx, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x3d4], eax
mov eax, dword [edx]
test eax, eax
je 0x6108d69b
lea esi, [esi]
lea edi, [edi]
mov ecx, dword [ebp + 0xc]
inc ebx
mov eax, dword [ecx + ebx*4]
test eax, eax
jne 0x6108d690
mov dword [ebp - 0x41c], ebx
xor eax, eax
xor edi, edi
mov dword [ebp - 0x424], eax
lea edx, [ebx*4 + 0x14]
mov eax, 0xa
mov dword [ebp - 0x420], edi
call fcn.61002990
mov dword [ebp - 0x428], eax
mov edi, eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x41c]
lea edx, [eax*4]
lea eax, [edx + 4]
cmp eax, 7
jbe 0x6108d6f9
test edi, 4
je 0x6108d6f9
mov eax, dword [esi]
mov dword [edi], eax
mov esi, dword [ebp + 0xc]
add edi, 4
mov eax, edx
add esi, 4
cld
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
xor esi, esi
cmp ebx, 3
mov dword [ebp - 0x12c0], esi
je 0x6108ed20
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x368]
mov dword [esp + 4], edx
mov dword [esp], ecx
call fcn.6108c730
mov dword [ebp - 0x1290], eax
test eax, eax
je 0x6108ed0a
cmp byte [eax], 0
jne 0x6108d8c3
mov esi, esi
mov dword [esp + 0x18], 0
lea edx, [ebp - 0x11c]
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0x610ef788
mov dword [esp + 8], 3
mov dword [esp + 4], 0x80000000
mov dword [esp], edx
call sub.KERNEL32.dll_CreateFileA
sub esp, 0x1c
mov ebx, eax
cmp eax, 0xffffffff
je 0x6108ecf6
mov byte [ebp - 0x430], 0
lea eax, [ebp - 0x128c]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x638]
mov byte [ebp - 0x636], 0
mov byte [ebp - 0x637], 0
mov byte [ebp - 0x638], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x208
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_ReadFile
sub esp, 0x14
test eax, eax
je 0x6108ecce
mov dword [esp], ebx
call sub.KERNEL32.dll_CloseHandle
movzx eax, byte [ebp - 0x638]
sub esp, 4
cmp al, 0x4d
je 0x6108ecbc
mov edx, dword [0x610f08a0]
test edx, edx
jne 0x6108ec82
cmp al, 0x23
je 0x6108ebe5
mov ebx, 0x6108d173
xor edi, edi
mov eax, dword [ebp - 0x424]
test eax, eax
jne 0x6108ebd3
mov eax, dword [ebp + 8]
call fcn.61002cc0
mov edx, dword [ebp - 0x428]
test eax, eax
mov dword [edx], eax
je 0x6108ebd3
mov eax, 1
mov dword [ebp - 0x424], eax
mov esi, esi
lea edi, [edi]
test edi, edi
je 0x6108d86e
mov dword [esp + 8], 0
lea eax, [ebp - 0x428]
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.6108cf60
mov dword [esp], 2
lea eax, [ebp - 0x1290]
mov ecx, 0x6108d17b
mov dword [esp + 4], eax
lea edx, [ebp - 0x368]
mov eax, ebx
call fcn.6108c8e0
sub esp, 8
lea edx, [ebp - 0x11c]
lea ecx, [ebp - 0x428]
mov dword [esp + 8], 1
mov dword [esp + 4], edx
mov dword [esp], ecx
call fcn.6108cf60
mov eax, dword [ebp - 0x1290]
cmp byte [eax], 0
je 0x6108d740
test byte [ebp - 0x148], 0x40
je 0x6108e90e
mov ebx, dword [ebp - 0x424]
mov eax, dword [ebp - 0x41c]
cmp ebx, eax
jl 0x6108e8d0
mov dword [ebp - 0x424], eax
mov esi, dword [ebp - 0x420]
test esi, esi
jne 0x6108e8b4
cmp dword [ebp + 0x14], 3
mov edx, dword [ebp - 0x3d4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x428]
mov dword [edx + 8], eax
mov eax, dword [0x61146b00]
mov dword [ebp - 0x3d0], eax
je 0x6108e864
mov dword [edx + 0x14], 0
cld
xor eax, eax
mov ecx, 4
lea edi, [ebp - 0x648]
mov edx, 0x100
xor ebx, ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x39c], edx
xor ecx, ecx
mov dword [ebp - 0x3c0], ecx
mov dword [ebp - 0x3c4], ebx
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.6108cd20
mov dword [ebp - 0x390], eax
mov dword [esp + 4], 1
mov dword [esp], 1
call fcn.6108cd20
mov dword [ebp - 0x38c], eax
mov dword [esp + 4], 1
mov dword [esp], 2
call fcn.6108cd20
mov dword [ebp - 0x388], eax
mov eax, 0x44
mov dword [ebp - 0x3c8], eax
mov eax, dword [0x610eda80]
mov dword [esp], eax
call sub.KERNEL32.dll_GetPriorityClass
mov edx, eax
sub esp, 4
or edx, 0x4000000
cmp dword [ebp + 0x14], 5
mov ebx, eax
mov dword [ebp - 0x12cc], edx
je 0x6108d9d9
call fcn.6102bc20
test eax, eax
jne 0x6108d9e5
or ebx, 0x4000008
mov dword [ebp - 0x12cc], ebx
cmp dword [ebp + 0x14], 3
je 0x6108d9f2
or dword [ebp - 0x12cc], 4
mov edx, dword [0x610ed768]
mov eax, dword [edx + 0x1a4]
test eax, eax
jle 0x6108da09
or dword [ebp - 0x12cc], 4
xor eax, eax
lea ecx, [ebp - 0x11c]
cmp dword [ebp - 0x12c0], 0
setne al
dec eax
and ecx, eax
mov dword [ebp - 0x12d0], ecx
mov eax, dword [0x610f08a0]
test eax, eax
jne 0x6108e81d
lea eax, [edx + 0x18c]
mov dword [esp], eax
call fcn.6101ec50
mov edx, dword [0x610ed768]
cmp dword [edx + 0x154], 0xffffffff
jne 0x6108e80d
cmp dword [edx + 0x154], 0xffffffff
je 0x6108e73b
mov eax, dword [edx + 0x104]
cmp dword [edx + 0xfc], eax
je 0x6108e71c
cmp dword [ebp + 0x14], 3
mov ebx, dword [edx + 0xa4]
je 0x6108e70b
mov dword [esp + 4], 0
mov edx, ebx
xor ecx, ecx
mov dword [esp], 0
lea eax, [ebp - 0xa48]
lea esi, [ebp - 0xe48]
call fcn.61078f10
mov dword [ebp - 0x12d4], eax
sub esp, 8
mov eax, 4
mov dword [ebp - 0x1298], eax
call fcn.610fe228
mov ebx, eax
call fcn.61078900
mov dword [esp + 8], eax
lea ecx, [ebp - 0x1298]
mov dword [esp + 4], ecx
mov dword [esp], ebx
call fcn.610fe530
sub esp, 0xc
lea eax, [ebp - 0x129c]
mov dword [esp], ebx
lea ebx, [ebp - 0x1248]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], esi
mov dword [esp + 4], 2
call fcn.610fe2b0
sub esp, 0x14
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [esp], eax
call fcn.610fe258
sub esp, 4
mov edi, eax
call fcn.61078900
mov dword [esp + 8], eax
lea edx, [ebp - 0x1298]
mov dword [esp + 4], edx
mov dword [esp], edi
call fcn.610fe530
sub esp, 0xc
lea ecx, [ebp - 0x129c]
mov dword [esp + 0x10], ecx
mov dword [esp + 8], ebx
mov dword [esp], edi
mov dword [esp + 0xc], 0x400
mov dword [esp + 4], 2
call fcn.610fe2b0
sub esp, 0x14
mov dword [esp + 4], 0x6108d181
mov dword [esp], esi
call sym.cygwin1.dll__strcat
mov dword [esp + 4], ebx
mov dword [esp], esi
call sym.cygwin1.dll__strcat
mov dword [ebp - 0x3c0], esi
xor eax, eax
mov ebx, dword [ebp - 0x3d4]
test byte [ebp - 0x148], 0x40
lea edx, [ebp - 0x1294]
lea ecx, [ebx + 0xc]
setne al
mov dword [esp], eax
mov eax, dword [ebp + 0x10]
call fcn.61021650
mov dword [ebx + 0x10], eax
sub esp, 4
xor edx, edx
mov eax, dword [0x610ed768]
add eax, 0x18c
cmp dword [eax + 0x18], 0
lea eax, [ebp - 0x418]
setg dl
movzx edx, dl
call fcn.61001fb0
mov edi, eax
lea ecx, [ebp - 0x3c8]
mov eax, dword [0x610ed768]
add eax, 0x88
mov edx, dword [eax + 0xcc]
lea eax, [ebp - 0x648]
mov dword [esp + 0x28], eax
mov eax, dword [ebp - 0x1294]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp - 0x12d4]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x12cc]
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x374]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x12d0]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.610f4110
sub esp, 0x2c
test eax, eax
setne byte [ebp - 0x12b8]
cmp dword [ebp + 0x14], 3
je 0x6108e6f9
mov eax, dword [0x610ed768]
add eax, 0x88
mov eax, dword [eax + 0xcc]
cmp eax, 0xffffffff
jne 0x6108e6bd
mov eax, dword [ebp - 0x1294]
test eax, eax
jne 0x6108e6b0
cmp byte [ebp - 0x12b8], 0
je 0x6108e629
lea eax, [ebp - 0x1258]
xor ecx, ecx
xor esi, esi
mov dword [ebp - 0x1264], eax
xor ebx, ebx
mov edx, 0x6108d070
mov dword [ebp - 0x1258], esi
xor eax, eax
mov dword [ebp - 0x1260], eax
lea eax, [ebp - 0x1268]
mov dword [ebp - 0x1254], ebx
mov dword [ebp - 0x1250], ecx
mov dword [ebp - 0x1268], edx
mov dword [esp], eax
call sym.cygwin1.dll__pthread_cleanup_push
cmp dword [ebp + 0x14], 0x200
je 0x6108e5b8
mov edx, dword [0x610ed768]
add edx, 0x18c
mov eax, dword [edx + 0x18]
test eax, eax
jg 0x6108e56f
xor ecx, ecx
lea edx, [ebp - 0x418]
mov eax, edi
call fcn.610020b0
cmp dword [ebp + 0x14], 3
je 0x6108e563
mov eax, dword [0x61148914]
mov ecx, dword [ebp - 0x640]
movzx eax, byte [eax + 0xf]
mov edx, ecx
shr al, 1
and eax, 1
test al, al
je 0x6108dd31
neg edx
mov esi, edx
mov eax, dword [0x610f08a0]
test eax, eax
je 0x6108dd82
mov dword [esp + 0xc], 0x6108d183
mov eax, dword [ebp - 0x374]
mov dword [esp + 8], 0x6108d0f0
mov dword [esp + 4], 0x10
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [esp], 0x610f089c
mov dword [esp + 0x14], eax
movzx eax, byte [ebp - 0x12b8]
and eax, 1
dec eax
or eax, esi
mov dword [esp + 0x10], eax
call fcn.6108fd50
cmp dword [ebp + 0x14], 3
je 0x6108e51e
mov edx, dword [0x610ef740]
mov eax, dword [edx]
cmp dword [edx + 0x128], eax
je 0x6108e512
mov dword [esp], 0
lea ebx, [ebp - 0x1278]
mov edx, esi
mov ecx, 1
mov eax, ebx
call fcn.6106a030
mov edx, dword [ebp - 0x1274]
test edx, edx
je 0x6108e4cf
mov eax, dword [ebp - 0x640]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x648]
mov dword [edx + 8], eax
mov edx, ebx
mov eax, 1
call fcn.61089300
test eax, eax
sete byte [ebp - 0x1270]
jne 0x6108deae
mov esi, dword [0x610f08a0]
test esi, esi
jne 0x6108de85
call sym.cygwin1.dll___errno
mov dword [eax], 0xb
cmp byte [ebp - 0x1270], 0
mov ecx, 0xffffffff
mov dword [ebp - 0x12a8], ecx
je 0x6108de2d
mov edx, dword [ebp - 0x1274]
test edx, edx
jne 0x6108de7b
mov dword [esp], 1
call sym.cygwin1.dll__pthread_cleanup_pop
lea eax, [ebp - 0x428]
mov ebx, dword [ebp - 0x12a8]
mov dword [esp], eax
call fcn.610e83d0
lea ecx, [ebp - 0x418]
mov dword [esp], ecx
call fcn.610e79e0
mov eax, dword [ebp - 0x374]
test eax, eax
jne 0x6108de71
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [esp], eax
call fcn.61054b50
jmp 0x6108de65
mov dword [esp], ebx
call fcn.6106b6f0
jmp 0x6108de2d
mov dword [esp + 0xc], 0x6108d1a1
mov dword [esp + 8], 0x6108d0f0
mov dword [esp + 4], 0x10
mov dword [esp], 0x610f089c
call fcn.6108fd50
jmp 0x6108de04
mov edx, dword [ebp - 0x1274]
lea eax, [ebp - 0x11c]
mov dword [esp + 4], eax
add edx, 0x1c
mov dword [esp], edx
call sym.cygwin1.dll__strcpy
mov dword [esp + 0x18], 2
mov eax, dword [ebp - 0x648]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1278]
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov eax, dword [0x610eda80]
mov dword [esp], eax
call sub.KERNEL32.dll_DuplicateHandle
mov eax, dword [ebp - 0x644]
sub esp, 0x1c
mov dword [esp], eax
call sub.KERNEL32.dll_ResumeThread
sub esp, 4
cmp byte [ebp - 0x1270], 0
je 0x6108df35
mov eax, dword [ebp - 0x1274]
test eax, eax
jne 0x6108e4c2
mov eax, dword [ebp - 0x644]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [0x610f08a0]
sub esp, 4
test eax, eax
jne 0x6108e48f
xor eax, eax
cmp dword [ebp + 0x14], 3
mov dword [ebp - 0x12a8], eax
je 0x6108dfd1
cmp dword [ebp + 0x14], 3
jg 0x6108dfa9
cmp dword [ebp + 0x14], 1
je 0x6108df8a
cmp dword [ebp + 0x14], 1
jle 0x6108df7e
mov dword [ebp - 0x12a8], esi
jmp 0x6108de2d
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x6108df73
jmp 0x6108de2d
mov dword [esp + 8], 0
lea eax, [ebp - 0x12a8]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.610a88d0
jmp 0x6108de2d
cmp dword [ebp + 0x14], 5
je 0x6108dfc4
cmp dword [ebp + 0x14], 5
jl 0x6108df73
cmp dword [ebp + 0x14], 0x200
jne 0x6108de2d
jmp 0x6108df8a
xor ebx, ebx
mov dword [ebp - 0x12a8], ebx
jmp 0x6108de2d
mov eax, dword [ebp - 0x648]
mov edi, 3
xor ebx, ebx
mov edx, dword [ebp - 0x12bc]
mov dword [ebp - 0x1288], eax
mov eax, dword [0x610ef820]
mov dword [ebp - 0x1280], edx
mov dword [ebp - 0x1284], eax
mov dword [esp + 0xc], 0xffffffff
lea ecx, [ebp - 0x1288]
mov dword [esp + 8], 0
mov dword [esp + 4], ecx
mov dword [esp], edi
call sub.KERNEL32.dll_WaitForMultipleObjects
sub esp, 0x10
cmp eax, 1
je 0x6108e456
cmp eax, 1
jb 0x6108e3ec
cmp eax, 2
jne 0x6108e278
call fcn.61088c00
test al, al
jne 0x6108e269
mov eax, dword [0x610ef740]
mov edi, dword [eax + 0x10]
test edi, edi
je 0x6108e250
mov edx, dword [ebp - 0x12bc]
mov dword [esp], edx
call sub.KERNEL32.dll_CloseHandle
mov ecx, dword [0x610f08a0]
sub esp, 4
test ecx, ecx
jne 0x6108e21d
test byte [ebp - 0x12a6], 2
je 0x6108e0ef
mov eax, dword [0x610ef740]
mov edx, dword [0x610f08a0]
mov ecx, dword [eax + 8]
test edx, edx
mov edi, dword [eax + 0x10]
mov dword [ebp - 0x12d8], ecx
jne 0x6108e1eb
mov dword [esp + 0x18], 2
add eax, 8
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x648]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov eax, dword [0x610eda80]
mov dword [esp + 8], edi
mov dword [esp], eax
call sub.KERNEL32.dll_DuplicateHandle
mov ebx, eax
sub esp, 0x1c
mov eax, dword [0x610f08a0]
test eax, eax
jne 0x6108e1a8
test ebx, ebx
je 0x6108e0fe
cmp dword [ebp + 0x14], 3
jne 0x6108df61
jmp 0x6108efbb
call fcn.61088c00
test al, al
je 0x6108e0ef
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0x6108d1d0
mov dword [esp + 8], 0x6108d0f0
mov dword [esp + 4], 0x8000
mov dword [esp], 0x610f089c
call fcn.6108fd50
mov ebx, dword [0x610ef740]
call sub.KERNEL32.dll_GetCurrentProcessId
mov edx, dword [ebx + 0x18]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x6108d210
mov dword [esp + 0x14], edx
mov dword [esp + 8], 0x6108d0f0
mov dword [esp + 4], 0x8000
mov dword [esp], 0x610f089c
call fcn.6108fd50
mov eax, dword [0x610ef740]
mov edx, dword [ebp - 0x12d8]
mov eax, dword [eax + 8]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x6108d23a
mov dword [esp + 0x14], eax
mov dword [esp + 8], 0x6108d0f0
mov dword [esp + 4], 0x8000
mov dword [esp], 0x610f089c
call fcn.6108fd50
jmp 0x6108e0ef
mov eax, dword [0x610ef740]
mov eax, dword [eax + 8]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x6108d270
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x12d8]
mov dword [esp + 8], 0x6108d0f0
mov dword [esp + 4], 0x800
mov dword [esp + 0x14], eax
mov dword [esp], 0x610f089c
call fcn.6108fd50
jmp 0x6108e0eb
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0x6108d297
mov dword [esp + 8], 0x6108d0f0
mov dword [esp + 4], 0x800
mov dword [esp], 0x610f089c
call fcn.6108fd50
mov eax, dword [0x610ef740]
jmp 0x6108e09f
mov dword [esp + 0xc], 0x6108d2a8
mov eax, dword [ebp - 0x12a8]
mov dword [esp + 8], 0x6108d0f0
mov dword [esp + 4], 0x800
mov dword [esp + 0x10], eax
mov dword [esp], 0x610f089c
call fcn.6108fd50
jmp 0x6108e077
mov edi, 2
call fcn.6108a140
inc ebx
cmp ebx, 0x63
jle 0x6108dffb
jmp 0x6108e058
or dword [ebp - 0x12a8], 0x20000
jmp 0x6108e058
inc eax
jne 0x6108e058
mov edx, dword [0x610ef740]
mov eax, dword [edx + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [edx]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0x6108d2d0
mov dword [esp + 0x14], eax
mov dword [esp + 8], 0x6108d0f0
mov dword [esp + 4], 0x8000
mov dword [esp], 0x610f089c
call fcn.6108fd50
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x1288]
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
sub esp, 8
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x1288]
mov dword [esp + 0xc], 0x6108d2fd
mov dword [esp + 8], 0x6108d0f0
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x8000
mov dword [esp], 0x610f089c
call fcn.6108fd50
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x1284]
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
sub esp, 8
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x1284]
mov dword [esp + 0xc], 0x6108d30e
mov dword [esp + 8], 0x6108d0f0
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x8000
mov dword [esp], 0x610f089c
call fcn.6108fd50
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x1280]
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
sub esp, 8
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x1280]
mov dword [esp + 0xc], 0x6108d321
mov dword [esp + 8], 0x6108d0f0
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x8000
mov dword [esp], 0x610f089c
call fcn.6108fd50
call sym.cygwin1.dll___errno
mov dword [eax], 0xa
mov dword [esp], 1
call fcn.610247d0
lea eax, [ebp - 0x428]
mov dword [esp], eax
call fcn.610e83d0
lea eax, [ebp - 0x418]
mov dword [esp], eax
call fcn.610e79e0
mov eax, dword [ebp - 0x374]
test eax, eax
jne 0x6108e3e2
mov eax, 0xffffffff
jmp 0x6108de67
mov dword [esp], eax
call fcn.61054b50
jmp 0x6108e3d8
mov eax, dword [0x610f08a0]
test eax, eax
jne 0x6108e430
lea eax, [ebp - 0x12a4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x648]
mov dword [esp], eax
call sub.KERNEL32.dll_GetExitCodeProcess
sub esp, 8
test eax, eax
jne 0x6108e41f
mov eax, 1
mov dword [ebp - 0x12a4], eax
mov eax, dword [ebp - 0x12a4]
or dword [ebp - 0x12a8], eax
jmp 0x6108e058
mov dword [esp + 0xc], 0x6108d334
mov dword [esp + 8], 0x6108d0f0
mov dword [esp + 4], 0x800
mov dword [esp], 0x610f089c
call fcn.6108fd50
jmp 0x6108e3f5
mov eax, dword [0x610f08a0]
test eax, eax
jne 0x6108e469
call fcn.61026be0
jmp 0x6108e25a
mov dword [esp + 0xc], 0x6108d346
mov dword [esp + 8], 0x6108d0f0
mov dword [esp + 4], 0x800
mov dword [esp], 0x610f089c
call fcn.6108fd50
jmp 0x6108e45f
mov dword [esp + 0xc], 0x6108d355
mov eax, dword [ebp - 0x640]
mov dword [esp + 8], 0x6108d0f0
mov dword [esp + 4], 0x800
mov dword [esp + 0x10], eax
mov dword [esp], 0x610f089c
call fcn.6108fd50
jmp 0x6108df53
mov dword [esp], ebx
call fcn.6106b6f0
jmp 0x6108df35
mov edi, dword [0x610f08a0]
test edi, edi
jne 0x6108e4ec
call sym.cygwin1.dll___errno
cmp dword [eax], 0xc
jne 0x6108de04
jmp 0x6108de0f
mov dword [esp + 0xc], 0x6108d36c
mov dword [esp + 8], 0x6108d0f0
mov dword [esp + 4], 0x10
mov dword [esp], 0x610f089c
call fcn.6108fd50
jmp 0x6108e4d9
mov byte [edx + 0x134], 1
jmp 0x6108dda0
mov eax, 1
mov edx, dword [0x610ef740]
mov dword [0x610f08a8], eax
mov eax, dword [ebp - 0x648]
add edx, 0x1c
mov dword [esp], edx
mov dword [0x61147130], eax
mov eax, dword [ebp - 0x640]
mov dword [0x61147134], eax
lea eax, [ebp - 0x11c]
mov dword [esp + 4], eax
call sym.cygwin1.dll__strcpy
call fcn.610909d0
jmp 0x6108df35
mov eax, dword [0x610ef740]
mov esi, dword [eax]
jmp 0x6108dd33
mov dword [esp], edx
mov eax, dword [ebp - 0x640]
mov dword [esp + 4], eax
call fcn.6101eba0
mov ecx, 1
lea edx, [ebp - 0x418]
mov eax, edi
call fcn.610020b0
cmp dword [ebp + 0x14], 3
jne 0x6108dd15
mov eax, dword [ebp - 0x644]
mov dword [esp], eax
call sub.KERNEL32.dll_ResumeThread
sub esp, 4
call fcn.61003b90
jmp 0x6108dd0b
mov dword [esp + 4], 1
lea ebx, [ebp - 0x12a0]
mov dword [esp], 2
call fcn.61087760
mov dword [ebp - 0x1258], eax
mov dword [esp + 4], 1
mov dword [esp], 3
call fcn.61087760
mov dword [ebp - 0x1254], eax
mov dword [esp], ebx
call sym.cygwin1.dll_sigemptyset
mov dword [esp + 4], 0x14
mov dword [esp], ebx
call fcn.61088690
mov dword [esp + 4], ebx
lea eax, [ebp - 0x1250]
mov dword [esp + 8], eax
mov dword [esp], 1
call fcn.61087b10
jmp 0x6108dce5
mov eax, 0x6108d390
mov edx, 0x2e3
call fcn.61022e70
mov eax, dword [0x610f08a0]
test eax, eax
jne 0x6108e687
mov eax, dword [ebp - 0x12bc]
test eax, eax
je 0x6108e65c
mov edx, dword [ebp - 0x12bc]
mov dword [esp], edx
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, edi
xor ecx, ecx
lea edx, [ebp - 0x418]
call fcn.610020b0
lea eax, [ebp - 0x428]
mov dword [esp], eax
call fcn.610e83d0
lea ecx, [ebp - 0x418]
mov dword [esp], ecx
jmp 0x6108e3c9
mov dword [esp + 0xc], 0x6108d3c2
mov dword [esp + 8], 0x6108d0f0
mov dword [esp + 4], 0x10
mov dword [esp], 0x610f089c
call fcn.6108fd50
jmp 0x6108e641
mov dword [esp], eax
call fcn.61054b50
jmp 0x6108dc86
mov dword [esp], eax
call fcn.610f44b8
sub esp, 4
test eax, eax
jne 0x6108dc78
mov dword [esp + 0xc], 0x6108d3db
mov dword [esp + 8], 0x6108d150
mov dword [esp + 4], 0x8000
mov dword [esp], 0x610f089c
call fcn.6108fd50
jmp 0x6108dc78
cmp byte [ebp - 0x12b8], 0
jne 0x6108dc78
jmp 0x6108dc5f
mov dword [esp], 0x610ef73c
call fcn.6106a4a0
jmp 0x6108da81
mov eax, dword [edx + 0x108]
cmp dword [edx + 0x100], eax
jne 0x6108da71
cmp dword [edx + 0x144], 1
je 0x6108da71
mov dword [esp + 4], 0
xor ecx, ecx
xor edx, edx
mov dword [esp], 0
lea eax, [ebp - 0xa48]
call fcn.61078f10
sub esp, 8
mov esi, eax
mov ebx, dword [ebp - 0x3d4]
xor eax, eax
lea edx, [ebp - 0x1294]
test byte [ebp - 0x148], 0x40
lea ecx, [ebx + 0xc]
setne al
mov dword [esp], eax
mov eax, dword [ebp + 0x10]
call fcn.61021650
mov dword [ebx + 0x10], eax
sub esp, 4
xor edx, edx
mov eax, dword [0x610ed768]
add eax, 0x18c
cmp dword [eax + 0x18], 0
lea eax, [ebp - 0x418]
setg dl
movzx edx, dl
call fcn.61001fb0
mov dword [esp + 0x1c], 0
mov edi, eax
lea edx, [ebp - 0x648]
mov dword [esp + 0x24], edx
mov eax, dword [ebp - 0x1294]
lea ecx, [ebp - 0x3c8]
mov dword [esp + 0x20], ecx
mov edx, dword [ebp - 0x12d0]
mov dword [esp + 0x10], 1
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x12cc]
mov dword [esp + 0xc], esi
mov dword [esp + 8], esi
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x374]
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_CreateProcessA
sub esp, 0x28
jmp 0x6108dc4c
call fcn.610f49e0
mov edx, dword [0x610ed768]
jmp 0x6108da52
mov dword [esp + 0x14], ecx
mov eax, dword [ebp - 0x374]
mov dword [esp + 0xc], 0x6108d410
mov dword [esp + 8], 0x6108d0f0
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x12c0]
mov dword [esp + 4], 0x10
mov dword [esp], 0x610f089c
mov dword [esp + 0x10], eax
call fcn.6108fd50
mov edx, dword [0x610ed768]
jmp 0x6108da31
mov dword [esp + 0x18], 2
lea eax, [edx + 0x14]
mov edx, dword [0x610eda80]
mov dword [esp + 0xc], eax
mov eax, dword [0x610ef73c]
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.KERNEL32.dll_DuplicateHandle
sub esp, 0x1c
test eax, eax
jne 0x6108d926
mov edx, dword [ebp - 0x3d4]
jmp 0x6108d91f
call sym.cygwin1.dll___errno
mov edx, dword [ebp - 0x420]
mov dword [eax], edx
lea ecx, [ebp - 0x428]
mov dword [esp], ecx
jmp 0x6108e3bb
mov eax, dword [ebp - 0x428]
mov eax, dword [eax + ebx*4]
call fcn.61002cc0
mov edx, dword [ebp - 0x428]
test eax, eax
mov dword [edx + ebx*4], eax
je 0x6108e8ff
inc ebx
cmp ebx, dword [ebp - 0x41c]
jl 0x6108e8d0
mov eax, dword [ebp - 0x41c]
jmp 0x6108d8e4
call sym.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [ebp - 0x420], eax
jmp 0x6108e8eb
xor eax, eax
mov dword [ebp - 0x12c8], eax
xor eax, eax
cmp eax, dword [ebp - 0x41c]
jge 0x6108eabd
lea esi, [esi]
lea edi, [edi]
mov edx, dword [ebp - 0x12c8]
cmp edx, dword [ebp - 0x424]
jge 0x6108eb9c
mov eax, dword [ebp - 0x12c8]
lea esi, [ebp - 0x11c]
test eax, eax
je 0x6108e961
mov eax, dword [ebp - 0x428]
mov edx, dword [ebp - 0x12c8]
mov esi, dword [eax + edx*4]
mov dword [esp], esi
call sym.cygwin1.dll__strlen
test eax, eax
mov ebx, eax
je 0x6108e987
mov dword [esp + 4], 0x6108d42f
mov dword [esp], esi
call sym.cygwin1.dll__strpbrk
test eax, eax
je 0x6108eb86
mov dword [esp + 8], 1
lea eax, [ebp - 0x378]
mov dword [esp + 4], 0x6108d435
mov dword [esp], eax
call fcn.6108ce20
lea esi, [esi]
lea edi, [edi]
mov dword [esp + 4], 0x6108d437
mov dword [esp], esi
call sym.cygwin1.dll__strpbrk
test eax, eax
mov ebx, eax
mov edi, eax
je 0x6108ea60
mov dword [esp + 4], esi
mov eax, ebx
lea edx, [ebp - 0x378]
mov dword [esp], edx
sub eax, esi
mov dword [esp + 8], eax
call fcn.6108ce20
mov dword [esp + 4], 0x6108d181
mov dword [esp], ebx
call sym.cygwin1.dll__strspn
test eax, eax
mov esi, eax
jne 0x6108ea20
mov dword [esp + 8], 2
lea ecx, [ebp - 0x378]
mov dword [esp + 4], 0x6108d43a
mov dword [esp], ecx
call fcn.6108ce20
lea esi, [edi + 1]
jmp 0x6108e9b0
mov dword [esp + 8], eax
lea eax, [ebp - 0x378]
mov dword [esp], eax
mov dword [esp + 4], ebx
call fcn.6108ce20
movzx eax, byte [esi + ebx]
test al, al
je 0x6108ea48
cmp al, 0x22
je 0x6108ea48
lea edi, [esi + ebx - 1]
jmp 0x6108ea1a
mov dword [esp + 8], esi
lea edx, [ebp - 0x378]
mov dword [esp + 4], ebx
mov dword [esp], edx
call fcn.6108ce20
jmp 0x6108ea42
cmp byte [esi], 0
jne 0x6108eb63
mov dword [esp + 8], 1
lea eax, [ebp - 0x378]
mov dword [esp + 4], 0x6108d435
mov dword [esp], eax
call fcn.6108ce20
mov dword [esp + 8], 1
lea edx, [ebp - 0x378]
mov dword [esp + 4], 0x6108d43d
mov dword [esp], edx
call fcn.6108ce20
inc dword [ebp - 0x12c8]
mov ecx, dword [ebp - 0x12c8]
cmp ecx, dword [ebp - 0x41c]
jl 0x6108e930
mov edx, dword [ebp - 0x378]
test edx, edx
je 0x6108eb40
mov eax, dword [ebp - 0x374]
mov byte [edx + eax - 1], 0
cmp dword [ebp - 0x378], 0x7fff
jbe 0x6108e8f4
mov edi, dword [0x610f08a0]
test edi, edi
jne 0x6108eb13
call sym.cygwin1.dll___errno
mov dword [eax], 7
lea eax, [ebp - 0x428]
mov dword [esp], eax
call fcn.610e83d0
lea edx, [ebp - 0x418]
mov dword [esp], edx
jmp 0x6108e3c9
mov dword [esp + 0xc], 0x6108d450
mov dword [esp + 8], 0x6108d0f0
mov dword [esp + 4], 0x40
mov dword [esp], 0x610f089c
call fcn.6108fd50
jmp 0x6108eaec
mov dword [esp + 8], 1
lea eax, [ebp - 0x378]
mov dword [esp + 4], 0x6108c8a8
mov dword [esp], eax
call fcn.6108ce20
jmp 0x6108ead2
mov dword [esp], esi
call sym.cygwin1.dll__strlen
mov dword [esp + 8], eax
lea ecx, [ebp - 0x378]
mov dword [esp + 4], esi
mov dword [esp], ecx
call fcn.6108ce20
jmp 0x6108ea69
mov dword [esp + 8], ebx
lea ecx, [ebp - 0x378]
mov dword [esp + 4], esi
mov dword [esp], ecx
jmp 0x6108ea82
mov eax, dword [ebp - 0x428]
mov eax, dword [eax + edx*4]
call fcn.61002cc0
mov edx, dword [ebp - 0x428]
test eax, eax
mov ecx, dword [ebp - 0x12c8]
mov dword [edx + ecx*4], eax
jne 0x6108e942
call sym.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [ebp - 0x420], eax
jmp 0x6108e942
call sym.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [ebp - 0x420], eax
jmp 0x6108d850
cmp byte [ebp - 0x637], 0x21
jne 0x6108d80f
mov dword [esp + 4], 0x6108d47b
lea ebx, [ebp - 0x636]
xor edi, edi
mov dword [esp], ebx
call sym.cygwin1.dll__strspn
add ebx, eax
mov esi, ebx
movzx eax, byte [ebx]
test al, al
je 0x6108ec31
cmp al, 0xd
je 0x6108ec31
cmp al, 0xa
je 0x6108ec31
test edi, edi
je 0x6108ec39
inc esi
movzx eax, byte [esi]
test al, al
je 0x6108ec31
cmp al, 0xd
je 0x6108ec31
cmp al, 0xa
jne 0x6108ec1d
mov byte [esi], 0
jmp 0x6108d816
movzx eax, byte [esi]
cmp al, 0x20
je 0x6108ec44
cmp al, 9
jne 0x6108ec21
mov byte [esi], 0
lea edx, [esi + 1]
mov dword [ebp - 0x12c4], edx
mov dword [esp + 4], 0x6108d47b
mov dword [esp], edx
call sym.cygwin1.dll__strspn
add dword [ebp - 0x12c4], eax
mov ecx, dword [ebp - 0x12c4]
movzx eax, byte [ecx]
test al, al
je 0x6108ec31
cmp al, 0xd
je 0x6108ec31
cmp al, 0xa
je 0x6108ec31
mov edi, ecx
lea esi, [ecx - 1]
jmp 0x6108ec21
mov dword [esp + 0xc], 0x6108d47e
lea eax, [ebp - 0x11c]
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x6108d0f0
mov dword [esp + 4], 0x40
mov dword [esp], 0x610f089c
call fcn.6108fd50
movzx eax, byte [ebp - 0x638]
jmp 0x6108d807
cmp byte [ebp - 0x637], 0x5a
jne 0x6108d7f9
jmp 0x6108d8c3
mov dword [esp], ebx
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov edx, 0x1d6
mov eax, 0x6108d390
call fcn.61022e70
lea edx, [ebp - 0x428]
mov dword [esp], edx
jmp 0x6108e674
mov edx, 0x1cb
mov eax, 0x6108d390
call fcn.61022e70
jmp 0x6108e8c1
call sym.cygwin1.dll___errno
mov dword [eax], 2
jmp 0x6108e3b2
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
cmp byte [eax], 0x2f
jne 0x6108d712
cmp byte [eax + 1], 0x63
jne 0x6108d712
mov dword [esp + 4], 0x6108d48d
mov eax, dword [edx]
mov dword [esp], eax
call fcn.6108cd80
test eax, eax
jne 0x6108ed6c
mov dword [esp + 4], 0x6108d499
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov dword [esp], eax
call fcn.6108cd80
test eax, eax
je 0x6108d712
mov dword [esp], 0
mov edx, dword [ebp + 8]
mov ecx, 1
lea eax, [ebp - 0x368]
lea esi, [ebp - 0x378]
call fcn.610620e0
mov dword [esp], 0x6108d435
call sym.cygwin1.dll__strlen
mov dword [esp + 8], eax
mov dword [esp + 4], 0x6108d435
mov dword [esp], esi
call fcn.6108ce20
mov ebx, dword [ebp - 0x140]
test ebx, ebx
jne 0x6108eea1
lea edx, [ebp - 0x11c]
mov dword [esp], edx
call sym.cygwin1.dll__strlen
mov dword [esp + 8], eax
lea ecx, [ebp - 0x11c]
mov dword [esp + 4], ecx
mov dword [esp], esi
call fcn.6108ce20
mov dword [esp], 0x6108d435
call sym.cygwin1.dll__strlen
mov dword [esp + 8], eax
mov dword [esp + 4], 0x6108d435
mov dword [esp], esi
call fcn.6108ce20
mov dword [esp], 0x6108d43d
call sym.cygwin1.dll__strlen
mov dword [esp + 8], eax
mov dword [esp + 4], 0x6108d43d
mov dword [esp], esi
call fcn.6108ce20
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 4]
mov dword [esp], ebx
call sym.cygwin1.dll__strlen
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.6108ce20
mov dword [esp], 0x6108d43d
call sym.cygwin1.dll__strlen
mov dword [esp + 8], eax
mov dword [esp + 4], 0x6108d43d
mov dword [esp], esi
call fcn.6108ce20
mov edx, dword [ebp + 0xc]
mov ebx, dword [edx + 8]
mov dword [esp], ebx
call sym.cygwin1.dll__strlen
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.6108ce20
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov dword [esp + 4], eax
lea eax, [ebp - 0x11c]
mov dword [esp], eax
call sym.cygwin1.dll__strcpy
mov ecx, 1
mov dword [ebp - 0x12c0], ecx
jmp 0x6108d926
mov edx, dword [ebp + 0xc]
mov ebx, dword [edx]
mov dword [esp], ebx
call sym.cygwin1.dll__strlen
mov dword [esp + 8], eax
lea ecx, [ebp - 0x378]
mov dword [esp + 4], ebx
mov dword [esp], ecx
jmp 0x6108edd9
mov dword [esp + 0xc], 0x6108d4b0
mov dword [esp + 8], 0x6108d0f0
mov dword [esp + 4], 0x8000
mov dword [esp], 0x610f089c
call fcn.6108fd50
jmp 0x6108e3c0
mov eax, dword [0x610ef740]
mov eax, dword [eax]
jmp 0x6108d5f3
mov dword [esp + 0xc], 0
xor ebx, ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0x610ef794
call sub.KERNEL32.dll_CreateEventA
mov dword [ebp - 0x12bc], eax
sub esp, 0x10
jmp 0x6108d5e4
mov eax, dword [0x610f08a0]
test eax, eax
jne 0x6108ef46
call sym.cygwin1.dll___errno
mov dword [eax], 0x16
jmp 0x6108e3d8
mov dword [esp + 0xc], 0x6108d4df
mov dword [esp + 8], 0x6108d0f0
mov dword [esp + 4], 0x10
mov dword [esp], 0x610f089c
call fcn.6108fd50
jmp 0x6108ef36
mov dword [esp + 0xc], 0x6108d4ec
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
mov dword [esp + 8], 0x6108d0f0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 4], 0x10
mov dword [esp], 0x610f089c
call fcn.6108fd50
jmp 0x6108d548
mov edx, dword [0x610f08a0]
test edx, edx
je 0x6108ef36
mov dword [esp + 0xc], 0x6108d505
jmp 0x6108ef4e
mov eax, dword [ebp - 0x648]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
call fcn.61089c00
mov dword [esp], 1
mov eax, dword [0x610ef740]
mov edx, dword [ebp - 0x12a8]
call fcn.61069e80
nop
lea esi, [esi]
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.610a88d0