Function at 0x417c30
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55552d
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x5abbf4]
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 edi, ecx
call fcn.00427d38
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x417c7a
push 0x80004005
call fcn.00401fe0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x124], esi
mov dword [ebp - 4], 0
mov ecx, dword [0x586480]
mov edx, dword [0x586484]
mov eax, dword [0x586488]
push 0xf1
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x110], ecx
mov cx, word [0x58648c]
mov dword [ebp - 0x10c], edx
mov dl, byte [0x58648e]
lea eax, [ebp - 0x101]
push 0
push eax
mov word [ebp - 0x104], cx
mov byte [ebp - 0x102], dl
call fcn.0052ffe0
add esp, 0xc
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x417d36
mov dword [ebp - 4], 0xffffffff
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417d1a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.0052d5c8
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
movzx edx, byte [eax + 3]
movzx ecx, byte [eax + 2]
push edx
movzx edx, byte [eax + 1]
movzx eax, byte [eax]
push ecx
push edx
push eax
lea ecx, [ebp - 0x124]
push 0x586490
push ecx
call fcn.00403420
add esp, 0x18
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
mov dword [ebp - 0x130], esi
cmp esi, 0xffffffff
jne 0x417d8c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x124]
add eax, 0xfffffff0
jmp 0x417d01
mov ecx, 2
push 0x3e9
mov word [ebp - 0x120], cx
call dword [sym.imp.WS2_32.dll_htons]
mov ebx, dword [ebp - 0x124]
push ebx
mov word [ebp - 0x11e], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x10
lea edx, [ebp - 0x120]
push edx
push esi
mov dword [ebp - 0x11c], eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x417dea
mov dword [ebp - 4], eax
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x417d0e
call fcn.00427d38
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x417e04
push 0x80004005
call fcn.00401fe0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x12c], eax
mov byte [ebp - 4], 1
call fcn.00427d38
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x417e34
push 0x80004005
call fcn.00401fe0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x134], esi
mov byte [ebp - 4], 2
call fcn.00427d38
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x417e64
push 0x80004005
call fcn.00401fe0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x128], eax
mov byte [ebp - 4], 3
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x417ea4
push 0x104
lea ecx, [ebp - 0x134]
call fcn.00401f40
mov esi, dword [ebp - 0x134]
push esi
call fcn.00417ad0
mov eax, dword [esi - 8]
add esp, 4
push eax
push esi
call fcn.0052d9d2
add esp, 8
test eax, eax
js 0x418035
cmp eax, dword [esi - 8]
jg 0x418035
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
mov ecx, dword [edi + 0xe0]
mov edx, dword [edi + 0xcfc]
push ecx
push esi
push edx
lea eax, [ebp - 0x12c]
push 0x58649c
push eax
call fcn.00403420
add esp, 0x14
push 0
mov dword [ebp - 0x148], 0x581ae0
call fcn.0052da22
add esp, 4
push eax
call fcn.0052d9ef
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x13c], esp
push 0x5864a8
call fcn.00402150
mov byte [ebp - 4], 5
mov ebx, dword [ebp - 0x12c]
push ecx
add ebx, 0xfffffff0
mov dword [ebp - 0x140], esp
mov edi, esp
push ebx
call fcn.00401b20
add esp, 4
add eax, 0x10
lea ecx, [ebp - 0x138]
mov dword [edi], eax
push ecx
mov byte [ebp - 4], 4
call fcn.00403b60
push eax
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 6
call fcn.00403330
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x138]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417f8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x128]
mov eax, dword [edi - 0xc]
mov ecx, dword [ebp - 0x130]
push 0
push eax
push edi
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
add edi, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x417fd6
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add esi, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417ff6
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov byte [ebp - 4], 0
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418013
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x124]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x417d0e
push 0x80070057
call fcn.00401fe0
int3