Function at 0x403ab1
Capabilities:
Create service
Persist via windows service
Query service status
Start service

Disassembly:
sub esp, 0x130
push ebx
push ebp
push 0x22
pop eax
push 0x102
mov word [esp + 0x38], ax
xor ebp, ebp
lea eax, [esp + 0x3a]
mov dword [esp + 0x10], edx
push ebp
push eax
mov ebx, ecx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0x35]
push 0x103
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403b09
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cannot_install_service___d__n
call fcn.0040402e
pop ecx
pop ecx
jmp 0x403e54
push edi
lea edi, [esp + 0x38]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403b0f
mov ax, word [0x407afc]
push esi
xor esi, esi
mov word [edi], ax
inc esi
mov dword [esp + 0x10], esi
cmp dword [0x40aa3c], esi
jle 0x403c59
mov edi, dword [0x40aa38]
push 3
push 0x407b20
push dword [edi + esi*4]
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
je 0x403c48
push 3
push 0x407b24
push dword [edi + esi*4]
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
je 0x403c47
push 3
push 0x407b28
push dword [edi + esi*4]
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
je 0x403c47
lea edi, [esp + 0x3c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403b8d
mov edx, dword [0x40aa38]
mov ax, word [0x407b2c]
mov word [edi], ax
push 0x20
push dword [edx + esi*4]
call dword [sym.imp.msvcrt.dll_strchr]
pop ecx
pop ecx
test eax, eax
je 0x403c0c
lea edi, [esp + 0x3c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403bba
mov edx, dword [0x40aa38]
mov ax, word [0x407afc]
mov word [edi], ax
mov edx, dword [edx + esi*4]
mov esi, edx
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x403bd6
lea edi, [esp + 0x3c]
sub edx, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403be4
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x3c]
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403bff
mov word [edi], ax
jmp 0x403c3b
mov edx, dword [0x40aa38]
mov edx, dword [edx + esi*4]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x403c17
lea edi, [esp + 0x3c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403c25
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
mov edi, dword [0x40aa38]
jmp 0x403c48
inc esi
inc esi
mov dword [esp + 0x10], esi
cmp esi, dword [0x40aa3c]
jl 0x403b3a
lea edx, [esp + 0x10]
lea ecx, [esp + 0x18]
call fcn.004039c5
test al, al
jne 0x403c82
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Service_removal_failed___d__n
call fcn.0040402e
pop ecx
pop ecx
jmp 0x403e52
test ebx, ebx
je 0x403d22
mov esi, dword [sym.imp.msvcrt.dll__stricmp]
push 0x407b50
push ebx
call esi
test eax, eax
mov edi, str.NT_AUTHORITYLocalService
push 0x407b70
cmovne edi, ebx
push edi
call esi
test eax, eax
mov ebx, str.NT_AUTHORITYNetworkService
push 0x5c
cmovne ebx, edi
push ebx
call dword [sym.imp.msvcrt.dll_strchr]
add esp, 0x18
test eax, eax
jne 0x403d22
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403cc9
sub ecx, edx
lea eax, [ecx + 3]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov ebp, eax
pop ecx
test ebp, ebp
jne 0x403cea
call fcn.00401dca
mov ebp, eax
mov ax, word [0x407b90]
mov esi, ebx
mov word [ebp], ax
mov al, byte [0x407b92]
mov byte [ebp + 2], al
mov al, byte [ebx]
inc ebx
test al, al
jne 0x403cfe
sub ebx, esi
lea edi, [ebp - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403d0a
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [esp + 0x14]
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x40]
push ebx
push str.tcpip
xor ebx, ebx
mov dword [esp + 0x28], esi
push ebx
push ebx
push eax
push 1
push 2
push 0x10
push 0xf01ff
push str.Key_Management_Server
push str.vlmcsd
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edx, dword [esp + 0x14]
mov edi, eax
lea eax, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x403d62
sub edx, eax
je 0x403d77
mov eax, dword [esp + 0x14]
mov byte [eax], bl
inc eax
dec edx
jne 0x403d71
test ebp, ebp
je 0x403d83
push ebp
call dword [sym.imp.msvcrt.dll_free]
pop ecx
test edi, edi
jne 0x403da6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateService_failed___u__n
call fcn.0040402e
pop ecx
pop ecx
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x403e52
push str.Service_installed_successfully_n
call fcn.0040402e
cmp dword [esp + 0x1c], 4
pop ecx
jne 0x403e43
mov esi, dword [sym.imp.msvcrt.dll_printf]
push str.Restarting_vlmcsd_service__
call esi
pop ecx
push ebx
push ebx
push edi
mov dword [esp + 0x30], 1
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x403e30
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x403e06
mov eax, dword [esp + 0x24]
cmp eax, 2
jne 0x403e0a
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0xa
jl 0x403ddf
mov eax, dword [esp + 0x24]
cmp eax, 4
jne 0x403e18
push str.Success_n
call esi
jmp 0x403e42
cmp eax, 2
jne 0x403e24
push str.Not_ready_within_a_second_n
jmp 0x403e14
push str.Error_n
call fcn.0040402e
jmp 0x403e42
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_n
call fcn.0040402e
pop ecx
pop ecx
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push dword [esp + 0x1c]
call esi
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x130
ret