Function at 0x140051500
Capabilities:
Get hostname
Initialize winsock library
Terminate process

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x200
mov rax, qword [0x1400ae768]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
xor r14d, r14d
mov rdi, rcx
test byte [0x1400b0000], 1
mov dword [rsp + 0x30], r14d
je 0x14005155b
lea rax, [r11 - 0x38]
lea r9d, [r14 + 1]
mov qword [rsp + 0x20], rax
lea rdx, [0x14009dec8]
call fcn.140028a28
mov rax, qword [rdi + 8]
mov qword [0x1400b0488], rax
mov rax, qword [rdi]
mov qword [0x1400b0430], rax
call fcn.1400513a8
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x198
call sub.msvcrt.dll_memset
mov ecx, 0x202
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
nop dword [rax + rax]
lea r12, [0x140094120]
lea rbp, [0x1400ae2f8]
test eax, eax
je 0x1400515d7
mov rcx, qword [0x1400ae2f8]
cmp rcx, rbp
je 0x1400515e1
test byte [rcx + 0x44], 0x20
je 0x1400515e1
mov rcx, qword [rcx + 0x38]
mov edx, 0xa
mov r9d, eax
mov r8, r12
call fcn.140027dc8
jmp 0x1400515e1
mov dword [0x1400b0440], 1
call sym.spoolsv.exe_PrvSplIsUpgrade
lea rdx, [rsp + 0x34]
mov dword [0x1400aff78], 0x5c005c
lea rcx, [0x1400aff7c]
mov dword [rsp + 0x34], 0x10
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
nop dword [rax + rax]
test eax, eax
jne 0x140051679
mov rax, qword [0x1400ae2f8]
cmp rax, rbp
je 0x14005164d
test byte [rax + 0x44], 0x20
je 0x14005164d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400ae2f8]
mov edx, 0xb
mov r9d, eax
mov r8, r12
mov rcx, qword [rcx + 0x38]
call fcn.140027dc8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
xor r8d, r8d
lea rcx, [0x14009dce8]
mov edx, eax
call fcn.14004a038
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
call fcn.140050e1c
mov ecx, eax
call fcn.140064f58
mov ebx, eax
test eax, eax
jns 0x1400516d8
mov rcx, qword [0x1400ae2f8]
cmp rcx, rbp
je 0x1400516b1
test byte [rcx + 0x44], 0x20
je 0x1400516b1
mov rcx, qword [rcx + 0x38]
mov edx, 0xc
mov r9d, eax
mov r8, r12
call fcn.140027dc8
mov ecx, ebx
call fcn.14002edc0
mov edx, eax
lea rcx, [0x14009de18]
xor r8d, r8d
call fcn.14004a038
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
lea rdx, [0x1400b0428]
lea rcx, [0x1400b0438]
call sym.spoolsv.exe_PrvBuildOtherNamesFromMachineName
test eax, eax
jne 0x140051732
mov rax, qword [0x1400ae2f8]
cmp rax, rbp
je 0x140051728
test byte [rax + 0x44], 0x20
je 0x140051728
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400ae2f8]
mov edx, 0xd
mov r9d, eax
mov r8, r12
mov rcx, qword [rcx + 0x38]
call fcn.140027dc8
mov word [0x1400afd70], r14w
jmp 0x140051758
mov r8, qword [0x1400b0438]
lea rcx, [0x1400afd74]
mov dword [0x1400afd70], 0x5c005c
mov edx, 0x102
mov r8, qword [r8 + 8]
call fcn.14000a710
call fcn.1400677ec
mov ebx, eax
test eax, eax
jns 0x1400517b0
mov rcx, qword [0x1400ae2f8]
cmp rcx, rbp
je 0x140051789
test byte [rcx + 0x44], 0x20
je 0x140051789
mov rcx, qword [rcx + 0x38]
mov edx, 0xe
mov r9d, eax
mov r8, r12
call fcn.140027dc8
mov ecx, ebx
call fcn.14002edc0
mov edx, eax
lea rcx, [0x14009dd58]
xor r8d, r8d
call fcn.14004a038
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
call fcn.140067b84
mov ebx, eax
test eax, eax
jns 0x140051808
mov rcx, qword [0x1400ae2f8]
cmp rcx, rbp
je 0x1400517e1
test byte [rcx + 0x44], 0x20
je 0x1400517e1
mov rcx, qword [rcx + 0x38]
mov edx, 0xf
mov r9d, eax
mov r8, r12
call fcn.140027dc8
mov ecx, ebx
call fcn.14002edc0
mov edx, eax
lea rcx, [0x14009de78]
xor r8d, r8d
call fcn.14004a038
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
lea r8, [rsp + 0x30]
xor edx, edx
lea rcx, str.localspl.dll
call fcn.14005105c
mov qword [0x1400b0018], rax
test rax, rax
jne 0x140051879
mov rcx, qword [0x1400ae2f8]
cmp rcx, rbp
je 0x14005184d
test byte [rcx + 0x44], 0x20
je 0x14005184d
mov r9d, dword [rsp + 0x30]
lea edx, [rax + 0x10]
mov rcx, qword [rcx + 0x38]
mov r8, r12
call fcn.140027dc8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
xor r8d, r8d
lea rcx, [0x14009ded8]
mov edx, eax
call fcn.14004a038
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
mov rcx, qword [rax + 0x10]
mov edx, 0x190
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
mov qword [0x1400b01a0], rax
test rax, rax
jne 0x1400518ff
mov rax, qword [0x1400ae2f8]
cmp rax, rbp
je 0x1400518d3
test byte [rax + 0x44], 0x20
je 0x1400518d3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400ae2f8]
mov edx, 0x11
mov r9d, eax
mov r8, r12
mov rcx, qword [rcx + 0x38]
call fcn.140027dc8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
xor r8d, r8d
lea rcx, [0x14009ded8]
mov edx, eax
call fcn.14004a038
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
call fcn.140050ec0
mov rcx, qword [0x1400affb0]
call fcn.14000ec2c
mov dword [0x1400b0020], 1
call fcn.14006770c
call fcn.14005c938
call fcn.140052edc
call fcn.14005308c
call fcn.140064628
call fcn.140053e0c
mov rcx, qword [0x1400affe8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
test byte [0x1400b0000], 1
je 0x140051978
lea rax, [rsp + 0x1e0]
mov r9d, 1
lea rdx, [0x14009dda8]
mov qword [rsp + 0x20], rax
call fcn.140028a28
call fcn.140051fb0
int3