Function at 0x4376b0
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa34
mov eax, dword [0x58fc74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x20e]
mov edi, ecx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x437bf3
cmp eax, 0x104
je 0x437bf3
mov ecx, 0x22
mov word [ebp - 0x210], cx
mov word [ebp + eax*2 - 0x20e], cx
lea eax, [eax*2 + 4]
cmp eax, 0x20c
jae 0x437c47
push str._Install__before_OpenSCManager...
xor ecx, ecx
mov dword [ebp - 0xa34], str.d:jenkinsworkspace_asusfancontrolservice_asusfancontrolservice_asusfancontrolservice.cpp
sub esp, 0xc
mov word [ebp + eax - 0x210], cx
mov eax, esp
mov dword [ebp - 0xa30], 0x107
movq xmm0, qword [ebp - 0xa34]
push 2
movq qword [eax], xmm0
mov dword [eax + 8], str.CAsusFanControlServiceModule::Install
call fcn.0046e790
push eax
call fcn.00472660
add esp, 0x18
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x4377da
push 0x400
lea eax, [ebp - 0xa10]
push eax
push 0xd80a
call fcn.004351c0
add esp, 0xc
test eax, eax
jne 0x4377b1
push str.Could_not_open_Service_Manager
lea eax, [ebp - 0xa10]
push 0x400
push eax
call fcn.0051d287
push eax
call fcn.004350e0
add esp, 0x10
push 0
lea eax, [edi + 0x40]
push eax
lea eax, [ebp - 0xa10]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 0xa30], 0x113
push str._Install_issue__Could_not_open_Service_Manager
jmp 0x437c02
push str._Install__before_IsInstalled__...
sub esp, 0xc
mov dword [ebp - 0xa34], str.d:jenkinsworkspace_asusfancontrolservice_asusfancontrolservice_asusfancontrolservice.cpp
mov eax, esp
mov dword [ebp - 0xa30], 0x119
movq xmm0, qword [ebp - 0xa34]
push 2
movq qword [eax], xmm0
mov dword [eax + 8], str.CAsusFanControlServiceModule::Install
call fcn.0046e790
push eax
call fcn.00472660
add esp, 0x18
mov ecx, edi
call fcn.00437ce0
mov esi, eax
call fcn.0046e790
add edi, 0x40
mov dword [ebp - 0xa34], str.d:jenkinsworkspace_asusfancontrolservice_asusfancontrolservice_asusfancontrolservice.cpp
mov ecx, eax
test esi, esi
jne 0x43791e
push str._Install__ready_to_install_service
sub esp, 0xc
mov dword [ebp - 0xa30], 0x11c
movq xmm0, qword [ebp - 0xa34]
mov eax, esp
push 2
movq qword [eax], xmm0
push ecx
mov dword [eax + 8], str.CAsusFanControlServiceModule::Install
call fcn.00472660
add esp, 0x18
lea eax, [ebp - 0x210]
push esi
push esi
push str.RPCSS
push esi
push esi
push eax
push 1
push 2
push 0x10
push 0xf01ff
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x43790a
lea eax, [ebp - 0xa28]
push str.CreateService
push eax
call fcn.004372a0
add esp, 8
cmp dword [eax + 0x14], 0x10
jb 0x4378b8
mov eax, dword [eax]
push eax
push str._Install___s
sub esp, 0xc
mov dword [ebp - 0xa34], str.d:jenkinsworkspace_asusfancontrolservice_asusfancontrolservice_asusfancontrolservice.cpp
mov eax, esp
mov dword [ebp - 0xa30], 0x122
movq xmm0, qword [ebp - 0xa34]
push 2
movq qword [eax], xmm0
mov dword [eax + 8], str.CAsusFanControlServiceModule::Install
call fcn.0046e790
push eax
call fcn.00472660
add esp, 0x1c
lea ecx, [ebp - 0xa28]
call fcn.00404a80
jmp 0x437ae9
mov dword [ebp - 0xa30], 0x123
push str._Install__CreateService....
jmp 0x437aaf
push str._Install__service_is_installed__just_open_it
sub esp, 0xc
mov dword [ebp - 0xa30], 0x127
movq xmm0, qword [ebp - 0xa34]
mov eax, esp
push 2
movq qword [eax], xmm0
push ecx
mov dword [eax + 8], str.CAsusFanControlServiceModule::Install
call fcn.00472660
add esp, 0x18
push 0xf01ff
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x4379ce
lea eax, [ebp - 0xa28]
push str.OpenService
push eax
call fcn.004372a0
add esp, 8
cmp dword [eax + 0x14], 0x10
jb 0x43797f
mov eax, dword [eax]
push eax
push str._Install___s
sub esp, 0xc
mov dword [ebp - 0xa34], str.d:jenkinsworkspace_asusfancontrolservice_asusfancontrolservice_asusfancontrolservice.cpp
mov eax, esp
mov dword [ebp - 0xa30], 0x129
movq xmm0, qword [ebp - 0xa34]
push 2
movq qword [eax], xmm0
mov dword [eax + 8], str.CAsusFanControlServiceModule::Install
call fcn.0046e790
push eax
call fcn.00472660
add esp, 0x1c
lea ecx, [ebp - 0xa28]
call fcn.00404a80
jmp 0x437a0f
push str._Install__OpenService....
sub esp, 0xc
mov dword [ebp - 0xa34], str.d:jenkinsworkspace_asusfancontrolservice_asusfancontrolservice_asusfancontrolservice.cpp
mov eax, esp
mov dword [ebp - 0xa30], 0x12a
movq xmm0, qword [ebp - 0xa34]
push 2
movq qword [eax], xmm0
mov dword [eax + 8], str.CAsusFanControlServiceModule::Install
call fcn.0046e790
push eax
call fcn.00472660
add esp, 0x18
push edi
push 0
push 0
push str.RPCSS
push 0
push 0
lea eax, [ebp - 0x210]
push eax
push 1
push 2
push 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x437aa0
lea eax, [ebp - 0xa28]
push str.ChangeServiceConfig
push eax
call fcn.004372a0
add esp, 8
cmp dword [eax + 0x14], 0x10
jb 0x437a51
mov eax, dword [eax]
push eax
push str._Install___s
sub esp, 0xc
mov dword [ebp - 0xa34], str.d:jenkinsworkspace_asusfancontrolservice_asusfancontrolservice_asusfancontrolservice.cpp
mov eax, esp
mov dword [ebp - 0xa30], 0x132
movq xmm0, qword [ebp - 0xa34]
push 2
movq qword [eax], xmm0
mov dword [eax + 8], str.CAsusFanControlServiceModule::Install
call fcn.0046e790
push eax
call fcn.00472660
add esp, 0x1c
lea ecx, [ebp - 0xa28]
call fcn.00404a80
jmp 0x437ae1
mov dword [ebp - 0xa30], 0x133
push str._Install__ChangeServiceConfig....
sub esp, 0xc
mov dword [ebp - 0xa34], str.d:jenkinsworkspace_asusfancontrolservice_asusfancontrolservice_asusfancontrolservice.cpp
movq xmm0, qword [ebp - 0xa34]
mov eax, esp
push 2
movq qword [eax], xmm0
mov dword [eax + 8], str.CAsusFanControlServiceModule::Install
call fcn.0046e790
push eax
call fcn.00472660
add esp, 0x18
test esi, esi
jne 0x437b90
push str._Install__before_CloseServiceHandle__...
sub esp, 0xc
mov dword [ebp - 0xa34], str.d:jenkinsworkspace_asusfancontrolservice_asusfancontrolservice_asusfancontrolservice.cpp
mov eax, esp
mov dword [ebp - 0xa30], 0x138
movq xmm0, qword [ebp - 0xa34]
push 2
movq qword [eax], xmm0
mov dword [eax + 8], str.CAsusFanControlServiceModule::Install
call fcn.0046e790
push eax
call fcn.00472660
add esp, 0x18
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea eax, [ebp - 0xa10]
push eax
push 0xd80b
call fcn.004351c0
add esp, 0xc
test eax, eax
jne 0x437b6d
push str.Could_not_start_service
lea eax, [ebp - 0xa10]
push 0x400
push eax
call fcn.0051d287
push eax
call fcn.004350e0
add esp, 0x10
push 0
push edi
lea eax, [ebp - 0xa10]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 0xa30], 0x142
push str._Install_issue__Could_not_start_service
jmp 0x437c02
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
push str._Install__before_return...
sub esp, 0xc
mov dword [ebp - 0xa34], str.d:jenkinsworkspace_asusfancontrolservice_asusfancontrolservice_asusfancontrolservice.cpp
mov eax, esp
mov dword [ebp - 0xa30], 0x148
movq xmm0, qword [ebp - 0xa34]
push 2
movq qword [eax], xmm0
mov dword [eax + 8], str.CAsusFanControlServiceModule::Install
call fcn.0046e790
push eax
call fcn.00472660
add esp, 0x18
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fa15c
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0xa30], 0xfe
push str._Install_issue__ModuleFileName_issue
sub esp, 0xc
mov dword [ebp - 0xa34], str.d:jenkinsworkspace_asusfancontrolservice_asusfancontrolservice_asusfancontrolservice.cpp
movq xmm0, qword [ebp - 0xa34]
mov eax, esp
push 2
movq qword [eax], xmm0
mov dword [eax + 8], str.CAsusFanControlServiceModule::Install
call fcn.0046e790
push eax
call fcn.00472660
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.004fa15c
mov esp, ebp
pop ebp
ret
call fcn.004fabab
int3