Function at 0x4abac0
Capabilities:
Create service
Get hostname

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x224], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x4df120
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0x10
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4df120
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x104
push 0x4dbcb0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4abb9d
mov ecx, 0x4dbeb8
mov edi, 0x4dbcb0
mov edx, 0x104
sub edi, ecx
nop dword [eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x4abb59
movzx eax, word [edi + ecx]
mov esi, eax
test ax, ax
je 0x4abb52
mov word [ecx], si
add ecx, 2
sub edx, 1
jne 0x4abb30
jmp 0x4abb56
test edx, edx
jne 0x4abb59
sub ecx, 2
xor eax, eax
push 0x4dbcb0
mov word [ecx], ax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
push 0x4dbcb0
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push 0x4dbeb8
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0xc]
push eax
push 0x4dd310
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov esi, dword [esp + 8]
mov dword [0x4dc0c0], 1
push 0x4df120
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x4dc0c0], 0
je 0x4abbb6
call fcn.00408c40
cmp dword [ebp + 8], 1
jle 0x4abd03
push str.install
push dword [esi + 4]
call fcn.004b3f5d
add esp, 8
test eax, eax
jne 0x4abd03
push 0x208
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004ad600
add esp, 0xc
lea eax, [esp + 0x20]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x4abc2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cannot_install_service:0x_X
push 1
call fcn.00408d60
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.004ac4d4
mov esp, ebp
pop ebp
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x4abc6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed:0x_X
push 1
call fcn.00408d60
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.004ac4d4
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
push 1
push 3
push 0x10
push 0xf01ff
push str.KB4TestSvc
push str.KB4TestSvc
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x4abcd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateService_failed:0x_X
push 1
call fcn.00408d60
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.004ac4d4
mov esp, ebp
pop ebp
ret
push str.Service_installed_successfully_n
push 3
call fcn.00408d60
add esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.004ac4d4
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
mov dword [esp + 0x10], str.KB4TestSvc
push eax
mov dword [esp + 0x18], 0x40ca00
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x4abd3c
mov ecx, str.StartServiceCtrlDispatcher
call fcn.0040cc90
mov ecx, dword [esp + 0x22c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.004ac4d4
mov esp, ebp
pop ebp
ret