Function at 0x4849ac
Capabilities:
Create service
Persist via run registry key
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
mov eax, 0x5bb73c
call fcn.00568428
push dword [ebp + 8]
call fcn.004848e4
pop ecx
test al, al
je 0x4849da
mov al, 1
mov edx, dword [ebp - 0x48]
mov dword fs:[0], edx
jmp 0x484ebd
mov ecx, dword [0x5ced6c]
mov eax, dword [ecx]
mov dx, word [eax + 0x44]
mov word [ebp - 0x4a], dx
mov ecx, dword [0x5ced6c]
mov eax, dword [ecx]
mov dx, 0xfff5
call fcn.004f2bfc
mov dword [ebp - 0x50], 0xf
push dword [ebp + 8]
call fcn.00483ff0
pop ecx
test al, al
je 0x484a30
push 0
push dword [ebp + 8]
call fcn.0048448c
add esp, 8
push 0x3e8
call sub.KERNEL32.DLL_Sleep
dec dword [ebp - 0x50]
mov ecx, dword [ebp - 0x50]
test ecx, ecx
jne 0x484a02
push dword [ebp + 8]
call fcn.00483ff0
pop ecx
test al, al
je 0x484a4a
push 1
push dword [ebp + 8]
call fcn.0048448c
add esp, 8
mov eax, dword [0x5ced6c]
mov eax, dword [eax]
mov dx, word [ebp - 0x4a]
call fcn.004f2bfc
mov word [ebp - 0x38], 0x14
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x24]
add edx, 4
lea eax, [ebp - 4]
call fcn.0058fcb0
inc dword [ebp - 0x2c]
mov word [ebp - 0x38], 8
mov word [ebp - 0x38], 0x20
mov edx, 0x5aecd6
lea eax, [ebp - 8]
call fcn.0058fc78
inc dword [ebp - 0x2c]
lea edx, [ebp - 8]
lea eax, [ebp - 4]
call fcn.00590780
mov edx, eax
inc edx
lea eax, [ebp - 4]
mov ecx, 0xfa
call fcn.00590250
mov edx, eax
lea eax, [ebp - 4]
call fcn.0058ff44
dec dword [ebp - 0x2c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0058ff14
mov word [ebp - 0x38], 0x2c
mov edx, str.ServUDaemon.exe
lea eax, [ebp - 0xc]
call fcn.0058fc78
inc dword [ebp - 0x2c]
lea edx, [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.0058ff58
dec dword [ebp - 0x2c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0058ff14
mov eax, dword [ebp - 4]
call fcn.0054814c
test al, al
jne 0x484bfd
mov word [ebp - 0x38], 0x38
mov edx, 0x5aecd6
lea eax, [ebp - 0x10]
call fcn.0058fc78
inc dword [ebp - 0x2c]
lea edx, [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.00590780
mov edx, eax
lea eax, [ebp - 4]
mov ecx, 0xfa
call fcn.00590250
mov edx, eax
lea eax, [ebp - 4]
call fcn.0058ff44
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0058ff14
mov word [ebp - 0x38], 0x44
mov edx, 0x5aecd6
lea eax, [ebp - 0x14]
call fcn.0058fc78
inc dword [ebp - 0x2c]
lea edx, [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.00590780
mov edx, eax
inc edx
lea eax, [ebp - 4]
mov ecx, 0xfa
call fcn.00590250
mov edx, eax
lea eax, [ebp - 4]
call fcn.0058ff44
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0058ff14
mov word [ebp - 0x38], 0x50
mov edx, str.Daemon_
lea eax, [ebp - 0x18]
call fcn.0058fc78
inc dword [ebp - 0x2c]
lea edx, [ebp - 0x18]
lea eax, [ebp - 4]
call fcn.0058ff58
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.0058ff14
mov word [ebp - 0x38], 0x5c
mov edx, str.ServUDaemon.exe
lea eax, [ebp - 0x1c]
call fcn.0058fc78
inc dword [ebp - 0x2c]
lea edx, [ebp - 0x1c]
lea eax, [ebp - 4]
call fcn.0058ff58
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0058ff14
mov eax, dword [ebp - 4]
call fcn.0054814c
test al, al
jne 0x484c2c
xor eax, eax
push eax
dec dword [ebp - 0x2c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0058ff14
pop eax
mov edx, dword [ebp - 0x48]
mov dword fs:[0], edx
jmp 0x484ebd
mov ecx, dword [0x5cefd4]
mov eax, dword [ecx]
cmp eax, 2
jne 0x484df1
push 2
push 0
push 0
call sub.ADVAPI32.DLL_OpenSCManagerA
mov dword [ebp - 0x54], eax
mov word [ebp - 0x38], 8
mov edx, dword [ebp - 0x54]
test edx, edx
jne 0x484c7b
xor eax, eax
push eax
dec dword [ebp - 0x2c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0058ff14
pop eax
mov edx, dword [ebp - 0x48]
mov dword fs:[0], edx
jmp 0x484ebd
mov word [ebp - 0x38], 0x74
lea eax, [ebp - 0x20]
call fcn.00401d9c
mov edx, eax
inc dword [ebp - 0x2c]
mov eax, 0xfdf
call fcn.00547f54
mov word [ebp - 0x38], 0x68
mov word [ebp - 0x38], 0x80
lea eax, [ebp - 0x24]
call fcn.00401d9c
mov edx, eax
inc dword [ebp - 0x2c]
mov eax, 0xfe0
call fcn.00547f54
mov word [ebp - 0x38], 0x68
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 4]
call fcn.00401ed8
push eax
push 1
push 2
push 0x10
push 0xf01ff
lea eax, [ebp - 0x20]
call fcn.00401ed8
push eax
push 0x5b0190
push dword [ebp - 0x54]
call sub.ADVAPI32.DLL_CreateServiceA
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x24]
call fcn.00401ed8
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x58]
test edx, edx
je 0x484d4e
push str.ADVAPI32.DLL
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
test ecx, ecx
je 0x484d4e
mov dword [ebp - 0x68], str.ChangeServiceConfig2A
push dword [ebp - 0x68]
push dword [ebp - 0x64]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x484d46
lea edx, [ebp - 0x5c]
push edx
push 1
push dword [ebp - 0x58]
call dword [ebp - 0x60]
push dword [ebp - 0x64]
call sub.KERNEL32.DLL_FreeLibrary
push dword [ebp - 0x54]
call sub.ADVAPI32.DLL_CloseServiceHandle
mov ecx, dword [ebp - 0x58]
test ecx, ecx
jne 0x484da0
xor eax, eax
push eax
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0058ff14
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0058ff14
dec dword [ebp - 0x2c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0058ff14
pop eax
mov edx, dword [ebp - 0x48]
mov dword fs:[0], edx
jmp 0x484ebd
push dword [ebp - 0x58]
call sub.ADVAPI32.DLL_CloseServiceHandle
mov al, 1
push eax
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0058ff14
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0058ff14
dec dword [ebp - 0x2c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0058ff14
pop eax
mov edx, dword [ebp - 0x48]
mov dword fs:[0], edx
jmp 0x484ebd
lea ecx, [ebp - 0x70]
push ecx
lea eax, [ebp - 0x6c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunServices
push reloc.WSOCK32.DLL_bind
call sub.ADVAPI32.DLL_RegCreateKeyExA
test eax, eax
je 0x484e3c
xor eax, eax
push eax
dec dword [ebp - 0x2c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0058ff14
pop eax
mov edx, dword [ebp - 0x48]
mov dword fs:[0], edx
jmp 0x484ebd
lea eax, [ebp - 4]
call fcn.00401ed8
push eax
call fcn.0056808c
pop ecx
inc eax
push eax
lea eax, [ebp - 4]
call fcn.00401ed8
push eax
push 1
push 0
push 0x5b0190
push dword [ebp - 0x6c]
call sub.ADVAPI32.DLL_RegSetValueExA
mov dword [ebp - 0x74], eax
mov word [ebp - 0x38], 8
push dword [ebp - 0x6c]
call sub.ADVAPI32.DLL_RegCloseKey
mov edx, dword [ebp - 0x74]
test edx, edx
je 0x484e9f
xor eax, eax
push eax
dec dword [ebp - 0x2c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0058ff14
pop eax
mov edx, dword [ebp - 0x48]
mov dword fs:[0], edx
jmp 0x484ebd
mov al, 1
push eax
dec dword [ebp - 0x2c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0058ff14
pop eax
mov edx, dword [ebp - 0x48]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret