Function at 0x140003160
Capabilities:
Create thread
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x990
mov rax, qword [0x14002e260]
xor rax, rsp
mov qword [rsp + 0x980], rax
mov rax, qword [rsp + 0xa00]
mov r15, qword [rsp + 0x9f8]
mov r13, qword [rsp + 0x9f0]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0xa08]
mov rdi, rdx
movzx esi, cl
mov byte [rsp + 0x60], cl
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x770]
mov qword [rsp + 0x68], rax
mov r14, r9
mov rbp, r8
mov qword [rsp + 0x80], r15
mov dword [rsp + 0x78], 0x104
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea rcx, [rsp + 0x770]
mov rdx, rdi
call fcn.140007808
test eax, eax
jne 0x14000348d
lea rcx, str.Connecting_to_local_system...
mov r12b, 1
call fcn.140003100
cmp byte [0x14002f9e9], 0
jne 0x14000322f
lea rdx, [rsp + 0xa0]
mov ecx, 0x202
call sub.WS2_32.dll_WSAStartup
mov byte [0x14002f9e9], r12b
lea rcx, [rsp + 0x450]
mov edx, 0x104
call sub.WS2_32.dll_gethostname
lea rcx, [rsp + 0x450]
call sub.WS2_32.dll_gethostbyname
lea rcx, [rsp + 0x8c]
mov rdx, qword [rax + 0x18]
movsx r8, word [rax + 0x12]
mov rdx, qword [rdx]
call fcn.1400083c0
mov ecx, dword [rsp + 0x8c]
call sub.WS2_32.dll_inet_ntoa
or r9d, 0xffffffff
xor edx, edx
mov r8, rax
lea rax, [rsp + 0x240]
xor ecx, ecx
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x80]
movzx r15d, byte [rsp + 0xa20]
mov byte [rsp + 0x50], r15b
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
lea r8, [rsp + 0x240]
movzx r9d, r12b
mov rdx, rdi
movzx ecx, sil
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rbp
call fcn.140003840
test al, al
je 0x14000357c
call fcn.1400024b0
lea rax, str.local_system
mov r8, rdi
test r12b, r12b
lea rcx, str._rStarting__s_service_on__s...
mov rdx, rbp
cmovne r8, rax
call fcn.140003100
lea rdx, str.__SystemRoot___s
lea rcx, [rsp + 0x560]
mov r8, r13
call fcn.140007ff8
movzx eax, byte [rsp + 0xa10]
lea r9, [rsp + 0x560]
mov r8, r14
mov rdx, rbp
mov rcx, rdi
mov byte [rsp + 0x20], al
call fcn.140002be0
test eax, eax
jne 0x140003460
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp word [0x14002f9f8], 0
mov esi, eax
jne 0x14000338d
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rdx, [0x14002f9f8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
lea rcx, [0x140021bb0]
call fcn.140003100
movsx eax, word [0x14002f9f8]
xor ebx, ebx
dec eax
test eax, eax
jle 0x1400033cb
nop dword [rax + rax]
lea rcx, [0x140021bb4]
call fcn.140003100
movsx eax, word [0x14002f9f8]
inc ebx
dec eax
cmp ebx, eax
jl 0x1400033b0
lea rcx, [0x140021bb0]
call fcn.140003100
cmp esi, 2
jne 0x140003583
mov rax, qword [rsp + 0x68]
movzx ecx, byte [rsp + 0x60]
mov byte [rsp + 0x50], r15b
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x70]
lea r8, [rsp + 0x240]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
movzx r9d, r12b
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov rdx, rdi
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rbp
call fcn.140003840
test al, al
je 0x14000357c
movzx eax, byte [rsp + 0xa10]
lea r9, [rsp + 0x560]
mov r8, r14
mov rdx, rbp
mov rcx, rdi
mov byte [rsp + 0x20], al
call fcn.140002be0
test eax, eax
je 0x140003360
mov al, 1
mov rcx, qword [rsp + 0x980]
xor rcx, rsp
call fcn.140008390
mov rbx, qword [rsp + 0x9d0]
add rsp, 0x990
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, [rsp + 0x240]
xor r12b, r12b
mov rcx, rdi
sub rdx, rdi
nop
movzx eax, word [rcx]
lea rcx, [rcx + 2]
mov word [rdx + rcx - 2], ax
test ax, ax
jne 0x1400034a0
lea rcx, str.Connecting_to__s...
mov rdx, rdi
call fcn.140003100
mov ebx, dword [rsp + 0xa18]
cmp ebx, 0xffffffff
je 0x140003299
mov ecx, 0x58
call fcn.140007da8
lea rcx, [rsp + 0x240]
lea r8, [0x140003ae0]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x70]
mov qword [rax + 0x38], r15
movzx r15d, byte [rsp + 0xa20]
mov qword [rax + 0x40], rcx
mov rcx, qword [rsp + 0x68]
mov qword [rax + 0x48], rcx
xor ecx, ecx
mov r9, rax
mov qword [rsp + 0x28], rcx
xor edx, edx
mov byte [rax], sil
mov dword [rsp + 0x20], ecx
mov qword [rax + 8], rdi
mov byte [rax + 0x18], 0
mov qword [rax + 0x20], rbp
mov qword [rax + 0x28], r14
mov qword [rax + 0x30], r13
mov byte [rax + 0x50], r15b
call fcn.140009f0c
imul edx, ebx, 0x3e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1400032f7
call fcn.140008c34
lea rdx, str._rTimeout_accessing__s._n
mov r8, rdi
add rax, 0x60
mov rcx, rax
call fcn.140008fbc
mov ecx, 0x5b4
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x140003462
test r15b, r15b
je 0x1400035ad
call fcn.140008c34
lea rdx, str._rCould_not_start__s_service_on__s:_n
mov r9, rdi
add rax, 0x60
mov r8, rbp
mov rcx, rax
call fcn.140008fbc
mov ecx, esi
call fcn.140003030
movzx ecx, byte [rsp + 0x60]
mov r9, r13
mov r8, r14
mov rdx, rdi
call fcn.1400035d0
xor al, al
jmp 0x140003462