Function at 0x100e484
Capabilities:
Create service
Modify service

Disassembly:
mov eax, 0x1095fa8
call fcn.01077478
sub esp, 0x48
mov eax, dword [0x10a6184]
push ebx
push esi
mov ebx, 0x10a6184
cmp eax, ebx
push edi
mov esi, ecx
je 0x100e4c5
test byte [eax + 0x1c], 1
je 0x100e4c5
cmp byte [eax + 0x19], 5
jb 0x100e4c5
push dword [ebp + 8]
push 0x100217c
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009add
and dword [ebp - 0x10], 0
mov edi, 0x10a8b2c
push edi
lea ecx, [ebp - 0x18]
call fcn.01020db5
and dword [ebp - 4], 0
push edi
lea ecx, [ebp - 0x14]
call fcn.01020db5
and dword [ebp - 0x24], 0
push 0x1002230
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.0100b323
mov eax, dword [esi + 0x20]
push dword [eax - 0xc]
lea ecx, [ebp - 0x20]
push eax
mov byte [ebp - 4], 3
call fcn.0100a74b
push dword [esi + 0x24]
lea ecx, [ebp - 0x18]
call fcn.0100aa2c
test eax, eax
jne 0x100e528
push 0x10021a4
lea ecx, [ebp - 0x18]
call fcn.0100a804
push dword [esi + 0x28]
lea ecx, [ebp - 0x14]
call fcn.0100aa2c
test eax, eax
jne 0x100e53f
lea ecx, [ebp - 0x14]
call fcn.01009f04
mov ecx, esi
call fcn.0100d5e7
test eax, eax
jne 0x100e768
mov edi, 0xf003f
push edi
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
mov dword [ebp - 0x1c], eax
jne 0x100e5a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov eax, dword [0x10a6184]
cmp eax, ebx
je 0x100e783
test byte [eax + 0x1c], 2
je 0x100e783
cmp byte [eax + 0x19], 2
jb 0x100e783
push dword [ebp - 0x10]
push 0x100217c
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
jmp 0x100e77e
push 0x1001dc4
mov eax, dword [esi + 0x20]
push 0x10021f8
push dword [ebp + 8]
push 0
push 0
push dword [0x10a7cb4]
push 1
push 3
push 0x10
push 0xf01ff
push dword [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
mov dword [ebp + 8], eax
jne 0x100e625
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov eax, dword [0x10a6184]
cmp eax, ebx
je 0x100e617
test byte [eax + 0x1c], 2
je 0x100e617
cmp byte [eax + 0x19], 2
jb 0x100e617
push dword [ebp - 0x10]
mov ecx, dword [esi + 0x20]
push ecx
push 0x100217c
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102008d
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x100e77e
push edi
push dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
push 0x80000002
call fcn.01009987
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x100e6b7
mov dword [ebp - 0x28], eax
mov eax, dword [0x10a6184]
cmp eax, ebx
je 0x100e66c
test byte [eax + 0x1c], 2
je 0x100e66c
cmp byte [eax + 0x19], 4
jb 0x100e66c
push 0x100217c
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009ab7
lea eax, [ebp - 0x28]
push eax
xor edi, edi
inc edi
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x100e6ba
mov ecx, dword [0x10a6184]
cmp ecx, ebx
je 0x100e6c0
test byte [ecx + 0x1c], 2
je 0x100e6c0
cmp byte [ecx + 0x19], 3
jb 0x100e6c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x10a6184]
push 0x100217c
push 0x20
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
jmp 0x100e6ba
xor edi, edi
inc edi
mov ecx, dword [0x10a6184]
mov eax, 0x7530
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x48], eax
xor eax, eax
cmp ecx, ebx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x2c], eax
je 0x100e712
test byte [ecx + 0x1c], 2
je 0x100e712
cmp byte [ecx + 0x19], 4
jb 0x100e712
push 0x100217c
push 0x21
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01009ab7
lea eax, [ebp - 0x3c]
push eax
push 2
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x100e758
mov eax, dword [0x10a6184]
cmp eax, ebx
je 0x100e758
test byte [eax + 0x1c], 2
je 0x100e758
cmp byte [eax + 0x19], 3
jb 0x100e758
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x10a6184]
push 0x100217c
push 0x22
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
push dword [ebp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push dword [ebp - 0x1c]
call edi
mov eax, dword [esi + 0x20]
push 0
push 0
push eax
push 0x400d3778
push 4
mov ecx, esi
call fcn.0100d481
mov eax, dword [0x10a6184]
cmp dword [ebp - 0x10], 0
je 0x100e7ff
push 0x10a8b2c
lea ecx, [ebp + 8]
call fcn.01020db5
push dword [ebp - 0x10]
lea eax, [ebp + 8]
push 0x100219c
push eax
mov byte [ebp - 4], 4
call fcn.0100d972
mov edi, dword [ebp + 8]
add esp, 0xc
push 0
push edi
push dword [esi + 0x20]
mov ecx, esi
push 0xc00d37dc
push 1
call fcn.0100d481
mov eax, dword [0x10a6184]
cmp eax, ebx
je 0x100e7f2
test byte [eax + 0x1c], 2
je 0x100e7f2
cmp byte [eax + 0x19], 2
jb 0x100e7f2
push dword [ebp - 0x10]
push dword [esi + 0x20]
push 0x100217c
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102008d
lea ecx, [edi - 0x10]
call fcn.01009cd1
mov eax, dword [0x10a6184]
pop edi
pop esi
cmp eax, ebx
pop ebx
je 0x100e836
test byte [eax + 0x1c], 1
je 0x100e836
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 0x100e836
push dword [ebp - 0x10]
push 0x100217c
push 0x26
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.01009cd1
lea ecx, [ebp - 0x24]
call fcn.01009914
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.01009cd1
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.01009cd1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov dword fs:[0], ecx
leave
ret 4