Function at 0x140001940
Capabilities:
Connect socket
Initialize winsock library
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rsi, rcx
xor r12d, r12d
mov r14, qword [rcx + 0x10]
movabs r13, 0x7fffffffffffffff
mov rax, r13
sub rax, r14
cmp rax, 0xd
jb 0x140002068
cmp qword [rcx + 0x18], 0x10
jb 0x1400019a6
mov rsi, qword [rcx]
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], r12
lea r15, [r14 + 0xd]
mov ebx, send
lea rdi, [rbp - 0x28]
lea eax, [rbx + 7]
lea rdx, [rbx - 0x10]
cmp r15, rbx
jbe 0x140001a39
mov rbx, r15
or rbx, 0xf
cmp rbx, r13
jbe 0x1400019dc
mov rbx, r13
jmp 0x1400019e3
cmp rbx, rax
cmovb rbx, rax
mov rcx, rbx
add rcx, 1
cmovb rcx, rdx
cmp rcx, 0x1000
jb 0x140001a23
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000206e
mov rcx, rax
call fcn.1400030cc
test rax, rax
je 0x140002023
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140001a35
test rcx, rcx
je 0x140001a32
call fcn.1400030cc
mov rdi, rax
jmp 0x140001a35
mov rdi, r12
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x10], rbx
movsd xmm0, qword [str._updateIp_ip]
movsd qword [rdi], xmm0
mov eax, dword [0x140004580]
mov dword [rdi + 8], eax
movzx eax, byte [0x140004584]
mov byte [rdi + 0xc], al
lea rcx, [rdi + 0xd]
mov r8, r14
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + r15], r12b
mov qword [rsp + 0x70], r12
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], send
mov byte [rsp + 0x70], 0
mov r8d, send
lea rdx, str.zeis.itsarin.tech
lea rcx, [rsp + 0x70]
call fcn.1400024b0
nop
mov rax, r13
mov r13, qword [rbp - 0x18]
sub rax, r13
cmp rax, 4
jb 0x140002074
lea r15, [rbp - 0x28]
mov rsi, qword [rbp - 0x28]
mov r12, qword [rbp - 0x10]
cmp r12, 0x10
cmovae r15, rsi
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
lea r14, [r13 + 4]
mov edi, send
lea rbx, [rsp + 0x30]
cmp r14, rdi
jbe 0x140001b75
mov rdi, r14
or rdi, 0xf
movabs rcx, 0x7fffffffffffffff
cmp rdi, rcx
jbe 0x140001b0c
mov rdi, rcx
jmp 0x140001b19
cmp rdi, 0x16
mov ecx, socket
cmovb rdi, rcx
mov rcx, rdi
add rcx, 1
mov rdx, 0xffffffffffffffff
cmovb rcx, rdx
cmp rcx, 0x1000
jb 0x140001b63
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140002062
mov rcx, rax
call fcn.1400030cc
test rax, rax
je 0x140001b5c
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140001b70
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x140001b6d
call fcn.1400030cc
mov rbx, rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], rdi
mov dword [rbx], 0x20544547
lea rcx, [rbx + 4]
mov r8, r13
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + r14], 0
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 0x11
jb 0x140001bea
lea rax, [rcx + 0x11]
mov qword [rsp + 0x40], rax
lea rbx, [rsp + 0x30]
cmp rdx, 0x10
cmovae rbx, qword [rsp + 0x30]
add rbx, rcx
mov r8d, send
lea rdx, str._HTTP_1.1_r_nHost:
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x11], 0
lea rax, [rsp + 0x30]
jmp 0x140001c09
mov qword [rsp + 0x20], send
lea r9, str._HTTP_1.1_r_nHost:
mov edx, send
lea rcx, [rsp + 0x30]
call fcn.140002940
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x60], xmm1
xor edi, edi
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], send
mov byte [rax], dil
lea r9, [rsp + 0x70]
lea r8, [rbp - 0x70]
lea rcx, [rsp + 0x50]
call fcn.140002ad0
nop
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov rax, rdx
sub rax, rcx
cmp rax, 0x17
jb 0x140001c8c
lea rax, [rcx + 0x17]
mov qword [rsp + 0x60], rax
lea rbx, [rsp + 0x50]
cmp rdx, 0x10
cmovae rbx, qword [rsp + 0x50]
add rbx, rcx
lea r8d, [rdi + 0x17]
lea rdx, str._r_nConnection:_close_r_n_r_n
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x17], dil
lea rax, [rsp + 0x50]
jmp 0x140001cab
mov qword [rsp + 0x20], reloc.WS2_32.dll_socket
lea r9, str._r_nConnection:_close_r_n_r_n
mov edx, reloc.WS2_32.dll_socket
lea rcx, [rsp + 0x50]
call fcn.140002940
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x30], rdi
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x38], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], send
mov byte [rax], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140001d15
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001d10
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001d10
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003108
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], send
mov byte [rsp + 0x50], 0
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x140001d67
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001d61
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001d61
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003108
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140001da7
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001da2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001da2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003108
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], send
mov byte [rsp + 0x30], 0
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x140001df9
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001df4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001df4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003108
mov qword [rbp - 0x50], rdi
mov ecx, 0x202
lea rdx, [rbp + 0x10]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140001e38
lea rdx, str.WSAStartup_failed
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002660
mov rcx, rax
lea rdx, [0x140002830]
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]
jmp 0x140001fa9
lea r9, [rbp - 0x50]
xor r8d, r8d
lea rdx, str.5899
lea rcx, str.zeis.itsarin.tech
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x140001e85
lea rdx, str.getaddrinfo_failed
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002660
mov rcx, rax
lea rdx, [0x140002830]
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]
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x140001fa9
mov edx, 1
lea ecx, [rdx + 1]
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001ee5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
lea rdx, str.Error_creating_socket:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002660
mov rcx, rax
mov edx, ebx
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___int____ptr64]
mov rcx, rax
lea rdx, [0x140002830]
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 rcx, qword [rbp - 0x50]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x140001fa1
mov rbx, qword [rbp - 0x50]
mov r8, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x20]
lea rcx, [rbp - 8]
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp - 8]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140001f53
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Error_connecting_to_server:
mov ebx, eax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002660
mov rcx, rax
mov edx, ebx
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___int____ptr64]
mov rcx, rax
lea rdx, [0x140002830]
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]
jmp 0x140001f98
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 0x10
cmovae rdx, qword [rbp - 0x48]
xor r9d, r9d
mov r8d, dword [rbp - 0x38]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x140001f85
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Error_sending_request:
jmp 0x140001f28
lea rdx, str.IP_Updated__n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002660
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor edi, edi
mov rdx, qword [rbp - 0x30]
cmp rdx, 0x10
jb 0x140001fe7
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001fe2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001fe2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003108
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x30], send
mov byte [rbp - 0x48], 0
cmp r12, 0x10
jb 0x140002032
lea rdx, [r12 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x14000202a
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000202a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.140003108
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140002e10
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140001100
nop
call fcn.1400011a0
int3
call fcn.140001100
nop
call fcn.1400011a0
int3