Function at 0x4080a0
Capabilities:
Create udp socket
Initialize winsock library
Set socket configuration
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x18bc
call fcn.00410f80
mov eax, dword [0x439040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ecx, ecx
nop dword [eax]
movzx eax, word [ecx + 0xebd688]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x572], ax
test ax, ax
jne 0x4080c0
lea ecx, [ebp - 0x570]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x4080e0
mov eax, dword [str..logf]
mov dword [ecx], eax
mov eax, dword [0x43709c]
mov dword [ecx + 4], eax
mov eax, dword [0x4370a0]
push 1
mov dword [ecx + 8], eax
call fcn.00414151
add esp, 4
push eax
lea eax, [ebp - 0x570]
push 0x436684
push eax
call fcn.00419e9d
add esp, 0xc
mov esi, 0x596d90
or edi, 0xffffffff
nop word [eax + eax]
push 0x2c
push 0
push esi
call fcn.00411cc0
mov word [esi], di
add esp, 0xc
add esi, 0x2c
cmp esi, 0x597470
jl 0x408130
lea eax, [ebp - 0x1898]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x408647
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
mov eax, 2
push 0x3df
mov dword [ebp - 0x18a0], edi
mov word [ebp - 0x18b0], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0xee6268
mov word [ebp - 0x18ae], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 4
mov dword [ebp - 0x18ac], eax
lea eax, [ebp - 0x18b4]
push eax
push 0x1006
push 0xffff
push edi
mov dword [ebp - 0x18b4], 0xbb8
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
js 0x408662
push 0x14
lea eax, [ebp - 0x108]
push 0x4370a4
push eax
call fcn.004011c0
movups xmm0, xmmword [ebp - 0x18b0]
push ecx
mov eax, esp
mov ecx, edi
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [ebp - 0x18b0]
push 1
movups xmmword [eax], xmm0
lea eax, [ebp - 0x1708]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00407f40
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x2c
push 0x32
call ebx
xor esi, esi
nop dword [eax]
movsx eax, byte [ebp + esi - 0x1708]
push eax
push str._02x
call fcn.00401180
inc esi
add esp, 8
cmp esi, 0x14
jl 0x408230
push 0x436a24
call fcn.00401180
mov ax, word [0x4370a8]
sub esp, 0xc
movups xmm0, xmmword [ebp - 0x18b0]
mov word [ebp - 0x108], ax
mov ecx, edi
mov al, byte [0x4370aa]
mov byte [ebp - 0x106], al
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [ebp - 0x18b0]
push 2
movups xmmword [eax], xmm0
lea eax, [ebp - 0x1708]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00407f40
add esp, 0x2c
push 0x32
call ebx
mov byte [ebp - 0x1704], 0
xor esi, esi
nop dword [eax]
nop word [eax + eax]
movsx eax, byte [ebp + esi - 0x1708]
push eax
push str._02x
call fcn.00401180
inc esi
add esp, 8
cmp esi, 5
jl 0x4082c0
push 0x436a24
call fcn.00401180
add esp, 4
lea eax, [ebp - 0x1707]
push eax
call fcn.00415a4b
add esp, 4
mov dword [ebp - 0x18b8], eax
mov dword [ebp - 0x189c], 0xa2c3d
cmp eax, 0x28
jg 0x40855c
xor ebx, ebx
test eax, eax
jle 0x40855c
mov edi, 0x596da8
push ebx
lea eax, [ebp - 0x108]
push 0x4370ac
push eax
call fcn.004011c0
movups xmm0, xmmword [ebp - 0x18b0]
push ecx
mov ecx, dword [ebp - 0x18a0]
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [ebp - 0x18b0]
movups xmmword [eax], xmm0
lea eax, [ebx + 3]
push eax
lea eax, [ebp - 0x1708]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00407f40
add esp, 0x2c
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
nop dword [eax + eax]
movsx eax, byte [ebp + esi - 0x1708]
push eax
push str._02x
call fcn.00401180
inc esi
add esp, 8
cmp esi, 0x14
jl 0x408380
push 0x436a24
call fcn.00401180
add esp, 4
mov byte [ebp - 0x16a4], 0
xor ecx, ecx
nop dword [eax]
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x1708]
mov byte [ebp + ecx - 0x170], al
inc ecx
test al, al
jne 0x4083c0
lea eax, [ebp - 0x189c]
mov word [edi - 0x18], bx
push eax
lea eax, [ebp - 0x170]
push eax
call fcn.00413c67
add esp, 8
test eax, eax
je 0x4083fd
push eax
call fcn.00415a4b
add esp, 4
mov dword [edi - 0x14], eax
lea eax, [ebp - 0x189c]
push eax
push 0
call fcn.00413c67
add esp, 8
test eax, eax
je 0x40841e
push eax
call fcn.00415a4b
add esp, 4
mov dword [edi - 0x10], eax
lea eax, [ebp - 0x189c]
push eax
push 0
call fcn.00413c67
add esp, 8
test eax, eax
je 0x40843f
push eax
call fcn.00415a4b
add esp, 4
mov dword [edi - 0xc], eax
lea eax, [ebp - 0x189c]
push eax
push 0
call fcn.00413c67
add esp, 8
test eax, eax
je 0x408460
push eax
call fcn.00415a4b
add esp, 4
mov dword [edi - 8], eax
lea eax, [ebp - 0x189c]
push eax
push 0
call fcn.00413c67
add esp, 8
test eax, eax
je 0x408481
push eax
call fcn.00415a4b
add esp, 4
mov dword [edi - 4], eax
lea eax, [ebp - 0x189c]
push eax
push 0
call fcn.00413c67
add esp, 8
test eax, eax
je 0x4084a1
push eax
call fcn.00415a4b
add esp, 4
mov dword [edi], eax
lea eax, [ebp - 0x189c]
push eax
push 0
call fcn.00413c67
add esp, 8
test eax, eax
je 0x4084c2
push eax
call fcn.00415a4b
add esp, 4
mov dword [edi + 4], eax
lea eax, [ebp - 0x189c]
push eax
push 0
call fcn.00413c67
add esp, 8
test eax, eax
je 0x4084e3
push eax
call fcn.00415a4b
add esp, 4
mov dword [edi + 8], eax
lea eax, [ebp - 0x189c]
push eax
push 0
call fcn.00413c67
add esp, 8
test eax, eax
je 0x408504
push eax
call fcn.00415a4b
add esp, 4
mov dword [edi + 0xc], eax
lea eax, [ebp - 0x189c]
push eax
push 0
call fcn.00413c67
add esp, 8
test eax, eax
je 0x408525
push eax
call fcn.00415a4b
add esp, 4
mov dword [edi + 0x10], eax
push dword [edi + 0xc]
movsx eax, word [edi - 0x18]
push dword [edi - 8]
push dword [edi - 0xc]
push dword [edi - 0x10]
push dword [edi - 0x14]
push eax
push str._n__i___i__i__i__i__i_n
call fcn.00401180
inc ebx
add esp, 0x1c
add edi, 0x2c
cmp ebx, dword [ebp - 0x18b8]
jl 0x408320
mov edi, dword [ebp - 0x18a0]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor ecx, ecx
nop dword [eax + eax]
movzx eax, word [ecx + 0xebd688]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x372], ax
test ax, ax
jne 0x408570
lea ecx, [ebp - 0x370]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x408590
mov eax, dword [str..hsf]
mov dword [ecx], eax
mov eax, dword [0x437048]
mov dword [ecx + 4], eax
mov ax, word [0x43704c]
mov word [ecx + 8], ax
lea eax, [ebp - 0x370]
push 0x436338
push eax
lea eax, [ebp - 0x18a0]
push eax
call fcn.004145ea
add esp, 0xc
test eax, eax
je 0x4085fc
lea ecx, [ebp - 0x370]
push ecx
push eax
push str.Error_writing_file:_error__d__s_n
call fcn.004010d0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004106cd
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18a0]
test eax, eax
je 0x408634
push eax
push 1
push 0x6e0
push 0x596d90
call fcn.0041a39b
push dword [ebp - 0x18a0]
call fcn.004144c8
add esp, 0x14
push dword [ebp - 0x18a0]
call fcn.004146a8
add esp, 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004106cd
mov esp, ebp
pop ebp
ret
push 0
push str.Message
push str.WSA_failed_n
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call fcn.00413c51
mov edx, edi
mov ecx, str.E_Error_setsck_n
call fcn.00407ea0
int3