Function at 0x140012210
Capabilities:
Get session user name
Initialize winsock library
Send data
Send data on socket
Set socket configuration

Disassembly:
jmp 0x140012210
push rdi
sub rsp, 0x860
lea rdi, [rsp + 0x30]
mov ecx, 0x20c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1401fc100]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_SetConsoleCP]
mov dword [rsp + 0x164], 0x101
lea rdx, [rsp + 0x164]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x140012286
lea rdx, [rsp + 0x40]
lea rcx, [0x1401fea10]
call fcn.140001343
nop
xor ecx, ecx
call fcn.1400116b0
mov qword [rsp + 0x188], rax
lea rcx, [rsp + 0x188]
call fcn.140011690
mov qword [rsp + 0x198], rax
mov rax, qword [rsp + 0x198]
mov edx, dword [rax]
lea rcx, [rsp + 0x1a0]
call fcn.1400019c4
mov qword [rsp + 0x708], rax
mov rax, qword [rsp + 0x708]
mov qword [rsp + 0x710], rax
mov r8, qword [rsp + 0x710]
lea rdx, [0x1401fea10]
lea rcx, [rsp + 0x1c8]
call fcn.140003fc6
mov qword [rsp + 0x718], rax
mov rdx, qword [rsp + 0x718]
lea rcx, [0x1401fea58]
call fcn.140002784
lea rcx, [rsp + 0x1c8]
call fcn.14000203b
nop
lea rcx, [rsp + 0x1a0]
call fcn.14000203b
nop
lea rdx, str._________________________n________________n______________________n_______________________n_______________________n_____________________________n_____________________________________________________________________n_________________________________________n______________________________________n_______________________________________________n_______________________________________________n______________________________________________n______________________________________________v1_n_n_n
lea rcx, [0x1401ff280]
call fcn.14000198d
mov qword [rsp + 0x720], rax
lea rdx, [0x14000135c]
mov rcx, qword [rsp + 0x720]
call fcn.140003c15
nop
lea r8, [0x1401fea58]
lea rdx, str._Votre_mot_de_passe_est_
lea rcx, [rsp + 0x1f0]
call fcn.140001389
mov qword [rsp + 0x728], rax
mov rax, qword [rsp + 0x728]
mov qword [rsp + 0x730], rax
lea r8, [0x1401adf28]
mov rdx, qword [rsp + 0x730]
lea rcx, [rsp + 0x218]
call fcn.140005ea7
mov qword [rsp + 0x738], rax
mov rax, qword [rsp + 0x738]
mov qword [rsp + 0x740], rax
mov rdx, qword [rsp + 0x740]
lea rcx, [0x1401ff280]
call fcn.140005c1d
mov qword [rsp + 0x748], rax
lea r8, [0x1401fea58]
lea rdx, str._Les_autre_utilisateurs_doivent_faire_addmdp
lea rcx, [rsp + 0x240]
call fcn.140001389
mov qword [rsp + 0x750], rax
mov rax, qword [rsp + 0x750]
mov qword [rsp + 0x758], rax
lea r8, str._pour_pouvoir_communiquer_avec_vous._n
mov rdx, qword [rsp + 0x758]
lea rcx, [rsp + 0x268]
call fcn.140005ea7
mov qword [rsp + 0x760], rax
mov rax, qword [rsp + 0x760]
mov qword [rsp + 0x768], rax
mov rax, qword [rsp + 0x768]
mov qword [rsp + 0x770], rax
mov rdx, qword [rsp + 0x770]
mov rcx, qword [rsp + 0x748]
call fcn.140005c1d
lea rdx, str._Pour_pouvoir_reevoir_les_messages_des_autres_utilisateurs_faites_addmdp_leurmotdepasse_n
mov rcx, rax
call fcn.14000198d
lea rdx, str._Vous_pouvez_changer_votre_mot_de_passe_avec_la_commande_mdp_votrenouveaumdp_n
mov rcx, rax
call fcn.14000198d
mov qword [rsp + 0x778], rax
lea rdx, [0x14000135c]
mov rcx, qword [rsp + 0x778]
call fcn.140003c15
nop
lea rcx, [rsp + 0x268]
call fcn.14000203b
nop
lea rcx, [rsp + 0x240]
call fcn.14000203b
nop
lea rcx, [rsp + 0x218]
call fcn.14000203b
nop
lea rcx, [rsp + 0x1f0]
call fcn.14000203b
nop
lea rdx, [0x14000105a]
lea rcx, [rsp + 0x298]
call fcn.1400036e3
nop
xor eax, eax
cmp eax, 1
je 0x140012c3a
lea rax, [rsp + 0x2d0]
mov rdi, rax
xor eax, eax
mov ecx, 0x198
rep stosb byte [rdi], al
lea rdx, [rsp + 0x2d0]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14001257d
lea rdx, [0x1401adf50]
lea rcx, [0x1401ff280]
call fcn.14000198d
mov qword [rsp + 0x780], rax
lea rdx, [0x14000135c]
mov rcx, qword [rsp + 0x780]
call fcn.140003c15
nop
mov dword [rsp + 0x6a0], 1
lea rcx, [rsp + 0x298]
call fcn.140003747
mov eax, dword [rsp + 0x6a0]
jmp 0x140012c48
mov qword [rsp + 0x478], 0xffffffffffffffff
xor r8d, r8d
mov edx, 2
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x478], rax
cmp qword [rsp + 0x478], 0xffffffffffffffff
jne 0x140012609
lea rdx, str.An_error_occurred_when_creating_client_socket.
lea rcx, [0x1401ff280]
call fcn.14000198d
mov qword [rsp + 0x788], rax
lea rdx, [0x14000135c]
mov rcx, qword [rsp + 0x788]
call fcn.140003c15
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
mov dword [rsp + 0x6a4], 1
lea rcx, [rsp + 0x298]
call fcn.140003747
mov eax, dword [rsp + 0x6a4]
jmp 0x140012c48
mov byte [rsp + 0x484], 0x31
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0x484]
mov r8d, 0x20
mov edx, 0xffff
mov rcx, qword [rsp + 0x478]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x140012682
lea rdx, [0x1401adfa8]
lea rcx, [0x1401ff280]
call fcn.14000198d
mov qword [rsp + 0x790], rax
lea rdx, [0x14000135c]
mov rcx, qword [rsp + 0x790]
call fcn.140003c15
mov rcx, qword [rsp + 0x478]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
lea rax, [rsp + 0x4a8]
mov rdi, rax
xor eax, eax
mov ecx, recvfrom
rep stosb byte [rdi], al
mov eax, 2
mov word [rsp + 0x4a8], ax
mov cx, 0x378
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x4aa], ax
lea rcx, [0x1401fea80]
call fcn.140001839
mov rcx, rax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x4ac], eax
lea rcx, [rsp + 0x4d8]
call fcn.1400065d7
nop
lea rdx, [rsp + 0x4d8]
lea rcx, [0x1401ff180]
call fcn.140003fcb
nop
xor r8d, r8d
lea rdx, str.mdp
lea rcx, [rsp + 0x4d8]
call fcn.140003003
test rax, rax
jne 0x1400127da
lea rcx, [rsp + 0x4d8]
call fcn.140005939
mov r9, rax
mov r8d, 4
lea rdx, [rsp + 0x508]
lea rcx, [rsp + 0x4d8]
call fcn.140003bfc
mov qword [rsp + 0x798], rax
mov rdx, qword [rsp + 0x798]
lea rcx, [0x1401fea58]
call fcn.140002784
lea rcx, [rsp + 0x508]
call fcn.14000203b
nop
lea rdx, [0x1401ae020]
lea rcx, [0x1401ff280]
call fcn.14000198d
lea rdx, str._Votre_nouveau_mot_de_passe_est_dsormait_
mov rcx, rax
call fcn.14000198d
lea rdx, [0x1401fea58]
mov rcx, rax
call fcn.140005c1d
lea rdx, [0x1401adfe8]
mov rcx, rax
call fcn.14000198d
lea rdx, [0x1401adfe4]
mov rcx, rax
call fcn.14000198d
mov qword [rsp + 0x7a0], rax
lea rdx, [0x14000135c]
mov rcx, qword [rsp + 0x7a0]
call fcn.140003c15
nop
jmp 0x140012c27
xor r8d, r8d
lea rdx, str.addmdp
lea rcx, [rsp + 0x4d8]
call fcn.140003003
test rax, rax
jne 0x1400128ba
lea rcx, [rsp + 0x4d8]
call fcn.140005939
mov r9, rax
mov r8d, 7
lea rdx, [rsp + 0x538]
lea rcx, [rsp + 0x4d8]
call fcn.140003bfc
nop
lea rdx, [rsp + 0x538]
lea rcx, [0x1401fea38]
call fcn.140003d6e
lea rdx, [0x1401ae05c]
lea rcx, [0x1401ff280]
call fcn.14000198d
lea rdx, str._La_cl_
mov rcx, rax
call fcn.14000198d
lea rdx, [rsp + 0x538]
mov rcx, rax
call fcn.140005c1d
lea rdx, str._a_tait_ajout_n
mov rcx, rax
call fcn.14000198d
lea rdx, [0x1401ae030]
mov rcx, rax
call fcn.14000198d
mov qword [rsp + 0x7a8], rax
lea rdx, [0x14000135c]
mov rcx, qword [rsp + 0x7a8]
call fcn.140003c15
nop
lea rcx, [rsp + 0x538]
call fcn.14000203b
nop
jmp 0x140012c27
xor r8d, r8d
lea rdx, str.broadcastIp
lea rcx, [rsp + 0x4d8]
call fcn.140003003
test rax, rax
jne 0x1400129f0
lea rcx, [rsp + 0x4d8]
call fcn.140005939
mov r9, rax
mov r8d, recvfrom
lea rdx, [rsp + 0x568]
lea rcx, [rsp + 0x4d8]
call fcn.140003bfc
mov qword [rsp + 0x7b0], rax
mov rdx, qword [rsp + 0x7b0]
lea rcx, [0x1401fea80]
call fcn.140002784
lea rcx, [rsp + 0x568]
call fcn.14000203b
nop
lea rdx, [0x1401ae0a4]
lea rcx, [0x1401ff280]
call fcn.14000198d
lea rdx, str._Laddresse_de_broadcast_est_dsormait_
mov rcx, rax
call fcn.14000198d
mov qword [rsp + 0x7b8], rax
lea r8, [0x1401ae074]
lea rdx, [0x1401fea80]
lea rcx, [rsp + 0x590]
call fcn.1400053b7
mov qword [rsp + 0x7c0], rax
mov rax, qword [rsp + 0x7c0]
mov qword [rsp + 0x7c8], rax
mov rax, qword [rsp + 0x7c8]
mov qword [rsp + 0x7d0], rax
mov rdx, qword [rsp + 0x7d0]
mov rcx, qword [rsp + 0x7b8]
call fcn.140005c1d
lea rdx, [0x1401ae070]
mov rcx, rax
call fcn.14000198d
mov qword [rsp + 0x7d8], rax
lea rdx, [0x14000135c]
mov rcx, qword [rsp + 0x7d8]
call fcn.140003c15
nop
lea rcx, [rsp + 0x590]
call fcn.14000203b
nop
jmp 0x140012c27
lea rax, [rsp + 0x6a8]
mov qword [rsp + 0x6d0], rax
lea rdx, [0x1401fea58]
mov rcx, qword [rsp + 0x6d0]
call fcn.140001b8b
mov qword [rsp + 0x7e0], rax
mov rcx, qword [rsp + 0x7e0]
call fcn.14000305d
mov qword [rsp + 0x7e8], rax
lea rax, [rsp + 0x6d8]
mov qword [rsp + 0x700], rax
lea r8, [0x1401fea58]
lea rdx, [0x1401ae0b4]
lea rcx, [rsp + 0x5f8]
call fcn.140001389
mov qword [rsp + 0x7f0], rax
mov rax, qword [rsp + 0x7f0]
mov qword [rsp + 0x7f8], rax
lea r8, str.USER
mov rdx, qword [rsp + 0x7f8]
lea rcx, [rsp + 0x620]
call fcn.140005ea7
mov qword [rsp + 0x800], rax
mov rax, qword [rsp + 0x800]
mov qword [rsp + 0x808], rax
lea r8, [0x1401fea10]
mov rdx, qword [rsp + 0x808]
lea rcx, [rsp + 0x648]
call fcn.140002e50
mov qword [rsp + 0x810], rax
mov rax, qword [rsp + 0x810]
mov qword [rsp + 0x818], rax
lea r8, [0x1401ae0a8]
mov rdx, qword [rsp + 0x818]
lea rcx, [rsp + 0x670]
call fcn.140005ea7
mov qword [rsp + 0x820], rax
mov rax, qword [rsp + 0x820]
mov qword [rsp + 0x828], rax
lea r8, [rsp + 0x4d8]
mov rdx, qword [rsp + 0x828]
mov rcx, qword [rsp + 0x700]
call fcn.140002e50
mov qword [rsp + 0x830], rax
mov rax, qword [rsp + 0x830]
mov qword [rsp + 0x838], rax
mov r8, qword [rsp + 0x7e8]
mov rdx, qword [rsp + 0x838]
lea rcx, [rsp + 0x5c8]
call fcn.140005fb0
nop
lea rcx, [rsp + 0x670]
call fcn.14000203b
nop
lea rcx, [rsp + 0x648]
call fcn.14000203b
nop
lea rcx, [rsp + 0x620]
call fcn.14000203b
nop
lea rcx, [rsp + 0x5f8]
call fcn.14000203b
nop
lea rcx, [rsp + 0x5c8]
call fcn.140001839
mov rcx, rax
call fcn.1400036ed
inc rax
mov dword [rsp + 0x840], eax
lea rcx, [rsp + 0x5c8]
call fcn.140001839
mov qword [rsp + 0x848], rax
mov dword [rsp + 0x28], setsockopt
lea rax, [rsp + 0x4a8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, dword [rsp + 0x840]
mov rdx, qword [rsp + 0x848]
mov rcx, qword [rsp + 0x478]
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, qword [rsp + 0x478]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rcx, [rsp + 0x5c8]
call fcn.14000203b
nop
lea rcx, [rsp + 0x4d8]
call fcn.14000203b
nop
jmp 0x1400124f4
lea rcx, [rsp + 0x298]
call fcn.140003747
nop
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401ae860]
call fcn.140005745
mov rax, rdi
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.1400039c2
add rsp, 0x860
pop rdi
ret