Function at 0x10002290
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000acc8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x1000f010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ax, dx
mov word [ebp - 0x48], ax
mov word [ebp - 0x38], ax
mov ebx, ecx
mov dword [ebp - 0x4c], ebx
push 0
push 3
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0
push eax
mov eax, dword [sym.imp.WS2_32.dll_send]
push ebx
mov word [ebp - 0x3c], 0x105
mov byte [ebp - 0x3a], 2
mov dword [ebp - 0x54], eax
call eax
push 8
push 2
lea eax, [ebp - 0x40]
push eax
mov eax, dword [sym.imp.WS2_32.dll_recv]
push ebx
mov dword [ebp - 0x58], eax
call eax
test eax, eax
jg 0x10002317
push 0
push 0x1000c365
push str._1__Impossible_de_se_connecter_au_serveur_proxy_SOCKS5__
jmp 0x10002758
mov ax, word [ebp - 0x40]
cmp al, 5
jne 0x1000274c
cmp ah, 2
jne 0x1000274c
lfence
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movq qword [ebp - 0x34], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x45]
mov byte [ebp - 4], 1
push eax
push 0
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x45], 1
call fcn.10005d60
mov ecx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x2c]
mov eax, dword [0x1000f04c]
mov byte [ebp - 0x45], al
cmp ecx, edi
je 0x10002383
mov byte [ecx], al
inc ecx
mov dword [ebp - 0x30], ecx
jmp 0x10002396
lea eax, [ebp - 0x45]
push eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.10005d60
mov edi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
xor esi, esi
cmp dword [0x1000f04c], esi
jbe 0x100023e1
cmp dword [0x1000f050], 0x10
mov eax, 0x1000f03c
cmovae eax, dword [0x1000f03c]
mov al, byte [eax + esi]
mov byte [ebp - 0x45], al
cmp ecx, edi
je 0x100023c5
mov byte [ecx], al
inc ecx
mov dword [ebp - 0x30], ecx
jmp 0x100023d8
lea eax, [ebp - 0x45]
push eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.10005d60
mov edi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
inc esi
cmp esi, dword [0x1000f04c]
jb 0x100023a0
mov eax, dword [0x1000f094]
mov byte [ebp - 0x45], al
cmp ecx, edi
je 0x100023f5
mov byte [ecx], al
inc ecx
mov dword [ebp - 0x30], ecx
jmp 0x10002408
lea eax, [ebp - 0x45]
push eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.10005d60
mov edi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
xor esi, esi
cmp dword [0x1000f094], esi
jbe 0x10002453
cmp dword [0x1000f098], 0x10
mov eax, 0x1000f084
cmovae eax, dword [0x1000f084]
mov al, byte [eax + esi]
mov byte [ebp - 0x45], al
cmp ecx, edi
je 0x10002437
mov byte [ecx], al
inc ecx
mov dword [ebp - 0x30], ecx
jmp 0x1000244a
lea eax, [ebp - 0x45]
push eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.10005d60
mov edi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
inc esi
cmp esi, dword [0x1000f094]
jb 0x10002412
mov ebx, dword [ebp - 0x34]
sub ecx, ebx
mov esi, dword [ebp - 0x4c]
push 0
push ecx
push ebx
push esi
mov dword [ebp - 0x50], ebx
call dword [ebp - 0x54]
push 8
push 2
lea eax, [ebp - 0x44]
push eax
push esi
call dword [ebp - 0x58]
test eax, eax
jg 0x10002499
push 0
push 0x1000c365
push str._3__Impossible_de_se_connecter_au_serveur_proxy_SOCKS5__
push 0
lfence
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x10002700
mov ax, word [ebp - 0x44]
cmp al, 1
jne 0x1000272c
test ah, ah
jne 0x1000272c
lfence
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x45]
mov byte [ebp - 4], 2
push eax
push 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x45], 5
call fcn.10005d60
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov byte [ebp - 0x45], 1
cmp ecx, esi
je 0x10002501
mov byte [ecx], 1
inc ecx
mov dword [ebp - 0x24], ecx
jmp 0x10002514
lea eax, [ebp - 0x45]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.10005d60
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 0x45], 0
cmp ecx, esi
je 0x10002525
mov byte [ecx], 0
inc ecx
mov dword [ebp - 0x24], ecx
jmp 0x10002538
lea eax, [ebp - 0x45]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.10005d60
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 0x45], 3
cmp ecx, esi
je 0x10002549
mov byte [ecx], 3
inc ecx
mov dword [ebp - 0x24], ecx
jmp 0x1000255c
lea eax, [ebp - 0x45]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.10005d60
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp + 0x18]
mov byte [ebp - 0x45], al
cmp ecx, esi
je 0x1000256e
mov byte [ecx], al
inc ecx
mov dword [ebp - 0x24], ecx
jmp 0x10002581
lea eax, [ebp - 0x45]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.10005d60
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
xor ebx, ebx
cmp dword [ebp + 0x18], ebx
jbe 0x100025c6
nop dword [eax + eax]
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
mov al, byte [eax + ebx]
mov byte [ebp - 0x45], al
cmp ecx, esi
je 0x100025ad
mov byte [ecx], al
inc ecx
mov dword [ebp - 0x24], ecx
jmp 0x100025c0
lea eax, [ebp - 0x45]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.10005d60
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
inc ebx
cmp ebx, dword [ebp + 0x18]
jb 0x10002590
cmp ecx, esi
je 0x100025d6
mov ax, word [ebp - 0x48]
mov byte [ecx], ah
inc ecx
mov dword [ebp - 0x24], ecx
jmp 0x100025ed
lea eax, [ebp - 0x37]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.10005d60
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov ax, word [ebp - 0x48]
cmp ecx, esi
je 0x100025f6
mov byte [ecx], al
inc ecx
jmp 0x10002609
lea eax, [ebp - 0x38]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.10005d60
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
sub ecx, ebx
push 0
push ecx
push ebx
push dword [ebp - 0x4c]
call dword [ebp - 0x54]
push 8
push 0xa
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x4c]
call dword [ebp - 0x58]
test eax, eax
jg 0x1000263b
push 0
push 0x1000c365
push str._5__Impossible_de_se_connecter_au_serveur_proxy_SOCKS5__
jmp 0x100026bb
cmp byte [ebp - 0x1c], 5
jne 0x100026af
cmp byte [ebp - 0x1b], 0
jne 0x100026af
test ebx, ebx
je 0x10002675
sub esi, ebx
mov eax, ebx
cmp esi, 0x1000
jb 0x1000266b
mov ebx, dword [ebx - 4]
add esi, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002790
push esi
push ebx
call fcn.1000a1ec
add esp, 8
mov ecx, dword [ebp - 0x50]
test ecx, ecx
je 0x1000276a
sub edi, ecx
mov eax, ecx
cmp edi, 0x1000
jb 0x100026a0
mov ecx, dword [ecx - 4]
add edi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002790
push edi
push ecx
call fcn.1000a1ec
add esp, 8
jmp 0x1000276a
push 0
push 0x1000c365
push str._6__Impossible_de_se_connecter_au_serveur_proxy_SOCKS5__
push 0
lfence
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 0x4c]
call dword [sym.imp.WS2_32.dll_closesocket]
test ebx, ebx
je 0x100026fd
sub esi, ebx
mov eax, ebx
cmp esi, 0x1000
jb 0x100026f3
mov ebx, dword [ebx - 4]
add esi, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002790
push esi
push ebx
call fcn.1000a1ec
add esp, 8
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x1000276a
sub edi, ebx
mov eax, ebx
cmp edi, 0x1000
jb 0x10002720
mov ebx, dword [ebx - 4]
add edi, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002790
push edi
push ebx
call fcn.1000a1ec
add esp, 8
jmp 0x1000276a
push 0
push 0x1000c365
push str._4__Impossible_de_se_connecter_au_serveur_proxy_SOCKS5__
push 0
lfence
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x10002700
push 0
push 0x1000c365
push str._2__Impossible_de_se_connecter_au_serveur_proxy_SOCKS5__
push 0
lfence
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x100027a0
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10002796
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10002796
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1000a1ec
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10009c96
mov esp, ebp
pop ebp
ret