Function at 0x40559c
Capabilities:
Contain obfuscated stackstrings
Get socket status
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x49c
push ebx
push esi
push edi
push 0x4014c0
mov esi, ecx
push 0x4013b0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x14], 3
mov dword [ebp - 0x10], ebx
mov eax, 1
mov eax, 0xffffffff
nop
nop
push ebx
lea eax, [ebp - 4]
push 4
push eax
push dword [esi + 0xa8]
mov byte [ebp - 4], 5
mov byte [ebp - 3], 2
mov byte [ebp - 2], bl
mov byte [ebp - 1], 2
call dword [sym.imp.WS2_32.dll_send]
mov edi, 0x258
lea eax, [ebp - 0x398]
push edi
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, 1
mov eax, 0xffffffff
nop
nop
mov eax, dword [esi + 0xa8]
mov dword [ebp - 0x140], 1
mov dword [ebp - 0x13c], eax
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x140]
push ebx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x405900
mov eax, 1
mov eax, 0xffffffff
nop
nop
lea eax, [ebp - 0xc]
mov byte [ebp - 0x20], 0x57
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 0x1f], 0x53
mov byte [ebp - 0x1e], 0x32
mov byte [ebp - 0x1d], 0x5f
mov byte [ebp - 0x1c], 0x33
mov byte [ebp - 0x1b], 0x32
mov byte [ebp - 0x1a], 0x2e
mov byte [ebp - 0x19], 0x64
mov byte [ebp - 0x18], 0x6c
mov byte [ebp - 0x17], 0x6c
mov byte [ebp - 0x16], bl
mov byte [ebp - 0xc], 0x72
mov byte [ebp - 0xb], 0x65
mov byte [ebp - 0xa], 0x63
mov byte [ebp - 9], 0x76
mov byte [ebp - 8], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
lea ecx, [ebp - 0x398]
push edi
push ecx
push dword [esi + 0xa8]
mov dword [ebp - 0x3c], eax
call eax
cmp byte [ebp - 0x398], 5
jne 0x405900
cmp byte [ebp - 0x397], bl
je 0x4056e7
cmp byte [ebp - 0x397], 2
jne 0x405900
mov eax, 1
mov eax, 0xffffffff
nop
nop
cmp byte [ebp - 0x397], 2
jne 0x40582a
push 0x41ab90
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jbe 0x40582a
push 0x41ab90
call sub.MSVCRT.dll_strlen
mov dword [ebp - 0x30], eax
mov dword [esp], 0x41ac90
call sub.MSVCRT.dll_strlen
mov dword [ebp - 0x34], eax
mov dword [esp], 0x102
lea eax, [ebp - 0x49c]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov al, byte [ebp - 0x30]
add esp, 0xc
mov byte [ebp - 0x49b], al
lea eax, [ebp - 0x49a]
push 0x41ab90
push eax
mov byte [ebp - 0x49c], 5
call dword [ebp - 0x38]
lea eax, [ebp - 0x34]
push 4
push eax
mov eax, dword [ebp - 0x30]
lea eax, [ebp + eax - 0x49a]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 0x30]
add esp, 0xc
lea eax, [ebp + eax - 0x499]
push 0x41ac90
push eax
call dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
push ebx
lea eax, [eax + ecx + 3]
push eax
lea eax, [ebp - 0x49c]
push eax
push dword [esi + 0xa8]
call dword [sym.imp.WS2_32.dll_send]
push edi
lea eax, [ebp - 0x398]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, 1
mov eax, 0xffffffff
nop
nop
mov eax, dword [esi + 0xa8]
mov dword [ebp - 0x140], 1
mov dword [ebp - 0x13c], eax
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x140]
push ebx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x405900
push ebx
lea eax, [ebp - 0x398]
push edi
push eax
push dword [esi + 0xa8]
call dword [ebp - 0x3c]
cmp byte [ebp - 0x398], 5
jne 0x405900
cmp byte [ebp - 0x397], bl
jne 0x405900
mov eax, 1
mov eax, 0xffffffff
nop
nop
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x40590c
push dword [ebp + 0xc]
mov byte [ebp - 0x2c], 5
mov byte [ebp - 0x2b], 1
mov byte [ebp - 0x2a], bl
mov byte [ebp - 0x29], 1
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [ebp - 0x24], ax
mov eax, 1
mov eax, 0xffffffff
nop
nop
push ebx
lea eax, [ebp - 0x2c]
push 0xa
push eax
push dword [esi + 0xa8]
call dword [sym.imp.WS2_32.dll_send]
push edi
lea eax, [ebp - 0x398]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 0xa8]
add esp, 0xc
mov dword [ebp - 0x13c], eax
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x140]
push ebx
push eax
push ebx
mov dword [ebp - 0x140], 1
call dword [sym.imp.WS2_32.dll_select]
mov ecx, eax
mov eax, 1
mov eax, 0xffffffff
nop
nop
cmp ecx, ebx
jle 0x405900
push ebx
lea eax, [ebp - 0x398]
push edi
push eax
push dword [esi + 0xa8]
call dword [ebp - 0x3c]
cmp byte [ebp - 0x398], 5
jne 0x405900
cmp byte [ebp - 0x397], bl
jne 0x405900
mov al, 1
jmp 0x40590e
push dword [esi + 0xa8]
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8