Function at 0x435420
Capabilities:
Contain obfuscated stackstrings
Get socket status
Receive data
Receive data on socket
Resolve function by parsing pe exports
Send data
Send data on socket

Disassembly:
mov eax, 0x125c
call fcn.00457d20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.WS2_32.dll_inet_addr]
mov eax, dword [esi + 0x9c]
mov dword [esp + 0x48], esi
push eax
call edi
mov ebp, eax
mov eax, dword [esi + 0xa0]
push eax
mov dword [esp + 0x58], ebp
call edi
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_ntohl]
mov ebx, eax
call ebp
mov edi, 1
push ebx
sub edi, eax
call ebp
add edi, eax
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x58], edi
jle 0x435a3c
mov ecx, dword [esi + 0x7c]
mov eax, edi
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
and eax, 0xffff
shl eax, 0x10
push eax
push ebx
push 0x401
push ecx
call ebp
mov edx, dword [esi + 0x7c]
push ebx
push ebx
push 0x402
push edx
call ebp
mov eax, dword [esi + 0x7c]
push ebx
push 1
push 0x404
push eax
call ebp
cmp edi, ebx
mov dword [esp + 0x44], ebx
jle 0x435a3c
jmp 0x4354c7
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [esp + 0x48]
mov ecx, dword [esi + 0x7c]
push ebx
push ebx
push 0x405
push ecx
call ebp
mov edx, dword [esp + 0x54]
push edx
call dword [sym.imp.WS2_32.dll_ntohl]
add eax, dword [esp + 0x44]
push eax
call dword [sym.imp.WS2_32.dll_htonl]
push ebx
push 2
push 2
mov esi, eax
mov byte [esp + 0x90], bl
mov byte [esp + 0x80], bl
call dword [sym.imp.WS2_32.dll_socket]
push 0x89
mov ebp, eax
mov word [esp + 0x98], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x96], ax
lea eax, [esp + 0x94]
push 0x10
push eax
push ebx
mov dword [esp + 0xa4], esi
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], bl
mov byte [esp + 0x1e], bl
mov byte [esp + 0x1f], bl
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], 1
mov byte [esp + 0x22], bl
mov byte [esp + 0x23], bl
mov byte [esp + 0x24], bl
mov byte [esp + 0x25], bl
mov byte [esp + 0x26], bl
mov byte [esp + 0x27], bl
mov byte [esp + 0x28], 0x20
mov byte [esp + 0x29], 0x43
mov byte [esp + 0x2a], 0x4b
mov byte [esp + 0x2b], 0x41
mov byte [esp + 0x2c], 0x41
mov byte [esp + 0x2d], 0x41
mov byte [esp + 0x2e], 0x41
mov byte [esp + 0x2f], 0x41
mov byte [esp + 0x30], 0x41
mov byte [esp + 0x31], 0x41
mov byte [esp + 0x32], 0x41
mov byte [esp + 0x33], 0x41
mov byte [esp + 0x34], 0x41
mov byte [esp + 0x35], 0x41
mov byte [esp + 0x36], 0x41
mov byte [esp + 0x37], 0x41
mov byte [esp + 0x38], 0x41
mov byte [esp + 0x39], 0x41
mov byte [esp + 0x3a], 0x41
mov byte [esp + 0x3b], 0x41
mov byte [esp + 0x3c], 0x41
mov byte [esp + 0x3d], 0x41
mov byte [esp + 0x3e], 0x41
mov byte [esp + 0x3f], 0x41
mov byte [esp + 0x40], 0x41
mov byte [esp + 0x41], 0x41
mov byte [esp + 0x42], 0x41
mov byte [esp + 0x43], 0x41
mov byte [esp + 0x44], 0x41
mov byte [esp + 0x45], 0x41
mov byte [esp + 0x46], 0x41
mov byte [esp + 0x47], 0x41
mov byte [esp + 0x48], 0x41
mov byte [esp + 0x49], bl
mov byte [esp + 0x4a], bl
mov byte [esp + 0x4b], 0x21
mov byte [esp + 0x4c], bl
mov byte [esp + 0x4d], 1
push 0x32
lea ecx, [esp + 0x20]
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_sendto]
push 0x32
mov edi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, ebx
jle 0x43574b
mov dl, byte [0x493b50]
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x269]
mov byte [esp + 0x268], dl
mov dword [esp + 0x6c], ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x164]
push eax
push ebx
push ebx
push ecx
push 0x40
mov dword [esp + 0x84], 0xc8
mov dword [esp + 0x17c], ebp
mov dword [esp + 0x178], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, ebx
je 0x43574b
jl 0x43574b
lea edx, [esp + 0x164]
push edx
push ebp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x43574b
push ebx
lea eax, [esp + 0x26c]
push 0x1000
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x43574b
movsx eax, byte [esp + 0x2a0]
xor edx, edx
lea ecx, [eax + eax*8]
mov dl, byte [esp + ecx*2 + 0x2a6]
lea eax, [esp + ecx*2 + 0x2a1]
xor ecx, ecx
push edx
mov cl, byte [eax + 4]
xor edx, edx
mov dl, byte [eax + 3]
push ecx
xor ecx, ecx
push edx
mov cl, byte [eax + 2]
xor edx, edx
mov dl, byte [eax + 1]
push ecx
xor ecx, ecx
push edx
mov cl, byte [eax]
lea edx, [esp + 0x98]
push ecx
push str._02x_02x_02x_02x_02x_02x
push edx
call fcn.00457c43
mov al, byte [esp + 0x2c0]
add esp, 0x20
cmp al, bl
jle 0x43574b
lea eax, [esp + 0x2a1]
push 0xf
lea ecx, [esp + 0x78]
push eax
push ecx
call fcn.00458800
add esp, 0xc
mov byte [esp + 0x83], bl
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
cmp byte [esp + 0x84], bl
je 0x435a27
mov edx, dword [esp + 0x48]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0046af22
push 0x412
mov ecx, eax
call fcn.0046db89
mov ecx, dword [eax + 0x1c]
push ebx
push ebx
push 0x1004
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebp, eax
lea edx, [esp + 0x5c]
or eax, 0xffffffff
push edx
mov dword [esp + 0x50], ebp
mov byte [esp + 0xa8], bl
mov byte [esp + 0xb8], bl
mov dword [esp + 0xec], ebx
mov byte [esp + 0xf0], bl
mov dword [esp + 0x100], ebx
mov dword [esp + 0x108], ebx
mov dword [esp + 0x104], ebx
mov dword [esp + 0x10c], ebx
mov dword [esp + 0x110], 0x1fe
mov dword [esp + 0x114], eax
mov dword [esp + 0x118], eax
mov dword [esp + 0x11c], eax
mov dword [esp + 0x120], eax
mov dword [esp + 0x124], ebx
mov dword [esp + 0x128], ebx
mov dword [esp + 0x134], 1
mov dword [esp + 0x138], ebx
mov byte [esp + 0x13c], bl
mov dword [esp + 0x14c], ebx
mov dword [esp + 0x150], ebx
mov dword [esp + 0x130], ebx
mov dword [esp + 0x12c], ebx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x66]
mov edx, dword [esp + 0x64]
and eax, 0xffff
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x66]
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x66]
push edx
mov edx, dword [esp + 0x68]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x168]
push str._04d__02d__02d__02d:_02d:_02d
push eax
call fcn.00457c43
mov edx, dword [0x4bb6ec]
add esp, 0x20
lea ecx, [esp + 0xa4]
push ecx
push edx
mov ecx, 0x4bb6e4
call fcn.00403a80
mov eax, dword [0x4bb6e8]
lea ebp, [ebp + ebp*2]
shl ebp, 6
lea edi, [esp + 0x84]
mov dword [eax + ebp + 0x60], esi
mov ecx, dword [0x4bb6e8]
mov dword [ecx + ebp + 0x5c], esi
mov edx, dword [0x4bb6e8]
lea edx, [edx + ebp + 0x48]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [esp + 0x74], bl
je 0x435936
mov ecx, dword [0x4bb6e8]
or edx, 0xffffffff
lea edi, [esp + 0x74]
xor eax, eax
lea esi, [ecx + ebp]
mov ecx, edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x50], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x435956
mov ecx, dword [esp + 0x4c]
mov edx, dword [0x4bb6e8]
inc ecx
push ecx
lea eax, [edx + ebp]
push str.User__d
push eax
call fcn.00457c43
add esp, 0xc
or edx, 0xffffffff
mov ecx, dword [0x4bb6e8]
mov dword [ecx + ebp + 0x68], 0xfe
mov eax, dword [0x4bb6e8]
mov dword [eax + ebp + 0x6c], edx
mov ecx, dword [0x4bb6e8]
mov byte [ecx + ebp + 0x10], bl
mov eax, dword [0x4bb6e8]
mov dword [eax + ebp + 0x78], edx
mov ecx, dword [0x4bb6e8]
mov dword [ecx + ebp + 0x74], edx
mov eax, dword [0x4bb718]
cmp eax, ebx
je 0x4359a1
cmp eax, 3
je 0x4359a1
cmp eax, 5
je 0x4359a1
xor eax, eax
jmp 0x4359a6
mov eax, 1
mov edx, dword [0x4bb6e8]
mov dword [edx + ebp + 0x64], eax
mov eax, dword [0x4bb718]
cmp eax, 2
je 0x4359c8
cmp eax, 3
je 0x4359c8
cmp eax, 4
je 0x4359c8
xor eax, eax
jmp 0x4359cd
mov eax, 1
mov ecx, dword [0x4bb6e8]
mov dword [ecx + ebp + 0x44], eax
mov eax, dword [0x4bb718]
cmp eax, 1
je 0x4359ef
cmp eax, 4
je 0x4359ef
cmp eax, 5
je 0x4359ef
xor eax, eax
jmp 0x4359f4
mov eax, 1
mov edx, dword [0x4bb6e8]
mov dword [edx + ebp + 0x58], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0046af22
mov edx, dword [esp + 0x4c]
mov eax, dword [eax + 0x1c]
push ebx
push edx
push 0x4c9
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x58]
inc eax
cmp eax, ecx
mov dword [esp + 0x44], eax
jl 0x4354bd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x125c
ret