Function at 0x140029a90
Capabilities:
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xbb0]
sub rsp, 0xcb0
mov rax, qword [0x1400bc0f8]
xor rax, rsp
mov qword [rbp + 0xba0], rax
mov r15, r9
mov r12, r8
mov edi, edx
mov rbx, rcx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
xor r13d, r13d
mov dword [rsp + 0x30], r13d
xor edx, edx
mov r8d, 0xc0
lea rcx, [rbp + 0x10]
call fcn.14004ca60
lea rcx, [rbp + 0x10]
call fcn.140044690
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], rax
xor edx, edx
lea rcx, [rbp - 0x38]
call fcn.140041910
nop
xor ecx, ecx
call fcn.1400637b4
mov ecx, 0x202
lea rdx, [rbp + 0xd0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140029b5c
lea rcx, [rbp - 0x38]
call fcn.140041e40
nop
lea rcx, [rbp + 0x10]
call fcn.140024a30
nop
mov rcx, r12
call fcn.1400154e0
nop
mov rcx, r15
call fcn.1400154e0
jmp 0x14002a251
xor r8d, r8d
mov r14d, 2
mov edx, r14d
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
mov qword [rsp + 0x38], rax
mov dword [rbp - 0x50], 1
mov word [rbp - 0x48], r14w
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 0x44], eax
movzx ecx, di
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x46], ax
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x50]
mov edx, 0xffff
lea r8d, [r14 + 0x1e]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r8d, [r14 + 0xe]
lea rdx, [rbp - 0x48]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_bind]
mov dword [rbp - 0x4c], reloc.WS2_32.dll_recv
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x7a0]
call fcn.14004ca60
lea r9, [rsp + 0x30]
lea r8d, [r14 + 8]
lea rdx, [rbp + 0x270]
mov rcx, rbx
call fcn.140028c00
test al, al
je 0x14002a1a0
nop word [rax + rax]
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x3a0]
call fcn.14004ca60
lea rax, [rbp - 0x4c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x400
lea rdx, [rbp + 0x3a0]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recvfrom]
movsxd r14, eax
cmp r14d, 0xffffffff
je 0x14002a190
mov ecx, dword [rsp + 0x54]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, 0x18
call fcn.14003fb30
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140029c94
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rcx
mov rcx, rax
call fcn.140023aa0
mov rdi, rax
jmp 0x140029c96
xor edi, edi
mov rcx, r14
call fcn.14003f754
mov rsi, rax
mov r8, r14
lea rdx, [rbp + 0x3a0]
mov rcx, rax
call fcn.14004c3b0
mov r9d, r14d
mov r8, rsi
lea rdx, [rbp - 0x10]
mov rcx, rdi
call fcn.140024c30
nop
test rdi, rdi
je 0x140029ce0
mov rcx, rdi
call fcn.140024bb0
mov edx, 0x18
mov rcx, rdi
call fcn.14003f74c
mov rcx, rsi
call fcn.14003f74c
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae rdx, qword [rbp - 0x10]
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xor r14d, r14d
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], r14
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rdx + r8], r14b
jne 0x140029d10
lea rcx, [rbp - 0x70]
call fcn.14001ced0
nop
mov r9b, 1
lea r8, [rbp - 0x38]
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0x10]
call fcn.140046540
movzx ebx, al
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x140029d75
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140029d70
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002a289
call fcn.14003f74c
test bl, bl
je 0x14002a150
lea rdx, [0x14008a918]
lea rcx, [rbp - 0x38]
call fcn.140042340
mov rcx, rax
call fcn.1400432a0
test al, al
jne 0x140029e23
lea rdx, [0x14008a918]
lea rcx, [rbp - 0x38]
call fcn.140042340
mov rcx, rax
lea rdx, [rbp - 0x70]
call fcn.140042ab0
nop
or r13d, 1
mov dword [rsp + 0x30], r13d
mov rdx, rax
cmp qword [rax + 0x18], 0x10
jb 0x140029dd0
mov rdx, qword [rax]
cmp qword [rax + 0x10], 5
jne 0x140029e23
mov rcx, r14
lea r8, str.getip
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x140029dfa
cmp rcx, 5
jne 0x140029de1
mov eax, r14d
jmp 0x140029dff
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140029e23
lea rdx, [0x14008a928]
lea rcx, [rbp - 0x38]
call fcn.140042340
mov rcx, rax
call fcn.1400432a0
test al, al
jne 0x140029e23
mov bl, 1
jmp 0x140029e25
xor bl, bl
test r13b, 1
je 0x140029e6a
and r13d, 0xfffffffe
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x140029e6a
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140029e65
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002a28f
call fcn.14003f74c
test bl, bl
je 0x14002a150
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x3a0]
call fcn.14004ca60
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], 7
mov qword [rbp - 0x78], reloc.WS2_32.dll_ntohs
mov eax, dword [str.http:__]
mov dword [rsp + 0x70], eax
movzx eax, word [0x1400889b4]
mov word [rsp + 0x74], ax
movzx eax, byte [0x1400889b6]
mov byte [rsp + 0x76], al
mov byte [rsp + 0x77], 0
lea rax, [rbp + 0x270]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140029ed2
cmp rbx, 8
ja 0x140029f08
lea rax, [rbx + 7]
mov qword [rbp - 0x80], rax
lea rdi, [rsp + 0x70]
lea rcx, [rdi + 7]
mov r8, rbx
lea rdx, [rbp + 0x270]
call fcn.14004c3b0
mov byte [rdi + rbx + 7], 0
jmp 0x140029f24
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x270]
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.140015de0
mov rcx, qword [rbp - 0x80]
mov rdx, qword [rbp - 0x78]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x140029f57
lea rax, [rcx + 1]
mov qword [rbp - 0x80], rax
lea rax, [rsp + 0x70]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x70]
mov word [rax + rcx], 0x3a
jmp 0x140029f78
mov qword [rsp + 0x20], 1
lea r9, [0x1400892dc]
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rsp + 0x70]
call fcn.140015de0
mov r9, r15
cmp qword [r15 + 0x18], 0x10
jb 0x140029f85
mov r9, qword [r15]
mov rdi, qword [r15 + 0x10]
mov rcx, qword [rbp - 0x80]
mov rdx, qword [rbp - 0x78]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x140029fca
lea rax, [rcx + rdi]
mov qword [rbp - 0x80], rax
lea rbx, [rsp + 0x70]
cmp rdx, 0x10
cmovae rbx, qword [rsp + 0x70]
add rbx, rcx
mov r8, rdi
mov rdx, r9
mov rcx, rbx
call fcn.14004c3b0
mov byte [rbx + rdi], 0
jmp 0x140029fdf
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.140015de0
mov r9, r12
cmp qword [r12 + 0x18], 0x10
jb 0x140029fee
mov r9, qword [r12]
lea r8, [rsp + 0x70]
cmp qword [rbp - 0x78], 0x10
cmovae r8, qword [rsp + 0x70]
lea rdx, str._cmd_:_getip___ip_:__s___ver_:__s_
lea rcx, [rbp + 0x7a0]
call fcn.140015050
mov ecx, 0x18
call fcn.14003fb30
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14002a03e
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rcx
mov rcx, rax
call fcn.140023aa0
mov rbx, rax
jmp 0x14002a041
mov rbx, r14
lea rax, [rbp + 0x7a0]
mov r9, 0xffffffffffffffff
nop
inc r9
cmp byte [rax + r9], 0
jne 0x14002a050
lea r8, [rbp + 0x7a0]
lea rdx, [rbp - 0x70]
mov rcx, rbx
call fcn.140024fd0
test rbx, rbx
je 0x14002a087
mov rcx, rbx
call fcn.140024bb0
mov edx, 0x18
mov rcx, rbx
call fcn.14003f74c
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 0x10
cmovae rdx, qword [rbp - 0x70]
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, dword [rbp - 0x60]
mov rsi, qword [rsp + 0x38]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x14002a0c7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x14002a102
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002a0fd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002a295
call fcn.14003f74c
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x70], 0
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x14002a155
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002a149
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002a29b
call fcn.14003f74c
jmp 0x14002a155
mov rsi, qword [rsp + 0x38]
mov rdx, qword [rbp + 8]
cmp rdx, 0x10
jb 0x14002a190
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002a18b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002a2a1
call fcn.14003f74c
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140029c10
lea rcx, [rbp - 0x38]
call fcn.140041e40
nop
lea rcx, [rbp + 0x10]
call fcn.140024a30
nop
mov rdx, qword [r12 + 0x18]
cmp rdx, 0x10
jb 0x14002a1f0
mov rcx, qword [r12]
inc rdx
cmp rdx, 0x1000
jb 0x14002a1eb
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002a27d
mov rcx, r8
call fcn.14003f74c
mov qword [r12 + 0x10], 0
mov qword [r12 + 0x18], reloc.WS2_32.dll_ntohs
mov byte [r12], 0
mov rdx, qword [r15 + 0x18]
cmp rdx, 0x10
jb 0x14002a23d
inc rdx
mov rcx, qword [r15]
cmp rdx, 0x1000
jb 0x14002a238
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002a283
mov rcx, r8
call fcn.14003f74c
mov qword [r15 + 0x10], 0
mov qword [r15 + 0x18], reloc.WS2_32.dll_ntohs
mov byte [r15], 0
xor al, al
mov rcx, qword [rbp + 0xba0]
xor rcx, rsp
call fcn.14003fb10
mov rbx, qword [rsp + 0xcf0]
add rsp, 0xcb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140062acc
nop
call fcn.140062acc
nop
call fcn.140062acc
int3
call fcn.140062acc
nop
call fcn.140062acc
nop
call fcn.140062acc
nop
call fcn.140062acc
int3