Function at 0x102b880
Capabilities:
Create service
Modify service

Disassembly:
push 0x54
mov eax, 0x10da342
call fcn.010a0b4c
mov esi, ecx
mov eax, dword [0x10ed030]
mov ebx, 0x10ed030
cmp eax, ebx
je 0x102b8bd
test byte [eax + 0x1c], 1
je 0x102b8bd
cmp byte [eax + 0x19], 5
jb 0x102b8bd
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.0104bdc3
and dword [ebp - 4], 0
push edi
lea ecx, [ebp - 0x18]
call fcn.0104bdc3
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.01028b65
mov eax, dword [esi + 0x24]
push dword [eax - 0xc]
lea ecx, [ebp - 0x24]
push eax
mov byte [ebp - 4], 3
call fcn.01028939
push dword [esi + 0x28]
lea ecx, [ebp - 0x1c]
call fcn.010289d7
test eax, eax
jne 0x102b927
push 0x1002ae4
lea ecx, [ebp - 0x1c]
call fcn.01028aa7
push dword [esi + 0x2c]
lea ecx, [ebp - 0x18]
call fcn.010289d7
test eax, eax
jne 0x102b93e
lea ecx, [ebp - 0x18]
call fcn.0102819b
mov ecx, esi
call fcn.0102a70b
test eax, eax
jne 0x102bd32
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 0x102baa3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov eax, dword [0x10ed030]
cmp eax, ebx
je 0x102b999
test byte [eax + 0x1c], 2
je 0x102b999
cmp byte [eax + 0x19], 2
jb 0x102b999
push dword [ebp - 0x10]
push 0x10029d4
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027ecb
cmp dword [ebp - 0x10], 5
jne 0x102ba97
mov dword [ebp + 8], 0xc00d37dc
push 0x10f1178
lea ecx, [ebp - 0x20]
call fcn.0104bdc3
push dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push 0x1002a04
push eax
mov byte [ebp - 4], 4
call fcn.0102aca6
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.0102a5cf
push dword [ebp - 0x10]
mov ecx, dword [0x10efc9c]
push dword [ebp + 8]
call fcn.0102d817
mov eax, dword [0x10ed030]
cmp eax, ebx
je 0x102ba22
test byte [eax + 0x1c], 2
je 0x102ba22
cmp byte [eax + 0x19], 2
jb 0x102ba22
push dword [ebp - 0x10]
push dword [esi + 0x24]
push 0x10029d4
push 0x29
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0104adee
lea ecx, [edi - 0x10]
call fcn.010280a5
mov eax, dword [0x10ed030]
cmp eax, ebx
je 0x102ba63
test byte [eax + 0x1c], 1
je 0x102ba63
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 0x102ba63
push dword [ebp - 0x10]
push 0x10029d4
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027ecb
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.010280a5
lea ecx, [ebp - 0x34]
call fcn.010292a7
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.010280a5
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.010280a5
mov eax, dword [ebp - 0x10]
call fcn.010a0c38
ret 4
mov dword [ebp + 8], 0xc00d37dd
jmp 0x102bd39
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 0x102bb28
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov eax, dword [0x10ed030]
cmp eax, ebx
je 0x102bb13
test byte [eax + 0x1c], 2
je 0x102bb13
cmp byte [eax + 0x19], 2
jb 0x102bb13
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.0104adee
push dword [ebp - 0x20]
mov dword [ebp + 8], 0xc00d37de
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x102bd39
push edi
push dword [ebp - 0x24]
lea ecx, [ebp - 0x34]
push 0x80000002
call fcn.010292c5
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
mov dword [ebp + 8], 0xc00d37df
je 0x102bbc1
mov dword [ebp - 0x28], eax
mov eax, dword [0x10ed030]
cmp eax, ebx
je 0x102bb76
test byte [eax + 0x1c], 2
je 0x102bb76
cmp byte [eax + 0x19], 4
jb 0x102bb76
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 0x102bbc4
mov ecx, dword [0x10ed030]
cmp ecx, ebx
je 0x102bbca
test byte [ecx + 0x1c], 2
je 0x102bbca
cmp byte [ecx + 0x19], 3
jb 0x102bbca
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.01027ecb
jmp 0x102bbc4
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 0x102bc1f
test byte [ecx + 0x1c], 2
je 0x102bc1f
cmp byte [ecx + 0x19], 4
jb 0x102bc1f
mov edi, 0x10029d4
push edi
push 0x22
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01027e15
jmp 0x102bc24
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 0x102bc66
mov eax, dword [0x10ed030]
cmp eax, ebx
je 0x102bc66
test byte [eax + 0x1c], 2
je 0x102bc66
cmp byte [eax + 0x19], 3
jb 0x102bc66
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.01027ecb
push 0
push 0x2019d
push 2
push 0x1002a9c
push dword [ebp - 0x14]
call fcn.010a3449
test eax, eax
jne 0x102bca3
mov eax, dword [0x10ed030]
cmp eax, ebx
je 0x102bca8
test byte [eax + 0x1c], 2
je 0x102bca8
cmp byte [eax + 0x19], 3
jb 0x102bca8
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 0x102bccd
test byte [eax + 0x1c], 2
je 0x102bccd
cmp byte [eax + 0x19], 4
jb 0x102bccd
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 0x102bd0f
mov eax, dword [0x10ed030]
cmp eax, ebx
je 0x102bd0f
test byte [eax + 0x1c], 2
je 0x102bd0f
cmp byte [eax + 0x19], 3
jb 0x102bd0f
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.01027ecb
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 0x102b9aa
mov dword [ebp + 8], 0x400d3778
jmp 0x102bd39
mov dword [ebp + 8], 0x400d3779
xor edi, edi
cmp dword [ebp - 0x10], edi
jne 0x102b9aa
push edi
push edi
push dword [esi + 0x24]
mov ecx, esi
push dword [ebp + 8]
push 4
call fcn.0102a5cf
mov ecx, dword [0x10efc9c]
push edi
push dword [ebp + 8]
call fcn.0102d817
cmp dword [ebp + 8], 0x400d3779
jne 0x102bda8
mov eax, dword [0x10ed030]
cmp eax, ebx
je 0x102ba63
test byte [eax + 0x1c], 2
je 0x102ba2f
cmp byte [eax + 0x19], 4
jb 0x102ba2f
push dword [esi + 0x24]
push 0x10029d4
push 0x27
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027e3b
jmp 0x102ba2a
mov eax, dword [0x10ed030]
cmp eax, ebx
je 0x102ba63
test byte [eax + 0x1c], 2
je 0x102ba2f
cmp byte [eax + 0x19], 4
jb 0x102ba2f
push dword [esi + 0x24]
push 0x10029d4
push 0x28
jmp 0x102bd98