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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62b350
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
mov ebx, ecx
push esi
xor esi, esi
mov eax, dword [ebx + 0x3c]
push edi
cmp eax, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], ebx
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x34], esi
mov dword [ebx + 0x38], esi
je 0x54e7db
push eax
mov dword [ebp - 4], esi
call fcn.005ffe68
add esp, 4
jmp 0x54e7d1
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x3c], esi
mov eax, dword [ebx + 0x184]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], esi
mov ecx, dword [eax + 0x158]
cmp ecx, esi
mov byte [ebp - 0x11], 0
je 0x54e805
mov dword [eax + 0x150], 2
push str.send_socks5_CONNECT__test__v6.30b7.10_r_n
mov ecx, ebx
call fcn.0054d2a0
mov ecx, dword [ebx + 0xb4]
cmp ecx, esi
je 0x54e822
mov edi, dword [ecx]
mov dword [ebp - 0x24], edi
jmp 0x54e82f
mov eax, dword [ebx + 0xb0]
mov edx, dword [eax]
mov dword [ebp - 0x24], edx
mov edi, edx
cmp dword [ebp + 0xc], esi
je 0x54e842
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x40], esi
mov dword [ebp - 0x1c], eax
jmp 0x54ea5f
mov edx, dword [ebx + 0x184]
cmp dword [edx + 0x150], 2
je 0x54ea5f
mov eax, dword [ebx + 0xb0]
mov dl, byte [eax + 0x16b]
test dl, dl
je 0x54e950
mov dl, byte [eax + 0x18d]
test dl, dl
jne 0x54e950
cmp ecx, esi
je 0x54e880
mov eax, dword [ecx + 0xc]
jmp 0x54e883
mov eax, dword [eax + 0x14]
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x2c]
push edx
push ecx
push eax
push edi
call fcn.0054d7c0
add esp, 0x14
cmp eax, esi
mov dword [ebx + 0x40], eax
je 0x54e93b
mov edx, dword [0x6cd768]
mov dword [ebp - 0x18], edx
push eax
lea eax, [ebp - 0x18]
push str.Error_code___ld_r_nChecking_IPV4_address_r_n
push eax
mov dword [ebp - 4], 2
call fcn.005fc86b
mov ecx, dword [ebp - 0x18]
add esp, 0xc
push ecx
mov ecx, ebx
call fcn.0054d2a0
lea edx, [ebp - 0x1c]
push esi
push edx
push edi
mov ecx, ebx
call fcn.0054d440
cmp eax, esi
mov dword [ebx + 0x40], eax
je 0x54e91a
mov eax, dword [0x6d36c4]
push edi
lea ecx, [ebp - 0x18]
push eax
push ecx
call fcn.005fc86b
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov ecx, ebx
push 1
push edx
call fcn.0054d1d0
mov ecx, dword [ebx + 0x9c]
cmp ecx, esi
je 0x54e927
mov eax, dword [ebp - 0x18]
push eax
call fcn.005559f0
jmp 0x54e927
mov ecx, dword [ebx + 0xb0]
mov byte [ecx + 0x16b], 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.00603a3c
jmp 0x54ea5f
push str.IPV6_address_found_r_n
mov ecx, ebx
call fcn.0054d2a0
mov byte [ebp - 0x11], 1
jmp 0x54ea52
lea edx, [ebp - 0x1c]
push esi
push edx
push edi
mov ecx, ebx
call fcn.0054d440
cmp eax, esi
mov dword [ebx + 0x40], eax
je 0x54ea5f
mov eax, dword [0x6cd768]
mov dword [ebp + 0x10], eax
mov ecx, dword [0x6d36c4]
push edi
lea edx, [ebp + 0x10]
push ecx
push edx
mov dword [ebp - 4], 3
call fcn.005fc86b
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov ecx, ebx
push 1
push eax
call fcn.0054d1d0
mov ecx, dword [ebx + 0x9c]
cmp ecx, esi
je 0x54e9ab
mov edx, dword [ebp + 0x10]
push edx
call fcn.005559f0
mov eax, dword [ebx + 0x40]
lea ecx, [ebp + 0x10]
push eax
push str.Error_code___ld_r_nChecking_IPV6_address_r_n
push ecx
call fcn.005fc86b
mov edx, dword [ebp + 0x10]
add esp, 0xc
mov ecx, ebx
push edx
call fcn.0054d2a0
mov eax, dword [ebx + 0xb4]
cmp eax, esi
je 0x54e9da
mov eax, dword [eax + 0xc]
jmp 0x54e9e3
mov eax, dword [ebx + 0xb0]
mov eax, dword [eax + 0x14]
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x2c]
push edx
push ecx
push eax
push edi
call fcn.0054d7c0
add esp, 0x14
cmp eax, esi
mov dword [ebx + 0x40], eax
je 0x54ea1f
push eax
lea edx, [ebp + 0x10]
push str.Error_checking_IPV6_address__ld_r_n
push edx
call fcn.005fc86b
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.0054d2a0
jmp 0x54ea3c
push str.IPV6_address_found_r_n
mov ecx, ebx
call fcn.0054d2a0
mov ecx, dword [ebx + 0xb0]
mov byte [ebp - 0x11], 1
mov byte [ecx + 0x16b], 1
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.00603a3c
mov al, byte [ebp - 0x11]
test al, al
je 0x54ea5f
mov edx, dword [ebx + 0xb0]
mov byte [edx + 0x16c], 1
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x18], ecx
lea edi, [ecx + 0x20]
push edi
call fcn.005ffe3f
mov esi, eax
add esp, 4
test esi, esi
mov dword [ebp - 0x30], esi
jne 0x54ea99
mov eax, 0x753b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [ebp + 0x18]
and ecx, 3
test edx, edx
rep stosb byte es:[edi], al
setne al
inc eax
mov byte [esi], 5
mov byte [esi + 1], al
mov byte [esi + 2], 0
mov eax, dword [ebx + 0x40]
mov edi, 4
test eax, eax
jne 0x54eadb
mov ecx, dword [ebx + 0x184]
cmp dword [ecx + 0x150], 2
jne 0x54eae2
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x54eb5a
mov cl, byte [ebp - 0x11]
mov dl, cl
neg dl
sbb dl, dl
and dl, 3
inc dl
mov byte [esi + 3], dl
mov eax, dword [ebx + 0x184]
mov edx, dword [eax + 0x158]
test edx, edx
jne 0x54eb0d
mov dword [eax + 0x150], 1
test cl, cl
je 0x54eb41
push str.socks5_connect_IPV6_r_n
mov ecx, ebx
call fcn.0054d2a0
mov ecx, dword [ebp - 0x20]
xor eax, eax
add ecx, 8
mov dl, byte [ecx + eax]
mov byte [edi + esi], dl
inc edi
inc eax
cmp eax, 0x10
jl 0x54eb25
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x54ebad
mov eax, dword [ebp + 0x14]
jmp 0x54ebcb
push str.socks5_connect_IPV4_r_n
mov ecx, ebx
call fcn.0054d2a0
mov eax, dword [ebp - 0x1c]
mov edi, 8
mov dword [esi + 4], eax
jmp 0x54eb32
push str.socks5_connect_name_r_n
mov ecx, ebx
mov byte [esi + 3], 3
call fcn.0054d2a0
mov ecx, dword [ebx + 0x184]
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
xor eax, eax
mov dword [ecx + 0x150], 2
mov byte [esi + 4], dl
or ecx, 0xffffffff
add esi, 5
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp + 0xc], esi
mov eax, ecx
mov esi, edi
mov edi, dword [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x30]
lea edi, [edx + 5]
mov eax, dword [ebx + 0xb4]
test eax, eax
je 0x54ebbc
mov eax, dword [eax + 0xc]
jmp 0x54ebc5
mov ecx, dword [ebx + 0xb0]
mov eax, dword [ecx + 0x14]
push eax
call sub.WS2_32.dll_htons
mov edx, dword [ebp + 8]
mov word [edi + esi], ax
push str.sending_socks5_CONNECT
add edi, 2
push 0
push edi
push esi
push edx
call sub.WS2_32.dll_send
push eax
mov ecx, ebx
call fcn.0054d360
push str.socks5:_sending_connect_n
mov ecx, ebx
mov edi, eax
call fcn.0054d2a0
push esi
call fcn.005ffe68
add esp, 4
cmp edi, 0x2733
jne 0x54ec0f
xor edi, edi
jmp 0x54ec13
test edi, edi
jne 0x54ec1d
mov dword [ebx + 0x8c], 0x20
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14