Function at 0x140058b70
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 [0x1400b77a8]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
xor r14d, r14d
mov rdi, rcx
test byte [0x1400b9580], 1
mov dword [rsp + 0x30], r14d
je 0x140058bcb
lea rax, [r11 - 0x38]
lea r9d, [r14 + 1]
mov qword [rsp + 0x20], rax
lea rdx, [0x1400a9bd8]
call fcn.140031958
mov rax, qword [rdi + 8]
mov qword [0x1400b9a08], rax
mov rax, qword [rdi]
mov qword [0x1400b99b0], rax
call fcn.14005895c
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, [0x14009cb20]
lea rbp, [0x1400b72f8]
test eax, eax
je 0x140058c47
mov rcx, qword [0x1400b72f8]
cmp rcx, rbp
je 0x140058c51
test byte [rcx + 0x44], 0x20
je 0x140058c51
mov rcx, qword [rcx + 0x38]
mov edx, 0xa
mov r9d, eax
mov r8, r12
call fcn.140030cf8
jmp 0x140058c51
mov dword [0x1400b99c0], 1
call sym.spoolsv.exe_PrvSplIsUpgrade
lea rdx, [rsp + 0x34]
mov dword [0x1400b94b8], 0x5c005c
lea rcx, [0x1400b94bc]
mov dword [rsp + 0x34], 0x10
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
nop dword [rax + rax]
test eax, eax
jne 0x140058ce9
mov rax, qword [0x1400b72f8]
cmp rax, rbp
je 0x140058cbd
test byte [rax + 0x44], 0x20
je 0x140058cbd
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400b72f8]
mov edx, 0xb
mov r9d, eax
mov r8, r12
mov rcx, qword [rcx + 0x38]
call fcn.140030cf8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
xor r8d, r8d
lea rcx, [0x1400a9a28]
mov edx, eax
call fcn.1400538a8
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
call fcn.1400583cc
mov ecx, eax
call fcn.14006c698
mov ebx, eax
test eax, eax
jns 0x140058d48
mov rcx, qword [0x1400b72f8]
cmp rcx, rbp
je 0x140058d21
test byte [rcx + 0x44], 0x20
je 0x140058d21
mov rcx, qword [rcx + 0x38]
mov edx, 0xc
mov r9d, eax
mov r8, r12
call fcn.140030cf8
mov ecx, ebx
call fcn.140037cf0
mov edx, eax
lea rcx, [0x1400a9b38]
xor r8d, r8d
call fcn.1400538a8
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
lea rdx, [0x1400b99ac]
lea rcx, [0x1400b99b8]
call sym.spoolsv.exe_PrvBuildOtherNamesFromMachineName
test eax, eax
jne 0x140058da2
mov rax, qword [0x1400b72f8]
cmp rax, rbp
je 0x140058d98
test byte [rax + 0x44], 0x20
je 0x140058d98
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400b72f8]
mov edx, 0xd
mov r9d, eax
mov r8, r12
mov rcx, qword [rcx + 0x38]
call fcn.140030cf8
mov word [0x1400b92b0], r14w
jmp 0x140058dc8
mov r8, qword [0x1400b99b8]
lea rcx, [0x1400b92b4]
mov dword [0x1400b92b0], 0x5c005c
mov edx, 0x102
mov r8, qword [r8 + 8]
call fcn.14000c1d0
call fcn.14006ee98
mov ebx, eax
test eax, eax
jns 0x140058e20
mov rcx, qword [0x1400b72f8]
cmp rcx, rbp
je 0x140058df9
test byte [rcx + 0x44], 0x20
je 0x140058df9
mov rcx, qword [rcx + 0x38]
mov edx, 0xe
mov r9d, eax
mov r8, r12
call fcn.140030cf8
mov ecx, ebx
call fcn.140037cf0
mov edx, eax
lea rcx, [0x1400a9a88]
xor r8d, r8d
call fcn.1400538a8
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
call fcn.14006f230
mov ebx, eax
test eax, eax
jns 0x140058e78
mov rcx, qword [0x1400b72f8]
cmp rcx, rbp
je 0x140058e51
test byte [rcx + 0x44], 0x20
je 0x140058e51
mov rcx, qword [rcx + 0x38]
mov edx, 0xf
mov r9d, eax
mov r8, r12
call fcn.140030cf8
mov ecx, ebx
call fcn.140037cf0
mov edx, eax
lea rcx, [0x1400a9b88]
xor r8d, r8d
call fcn.1400538a8
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.140058610
mov qword [0x1400b9598], rax
test rax, rax
jne 0x140058ee9
mov rcx, qword [0x1400b72f8]
cmp rcx, rbp
je 0x140058ebd
test byte [rcx + 0x44], 0x20
je 0x140058ebd
mov r9d, dword [rsp + 0x30]
lea edx, [rax + 0x10]
mov rcx, qword [rcx + 0x38]
mov r8, r12
call fcn.140030cf8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
xor r8d, r8d
lea rcx, [0x1400a9be8]
mov edx, eax
call fcn.1400538a8
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.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov qword [0x1400b9770], rax
test rax, rax
jne 0x140058f6f
mov rax, qword [0x1400b72f8]
cmp rax, rbp
je 0x140058f43
test byte [rax + 0x44], 0x20
je 0x140058f43
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400b72f8]
mov edx, 0x11
mov r9d, eax
mov r8, r12
mov rcx, qword [rcx + 0x38]
call fcn.140030cf8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
xor r8d, r8d
lea rcx, [0x1400a9be8]
mov edx, eax
call fcn.1400538a8
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
call fcn.140058470
mov rcx, qword [0x1400b9520]
call fcn.14000fb40
mov dword [0x1400b95a0], 1
call fcn.14006edb8
call fcn.1400640a8
call fcn.14005a64c
call fcn.14005a7fc
call fcn.14006bd70
call fcn.14005b5bc
mov rcx, qword [0x1400b9538]
mov r8, rdi
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
test byte [0x1400b9580], 1
je 0x140058fe8
lea rax, [rsp + 0x1e0]
mov r9d, 1
lea rdx, [0x1400a9ac8]
mov qword [rsp + 0x20], rax
call fcn.140031958
call fcn.140059644
int3