Function at 0x140050d00
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 [0x1400c87d8]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
xor r14d, r14d
mov rdi, rcx
test byte [0x1400ca180], 1
mov dword [rsp + 0x30], r14d
je 0x140050d5b
lea rax, [r11 - 0x38]
lea r9d, [r14 + 1]
mov qword [rsp + 0x20], rax
lea rdx, [0x1400b6928]
call fcn.140017944
mov rax, qword [rdi + 8]
mov qword [0x1400ca7f0], rax
mov rax, qword [rdi]
mov qword [0x1400ca798], rax
call fcn.140050af4
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, [0x1400ab920]
lea rbp, [0x1400c82a8]
test eax, eax
je 0x140050dd7
mov rcx, qword [0x1400c82a8]
cmp rcx, rbp
je 0x140050de1
test byte [rcx + 0x44], 0x20
je 0x140050de1
mov rcx, qword [rcx + 0x38]
mov edx, 0xa
mov r9d, eax
mov r8, r12
call fcn.140016c88
jmp 0x140050de1
mov dword [0x1400ca7a8], 1
call sym.spoolsv.exe_PrvSplIsUpgrade
lea rdx, [rsp + 0x34]
mov dword [0x1400ca060], 0x5c005c
lea rcx, [0x1400ca064]
mov dword [rsp + 0x34], 0x10
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
nop dword [rax + rax]
test eax, eax
jne 0x140050e79
mov rax, qword [0x1400c82a8]
cmp rax, rbp
je 0x140050e4d
test byte [rax + 0x44], 0x20
je 0x140050e4d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400c82a8]
mov edx, 0xb
mov r9d, eax
mov r8, r12
mov rcx, qword [rcx + 0x38]
call fcn.140016c88
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
xor r8d, r8d
lea rcx, [0x1400b6768]
mov edx, eax
call fcn.14004a498
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
call fcn.140050530
mov ecx, eax
call fcn.1400794b8
mov ebx, eax
test eax, eax
jns 0x140050ed8
mov rcx, qword [0x1400c82a8]
cmp rcx, rbp
je 0x140050eb1
test byte [rcx + 0x44], 0x20
je 0x140050eb1
mov rcx, qword [rcx + 0x38]
mov edx, 0xc
mov r9d, eax
mov r8, r12
call fcn.140016ccc
mov ecx, ebx
call fcn.14001ef80
mov edx, eax
lea rcx, [0x1400b6878]
xor r8d, r8d
call fcn.14004a498
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
lea rdx, [0x1400ca794]
lea rcx, [0x1400ca7a0]
call sym.spoolsv.exe_PrvBuildOtherNamesFromMachineName
test eax, eax
jne 0x140050f32
mov rax, qword [0x1400c82a8]
cmp rax, rbp
je 0x140050f28
test byte [rax + 0x44], 0x20
je 0x140050f28
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400c82a8]
mov edx, 0xd
mov r9d, eax
mov r8, r12
mov rcx, qword [rcx + 0x38]
call fcn.140016c88
mov word [0x1400ca2a0], r14w
jmp 0x140050f58
mov r8, qword [0x1400ca7a0]
lea rcx, [0x1400ca2a4]
mov dword [0x1400ca2a0], 0x5c005c
mov edx, 0x102
mov r8, qword [r8 + 8]
call fcn.140023ee4
call fcn.14007c290
mov ebx, eax
test eax, eax
jns 0x140050fb0
mov rcx, qword [0x1400c82a8]
cmp rcx, rbp
je 0x140050f89
test byte [rcx + 0x44], 0x20
je 0x140050f89
mov rcx, qword [rcx + 0x38]
mov edx, 0xe
mov r9d, eax
mov r8, r12
call fcn.140016ccc
mov ecx, ebx
call fcn.14001ef80
mov edx, eax
lea rcx, [0x1400b67c8]
xor r8d, r8d
call fcn.14004a498
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
call fcn.14007c784
mov ebx, eax
test eax, eax
jns 0x140051008
mov rcx, qword [0x1400c82a8]
cmp rcx, rbp
je 0x140050fe1
test byte [rcx + 0x44], 0x20
je 0x140050fe1
mov rcx, qword [rcx + 0x38]
mov edx, 0xf
mov r9d, eax
mov r8, r12
call fcn.140016ccc
mov ecx, ebx
call fcn.14001ef80
mov edx, eax
lea rcx, [0x1400b68d8]
xor r8d, r8d
call fcn.14004a498
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.1400507a0
mov qword [0x1400ca100], rax
test rax, rax
jne 0x140051079
mov rcx, qword [0x1400c82a8]
cmp rcx, rbp
je 0x14005104d
test byte [rcx + 0x44], 0x20
je 0x14005104d
mov r9d, dword [rsp + 0x30]
lea edx, [rax + 0x10]
mov rcx, qword [rcx + 0x38]
mov r8, r12
call fcn.140016c88
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
xor r8d, r8d
lea rcx, [0x1400b6938]
mov edx, eax
call fcn.14004a498
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 [0x1400ca290], rax
test rax, rax
jne 0x1400510ff
mov rax, qword [0x1400c82a8]
cmp rax, rbp
je 0x1400510d3
test byte [rax + 0x44], 0x20
je 0x1400510d3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400c82a8]
mov edx, 0x11
mov r9d, eax
mov r8, r12
mov rcx, qword [rcx + 0x38]
call fcn.140016c88
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
xor r8d, r8d
lea rcx, [0x1400b6938]
mov edx, eax
call fcn.14004a498
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
call fcn.1400505d4
mov rcx, qword [0x1400ca0f0]
call fcn.14000ac90
mov dword [0x1400ca10c], 1
call fcn.14007c22c
call fcn.140060ea8
call fcn.140053bd8
call fcn.140053d88
call fcn.14007898c
call fcn.1400550bc
mov rcx, qword [0x1400ca110]
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 [0x1400ca180], 1
je 0x140051178
lea rax, [rsp + 0x1e0]
mov r9d, 1
lea rdx, [0x1400b6818]
mov qword [rsp + 0x20], rax
call fcn.140017944
call fcn.140052010
int3