Function at 0x102b90f
Capabilities:
Create service
Modify service

Disassembly:
push 0x54
mov eax, 0x10da5ba
call fcn.010a0c60
mov esi, ecx
mov eax, dword [0x10ed030]
mov ebx, 0x10ed030
cmp eax, ebx
je 0x102b94c
test byte [eax + 0x1c], 1
je 0x102b94c
cmp byte [eax + 0x19], 5
jb 0x102b94c
push dword [ebp + 8]
push 0x10029d4
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027e3b
and dword [ebp - 0x10], 0
mov edi, 0x10f1178
push edi
lea ecx, [ebp - 0x1c]
call fcn.0102847f
and dword [ebp - 4], 0
push edi
lea ecx, [ebp - 0x18]
call fcn.0102847f
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
push 0x1002b08
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.01028b87
mov eax, dword [esi + 0x24]
push dword [eax - 0xc]
lea ecx, [ebp - 0x24]
push eax
mov byte [ebp - 4], 3
call fcn.0102895b
push dword [esi + 0x28]
lea ecx, [ebp - 0x1c]
call fcn.010289f9
test eax, eax
jne 0x102b9b6
push 0x1002ae4
lea ecx, [ebp - 0x1c]
call fcn.01028ac9
push dword [esi + 0x2c]
lea ecx, [ebp - 0x18]
call fcn.010289f9
test eax, eax
jne 0x102b9cd
lea ecx, [ebp - 0x18]
call fcn.0102816f
mov ecx, esi
call fcn.0102a79a
test eax, eax
jne 0x102bdc1
mov edi, 0xf003f
push edi
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x102bb32
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov eax, dword [0x10ed030]
cmp eax, ebx
je 0x102ba28
test byte [eax + 0x1c], 2
je 0x102ba28
cmp byte [eax + 0x19], 2
jb 0x102ba28
push dword [ebp - 0x10]
push 0x10029d4
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010294b2
cmp dword [ebp - 0x10], 5
jne 0x102bb26
mov dword [ebp + 8], 0xc00d37dc
push 0x10f1178
lea ecx, [ebp - 0x20]
call fcn.0102847f
push dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push 0x1002a04
push eax
mov byte [ebp - 4], 4
call fcn.0102ad35
mov edi, dword [ebp - 0x20]
add esp, 0xc
push 0
push edi
push dword [esi + 0x24]
mov ecx, esi
push dword [ebp + 8]
push 1
call fcn.0102a65e
push dword [ebp - 0x10]
mov ecx, dword [0x10efc9c]
push dword [ebp + 8]
call fcn.0102d8fa
mov eax, dword [0x10ed030]
cmp eax, ebx
je 0x102bab1
test byte [eax + 0x1c], 2
je 0x102bab1
cmp byte [eax + 0x19], 2
jb 0x102bab1
push dword [ebp - 0x10]
push dword [esi + 0x24]
push 0x10029d4
push 0x29
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01059d60
lea ecx, [edi - 0x10]
call fcn.01028079
mov eax, dword [0x10ed030]
cmp eax, ebx
je 0x102baf2
test byte [eax + 0x1c], 1
je 0x102baf2
mov edx, dword [ebp - 0x10]
movzx ecx, byte [eax + 0x19]
neg edx
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp ecx, edx
jl 0x102baf2
push dword [ebp - 0x10]
push 0x10029d4
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010294b2
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.01028079
lea ecx, [ebp - 0x34]
call fcn.010292ca
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.01028079
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.01028079
mov eax, dword [ebp - 0x10]
call fcn.010a0d4c
ret 4
mov dword [ebp + 8], 0xc00d37dd
jmp 0x102bdc8
push 0x1002700
mov eax, dword [esi + 0x24]
push 0x1002aac
push dword [ebp + 8]
push 0
push 0
push dword [0x10efbac]
push 1
push 3
push 0x10
push 0xf01ff
push dword [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x102bbb7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov eax, dword [0x10ed030]
cmp eax, ebx
je 0x102bba2
test byte [eax + 0x1c], 2
je 0x102bba2
cmp byte [eax + 0x19], 2
jb 0x102bba2
push dword [ebp - 0x10]
mov ecx, dword [esi + 0x24]
push ecx
push 0x10029d4
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01059d60
push dword [ebp - 0x20]
mov dword [ebp + 8], 0xc00d37de
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x102bdc8
push edi
push dword [ebp - 0x24]
lea ecx, [ebp - 0x34]
push 0x80000002
call fcn.010292e8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
mov dword [ebp + 8], 0xc00d37df
je 0x102bc50
mov dword [ebp - 0x28], eax
mov eax, dword [0x10ed030]
cmp eax, ebx
je 0x102bc05
test byte [eax + 0x1c], 2
je 0x102bc05
cmp byte [eax + 0x19], 4
jb 0x102bc05
push 0x10029d4
push 0x20
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027e15
lea eax, [ebp - 0x28]
push eax
xor edi, edi
inc edi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x102bc53
mov ecx, dword [0x10ed030]
cmp ecx, ebx
je 0x102bc59
test byte [ecx + 0x1c], 2
je 0x102bc59
cmp byte [ecx + 0x19], 3
jb 0x102bc59
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x10ed030]
push 0x10029d4
push 0x21
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010294b2
jmp 0x102bc53
xor edi, edi
inc edi
mov ecx, dword [0x10ed030]
mov eax, 0x7530
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x54], eax
xor eax, eax
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
lea edi, [ebp - 0x44]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x38], eax
cmp ecx, ebx
je 0x102bcae
test byte [ecx + 0x1c], 2
je 0x102bcae
cmp byte [ecx + 0x19], 4
jb 0x102bcae
mov edi, 0x10029d4
push edi
push 0x22
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01027e15
jmp 0x102bcb3
mov edi, 0x10029d4
lea eax, [ebp - 0x48]
push eax
push 2
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x102bcf5
mov eax, dword [0x10ed030]
cmp eax, ebx
je 0x102bcf5
test byte [eax + 0x1c], 2
je 0x102bcf5
cmp byte [eax + 0x19], 3
jb 0x102bcf5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x10ed030]
push edi
push 0x23
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010294b2
push 0
push 0x2019d
push 2
push 0x1002a9c
push dword [ebp - 0x14]
call fcn.010a349f
test eax, eax
jne 0x102bd32
mov eax, dword [0x10ed030]
cmp eax, ebx
je 0x102bd37
test byte [eax + 0x1c], 2
je 0x102bd37
cmp byte [eax + 0x19], 3
jb 0x102bd37
push edi
push 0x24
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027e15
mov eax, dword [0x10ed030]
mov dword [ebp - 0x28], 1
cmp eax, ebx
je 0x102bd5c
test byte [eax + 0x1c], 2
je 0x102bd5c
cmp byte [eax + 0x19], 4
jb 0x102bd5c
push edi
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027e15
lea eax, [ebp - 0x28]
push eax
push 5
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x102bd9e
mov eax, dword [0x10ed030]
cmp eax, ebx
je 0x102bd9e
test byte [eax + 0x1c], 2
je 0x102bd9e
cmp byte [eax + 0x19], 3
jb 0x102bd9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x10ed030]
push edi
push 0x26
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010294b2
push dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push dword [ebp - 0x20]
call edi
cmp dword [ebp - 0x10], 0
jne 0x102ba39
mov dword [ebp + 8], 0x400d3778
jmp 0x102bdc8
mov dword [ebp + 8], 0x400d3779
xor edi, edi
cmp dword [ebp - 0x10], edi
jne 0x102ba39
push edi
push edi
push dword [esi + 0x24]
mov ecx, esi
push dword [ebp + 8]
push 4
call fcn.0102a65e
mov ecx, dword [0x10efc9c]
push edi
push dword [ebp + 8]
call fcn.0102d8fa
cmp dword [ebp + 8], 0x400d3779
jne 0x102be37
mov eax, dword [0x10ed030]
cmp eax, ebx
je 0x102baf2
test byte [eax + 0x1c], 2
je 0x102babe
cmp byte [eax + 0x19], 4
jb 0x102babe
push dword [esi + 0x24]
push 0x10029d4
push 0x27
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027e3b
jmp 0x102bab9
mov eax, dword [0x10ed030]
cmp eax, ebx
je 0x102baf2
test byte [eax + 0x1c], 2
je 0x102babe
cmp byte [eax + 0x19], 4
jb 0x102babe
push dword [esi + 0x24]
push 0x10029d4
push 0x28
jmp 0x102be27