Function at 0x100605f1
Capabilities:
Create service
Modify service

Disassembly:
push 0x148
mov eax, 0x1018ba5a
call fcn.10188e66
mov eax, dword [0x101c33f0]
mov esi, 0x101c33f0
cmp eax, esi
je 0x10060627
test byte [eax + 0x44], 0x40
je 0x10060627
push dword [eax + 0x3c]
mov edx, 0x1001ef88
push dword [eax + 0x38]
push 0x16
pop ecx
call fcn.1004a045
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0xa0], edi
mov dword [ebp - 4], ebx
test edi, edi
je 0x10060c4d
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], ebx
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
push eax
call fcn.10061030
push ecx
push ecx
lea ecx, [ebp - 0x154]
call fcn.1005af00
mov edx, 0x1001ee14
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x144]
call fcn.1005b701
lea edx, [ebp - 0x58]
mov ecx, eax
call fcn.1005b8a6
mov edx, 0x1001ee0c
mov ecx, eax
call fcn.1005b701
push 1
mov ecx, eax
call fcn.10061856
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x13c]
call fcn.1005b314
push 0x1001d02c
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.1005236c
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 4
call fcn.1005b2ce
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x40]
jae 0x100606e4
lea eax, [ebp - 0x40]
push dword [ebp - 0x100]
lea ecx, [ebp - 0x13c]
push dword [ebp - 0x30]
push eax
call fcn.1005b457
push ebx
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.10052803
mov edx, 0x1001ee14
lea ecx, [ebp - 0x144]
call fcn.1005b701
lea edx, [ebp - 0x58]
mov ecx, eax
call fcn.1005b8a6
mov edx, 0x1001ee0c
mov ecx, eax
call fcn.1005b701
push 2
mov ecx, eax
call fcn.10061856
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x13c]
call fcn.1005b314
mov eax, dword [0x101c33f0]
cmp eax, esi
je 0x10060762
test byte [eax + 0x44], 0x40
je 0x10060762
push ecx
push ecx
push dword [eax + 0x3c]
push dword [eax + 0x38]
call fcn.10060049
cmp dword [ebp - 0x74], 8
mov eax, dword [ebp - 0x88]
jae 0x10060774
lea eax, [ebp - 0x88]
push ebx
push str.LocalSystem
push str.RpcSs
push ebx
push ebx
push str._SystemRoot__system32_svchost.exe__k_print
push 1
push 3
push 0x120
push sym.PrintConfig.dll_Ordinal_276
push eax
push str.PrintNotify
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
mov dword [ebp - 0xa4], esi
mov byte [ebp - 4], 6
test esi, esi
jne 0x10060ba2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x431
jne 0x10060b61
mov eax, dword [0x101c33f0]
cmp eax, 0x101c33f0
je 0x100607ee
test byte [eax + 0x44], 0x40
je 0x100607ee
push dword [eax + 0x3c]
mov edx, 0x1001ef88
push dword [eax + 0x38]
push 0x19
pop ecx
call fcn.1004a045
xor ebx, ebx
mov dword [ebp - 0x94], ebx
push str.SYSTEMCurrentControlSetServicesPrintNotifyParameters
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.1005236c
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 8
push eax
lea edx, [ebp - 0x40]
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.1006a955
push ebx
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.10052803
push 0x1001ee18
lea ecx, [ebp - 0x40]
call fcn.1005236c
push 2
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 9
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x94]
call fcn.1006b0f1
push ebx
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.10052803
push str.ServiceMain
lea ecx, [ebp - 0x28]
call fcn.1005236c
push 0x1001ee30
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xa
call fcn.1005236c
push 1
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xb
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x94]
call fcn.1006b0f1
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.10052803
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.10052803
mov ecx, dword [0x101c33f0]
cmp ecx, 0x101c33f0
je 0x100608e7
test byte [ecx + 0x44], 0x40
je 0x100608e7
cmp dword [ebp - 0x44], 8
mov eax, dword [ebp - 0x58]
jae 0x100608ce
lea eax, [ebp - 0x58]
push str.ServiceMain
push eax
push dword [ecx + 0x3c]
mov edx, 0x1001ef88
push dword [ecx + 0x38]
push 0x1d
pop ecx
call fcn.1004a159
mov dword [ebp - 0x90], ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvcHost
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xc
call fcn.1005236c
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 0xd
push eax
lea edx, [ebp - 0x28]
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.1006a955
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xc
call fcn.10052803
push 0x101d5cfa
push 0x101d5ce0
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call fcn.10063e97
mov ebx, str.print
mov byte [ebp - 4], 0xe
push ebx
lea ecx, [ebp - 0x28]
call fcn.1005236c
push ecx
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0xf
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x90]
call fcn.1006b20d
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.10052803
and dword [ebp - 0x8c], 0
push ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x10
call fcn.1005236c
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x90]
lea edx, [ebp - 0x28]
push eax
call fcn.1006a955
xor ebx, ebx
mov byte [ebp - 4], 0x10
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.10052803
mov eax, dword [0x101c33f0]
cmp eax, 0x101c33f0
je 0x100609dd
test byte [eax + 0x44], 0x40
je 0x100609dd
push 0x1001c4ac
push dword [eax + 0x3c]
mov edx, 0x1001ef88
push dword [eax + 0x38]
push 0x1e
pop ecx
call fcn.1004a093
push 0x1001ee48
lea ecx, [ebp - 0x28]
call fcn.1005236c
push 0x3020
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x8c]
call fcn.1006b2f2
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x10
call fcn.10052803
push 0x1001ee80
lea ecx, [ebp - 0x28]
call fcn.1005236c
push 1
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x8c]
call fcn.1006b2f2
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x10
call fcn.10052803
push 0x1001eeb4
lea ecx, [ebp - 0x28]
call fcn.1005236c
push 5
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x8c]
call fcn.1006b2f2
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x10
call fcn.10052803
push 0x1001eedc
lea ecx, [ebp - 0x28]
call fcn.1005236c
push 3
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x8c]
call fcn.1006b2f2
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.10052803
mov eax, dword [0x101c33f0]
cmp eax, 0x101c33f0
je 0x10060ac1
test byte [eax + 0x44], 0x40
je 0x10060ac1
push dword [eax + 0x3c]
mov edx, 0x1001ef88
push dword [eax + 0x38]
push 0x1f
pop ecx
call fcn.1004a045
cmp dword [ebp - 0x8c], 0
je 0x10060adc
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x8c], ebx
lea ecx, [ebp - 0x34]
call fcn.1004f7f5
cmp dword [ebp - 0x90], 0
je 0x10060aff
push dword [ebp - 0x90]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x90], ebx
cmp dword [ebp - 0x94], 0
je 0x10060b1a
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x94], ebx
test esi, esi
je 0x10060b25
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.10052803
push ebx
push 1
lea ecx, [ebp - 0x88]
call fcn.10052803
lea ecx, [ebp - 0x154]
call fcn.100588a6
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.10052803
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call fcn.10188e03
ret
test ebx, ebx
jle 0x10060b70
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
jns 0x100607ee
mov eax, dword [0x101c33f0]
cmp eax, 0x101c33f0
je 0x10060b9c
test byte [eax + 0x44], 1
je 0x10060b9c
push ebx
push dword [eax + 0x3c]
mov edx, 0x1001ef88
push dword [eax + 0x38]
push 0x1a
pop ecx
call fcn.1004a069
push ebx
jmp 0x10060c89
cmp dword [ebp - 0x5c], 8
mov eax, dword [ebp - 0x70]
jae 0x10060bae
lea eax, [ebp - 0x70]
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x98]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x10060c1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10060bdd
movzx esi, si
or esi, 0x80070000
mov eax, dword [0x101c33f0]
cmp eax, 0x101c33f0
je 0x10060c03
test byte [eax + 0x44], 1
je 0x10060c03
push esi
push dword [eax + 0x3c]
mov edx, 0x1001ef88
push dword [eax + 0x38]
push 0x1b
pop ecx
call fcn.1004a069
push esi
lea ecx, [ebp - 0x9c]
call fcn.10044b9d
push 0x101c213c
mov eax, ecx
jmp 0x10060c9b
mov eax, dword [0x101c33f0]
cmp eax, 0x101c33f0
je 0x100607f0
test byte [eax + 0x44], 0x40
je 0x100607f0
push dword [eax + 0x3c]
mov edx, 0x1001ef88
push dword [eax + 0x38]
push 0x1c
pop ecx
call fcn.1004a045
jmp 0x100607f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10060c62
movzx esi, si
or esi, 0x80070000
mov eax, dword [0x101c33f0]
cmp eax, 0x101c33f0
je 0x10060c88
test byte [eax + 0x44], 1
je 0x10060c88
push esi
push dword [eax + 0x3c]
mov edx, 0x1001ef88
push dword [eax + 0x38]
push 0x17
pop ecx
call fcn.1004a069
push esi
lea ecx, [ebp - 0x98]
call fcn.10044b9d
push 0x101c213c
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3