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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62a360
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 0x54da2b
push eax
mov dword [ebp - 4], esi
call fcn.005fef05
add esp, 4
jmp 0x54da21
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 0x54da55
mov dword [eax + 0x150], 2
push str.send_socks5_CONNECT__test__v6.30b7.10_r_n
mov ecx, ebx
call fcn.0054c4f0
mov ecx, dword [ebx + 0xb4]
cmp ecx, esi
je 0x54da72
mov edi, dword [ecx]
mov dword [ebp - 0x24], edi
jmp 0x54da7f
mov eax, dword [ebx + 0xb0]
mov edx, dword [eax]
mov dword [ebp - 0x24], edx
mov edi, edx
cmp dword [ebp + 0xc], esi
je 0x54da92
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x40], esi
mov dword [ebp - 0x1c], eax
jmp 0x54dcaf
mov edx, dword [ebx + 0x184]
cmp dword [edx + 0x150], 2
je 0x54dcaf
mov eax, dword [ebx + 0xb0]
mov dl, byte [eax + 0x16b]
test dl, dl
je 0x54dba0
mov dl, byte [eax + 0x18d]
test dl, dl
jne 0x54dba0
cmp ecx, esi
je 0x54dad0
mov eax, dword [ecx + 0xc]
jmp 0x54dad3
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.0054ca10
add esp, 0x14
cmp eax, esi
mov dword [ebx + 0x40], eax
je 0x54db8b
mov edx, dword [0x6cc708]
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.005fb90b
mov ecx, dword [ebp - 0x18]
add esp, 0xc
push ecx
mov ecx, ebx
call fcn.0054c4f0
lea edx, [ebp - 0x1c]
push esi
push edx
push edi
mov ecx, ebx
call fcn.0054c690
cmp eax, esi
mov dword [ebx + 0x40], eax
je 0x54db6a
mov eax, dword [0x6d265c]
push edi
lea ecx, [ebp - 0x18]
push eax
push ecx
call fcn.005fb90b
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov ecx, ebx
push 1
push edx
call fcn.0054c420
mov ecx, dword [ebx + 0x9c]
cmp ecx, esi
je 0x54db77
mov eax, dword [ebp - 0x18]
push eax
call fcn.00554c40
jmp 0x54db77
mov ecx, dword [ebx + 0xb0]
mov byte [ecx + 0x16b], 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.00602ad6
jmp 0x54dcaf
push str.IPV6_address_found_r_n
mov ecx, ebx
call fcn.0054c4f0
mov byte [ebp - 0x11], 1
jmp 0x54dca2
lea edx, [ebp - 0x1c]
push esi
push edx
push edi
mov ecx, ebx
call fcn.0054c690
cmp eax, esi
mov dword [ebx + 0x40], eax
je 0x54dcaf
mov eax, dword [0x6cc708]
mov dword [ebp + 0x10], eax
mov ecx, dword [0x6d265c]
push edi
lea edx, [ebp + 0x10]
push ecx
push edx
mov dword [ebp - 4], 3
call fcn.005fb90b
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov ecx, ebx
push 1
push eax
call fcn.0054c420
mov ecx, dword [ebx + 0x9c]
cmp ecx, esi
je 0x54dbfb
mov edx, dword [ebp + 0x10]
push edx
call fcn.00554c40
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.005fb90b
mov edx, dword [ebp + 0x10]
add esp, 0xc
mov ecx, ebx
push edx
call fcn.0054c4f0
mov eax, dword [ebx + 0xb4]
cmp eax, esi
je 0x54dc2a
mov eax, dword [eax + 0xc]
jmp 0x54dc33
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.0054ca10
add esp, 0x14
cmp eax, esi
mov dword [ebx + 0x40], eax
je 0x54dc6f
push eax
lea edx, [ebp + 0x10]
push str.Error_checking_IPV6_address__ld_r_n
push edx
call fcn.005fb90b
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.0054c4f0
jmp 0x54dc8c
push str.IPV6_address_found_r_n
mov ecx, ebx
call fcn.0054c4f0
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.00602ad6
mov al, byte [ebp - 0x11]
test al, al
je 0x54dcaf
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.005feedc
mov esi, eax
add esp, 4
test esi, esi
mov dword [ebp - 0x30], esi
jne 0x54dce9
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 0x54dd2b
mov ecx, dword [ebx + 0x184]
cmp dword [ecx + 0x150], 2
jne 0x54dd32
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x54ddaa
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 0x54dd5d
mov dword [eax + 0x150], 1
test cl, cl
je 0x54dd91
push str.socks5_connect_IPV6_r_n
mov ecx, ebx
call fcn.0054c4f0
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 0x54dd75
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x54ddfd
mov eax, dword [ebp + 0x14]
jmp 0x54de1b
push str.socks5_connect_IPV4_r_n
mov ecx, ebx
call fcn.0054c4f0
mov eax, dword [ebp - 0x1c]
mov edi, 8
mov dword [esi + 4], eax
jmp 0x54dd82
push str.socks5_connect_name_r_n
mov ecx, ebx
mov byte [esi + 3], 3
call fcn.0054c4f0
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 0x54de0c
mov eax, dword [eax + 0xc]
jmp 0x54de15
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.0054c5b0
push str.socks5:_sending_connect_n
mov ecx, ebx
mov edi, eax
call fcn.0054c4f0
push esi
call fcn.005fef05
add esp, 4
cmp edi, 0x2733
jne 0x54de5f
xor edi, edi
jmp 0x54de63
test edi, edi
jne 0x54de6d
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