Function at 0x403eb0
Capabilities:
Create thread
Initialize winsock library
Modify service
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b3c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x39c
push ebx
push esi
push edi
lea eax, [ebp - 0x3a8]
mov dword [ebp - 0x10], esp
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edx
push 0x41218c
mov dword [0x411314], ecx
call ebx
mov ecx, 0x41
xor eax, eax
mov edi, str.SoftwareWinsManager
mov byte [ebp - 0x114], al
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x217]
mov byte [ebp - 0x218], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x114]
push 0x40
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x114]
push eax
push str.9bbfbed4dfd1eae5
call fcn.00403660
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x218]
push 0x30
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x218]
push ecx
push str.92afbfcfb4d3ebe9fa031b
call fcn.00403660
add esp, 0x18
lea edx, [ebp - 0x218]
lea eax, [ebp - 0x114]
push edx
push eax
push str._s_s
push str.SoftwareWinsManager
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push str.SoftwareWinsManager
push str.SoftwareWinsManagerStatus
call ebx
push str.Status
push str.SoftwareWinsManagerStatus
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x30
push 0x411728
push 0x40ea54
call fcn.00403660
push 0x30
push str.Windows_WinsManager_Diagnostics_Service
push str.aee713306291b488e61f4b7778b3e7012e53875ca7f3123f6d95c0e804255c308ac3f7223c5d86
call fcn.00403660
push 0x30
push 0x411930
push 0x40eaf4
call fcn.00403660
mov ecx, dword [0x411314]
add esp, 0x24
push 0xff
push 0x411520
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x411520
call dword [sym.imp.KERNEL32.dll_lstrlenA]
dec eax
test eax, eax
jle 0x404050
mov cl, 0x5c
cmp byte [eax + 0x411520], cl
je 0x40402f
dec eax
test eax, eax
jg 0x404020
jmp 0x404050
mov ecx, eax
mov esi, 0x411520
mov edx, ecx
mov edi, str.C:WINDOWSSystem32
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [eax + str.C:WINDOWSSystem32], 0
push str._thread
push 0x41218c
mov dword [ebp - 4], 0
call fcn.00405a70
add esp, 8
test eax, eax
je 0x4040bf
push 0
push 0
push 1
push 0
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0x404330
push 0
push 0
mov dword [0x412290], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
mov eax, dword [0x412290]
push 0x3a98
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4040df
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
call fcn.00404ae1
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str._run
push 0x41218c
call esi
test eax, eax
jne 0x4040f4
mov ecx, 0x412140
call fcn.004012d0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, 0x41218c
test ecx, ecx
je 0x4042f3
cmp byte [0x41218c], 0x2f
jne 0x4042f3
push 0x40ea14
push ecx
call esi
test eax, eax
jne 0x4041f1
call fcn.004012c0
mov edi, eax
call fcn.004012b0
mov dword [ebp + 8], eax
call fcn.004012a0
mov esi, eax
call fcn.004031b0
push 0
push 0
call ebx
push 0
push 0
push 0
push 0
call fcn.00403510
add esp, 0x10
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x40417e
call fcn.004031b0
push str.Ins::OpenSCManager_Failed
push 0x411a34
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
jmp 0x4040df
mov edx, dword [ebp + 8]
push edi
push edx
push esi
push ebx
call fcn.00404a30
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4041c8
test edi, edi
je 0x4041b2
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x4041b2
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
call fcn.004031b0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
jmp 0x4040df
call fcn.004031b0
push str.Ins::CreateService_Failed
push 0x411a34
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
jmp 0x4040df
push 0x40e9d8
push 0x41218c
call esi
test eax, eax
jne 0x404214
call fcn.004012a0
push eax
call fcn.004045d0
add esp, 4
jmp 0x4040df
push str._start
push 0x41218c
call esi
test eax, eax
jne 0x40423c
call fcn.004012a0
push eax
push 0xffff
call fcn.004047a0
add esp, 8
jmp 0x404310
push str._stop
push 0x41218c
call esi
test eax, eax
jne 0x404261
call fcn.004012a0
push eax
push 1
call fcn.004047a0
add esp, 8
jmp 0x404310
push str._shutdown
push 0x41218c
call esi
test eax, eax
jne 0x404286
call fcn.004012a0
push eax
push 5
call fcn.004047a0
add esp, 8
jmp 0x404310
push str._pause
push 0x41218c
call esi
test eax, eax
jne 0x4042a8
call fcn.004012a0
push eax
push 2
call fcn.004047a0
add esp, 8
jmp 0x404310
push str._continue
push 0x41218c
call esi
test eax, eax
jne 0x4042ca
call fcn.004012a0
push eax
push 3
call fcn.004047a0
add esp, 8
jmp 0x404310
mov al, byte [0x41218d]
test al, al
je 0x4042f3
push 0x41218d
call fcn.00405b7b
add esp, 4
mov esi, eax
call fcn.004012a0
push eax
push esi
call fcn.004047a0
add esp, 8
jmp 0x404310
call fcn.004031b0
push 0x4112b8
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
mov esi, eax
test esi, esi
jne 0x40430e
call fcn.004031b0
mov eax, esi
test eax, eax
jne 0x4040df
call fcn.004045c0
jmp 0x4040df