Function at 0x140002280
Capabilities:
Encode data using xor
Initialize winsock library
Resolve dns

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x1f8]
sub rsp, 0x2d0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140040080]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rsi, rdx
mov r14, rcx
mov qword [rsp + 0x70], rcx
mov qword [rbp - 0x70], rdx
xor r12d, r12d
mov dword [rbp - 0x78], r12d
mov qword [rbp - 0x80], rcx
mov qword [rcx + 0x10], r12
mov qword [rcx + 0x18], recv
mov byte [rcx], r12b
lea rdi, [rcx + 0x30]
mov qword [rsp + 0x58], rdi
lea rax, [0x14003a8d0]
mov qword [rdi], rax
lea r15, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov qword [rdi + 0xb0], r15
mov dword [rbp - 0x78], 1
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rcx + rdi], rax
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rcx + rdi - 4], edx
mov qword [rdi + 8], r12
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
lea rdx, [rdi + 0x10]
call fcn.1400046c0
nop
mov rax, qword [rdi]
movsxd rdx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rdx + rdi], rax
mov rax, qword [rdi]
movsxd rdx, dword [rax + 4]
lea r8d, [rdx - 0xb0]
mov dword [rdx + rdi - 4], r8d
lea rcx, [rdi + 0x10]
call fcn.140004500
nop
lea rdi, [r14 + 0x140]
mov qword [rsp + 0x58], rdi
lea rax, [0x14003a8c8]
mov qword [rdi], rax
mov qword [rdi + 0xa8], r15
mov dword [rbp - 0x78], 5
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rcx + rdi], rax
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rcx + rdi - 4], edx
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
lea rdx, [rdi + 8]
call fcn.1400046c0
nop
mov rax, qword [rdi]
movsxd rdx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rdx + rdi], rax
mov rax, qword [rdi]
movsxd rdx, dword [rax + 4]
lea r8d, [rdx - 0xa8]
mov dword [rdx + rdi - 4], r8d
lea rcx, [rdi + 8]
call fcn.140004500
nop
mov ecx, 0x102
lea rdx, [rbp - 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400025fd
xor eax, eax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x60], 1
mov rcx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x14000243f
mov rcx, qword [rsi]
lea r9, [rbp - 0x78]
lea r8, [rbp - 0x68]
lea rdx, str.http
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov edi, 2
test eax, eax
je 0x1400024de
movdqa xmm0, xmmword [0x14003afe0]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x50], 0x1ce
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x400
lea rbx, [0x140042de0]
mov qword [rsp + 0x20], rbx
mov r9d, 0x400
mov r8d, eax
xor edx, edx
mov ecx, 0x12ff
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
cmp byte [rsp + 0x51], 0
je 0x1400024c5
mov rax, r12
nop
lea ecx, [rax - 0x42]
xor byte [rsp + rax + 0x40], cl
inc rax
cmp rax, 0x11
jb 0x1400024b0
mov byte [rsp + 0x51], 0
mov ecx, edi
call fcn.14000dcb4
mov rcx, rax
mov r8, rbx
lea rdx, [rsp + 0x40]
call fcn.1400011f0
jmp 0x14000254e
mov rbx, qword [rbp - 0x78]
test rbx, rbx
je 0x14000251e
nop word [rax + rax]
mov rax, qword [rbx + 0x20]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov r8, rax
mov edx, 0x41
lea rcx, [rbp + 0x170]
call fcn.140010ad4
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x1400024f0
mov rbx, qword [rbp - 0x78]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
lea rax, [rbp + 0x170]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140002535
lea rdx, [rbp + 0x170]
mov rcx, rsi
call fcn.140004070
mov rcx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x14000255b
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [r14 + 0x2254], eax
mov ecx, 0x1bb
call qword [sym.imp.WS2_32.dll_htons]
mov word [r14 + 0x2252], ax
mov word [r14 + 0x2250], di
mov qword [0x140042db8], r14
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x1400025c0
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x1400025bb
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002605
mov rcx, r8
call fcn.140009744
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], recv
mov byte [rsi], 0
mov rax, r14
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140009720
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
xor ecx, ecx
call fcn.14000da50
nop
call fcn.1400119b4
int3