Function at 0x140001c00
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x2e0]
sub rsp, 0x3e0
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
mov rbx, rdx
mov r14, rcx
xor r15d, r15d
mov dword [rsp + 0x50], r15d
xor edx, edx
mov r8d, 0x118
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x140006898]
mov qword [rbp - 0x60], rax
lea rax, [0x140006750]
mov qword [rbp - 0x50], rax
lea rcx, [rbp + 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x50], 1
xor r8d, r8d
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
nop
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea r12, vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x60], r12
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb8]
mov dword [rbp + rcx - 0x64], edx
lea rax, [rbp - 0x48]
mov qword [rbp - 0x70], rax
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x48], rax
mov byte [rbp + 0x34], r15b
mov byte [rbp + 0x29], r15b
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x38], r15
mov rax, qword [0x14000ab10]
mov qword [rbp + 0x2c], rax
mov qword [rbp + 0x20], r15
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140001d02
mov rdx, qword [rbx]
mov r8d, 0x21
lea rcx, [rbp - 0x48]
call fcn.1400037a0
xor r8d, r8d
test rax, rax
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x60]
je 0x140001d32
add rcx, rax
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
jmp 0x140001d40
add rcx, rax
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
cmp qword [rbp + 0x38], 0
je 0x1400020ce
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r15w
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r15w
cmp qword [rbx + 0x18], 0x10
jb 0x140001d87
mov rbx, qword [rbx]
lea rdx, [rbp + 0xc0]
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__To_wide]
test eax, eax
jne 0x140001da9
lea rcx, str.invalid_char_filename_argument
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_]
int3
lea rax, [rbp + 0xc0]
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop word [rax + rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x140001dc0
mov rcx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x70]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x140001e17
lea rdi, [rcx + rdx]
mov qword [rsp + 0x68], rdi
lea rbx, [rsp + 0x58]
cmp r8, 8
cmovae rbx, qword [rsp + 0x58]
lea rcx, [rbx + rcx*2]
lea r8, [rdx + rdx]
lea rdx, [rbp + 0xc0]
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r15w
lea rax, [rsp + 0x58]
jmp 0x140001e2d
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0xc0]
lea rcx, [rsp + 0x58]
call fcn.1400045a0
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140003c50
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140001e80
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001e7b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001e7b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400049b0
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r15w
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
lea rdx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll__Stat]
mov ebx, r15d
cmp eax, 8
je 0x140001ee1
cmp eax, 0xffffffff
je 0x140001ee1
cmp eax, 1
jne 0x140001ee1
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll__File_size]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001eff
mov dword [rbp - 0x80], 1
lea rax, [0x14000a048]
mov qword [rbp - 0x78], rax
movaps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rbp - 0x80], xmm0
mov ebx, dword [rbp - 0x80]
test ebx, ebx
jne 0x140002177
lea eax, [rsi + 1]
mov dword [rsp + 0x50], eax
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140001f57
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001f4e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001f4e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400049b0
mov eax, dword [rsp + 0x50]
inc eax
movsxd rcx, eax
call fcn.1400049f4
mov rdi, rax
movsxd r8, dword [rsp + 0x50]
mov rdx, rax
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::read_char____ptr64__long_long___int64_____ptr64]
xor r9d, r9d
lea r8d, [r9 + 4]
lea rdx, [rsp + 0x50]
mov rcx, qword [r14]
call qword [sym.imp.WS2_32.dll_send]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
mov r8d, dword [rsp + 0x50]
mov rdx, rdi
mov rcx, qword [r14]
call qword [sym.imp.WS2_32.dll_send]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
mov r8d, dword [rsp + 0x50]
mov rdx, rdi
mov rcx, qword [r14]
call qword [sym.imp.WS2_32.dll_send]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [r14]
call qword [sym.imp.WS2_32.dll_closesocket]
lea rcx, [rbp - 0x48]
cmp qword [rbp + 0x38], 0
je 0x140002033
lea rbx, [rbp - 0x48]
call fcn.1400036b0
test al, al
cmove rbx, r15
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test eax, eax
cmovne rbx, r15
mov byte [rbp + 0x34], 0
mov byte [rbp + 0x29], 0
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x38], r15
mov rax, qword [0x14000ab10]
mov qword [rbp + 0x2c], rax
mov qword [rbp + 0x20], r15
test rbx, rbx
jne 0x140002070
jmp 0x140002054
mov byte [rbp + 0x34], 0
mov byte [rbp + 0x29], 0
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x38], r15
mov rax, qword [0x14000ab10]
mov qword [rbp + 0x2c], rax
mov qword [rbp + 0x20], r15
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x60]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rcx, rdi
call fcn.1400049b0
cmp qword [rbp + 0x38], 0
je 0x1400020ce
lea rbx, [rbp - 0x48]
lea rcx, [rbp - 0x48]
call fcn.1400036b0
test al, al
cmove rbx, r15
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test eax, eax
cmovne rbx, r15
mov byte [rbp + 0x34], 0
mov byte [rbp + 0x29], 0
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x38], r15
mov rax, qword [0x14000ab10]
mov qword [rbp + 0x2c], rax
mov qword [rbp + 0x20], r15
test rbx, rbx
jne 0x140002110
jmp 0x1400020f3
mov byte [rbp + 0x34], 0
mov byte [rbp + 0x29], 0
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x38], r15
mov rax, qword [0x14000ab10]
mov qword [rbp + 0x2c], rax
mov qword [rbp + 0x20], r15
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x60]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x60], r12
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb8]
mov dword [rbp + rcx - 0x64], edx
lea rcx, [rbp - 0x48]
call fcn.1400033e0
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x58]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.140004990
lea r11, [rsp + 0x3e0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.140001b00
nop
int3