Function at 0x10021535
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005fc0c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x90
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x20]
test eax, eax
je 0x100216e5
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x58], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x88]
movzx eax, byte [eax]
test eax, eax
je 0x100216c9
mov dword [ebp - 0x40], 0x4d41
mov dword [ebp - 0x50], 0x10008f58
cmp dword [ebp - 0x40], 0x4db2
jle 0x10021614
push 0
push 0x1e37
push 0
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
and dword [ebp - 0x20], 0
jmp 0x100215ce
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x181a
jge 0x10021614
and dword [ebp - 0x24], 0
jmp 0x100215e4
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x7466
jge 0x10021612
mov eax, dword [ebp - 0x20]
or eax, dword [ebp - 0x24]
cdq
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], edx
push dword [ebp - 0x80]
push dword [ebp - 0x84]
mov ecx, 0x106092f8
call fcn.1002e06f
jmp 0x100215dd
jmp 0x100215c7
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x68], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x40], 0x4b3b
jge 0x10021634
mov edx, dword [ebp - 0x50]
mov ecx, 0x106092f8
call fcn.1002fb19
jmp 0x10021650
or dword [ebp - 4], 0xffffffff
jmp 0x1002165a
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x54], eax
push 0x2623
push 0x5279
mov eax, dword [ebp - 0x7c]
push dword [eax]
push 0x2052
push 1
push 0x4f99
push 0x76ec
push 0x61ce
push 1
push 0x31d2
push 0x48bd
mov eax, dword [ebp - 0x78]
push dword [eax]
push dword [ebp - 0x54]
push 0x29aa
call fcn.1001f791
add esp, 0x38
jmp 0x100216e0
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
jmp 0x10021834
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x14], 0x88a137b1
mov dword [ebp - 0x18], 0xfdb6968
mov dword [ebp - 0x28], 0xe5809974
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x14], 0
jge 0x1002172a
mov dword [ebp - 0x38], 1
jmp 0x1002172e
and dword [ebp - 0x38], 0
cmp dword [ebp - 0x14], 0
jne 0x10021740
cmp dword [ebp - 0x14], 0
jne 0x10021740
and dword [ebp - 0x48], 0
jmp 0x10021747
mov dword [ebp - 0x48], 1
mov eax, dword [ebp - 0x48]
add eax, 0x82a1
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
jl 0x1002176f
mov dword [ebp - 0x30], 1
jmp 0x10021773
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
lea eax, [eax + ecx - 7]
test eax, eax
jne 0x1002178a
mov dword [ebp - 0x34], 1
jmp 0x1002178e
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x34]
jl 0x1002179f
mov dword [ebp - 0x6c], 1
jmp 0x100217a3
and dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x98], eax
push 5
pop eax
cmp eax, 0xb6fb96
jle 0x100217bf
mov dword [ebp - 0x3c], 1
jmp 0x100217c3
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x18]
jge 0x100217d7
mov dword [ebp - 0x44], 1
jmp 0x100217db
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x28]
je 0x10021808
cmp dword [ebp - 0x18], 0
je 0x10021808
mov byte [ebp - 0x19], 0
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x10021806
push 0
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
jmp 0x1002181d
mov dword [ebp - 0x4c], 4
mov dword [ebp - 0x14], 0xe055a24b
mov eax, dword [ebp - 0x4c]
dec eax
mov dword [ebp - 0x4c], eax
push 0x188d
push dword [ebp - 0x74]
push 0
push 0x1f4d
call fcn.1000e6d4
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret