Function at 0x140012010
Capabilities:
Check os version
Execute command
Get local ipv4 addresses
Initialize winsock library

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x878
mov rsi, qword [sym.imp.libssp_0.dll___stack_chk_guard]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10
mov rax, qword [rsi]
mov qword [rsp + 0x868], rax
xor eax, eax
lea rsi, [rsp + 0x78]
mov qword [rsp + 0x48], rcx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x78], 0
mov qword [rsp + 0x50], rsi
call sym.GetAdaptersAddresses
mov ecx, dword [rsp + 0x78]
call sym.g_malloc
mov qword [rsp + 0x20], rsi
xor r8d, r8d
xor ecx, ecx
mov r9, rax
mov edx, 0x10
mov r15, rax
call sym.GetAdaptersAddresses
test eax, eax
jne 0x140012506
test r15, r15
je 0x14001253c
lea rdx, [rsp + 0x120]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400124d1
mov qword [rsp + 0x58], r15
mov rbp, qword [sym.imp.WS2_32.dll_WSAAddressToStringA]
mov rsi, r15
lea r12, [rsp + 0x70]
nop dword [rax]
mov ecx, 0x38
call sym.g_malloc0
mov ecx, 0x10
mov rbx, rax
call sym.g_malloc0
mov r9d, 0xffffffff
xor edx, edx
mov ecx, 0xfde9
mov qword [r12], rax
mov qword [rax + 8], rbx
mov r15, qword [rsi + 0x48]
mov r12, qword [r12]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x38], 0
mov r8, r15
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rcx, eax
mov r13, rcx
add rcx, 1
call sym.g_malloc
xor edx, edx
mov dword [rsp + 0x28], r13d
mov r8, r15
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov ecx, 0xfde9
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [rbx], rdi
mov edx, dword [rsi + 0x58]
test edx, edx
jne 0x140012478
mov qword [rsp + 0x78], 0
mov r15, qword [rsi + 0x18]
lea r13, str.failed_address_presentation_form_conversion
mov r14, qword [rsp + 0x50]
test r15, r15
je 0x14001228f
mov qword [rsp + 0x40], rbx
mov rbx, r15
jmp 0x1400121cd
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x140012278
mov rcx, qword [rbx + 0x10]
movzx eax, word [rcx]
cmp ax, 2
je 0x1400121e0
cmp ax, 0x17
jne 0x1400121c0
lea rdi, [rsp + 0x810]
lea rax, [rsp + 0x6c]
mov dword [rsp + 0x6c], 0x57
xor r8d, r8d
mov edx, dword [rbx + 0x18]
mov r9, rdi
mov qword [rsp + 0x20], rax
call rbp
test eax, eax
jne 0x140012300
mov rcx, rdi
call sym.g_strdup
mov r15, rax
test rax, rax
je 0x1400121c0
mov ecx, 0x18
call sym.g_malloc0
mov ecx, 0x10
mov rdi, rax
call sym.g_malloc0
mov qword [r14], rax
mov qword [rax + 8], rdi
mov r14, qword [r14]
mov qword [rdi], r15
movzx eax, byte [rbx + 0x38]
mov qword [rdi + 0x10], rax
mov rax, qword [rbx + 0x10]
movzx eax, word [rax]
cmp ax, 2
je 0x1400122f0
cmp ax, 0x17
jne 0x1400121c0
mov dword [rdi + 8], 1
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1400121cd
mov rax, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x40]
test rax, rax
je 0x14001228f
mov byte [rbx + 0x18], 1
mov qword [rbx + 0x20], rax
cmp byte [rbx + 0x28], 0
je 0x140012338
mov rsi, qword [rsi + 8]
test rsi, rsi
jne 0x1400120d8
mov r15, qword [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rbx, qword [rsp + 0x70]
mov rcx, r15
call sym.g_free
mov rsi, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov rax, qword [rsp + 0x868]
sub rax, qword [rsi]
jne 0x140012543
mov rax, rbx
add rsp, 0x878
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov dword [rdi + 8], 0
jmp 0x1400121c0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x28], r13
mov rcx, qword [rsp + 0x48]
lea r9, str.guest_addr_to_str
mov dword [rsp + 0x20], eax
mov r8d, 0x634
lea rdx, str..._qga_commands_win32.c
call dbg.error_setg_win32_internal
jmp 0x1400121c0
mov ecx, 0x40
call sym.g_malloc0
mov rdi, qword [rsi + 0x10]
mov dword [rsp + 0x80], 0x94
lea rcx, [rsp + 0x80]
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x84], 5
jbe 0x1400124c0
lea rcx, str.iphlpapi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.GetIfEntry2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rsp + 0x40], rax
je 0x1400124c0
lea r15, [rsp + 0x2c0]
mov edx, 0x200
mov r9, rdi
mov rcx, r15
lea r8, str.device_tcpip__s
call sym.__mingw_snwprintf
xor eax, eax
lea rdx, [rsp + 0x6c]
mov rcx, r15
mov word [rsp + 0x6be], ax
call sym.GetAdapterIndex
test eax, eax
jne 0x1400124c0
mov edx, dword [rsp + 0x6c]
cmp edx, 0xffffffff
je 0x1400124c0
xor eax, eax
mov ecx, 0xa9
mov rdi, r15
mov r10, qword [rsp + 0x40]
rep stosq qword [rdi], rax
mov dword [rsp + 0x2c8], edx
mov rcx, r15
call r10
test eax, eax
jne 0x1400124c0
movdqu xmm0, xmmword [rsp + 0x7b8]
mov qword [rbx + 0x30], r13
movdqu xmm3, xmmword [rsp + 0x7c8]
mov byte [rbx + 0x28], 1
movdqu xmm1, xmmword [rsp + 0x798]
movdqu xmm2, xmmword [rsp + 0x788]
movdqu xmm4, xmmword [rsp + 0x778]
shufpd xmm0, xmm3, 1
movups xmmword [r13 + 0x20], xmm0
movdqu xmm0, xmmword [rsp + 0x7d8]
shufpd xmm1, xmm2, 2
movups xmmword [r13 + 0x10], xmm1
shufpd xmm0, xmm0, 1
movups xmmword [r13], xmm4
movups xmmword [r13 + 0x30], xmm0
jmp 0x140012299
movzx eax, byte [rsi + 0x55]
movzx r9d, byte [rsi + 0x52]
lea rcx, str._02x:_02x:_02x:_02x:_02x:_02x
movzx r8d, byte [rsi + 0x51]
movzx edx, byte [rsi + 0x50]
mov dword [rsp + 0x30], eax
movzx eax, byte [rsi + 0x54]
mov dword [rsp + 0x28], eax
movzx eax, byte [rsi + 0x53]
mov dword [rsp + 0x20], eax
call sym.g_strdup_printf
mov byte [rbx + 8], 1
mov qword [rbx + 0x10], rax
jmp 0x14001218a
mov byte [rbx + 0x28], 0
mov rcx, r13
call sym.g_free
jmp 0x140012299
lea rsi, str.failed_socket_startup
mov dword [rsp + 0x20], eax
xor ebx, ebx
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x28], rsi
lea r9, global___func__.124
mov r8d, 0x699
lea rdx, str..._qga_commands_win32.c
call dbg.error_setg_win32_internal
jmp 0x1400122b6
lea rsi, str.failed_to_get_adapters_addresses
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x48]
lea r9, str.guest_get_adapters_addresses
mov qword [rsp + 0x28], rsi
mov r8d, 0x611
lea rdx, str..._qga_commands_win32.c
call dbg.error_setg_win32_internal
mov rcx, r15
call sym.g_free
xor ebx, ebx
jmp 0x1400122be
call sym.__stack_chk_fail
nop
nop dword [rax]