Function at 0x1029d49
Capabilities:
Create service
Modify service

Disassembly:
push 0x50
mov eax, 0x10a468d
call fcn.0107a6db
mov esi, ecx
mov eax, dword [0x10b30cc]
cmp eax, 0x10b30cc
je 0x1029d84
test byte [eax + 0x1c], 1
je 0x1029d84
cmp byte [eax + 0x19], 5
jb 0x1029d84
push dword [ebp + 8]
push 0x10022a4
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01026c2b
mov edi, 0x10b7af8
xor ebx, ebx
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
call fcn.0104078f
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call fcn.0104078f
mov dword [ebp - 0x2c], ebx
push 0x1002388
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.01027916
mov eax, dword [esi + 0x20]
push dword [eax - 0xc]
lea ecx, [ebp - 0x28]
push eax
mov byte [ebp - 4], 3
call fcn.010276ea
push dword [esi + 0x24]
lea ecx, [ebp - 0x20]
call fcn.01027788
test eax, eax
jne 0x1029de6
push 0x1002368
lea ecx, [ebp - 0x20]
call fcn.01027858
push dword [esi + 0x28]
lea ecx, [ebp - 0x1c]
call fcn.01027788
test eax, eax
jne 0x1029dfd
lea ecx, [ebp - 0x1c]
call fcn.01026f68
mov ecx, esi
call fcn.01028dc7
test eax, eax
jne 0x102a20c
mov ebx, 0xf003f
push ebx
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
mov dword [ebp - 0x24], eax
jne 0x1029f5c
call dword [fcn.010011dc]
mov dword [ebp - 0x10], eax
mov eax, dword [0x10b30cc]
cmp eax, 0x10b30cc
je 0x1029e5b
test byte [eax + 0x1c], 2
je 0x1029e5b
cmp byte [eax + 0x19], 2
jb 0x1029e5b
push dword [ebp - 0x10]
push 0x10022a4
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
cmp dword [ebp - 0x10], 5
jne 0x1029f50
mov dword [ebp + 8], 0xc00d37dc
push edi
lea ecx, [ebp - 0x24]
call fcn.0104078f
mov ebx, dword [ebp - 0x10]
push ebx
lea eax, [ebp - 0x24]
push 0x10022c4
push eax
mov byte [ebp - 4], 5
call fcn.010292b1
mov edi, dword [ebp - 0x24]
add esp, 0xc
push 0
push edi
push dword [esi + 0x20]
mov ecx, esi
push dword [ebp + 8]
push 1
call fcn.01028c8b
push ebx
push dword [ebp + 8]
push 0
call fcn.0103f789
mov eax, dword [0x10b30cc]
cmp eax, 0x10b30cc
je 0x1029edc
test byte [eax + 0x1c], 2
je 0x1029edc
cmp byte [eax + 0x19], 2
jb 0x1029edc
push ebx
push dword [esi + 0x20]
push 0x10022a4
push 0x27
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0105f560
lea ecx, [edi - 0x10]
call fcn.01026e74
mov eax, dword [0x10b30cc]
cmp eax, 0x10b30cc
je 0x1029f1d
test byte [eax + 0x1c], 1
je 0x1029f1d
movzx ecx, byte [eax + 0x19]
mov edx, ebx
neg edx
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp ecx, edx
jl 0x1029f1d
push ebx
push 0x10022a4
push 0x28
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.01026e74
lea ecx, [ebp - 0x2c]
call fcn.01027fe2
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.01026e74
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.01026e74
mov eax, ebx
call fcn.0107a7c7
ret 4
mov dword [ebp + 8], 0xc00d37dd
jmp 0x102a213
push edi
lea ecx, [ebp - 0x14]
call fcn.0104078f
mov eax, dword [0x10b68a4]
cmp dword [eax - 0xc], 0
mov byte [ebp - 4], 4
jge 0x1029f7e
push 0x80070057
call fcn.01026a15
movzx eax, word [eax]
cmp ax, 0x22
lea ecx, [ebp - 0x14]
je 0x1029fb6
mov edi, 0x1002364
push edi
call fcn.01027858
mov eax, dword [0x10b68a4]
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
push eax
call fcn.010276ea
push edi
lea ecx, [ebp - 0x14]
call fcn.01027832
mov edi, 0x10b7af8
jmp 0x1029fc0
push 0x10b68a4
call fcn.010277db
push 0x1001fbc
mov eax, dword [esi + 0x20]
push 0x100232c
push dword [ebp + 8]
push 0
push 0
push dword [ebp - 0x14]
push 1
push 3
push 0x10
push 0xf01ff
push dword [ebp - 0x20]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x102a054
call dword [fcn.010011dc]
mov dword [ebp - 0x10], eax
mov eax, dword [0x10b30cc]
cmp eax, 0x10b30cc
je 0x102a030
test byte [eax + 0x1c], 2
je 0x102a030
cmp byte [eax + 0x19], 2
jb 0x102a030
push dword [ebp - 0x10]
mov ecx, dword [esi + 0x20]
push ecx
push 0x10022a4
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0105f560
push dword [ebp - 0x24]
mov dword [ebp + 8], 0xc00d37de
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.01026e74
jmp 0x102a213
push ebx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x2c]
push 0x80000002
call fcn.01028000
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 0xc], 0
mov dword [ebp + 8], 0xc00d37df
je 0x102a0f2
mov dword [ebp - 0x30], eax
mov eax, dword [0x10b30cc]
mov ebx, 0x10b30cc
cmp eax, ebx
je 0x102a0a7
test byte [eax + 0x1c], 2
je 0x102a0a7
cmp byte [eax + 0x19], 4
jb 0x102a0a7
push 0x10022a4
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01026c05
lea eax, [ebp - 0x30]
push eax
xor edi, edi
inc edi
push edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x102a0f5
mov ecx, dword [0x10b30cc]
cmp ecx, ebx
je 0x102a0fb
test byte [ecx + 0x1c], 2
je 0x102a0fb
cmp byte [ecx + 0x19], 3
jb 0x102a0fb
call dword [fcn.010011dc]
push eax
mov eax, dword [0x10b30cc]
push 0x10022a4
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
jmp 0x102a0f5
xor edi, edi
inc edi
mov ecx, dword [0x10b30cc]
mov eax, 0x7530
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x50], eax
xor eax, eax
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
lea edi, [ebp - 0x40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x38], 3
mov dword [ebp - 0x34], eax
mov edi, 0x10b30cc
cmp ecx, edi
je 0x102a155
test byte [ecx + 0x1c], 2
je 0x102a155
cmp byte [ecx + 0x19], 4
jb 0x102a155
mov ebx, 0x10022a4
push ebx
push 0x20
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01026c05
jmp 0x102a15a
mov ebx, 0x10022a4
lea eax, [ebp - 0x44]
push eax
push 2
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x102a19c
mov eax, dword [0x10b30cc]
cmp eax, edi
je 0x102a19c
test byte [eax + 0x1c], 2
je 0x102a19c
cmp byte [eax + 0x19], 3
jb 0x102a19c
call dword [fcn.010011dc]
push eax
mov eax, dword [0x10b30cc]
push ebx
push 0x21
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
push 0
push 0x2019d
push 2
push 0x100231c
push dword [ebp - 0x18]
call fcn.0107d220
test eax, eax
jne 0x102a1d9
mov eax, dword [0x10b30cc]
cmp eax, edi
je 0x102a1d9
test byte [eax + 0x1c], 2
je 0x102a1d9
cmp byte [eax + 0x19], 3
jb 0x102a1d9
push ebx
push 0x22
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01026c05
push dword [ebp - 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push dword [ebp - 0x24]
call edi
cmp dword [ebp - 0x10], 0
jne 0x102a1f6
mov dword [ebp + 8], 0x400d3778
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.01026e74
mov edi, 0x10b7af8
jmp 0x102a213
mov dword [ebp + 8], 0x400d3779
mov ebx, dword [ebp - 0x10]
test ebx, ebx
jne 0x1029e6c
push ebx
push ebx
push dword [esi + 0x20]
mov ecx, esi
push dword [ebp + 8]
push 4
call fcn.01028c8b
push ebx
push dword [ebp + 8]
push ebx
call fcn.0103f789
cmp dword [ebp + 8], 0x400d3779
jne 0x102a280
mov eax, dword [0x10b30cc]
cmp eax, 0x10b30cc
je 0x1029f1d
test byte [eax + 0x1c], 2
je 0x1029ee9
cmp byte [eax + 0x19], 4
jb 0x1029ee9
push dword [esi + 0x20]
push 0x10022a4
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01026c2b
jmp 0x1029ee4
mov eax, dword [0x10b30cc]
cmp eax, 0x10b30cc
je 0x1029f1d
test byte [eax + 0x1c], 2
je 0x1029ee9
cmp byte [eax + 0x19], 4
jb 0x1029ee9
push dword [esi + 0x20]
push 0x10022a4
push 0x26
jmp 0x102a270