Function at 0x48839f
Capabilities:
Accept command line arguments
Copy file
Create service
Delete service
Persist via windows service
Start service

Disassembly:
push 0x6c
mov eax, 0x5219c5
call fcn.004d8abf
mov ebx, ecx
mov dword [ebp - 0x30], ebx
and dword [ebp - 0x10], 0
push ecx
mov dword [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x50], esp
push str.ADMIN_
call fcn.00406fea
mov byte [ebp - 4], 3
mov ecx, dword [ebx]
add ecx, 0x50
push ecx
mov esi, esp
mov dword [ebp - 0x4c], esp
mov dword [ebp - 0x48], esi
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.004070e7
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebx]
add ecx, 0x4c
push ecx
mov esi, esp
mov dword [ebp - 0x48], esp
mov dword [ebp - 0x44], esi
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.004070e7
add eax, 0x10
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 5
mov esi, esp
mov dword [ebp - 0x44], esi
mov ecx, dword [ebx + 0x4c]
sub ecx, 0x10
call fcn.004070e7
add eax, 0x10
lea ecx, [ebp - 0x6c]
mov dword [esi], eax
mov dl, 1
mov byte [ebp - 4], 2
call fcn.00485d99
add esp, 0x10
mov byte [ebp - 4], 6
cmp dword [ebp - 0x6c], 0
jge 0x488453
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x6c]
push eax
call fcn.0040121b
jmp 0x488beb
push ecx
mov ecx, esp
mov dword [ebp - 0x50], esp
push str.IPC_
call fcn.00406fea
mov byte [ebp - 4], 7
mov ecx, dword [ebx]
add ecx, 0x50
push ecx
mov esi, esp
mov dword [ebp - 0x4c], esp
mov dword [ebp - 0x48], esi
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.004070e7
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebx]
add ecx, 0x4c
push ecx
mov esi, esp
mov dword [ebp - 0x48], esp
mov dword [ebp - 0x44], esi
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.004070e7
add eax, 0x10
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 9
mov esi, esp
mov dword [ebp - 0x44], esi
mov ecx, dword [ebx + 0x4c]
sub ecx, 0x10
call fcn.004070e7
add eax, 0x10
lea ecx, [ebp - 0x78]
mov dword [esi], eax
mov dl, 1
mov byte [ebp - 4], 6
call fcn.00485d99
add esp, 0x10
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x78], 0
jge 0x48852f
cmp dword [ebp - 0x74], 0
mov eax, 0x2fab
cmovne eax, dword [ebp - 0x74]
push eax
push dword [ebp - 0x78]
push ecx
mov esi, esp
mov dword [ebp - 0x50], esi
mov ecx, dword [ebp - 0x70]
lea ecx, [ecx - 0x10]
call fcn.004070e7
add eax, 0x10
lea ecx, [ebp - 0x58]
mov dword [esi], eax
call fcn.00406620
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x58]
push eax
mov byte [ebp - 4], 0xb
call fcn.0040121b
mov ecx, dword [ebp - 0x50]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x70]
lea ecx, [ecx - 0x10]
jmp 0x488be6
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x70]
lea ecx, [ecx - 0x10]
call fcn.00407189
push dword [ebx + 0x4c]
lea eax, [ebp - 0x38]
push str._wsADMIN_win.ini
push eax
call fcn.004011e0
add esp, 0xc
xor ecx, ecx
push ecx
push ecx
push 3
push ecx
push 7
push 1
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x38]
mov dword [ebx + 0xc], eax
lea ecx, [ecx - 0x10]
call fcn.00407189
mov eax, dword [ebx]
mov ecx, dword [eax + 0x44]
sub ecx, 0x10
call fcn.004070e7
lea esi, [eax + 0x10]
mov dword [ebp - 0x34], esi
push 0
mov byte [ebp - 4], 0xc
push dword [ebp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4885ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
push 0x2fbb
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovs eax, ecx
push eax
push ecx
mov ecx, esp
call fcn.0040687a
lea ecx, [ebp - 0x78]
call fcn.00406620
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x78]
push eax
call fcn.0040121b
mov ecx, dword [ebp - 0x70]
lea ecx, [ecx - 0x10]
call fcn.00407189
jmp 0x488be3
push 0xf003f
push 0
push dword [ebx + 0x4c]
mov byte [ebx + 8], 1
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebx + 0x10], eax
test eax, eax
je 0x488bc3
lea eax, [ebp + 0x10]
mov edx, str.__SystemRoot__
push eax
lea ecx, [ebp - 0x40]
call fcn.004093b4
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x24]
mov edx, eax
mov dword [esp], str.___remoteservice
call fcn.00409442
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x28]
mov ebx, dword [eax]
mov edx, str.Ninite_Temporary_Service
lea eax, [ebp + 0xc]
push eax
call fcn.004093b4
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x2c]
mov edi, dword [eax]
mov edx, str.NiniteTemp
lea eax, [ebp + 0xc]
push eax
call fcn.004093b4
add esp, 0xc
xor ecx, ecx
push 0x53d648
push ecx
push ecx
push ecx
push ecx
push ebx
mov ebx, dword [ebp - 0x30]
push 1
push 2
push 0x10
push 0xf01ff
push edi
push dword [eax]
push dword [ebx + 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
mov dword [ebp - 0x38], edi
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x40]
lea ecx, [ecx - 0x10]
call fcn.00407189
test edi, edi
jne 0x488700
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
push 0x2fda
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovs eax, ecx
push eax
push ecx
mov ecx, esp
call fcn.0040687a
lea ecx, [ebp - 0x78]
call fcn.00406620
mov byte [ebp - 4], 0x15
jmp 0x4885d2
lea ecx, [ebp - 0x18]
mov byte [ebx + 8], 0
call fcn.004282f6
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x40]
mov edx, dword [ebx]
push str.__remotepipe
add edx, 0x6c
call fcn.00409442
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x17
push ecx
mov edx, eax
lea ecx, [ebp - 0x1c]
call fcn.0040a037
pop ecx
pop ecx
mov ecx, dword [ebp - 0x40]
add ecx, 0xfffffff0
call fcn.00407189
and dword [ebp - 0x3c], 0
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x5c], ebx
push ebx
mov byte [ebp - 4], 0x1a
push dword [ebp - 0x3c]
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4887c1
call fcn.00406710
push edi
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push 0x2ff9
push ebx
push ecx
mov ecx, esp
call fcn.0040687a
mov ecx, dword [ebp + 8]
call fcn.00406620
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x48879f
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00407189
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x488be3
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x488825
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
push 0x2ffe
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovs eax, ecx
push eax
push ecx
mov ecx, esp
call fcn.0040687a
lea ecx, [ebp - 0x78]
call fcn.00406620
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 4], 0x1b
call fcn.0040121b
mov ecx, dword [ebp - 0x70]
lea ecx, [ecx - 0x10]
call fcn.00407189
test ebx, ebx
je 0x48879f
push ebx
jmp 0x488799
mov ebx, dword [ebp - 0x30]
lea eax, [ebp - 0x20]
push dword [ebp - 0x18]
push dword [ebx + 0x4c]
mov byte [ebx + 8], 1
push str._wspipe_ws
push eax
call fcn.004011e0
add esp, 0x10
or dword [ebp - 0x14], 0xffffffff
mov byte [ebp - 4], 0x1d
lea ecx, [ebx + 0x14]
mov ebx, dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
cmp eax, 2
jae 0x4888ac
push 0
push eax
lea ecx, [ebp - 0x4c]
call fcn.0042989d
mov edi, eax
mov byte [ebp - 4], 0x1e
lea edx, [ebp - 0x20]
or ebx, 2
lea ecx, [ebp - 0x48]
push 0x5485e0
mov dword [ebp - 0x10], ebx
call fcn.00409442
mov dword [ebp - 4], 0x1f
lea ecx, [ebp - 0x44]
or ebx, 4
mov edx, eax
push edi
mov dword [ebp - 0x10], ebx
call fcn.0040a037
add esp, 0x10
mov dword [ebp - 4], 0x20
or ebx, 8
jmp 0x4888c7
push str._cancel
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x40]
call fcn.00409442
pop ecx
mov dword [ebp - 4], 0x21
or ebx, 0x10
mov ecx, dword [eax]
sub ecx, 0x10
mov dword [ebp - 0x10], ebx
call fcn.004070e7
lea edi, [eax + 0x10]
mov dword [ebp - 0x60], edi
mov dword [ebp - 4], 0x22
test bl, 0x10
je 0x4888f7
mov ecx, dword [ebp - 0x40]
and ebx, 0xffffffef
mov dword [ebp - 0x10], ebx
lea ecx, [ecx - 0x10]
call fcn.00407189
test bl, 8
je 0x48890d
mov ecx, dword [ebp - 0x44]
and ebx, 0xfffffff7
mov dword [ebp - 0x10], ebx
lea ecx, [ecx - 0x10]
call fcn.00407189
test bl, 4
je 0x488923
mov ecx, dword [ebp - 0x48]
and ebx, 0xfffffffb
mov dword [ebp - 0x10], ebx
lea ecx, [ecx - 0x10]
call fcn.00407189
test bl, 2
je 0x488939
mov ecx, dword [ebp - 0x4c]
and ebx, 0xfffffffd
mov dword [ebp - 0x10], ebx
lea ecx, [ecx - 0x10]
call fcn.00407189
cmp dword [ebp - 0x28], 2
lea eax, [ebp - 0x14]
push 0xa
cmovb eax, dword [ebp - 0x2c]
mov dword [ebp - 0x50], eax
pop esi
push 0x2710
push edi
dec esi
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x48896a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
jne 0x48894a
xor eax, eax
push eax
push 0x40000080
push 3
push eax
push eax
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x50]
mov esi, dword [ebp - 0x34]
mov dword [ecx], eax
cmp eax, 0xffffffff
je 0x488b22
test eax, eax
je 0x488b22
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 0x1d
call fcn.00407189
mov eax, dword [ebp - 0x28]
add dword [ebp - 0x2c], 4
inc eax
mov dword [ebp - 0x28], eax
cmp eax, 3
jb 0x488859
mov ebx, dword [ebp - 0x30]
lea eax, [ebx + 0x20]
push eax
mov dword [ebp - 0x54], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x50], 1
add ebx, 0x1c
mov byte [ebp - 4], 0x28
lea eax, [ebp - 0x14]
cmp ebx, eax
je 0x4889ed
mov ecx, ebx
call fcn.00427477
mov eax, dword [ebp - 0x14]
or dword [ebp - 0x14], 0xffffffff
mov dword [ebx], eax
mov eax, dword [0x57d3ec]
cmp byte [eax + 1], 0
je 0x488a7e
mov ecx, ebx
call fcn.00427477
push 0x3026
push 0x80004004
push ecx
mov ecx, esp
push str.User_abort
call fcn.00406fea
mov ecx, dword [ebp + 8]
call fcn.00406620
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x14]
cmp eax, 0xffffffff
je 0x488a3e
test eax, eax
je 0x488a3e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x488a57
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00407189
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x34]
jmp 0x488527
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp + 8]
and dword [esi], 0
lea ecx, [esi + 8]
and dword [esi + 4], 0
call fcn.0040687a
mov eax, dword [ebp - 0x14]
cmp eax, 0xffffffff
je 0x488aac
test eax, eax
je 0x488aac
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x488ac5
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00407189
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x64]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00407189
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
call fcn.00407189
mov eax, esi
jmp 0x488c1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
push 0x301d
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovs eax, ecx
push eax
push ecx
mov ecx, esp
call fcn.0040687a
lea ecx, [ebp - 0x78]
call fcn.00406620
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 4], 0x27
call fcn.0040121b
mov ecx, dword [ebp - 0x70]
lea ecx, [ecx - 0x10]
call fcn.00407189
lea ecx, [edi - 0x10]
call fcn.00407189
mov eax, dword [ebp - 0x14]
cmp eax, 0xffffffff
je 0x488b8c
test eax, eax
je 0x488b8c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x488ba5
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00407189
push dword [ebp - 0x38]
jmp 0x4887b6
call fcn.00406710
push 0x2fc2
push eax
push ecx
mov ecx, esp
push str.Failed_to_open_remote_SCM
call fcn.00406fea
mov ecx, dword [ebp + 8]
call fcn.00406620
lea ecx, [esi - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x64]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00407189
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
call fcn.00407189
mov eax, dword [ebp + 8]
call fcn.004d8a8d
ret 0x10