Function at 0x10053283
Capabilities:
Create service
Modify service

Disassembly:
push 0x154
mov eax, 0x10165c75
call fcn.10163edf
mov eax, dword [0x101923c0]
mov esi, 0x101923c0
cmp eax, esi
je 0x100532b9
test byte [eax + 0x44], 0x40
je 0x100532b9
push dword [eax + 0x3c]
mov edx, 0x1001a7e0
push dword [eax + 0x38]
push 0x16
pop ecx
call fcn.10040067
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0xb8], edi
mov dword [ebp - 4], ebx
test edi, edi
je 0x10053a30
xor eax, eax
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 1
push eax
call fcn.10053e50
push ecx
push ecx
lea ecx, [ebp - 0x160]
call fcn.1004dc4c
push 1
mov edx, 0x1001a5d4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x150]
call fcn.1004e8e8
lea edx, [ebp - 0x64]
mov ecx, eax
call fcn.1004ead6
mov edx, 0x1001a5cc
mov ecx, eax
call fcn.1004e8e8
mov ecx, eax
call fcn.100545bd
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x148]
call fcn.1004e569
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
push ebx
xor eax, eax
mov dword [ebp - 0x34], 7
push 0x10018c4c
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
call fcn.10045aa5
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 4
call fcn.1004e529
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x10053387
lea eax, [ebp - 0x48]
cmp dword [ebp - 0x38], 0
mov dword [ebp - 0x10c], ebx
je 0x100533a2
push dword [ebp - 0x38]
lea ecx, [ebp - 0x148]
push eax
call fcn.1004e6a9
push ebx
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.10045ee3
push 2
mov edx, 0x1001a5d4
lea ecx, [ebp - 0x150]
call fcn.1004e8e8
lea edx, [ebp - 0x64]
mov ecx, eax
call fcn.1004ead6
mov edx, 0x1001a5cc
mov ecx, eax
call fcn.1004e8e8
mov ecx, eax
call fcn.100545bd
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x148]
call fcn.1004e569
mov eax, dword [0x101923c0]
cmp eax, esi
je 0x1005340b
test byte [eax + 0x44], 0x40
je 0x1005340b
push ecx
push ecx
push dword [eax + 0x3c]
push dword [eax + 0x38]
call fcn.10052d06
cmp dword [ebp - 0x88], 8
mov eax, dword [ebp - 0x9c]
jae 0x10053420
lea eax, [ebp - 0x9c]
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 - 0xb4], esi
mov byte [ebp - 4], 6
test esi, esi
jne 0x10053985
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x431
jne 0x10053944
mov eax, dword [0x101923c0]
cmp eax, 0x101923c0
je 0x1005349a
test byte [eax + 0x44], 0x40
je 0x1005349a
push dword [eax + 0x3c]
mov edx, 0x1001a7e0
push dword [eax + 0x38]
push 0x19
pop ecx
call fcn.10040067
xor ebx, ebx
mov dword [ebp - 0xa8], ebx
mov ecx, str.SYSTEMCurrentControlSetServicesPrintNotifyParameters
mov byte [ebp - 4], 7
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x100534be
sub ecx, edx
sar ecx, 1
push ecx
push str.SYSTEMCurrentControlSetServicesPrintNotifyParameters
lea ecx, [ebp - 0x48]
call fcn.10045aa5
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 8
push eax
lea edx, [ebp - 0x48]
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.1005d20d
push ebx
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 7
call fcn.10045ee3
push 0xa
xor eax, eax
mov dword [ebp - 0x34], 7
push 0x1001a5d8
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
call fcn.10045aa5
push 2
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 9
push eax
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0xa8]
call fcn.1005d94e
push ebx
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 7
call fcn.10045ee3
mov ecx, str.ServiceMain
mov dword [ebp - 0x18], 7
xor eax, eax
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x10053560
sub ecx, edx
sar ecx, 1
push ecx
push str.ServiceMain
lea ecx, [ebp - 0x2c]
call fcn.10045aa5
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x48]
push 0xb
xor eax, eax
mov dword [ebp - 0x34], 7
push 0x1001a5f0
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
call fcn.10045aa5
push 1
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xb
push eax
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0xa8]
call fcn.1005d94e
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.10045ee3
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.10045ee3
mov eax, dword [0x101923c0]
cmp eax, 0x101923c0
je 0x10053605
test byte [eax + 0x44], 0x40
je 0x10053605
cmp dword [ebp - 0x50], 8
mov ecx, dword [ebp - 0x64]
jae 0x100535ec
lea ecx, [ebp - 0x64]
push str.ServiceMain
push ecx
push dword [eax + 0x3c]
mov edx, 0x1001a7e0
push dword [eax + 0x38]
push 0x1d
pop ecx
call fcn.10052c4a
mov dword [ebp - 0xa4], ebx
mov edx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvcHost
mov byte [ebp - 4], 0xc
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0x10053627
sub edx, ecx
lea ecx, [ebp - 0x2c]
sar edx, 1
push edx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvcHost
call fcn.10045aa5
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 0xd
push eax
lea edx, [ebp - 0x2c]
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.1005d20d
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xc
call fcn.10045ee3
push dword [ebp - 0xb4]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], ebx
push 0x1019fe3a
push 0x1019fe20
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
call fcn.10057246
mov ecx, str.print
mov byte [ebp - 4], 0xe
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x100536a8
sub ecx, edx
sar ecx, 1
push ecx
push str.print
lea ecx, [ebp - 0x2c]
call fcn.10045aa5
push ecx
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 0xf
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0xa4]
call fcn.1005da5e
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.10045ee3
mov dword [ebp - 0xa0], ebx
mov ecx, str.print
mov byte [ebp - 4], 0x10
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x10053709
sub ecx, edx
sar ecx, 1
push ecx
push str.print
lea ecx, [ebp - 0x2c]
call fcn.10045aa5
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0xa4]
lea edx, [ebp - 0x2c]
push eax
call fcn.1005d20d
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x10
call fcn.10045ee3
mov eax, dword [0x101923c0]
cmp eax, 0x101923c0
je 0x10053778
test byte [eax + 0x44], 0x40
je 0x10053778
push 0x1001a608
push dword [eax + 0x3c]
mov edx, 0x1001a7e0
push dword [eax + 0x38]
push 0x1e
pop ecx
call fcn.10040085
push 0x1a
xor eax, eax
mov dword [ebp - 0x18], 7
push 0x1001a614
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.10045aa5
push 0x3020
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0xa0]
call fcn.1005db3d
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x10
call fcn.10045ee3
push 0x19
xor eax, eax
mov dword [ebp - 0x18], 7
push 0x1001a64c
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.10045aa5
push 1
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0xa0]
call fcn.1005db3d
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x10
call fcn.10045ee3
push 0x13
xor eax, eax
mov dword [ebp - 0x18], 7
push 0x1001a680
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.10045aa5
push 5
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0xa0]
call fcn.1005db3d
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x10
call fcn.10045ee3
push 0x12
xor eax, eax
mov dword [ebp - 0x18], 7
push 0x1001a6a8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.10045aa5
push 3
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0xa0]
call fcn.1005db3d
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.10045ee3
mov eax, dword [0x101923c0]
cmp eax, 0x101923c0
je 0x100538a4
test byte [eax + 0x44], 0x40
je 0x100538a4
push dword [eax + 0x3c]
mov edx, 0x1001a7e0
push dword [eax + 0x38]
push 0x1f
pop ecx
call fcn.10040067
cmp dword [ebp - 0xa0], 0
je 0x100538bf
push dword [ebp - 0xa0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xa0], ebx
lea ecx, [ebp - 0x3c]
call fcn.10044cdb
cmp dword [ebp - 0xa4], 0
je 0x100538e2
push dword [ebp - 0xa4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xa4], ebx
cmp dword [ebp - 0xa8], 0
je 0x100538fd
push dword [ebp - 0xa8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xa8], ebx
test esi, esi
je 0x10053908
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
push 1
lea ecx, [ebp - 0x80]
call fcn.10045ee3
push ebx
push 1
lea ecx, [ebp - 0x9c]
call fcn.10045ee3
lea ecx, [ebp - 0x160]
call fcn.1004c0e6
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.10045ee3
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call fcn.10163e8e
ret
test ebx, ebx
jle 0x10053953
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
jns 0x1005349a
mov eax, dword [0x101923c0]
cmp eax, 0x101923c0
je 0x1005397f
test byte [eax + 0x44], 1
je 0x1005397f
push ebx
push dword [eax + 0x3c]
mov edx, 0x1001a7e0
push dword [eax + 0x38]
push 0x1a
pop ecx
call fcn.100401e4
push ebx
jmp 0x10053a6c
cmp dword [ebp - 0x6c], 8
mov eax, dword [ebp - 0x80]
jae 0x10053991
lea eax, [ebp - 0x80]
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0xac]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x100539fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x100539c0
movzx esi, si
or esi, 0x80070000
mov eax, dword [0x101923c0]
cmp eax, 0x101923c0
je 0x100539e6
test byte [eax + 0x44], 1
je 0x100539e6
push esi
push dword [eax + 0x3c]
mov edx, 0x1001a7e0
push dword [eax + 0x38]
push 0x1b
pop ecx
call fcn.100401e4
push esi
lea ecx, [ebp - 0xb0]
call fcn.1003f8d8
push 0x10191580
mov eax, ecx
jmp 0x10053a7e
mov eax, dword [0x101923c0]
cmp eax, 0x101923c0
je 0x1005349c
test byte [eax + 0x44], 0x40
je 0x1005349c
push dword [eax + 0x3c]
mov edx, 0x1001a7e0
push dword [eax + 0x38]
push 0x1c
pop ecx
call fcn.10040067
jmp 0x1005349c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10053a45
movzx esi, si
or esi, 0x80070000
mov eax, dword [0x101923c0]
cmp eax, 0x101923c0
je 0x10053a6b
test byte [eax + 0x44], 1
je 0x10053a6b
push esi
push dword [eax + 0x3c]
mov edx, 0x1001a7e0
push dword [eax + 0x38]
push 0x17
pop ecx
call fcn.100401e4
push esi
lea ecx, [ebp - 0xac]
call fcn.1003f8d8
push 0x10191580
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3