Function at 0x4391a0
Capabilities:
Create service
Modify service
Persist via windows service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55a968
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5b2070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
cmp dword [edi + 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
je 0x439577
call fcn.00459fa0
test al, al
je 0x439577
push edi
lea ecx, [ebp - 0x28]
call fcn.00407c70
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
jb 0x439215
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4392bf
push 0x5868ac
push eax
call fcn.0050091e
add esp, 8
test eax, eax
je 0x4392bf
mov edx, edi
lea ecx, [ebp - 0x40]
call fcn.00461320
mov edi, eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x43926d
mov ecx, eax
call fcn.004034b0
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4392ab
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4392a1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x439597
push edx
push ecx
call fcn.004e649f
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov ecx, esi
call fcn.00439640
test al, al
jne 0x4392d4
mov esi, 3
jmp 0x439480
sub esp, 8
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.004399b0
add esp, 8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x54], eax
test eax, eax
jne 0x43930f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x50]
mov esi, 4
mov dword [ecx], eax
jmp 0x439480
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov edi, esi
cmovae ecx, dword [ebp - 0x28]
cmp dword [esi + 0x14], 8
jb 0x43932a
mov edi, dword [esi]
mov eax, esi
jb 0x439330
mov eax, dword [esi]
push 0
push 0
push 0
push 0
push 0x587b14
push ecx
push 1
push 2
push 0x10
push 0xf01ff
push edi
push eax
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
test edi, edi
jne 0x4394c4
push 2
mov ecx, 0x5ba2b4
call fcn.004a7700
mov edi, eax
test edi, edi
je 0x439433
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x40]
push 0x587b20
push eax
call fcn.004a7d10
add esp, 0xc
lea eax, [ebp - 0x40]
mov ecx, 0x5ba2b4
push 0x7f
push str.RC::RCServiceInstall::InstallService
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_srclibrtglobalutils_seviceinstall_rcseviceinstall.cpp
push eax
push 2
call fcn.004a7770
cmp edi, 1
jbe 0x4393e1
lea eax, [ebp - 0x40]
mov ecx, 0x5ba2b4
push eax
call fcn.004a7b20
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x43941f
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x439415
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43959c
push edx
push ecx
call fcn.004e649f
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov ecx, esi
call fcn.00439640
sub esp, 8
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.004399b0
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x439452
mov esi, dword [esi]
push 0xf01ff
push esi
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x4394c4
lea esi, [eax + 5]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x50]
mov dword [ecx], eax
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x54]
call edi
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x43955f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x439555
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4395a1
jmp 0x439555
mov eax, dword [ebp - 0x48]
cmp dword [eax + 0x14], 8
jb 0x4394cf
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
lea eax, [ebp - 0x44]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4394fb
mov eax, dword [ebp - 0x40]
cmp eax, 4
je 0x439538
cmp eax, 2
je 0x439538
xor esi, esi
mov dword [ebp - 0x4c], str.__typenormal
lea eax, [ebp - 0x4c]
inc esi
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x439538
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 3
jb 0x439504
mov esi, 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x50]
mov dword [ecx], eax
jmp 0x43953f
mov ecx, dword [ebp - 0x50]
xor esi, esi
mov dword [ecx], esi
test edi, edi
je 0x439475
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
jmp 0x43947b
push edx
push ecx
call fcn.004e649f
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov eax, esi
mov dword [ebp - 0x14], 7
jmp 0x43957c
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e645e
mov esp, ebp
pop ebp
ret
call fcn.0050ba48
call fcn.0050ba48
call fcn.0050ba48
int3