Function at 0x422160
Capabilities:
Contain obfuscated stackstrings
Create tcp socket
Create udp socket
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x182c
call fcn.00450200
push esi
push edi
mov dword [ebp - 0x1814], ecx
mov ecx, dword [ebp - 0x1814]
add ecx, 0xd4
call fcn.004067d0
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x130], eax
mov ecx, dword [ebp - 0x1814]
add ecx, 0xd8
call fcn.004067d0
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov esi, eax
mov ecx, dword [ebp - 0x130]
push ecx
call dword [sym.imp.WS2_32.dll_ntohl]
sub esi, eax
add esi, 1
mov dword [ebp - 0x128], esi
cmp dword [ebp - 0x128], 0
jg 0x4221e6
jmp 0x422bd6
mov edx, dword [ebp - 0x128]
shl edx, 1
push edx
push 0
mov ecx, dword [ebp - 0x1814]
add ecx, 0x84
call fcn.00422e20
push 0
mov ecx, dword [ebp - 0x1814]
add ecx, 0x84
call fcn.00422ec0
push 1
mov ecx, dword [ebp - 0x1814]
add ecx, 0x84
call fcn.00422e60
mov eax, dword [ebp - 0x128]
shl eax, 2
push eax
call fcn.004665e6
add esp, 4
mov dword [ebp - 0x180c], eax
mov ecx, dword [ebp - 0x180c]
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x134], 0
jmp 0x422278
mov edx, dword [ebp - 0x134]
add edx, 0x64
mov dword [ebp - 0x134], edx
mov eax, dword [ebp - 0x134]
cmp eax, dword [ebp - 0x128]
jge 0x422bbb
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 0x14], ecx
jmp 0x42229e
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x128]
jge 0x4224c4
mov ecx, dword [ebp - 0x134]
add ecx, 0x64
cmp dword [ebp - 0x14], ecx
jge 0x4224c4
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x124]
mov dword [ecx + edx*4], eax
mov ecx, dword [ebp - 0x1814]
add ecx, 0x84
call fcn.00422e90
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.WS2_32.dll_ntohl]
add eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x138], eax
mov word [ebp - 0x148], 2
push 0x89
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x146], ax
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x144], eax
mov byte [ebp - 0x180], 0
mov byte [ebp - 0x17f], 0
mov byte [ebp - 0x17e], 0
mov byte [ebp - 0x17d], 0
mov byte [ebp - 0x17c], 0
mov byte [ebp - 0x17b], 1
mov byte [ebp - 0x17a], 0
mov byte [ebp - 0x179], 0
mov byte [ebp - 0x178], 0
mov byte [ebp - 0x177], 0
mov byte [ebp - 0x176], 0
mov byte [ebp - 0x175], 0
mov byte [ebp - 0x174], 0x20
mov byte [ebp - 0x173], 0x43
mov byte [ebp - 0x172], 0x4b
mov byte [ebp - 0x171], 0x41
mov byte [ebp - 0x170], 0x41
mov byte [ebp - 0x16f], 0x41
mov byte [ebp - 0x16e], 0x41
mov byte [ebp - 0x16d], 0x41
mov byte [ebp - 0x16c], 0x41
mov byte [ebp - 0x16b], 0x41
mov byte [ebp - 0x16a], 0x41
mov byte [ebp - 0x169], 0x41
mov byte [ebp - 0x168], 0x41
mov byte [ebp - 0x167], 0x41
mov byte [ebp - 0x166], 0x41
mov byte [ebp - 0x165], 0x41
mov byte [ebp - 0x164], 0x41
mov byte [ebp - 0x163], 0x41
mov byte [ebp - 0x162], 0x41
mov byte [ebp - 0x161], 0x41
mov byte [ebp - 0x160], 0x41
mov byte [ebp - 0x15f], 0x41
mov byte [ebp - 0x15e], 0x41
mov byte [ebp - 0x15d], 0x41
mov byte [ebp - 0x15c], 0x41
mov byte [ebp - 0x15b], 0x41
mov byte [ebp - 0x15a], 0x41
mov byte [ebp - 0x159], 0x41
mov byte [ebp - 0x158], 0x41
mov byte [ebp - 0x157], 0x41
mov byte [ebp - 0x156], 0x41
mov byte [ebp - 0x155], 0x41
mov byte [ebp - 0x154], 0x41
mov byte [ebp - 0x153], 0
mov byte [ebp - 0x152], 0
mov byte [ebp - 0x151], 0x21
mov byte [ebp - 0x150], 0
mov byte [ebp - 0x14f], 1
push 0x10
lea ecx, [ebp - 0x148]
push ecx
push 0
push 0x32
lea edx, [ebp - 0x180]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x124]
mov edx, dword [ecx + eax*4]
push edx
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [ebp - 0x14c], eax
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x422295
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x14], eax
jmp 0x4224d8
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x128]
jge 0x422bb6
mov eax, dword [ebp - 0x134]
add eax, 0x64
cmp dword [ebp - 0x14], eax
jge 0x422bb6
mov cl, byte [0x4787e2]
mov byte [ebp - 0x12a0], cl
mov ecx, 0x400
xor eax, eax
lea edi, [ebp - 0x129f]
rep stosd dword es:[edi], eax
mov byte [ebp - 0x10], 0
mov byte [ebp - 0x120], 0
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.WS2_32.dll_ntohl]
add eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x28c], eax
mov ecx, dword [ebp - 0x1814]
add ecx, 0x84
call fcn.00422e90
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x12a4], 0
jmp 0x422586
mov eax, dword [ebp - 0x12a4]
add eax, 1
mov dword [ebp - 0x12a4], eax
mov ecx, dword [ebp - 0x12a4]
cmp ecx, dword [ebp - 0x288]
jae 0x4225b3
mov edx, dword [ebp - 0x12a4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x124]
mov edx, dword [ebp + edx*4 - 0x284]
cmp edx, dword [ecx + eax*4]
jne 0x4225b1
jmp 0x4225b3
jmp 0x422577
mov eax, dword [ebp - 0x12a4]
cmp eax, dword [ebp - 0x288]
jne 0x4225f2
cmp dword [ebp - 0x288], 0x40
jae 0x4225f2
mov ecx, dword [ebp - 0x12a4]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x124]
mov edx, dword [eax + edx*4]
mov dword [ebp + ecx*4 - 0x284], edx
mov eax, dword [ebp - 0x288]
add eax, 1
mov dword [ebp - 0x288], eax
xor ecx, ecx
jne 0x42256b
lea edx, [ebp - 0x298]
push edx
push 0
push 0
lea eax, [ebp - 0x288]
push eax
push 0x40
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x290], eax
cmp dword [ebp - 0x290], 0
jne 0x422858
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x124]
mov eax, dword [edx + ecx*4]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov byte [ebp - 0x120], 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x28c]
push edx
call fcn.00422d00
add esp, 8
movsx eax, byte [ebp - 0x10]
test eax, eax
je 0x422853
push 0x412
mov ecx, dword [ebp - 0x1814]
call fcn.00405310
mov ecx, eax
call fcn.0046598f
mov ecx, eax
call fcn.004167b0
mov dword [ebp - 0x12a8], eax
lea ecx, [ebp - 0x1550]
call fcn.00404500
mov ecx, dword [ebp - 0x28c]
mov dword [ebp - 0x1400], ecx
mov edx, dword [ebp - 0x1400]
mov dword [ebp - 0x1404], edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1418]
push ecx
call fcn.00450070
add esp, 8
movsx edx, byte [ebp - 0x120]
test edx, edx
je 0x4226dd
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x1550]
push ecx
call fcn.00450070
add esp, 8
jmp 0x4226fb
mov edx, dword [ebp - 0x12a8]
add edx, 1
push edx
push 0x4787e4
lea eax, [ebp - 0x1550]
push eax
call fcn.0044ffa8
add esp, 0xc
mov dword [ebp - 0x13f8], 0xfe
mov dword [ebp - 0x13f4], 0xffffffff
mov byte [ebp - 0x144f], 0
mov dword [ebp - 0x13e8], 0xffffffff
mov dword [ebp - 0x13ec], 0xffffffff
mov ecx, 0x492a40
call fcn.00404380
test eax, eax
je 0x422762
mov ecx, 0x492a40
call fcn.00404380
cmp eax, 3
je 0x422762
mov ecx, 0x492a40
call fcn.00404380
cmp eax, 5
je 0x422762
mov dword [ebp - 0x1818], 0
jmp 0x42276c
mov dword [ebp - 0x1818], 1
mov ecx, dword [ebp - 0x1818]
mov dword [ebp - 0x13fc], ecx
mov ecx, 0x492a40
call fcn.00404380
cmp eax, 2
je 0x4227b1
mov ecx, 0x492a40
call fcn.00404380
cmp eax, 3
je 0x4227b1
mov ecx, 0x492a40
call fcn.00404380
cmp eax, 4
je 0x4227b1
mov dword [ebp - 0x181c], 0
jmp 0x4227bb
mov dword [ebp - 0x181c], 1
mov edx, dword [ebp - 0x181c]
mov dword [ebp - 0x141c], edx
mov ecx, 0x492a40
call fcn.00404380
cmp eax, 1
je 0x422800
mov ecx, 0x492a40
call fcn.00404380
cmp eax, 4
je 0x422800
mov ecx, 0x492a40
call fcn.00404380
cmp eax, 5
je 0x422800
mov dword [ebp - 0x1820], 0
jmp 0x42280a
mov dword [ebp - 0x1820], 1
mov eax, dword [ebp - 0x1820]
mov dword [ebp - 0x1408], eax
lea ecx, [ebp - 0x1550]
push ecx
mov ecx, dword [ebp - 0x1814]
add ecx, 0x70
call fcn.00404b30
mov edx, dword [ebp - 0x1814]
push edx
mov eax, dword [ebp - 0x12a8]
push eax
push 0x4c9
mov ecx, dword [ebp - 0x1814]
call fcn.00405310
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4224cf
cmp dword [ebp - 0x290], 0
jge 0x422879
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x124]
mov ecx, dword [eax + edx*4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4224cf
lea edx, [ebp - 0x288]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x124]
mov edx, dword [ecx + eax*4]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x422b9e
push 0
push 0x1000
lea eax, [ebp - 0x12a0]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x124]
mov eax, dword [edx + ecx*4]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x1554], eax
cmp dword [ebp - 0x1554], 0
jg 0x4228e2
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x124]
mov eax, dword [edx + ecx*4]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4224cf
movsx ecx, byte [ebp - 0x1268]
imul ecx, ecx, 0x12
lea edx, [ebp + ecx - 0x1267]
mov dword [ebp - 0x1558], edx
mov eax, dword [ebp - 0x1558]
movzx ecx, byte [eax + 5]
push ecx
mov edx, dword [ebp - 0x1558]
movzx eax, byte [edx + 4]
push eax
mov ecx, dword [ebp - 0x1558]
movzx edx, byte [ecx + 3]
push edx
mov eax, dword [ebp - 0x1558]
movzx ecx, byte [eax + 2]
push ecx
mov edx, dword [ebp - 0x1558]
movzx eax, byte [edx + 1]
push eax
mov ecx, dword [ebp - 0x1558]
movzx edx, byte [ecx]
push edx
push str._02x_02x_02x_02x_02x_02x
lea eax, [ebp - 0x10]
push eax
call fcn.0044ffa8
add esp, 0x20
movsx ecx, byte [ebp - 0x1268]
test ecx, ecx
jle 0x422987
push 0xf
lea edx, [ebp - 0x1267]
push edx
lea eax, [ebp - 0x120]
push eax
call fcn.00451240
add esp, 0xc
mov byte [ebp - 0x111], 0
push 0x478808
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x124]
mov ecx, dword [eax + edx*4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
movsx edx, byte [ebp - 0x10]
test edx, edx
je 0x422b99
push 0x412
mov ecx, dword [ebp - 0x1814]
call fcn.00405310
mov ecx, eax
call fcn.0046598f
mov ecx, eax
call fcn.004167b0
mov dword [ebp - 0x155c], eax
lea ecx, [ebp - 0x1808]
call fcn.00404500
mov eax, dword [ebp - 0x28c]
mov dword [ebp - 0x16b8], eax
mov ecx, dword [ebp - 0x16b8]
mov dword [ebp - 0x16bc], ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x16d0]
push eax
call fcn.00450070
add esp, 8
movsx ecx, byte [ebp - 0x120]
test ecx, ecx
je 0x422a23
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x1808]
push eax
call fcn.00450070
add esp, 8
jmp 0x422a41
mov ecx, dword [ebp - 0x155c]
add ecx, 1
push ecx
push str.User__d
lea edx, [ebp - 0x1808]
push edx
call fcn.0044ffa8
add esp, 0xc
mov dword [ebp - 0x16b0], 0xfe
mov dword [ebp - 0x16ac], 0xffffffff
mov byte [ebp - 0x1707], 0
mov dword [ebp - 0x16a0], 0xffffffff
mov dword [ebp - 0x16a4], 0xffffffff
mov ecx, 0x492a40
call fcn.00404380
test eax, eax
je 0x422aa8
mov ecx, 0x492a40
call fcn.00404380
cmp eax, 3
je 0x422aa8
mov ecx, 0x492a40
call fcn.00404380
cmp eax, 5
je 0x422aa8
mov dword [ebp - 0x1824], 0
jmp 0x422ab2
mov dword [ebp - 0x1824], 1
mov eax, dword [ebp - 0x1824]
mov dword [ebp - 0x16b4], eax
mov ecx, 0x492a40
call fcn.00404380
cmp eax, 2
je 0x422af7
mov ecx, 0x492a40
call fcn.00404380
cmp eax, 3
je 0x422af7
mov ecx, 0x492a40
call fcn.00404380
cmp eax, 4
je 0x422af7
mov dword [ebp - 0x1828], 0
jmp 0x422b01
mov dword [ebp - 0x1828], 1
mov ecx, dword [ebp - 0x1828]
mov dword [ebp - 0x16d4], ecx
mov ecx, 0x492a40
call fcn.00404380
cmp eax, 1
je 0x422b46
mov ecx, 0x492a40
call fcn.00404380
cmp eax, 4
je 0x422b46
mov ecx, 0x492a40
call fcn.00404380
cmp eax, 5
je 0x422b46
mov dword [ebp - 0x182c], 0
jmp 0x422b50
mov dword [ebp - 0x182c], 1
mov edx, dword [ebp - 0x182c]
mov dword [ebp - 0x16c0], edx
lea eax, [ebp - 0x1808]
push eax
mov ecx, dword [ebp - 0x1814]
add ecx, 0x70
call fcn.00404b30
mov ecx, dword [ebp - 0x1814]
push ecx
mov edx, dword [ebp - 0x155c]
push edx
push 0x4c9
mov ecx, dword [ebp - 0x1814]
call fcn.00405310
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4224cf
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x124]
mov eax, dword [edx + ecx*4]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4224cf
jmp 0x422269
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x1810], ecx
mov edx, dword [ebp - 0x1810]
push edx
call fcn.004665e1
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret