Function at 0x1000ad80
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x116c
call fcn.10036fa0
mov eax, dword [0x1005d330]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov dword [esp + 0x1178], eax
mov eax, dword [ebp + 0xc]
push 2
mov byte [eax], bl
push 2
mov byte [ecx], bl
call dword [sym.imp.WS2_32.dll_socket]
push 0x89
mov esi, eax
mov word [esp + 0x15c], 2
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [ebp + 8]
mov word [esp + 0x15a], ax
mov al, 0x41
push 0x10
mov byte [esp + 0x137], al
mov byte [esp + 0x138], al
mov byte [esp + 0x139], al
mov byte [esp + 0x13a], al
mov byte [esp + 0x13b], al
mov byte [esp + 0x13c], al
mov byte [esp + 0x13d], al
mov byte [esp + 0x13e], al
mov byte [esp + 0x13f], al
mov byte [esp + 0x140], al
mov byte [esp + 0x141], al
mov byte [esp + 0x142], al
mov byte [esp + 0x143], al
mov byte [esp + 0x144], al
mov byte [esp + 0x145], al
mov byte [esp + 0x146], al
mov byte [esp + 0x147], al
mov byte [esp + 0x148], al
mov byte [esp + 0x149], al
mov byte [esp + 0x14a], al
mov byte [esp + 0x14b], al
mov byte [esp + 0x14c], al
mov byte [esp + 0x14d], al
mov byte [esp + 0x14e], al
mov byte [esp + 0x14f], al
mov byte [esp + 0x150], al
mov byte [esp + 0x151], al
mov byte [esp + 0x152], al
mov byte [esp + 0x153], al
mov byte [esp + 0x154], al
lea eax, [esp + 0x15c]
push eax
push ebx
push 0x32
lea ecx, [esp + 0x134]
mov dword [esp + 0x16c], edx
mov byte [esp + 0x134], bl
mov byte [esp + 0x135], bl
mov byte [esp + 0x136], bl
mov byte [esp + 0x137], bl
mov byte [esp + 0x138], bl
mov byte [esp + 0x139], 1
mov byte [esp + 0x13a], bl
mov byte [esp + 0x13b], bl
mov byte [esp + 0x13c], bl
mov byte [esp + 0x13d], bl
mov byte [esp + 0x13e], bl
mov byte [esp + 0x13f], bl
mov byte [esp + 0x140], 0x20
mov byte [esp + 0x141], 0x43
mov byte [esp + 0x142], 0x4b
mov byte [esp + 0x161], bl
mov byte [esp + 0x162], bl
mov byte [esp + 0x163], 0x21
mov byte [esp + 0x164], bl
mov byte [esp + 0x165], 1
push ecx
mov edi, dword [sym.imp.WS2_32.dll_sendto]
push esi
call edi
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x10
lea edx, [esp + 0x15c]
push edx
push ebx
push 0x32
lea eax, [esp + 0x134]
push eax
push esi
call edi
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x10
lea ecx, [esp + 0x15c]
push ecx
push ebx
push 0x32
lea edx, [esp + 0x134]
push edx
push esi
call edi
push 0xa
mov edi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, ebx
jle 0x1000b0ca
xor eax, eax
mov byte [esp + 0x168], bl
mov ecx, 0x400
lea edi, [esp + 0x169]
rep stosd dword es:[edi], eax
mov eax, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
push eax
push ebx
push ebx
lea ecx, [esp + 0x24]
push ecx
push 0x40
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, ebx
je 0x1000b0ca
jl 0x1000b0ca
lea edx, [esp + 0x18]
push edx
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1000b0ca
push ebx
push 0x1000
lea eax, [esp + 0x170]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1000b0ca
movsx eax, byte [esp + 0x1a0]
lea eax, [eax + eax*8]
movzx ecx, byte [esp + eax*2 + 0x1a6]
movzx edx, byte [esp + eax*2 + 0x1a5]
lea eax, [esp + eax*2 + 0x1a1]
push ecx
movzx ecx, byte [eax + 3]
push edx
movzx edx, byte [eax + 2]
push ecx
movzx ecx, byte [eax + 1]
push edx
movzx edx, byte [eax]
mov eax, dword [ebp + 0xc]
push ecx
push edx
push str._02x_02x_02x_02x_02x_02x
push eax
call fcn.10036e11
mov al, byte [esp + 0x1c0]
add esp, 0x20
cmp al, bl
jle 0x1000b0ab
mov edi, dword [ebp + 0x10]
push 0xf
lea ecx, [esp + 0x1a5]
push ecx
push edi
call fcn.10037b30
add esp, 0xc
push 0x10050c04
push edi
mov byte [edi + 0xf], bl
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 1
mov ecx, dword [esp + 0x1174]
call fcn.10036c09
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x1174]
xor eax, eax
call fcn.10036c09
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret