joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408660
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b37c
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x411018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push 0x6a
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
test byte [0x4dc904], 1
mov esi, eax
jne 0x4086cf
or dword [0x4dc904], 1
mov dword [ebp - 4], 0
call fcn.00401070
push 0x40b8b0
call fcn.0040a590
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x4dc910
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4dc930]
push 0x4dc910
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x2710
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x110]
push str.UserCount:__d__d
push ecx
call edi
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 0x10
lea edx, [ebp - 0x110]
push edx
push 0
push 0x401
push esi
call ebx
test byte [0x4dc938], 1
jne 0x408748
mov eax, 1
or dword [0x4dc938], eax
mov dword [ebp - 4], eax
call fcn.00408b50
push 0x40b9f0
call fcn.0040a590
add esp, 4
push 0x4dc980
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4dc9a8]
push 0x4dc980
mov dword [ebp - 0x114], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x114]
push ecx
lea edx, [ebp - 0x110]
push str.QueueSize:__d
push edx
call edi
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push 1
push 0x401
push esi
call ebx
push str.Oct__7_2024
lea ecx, [ebp - 0x110]
push str.Release_:__s
push ecx
call edi
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
push 2
push 0x401
push esi
call ebx
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a4e0
mov esp, ebp
pop ebp
ret 4
Function at 0x408e30
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 0x74]
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
xor edi, edi
cmp eax, edi
je 0x408e58
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x74]
push eax
call ebx
mov dword [esi + 0x74], edi
mov eax, dword [esi + 0x70]
cmp eax, edi
je 0x408e65
push eax
call ebx
mov dword [esi + 0x70], edi
lea ecx, [esi + 0x38]
call fcn.00407d50
lea edi, [esi + 0x14]
mov dword [ebp - 4], 8
mov eax, dword [edi]
test eax, eax
je 0x408e91
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [edi]
push ecx
call ebx
mov dword [edi], 0
add edi, 4
dec dword [ebp - 4]
jne 0x408e77
mov eax, dword [esi + 0x10]
test eax, eax
je 0x408eb6
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0x10]
push edx
call ebx
mov dword [esi + 0x10], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x408ec7
push eax
call ebx
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x408edd
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408ef0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x411018]
xor eax, ebp
mov dword [ebp - 4], eax
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x408f40
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketTCP__WSASocket___failed_with_error:__d
push 1
call fcn.0040a100
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a4e0
mov esp, ebp
pop ebp
ret
mov eax, 2
push 0
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htonl]
movzx ecx, word [esi + 0xc]
push ecx
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [ebp - 0x14]
mov word [ebp - 0x12], ax
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x408f9e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketTCP__bind___failed_with_error:__d
push 1
call fcn.0040a100
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a4e0
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 4]
push 5
push ecx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x408fd5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketTCP__listen___failed_with_error:__d
push 1
call fcn.0040a100
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a4e0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.0040a4e0
mov esp, ebp
pop ebp
ret
Function at 0x408ff0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x409024
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketTCP__socket___failed_with_error:__d
push 1
call fcn.0040a100
add esp, 0xc
xor al, al
pop esi
pop ebp
ret 4
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
test eax, eax
jne 0x40905f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketTCP__CreateIoCompletionPort___failed_with_error:__d
push 1
call fcn.0040a100
add esp, 0xc
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop esi
pop ebp
ret 4
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop esi
pop ebp
ret 4

Function at 0x409070
Capabilities:
Create thread

Disassembly:
push 0
push 0
push esi
push 0x409a20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x10], eax
test eax, eax
jne 0x4090a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketTCP__CreateThread___failed_with_error:__d
push 1
call fcn.0040a100
add esp, 0xc
xor al, al
ret
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x4090ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketTCP__SetThreadPriority___failed_with_error:__d
push 1
call fcn.0040a100
add esp, 0xc
xor al, al
ret
mov al, 1
ret

Function at 0x4090d0
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10]
cmp eax, 8
jbe 0x4090ed
mov eax, 8
push ebx
xor ebx, ebx
push edi
mov dword [esi + 0x34], eax
test eax, eax
je 0x409130
lea edi, [esi + 0x14]
jmp 0x409100
push 0
push 0
push esi
push 0x409b90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi], eax
test eax, eax
je 0x409138
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x409156
inc ebx
add edi, 4
cmp ebx, dword [esi + 0x34]
jb 0x409100
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketTCP__CreateThread___failed_with_error:__d
push 1
call fcn.0040a100
add esp, 0xc
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketTCP__SetThreadPriority___failed_with_error:__d
push 1
call fcn.0040a100
add esp, 0xc
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409180
Capabilities:
Create thread

Disassembly:
push 0
push 0x800
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [esi + 0x70], eax
test eax, eax
jne 0x4091b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketTCP__CreateSemaphore___failed_with_error:__d
push 1
call fcn.0040a100
add esp, 0xc
xor al, al
ret
push 0
push 0
push esi
push 0x409c90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x74], eax
test eax, eax
jne 0x4091e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketTCP__CreateThread___failed_with_error:__d
push 1
call fcn.0040a100
add esp, 0xc
xor al, al
ret
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x40920b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketTCP__SetThreadPriority___failed_with_error:__d
push 1
call fcn.0040a100
add esp, 0xc
xor al, al
ret
mov al, 1
ret
Function at 0x409430
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, dword [ebp + 8]
add edi, 0x7c
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 0xc]
test esi, esi
js 0x40945b
xor eax, eax
cmp esi, 0x14
setl al
test eax, eax
jne 0x40946c
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov edi, esi
imul edi, edi, 0x6c
add edi, 0x4de210
mov eax, dword [edi + 4]
test eax, eax
js 0x409498
xor ecx, ecx
cmp eax, 0x14
setl cl
mov eax, ecx
test eax, eax
je 0x409498
cmp dword [edi + 8], 0
je 0x409498
cmp dword [edi + 0x1c], 0xffffffff
jne 0x4094ac
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
cmp ebx, 0x2000
jle 0x4094d9
push ebx
push esi
push str._SocketTCP__Max_msg_size__Type:_1__Index:__d__Size:__d_
push 1
call fcn.0040a100
mov eax, dword [ebp - 4]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [edi + 0x24]
cmp dword [esi + 0x20], 0
jle 0x409554
mov eax, dword [esi + 0x12028]
lea ecx, [eax + ebx]
cmp ecx, 0x10000
jle 0x409525
mov esi, dword [ebp + 0xc]
push ecx
push esi
push str._SocketTCP__Max_msg_size__Type:_2__Index:__d__Size:__d_
push 1
call fcn.0040a100
mov ecx, dword [ebp + 8]
add esp, 0x10
mov eax, esi
call fcn.004095d0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
push ebx
push edx
lea eax, [eax + esi + 0x2028]
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
add dword [esi + 0x12028], ebx
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
push ebx
lea eax, [esi + 0x24]
push edx
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
xor ecx, ecx
push ecx
lea eax, [esi + 0x24]
mov dword [esi + 0x18], eax
push esi
lea eax, [esi + 0x14]
push ecx
mov dword [esi + 0x2024], ecx
mov dword [eax], ebx
mov dword [esi + 0x1c], 1
mov dword [esi + 0x20], ebx
mov edx, dword [edi + 0x1c]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 8]
push ecx
push 1
push eax
push edx
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x409540
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x409540
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.004095d0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x409670
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, dword [ebp + 8]
add edi, 0x7c
push edi
mov esi, eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ebx, ebx
js 0x4096ab
xor eax, eax
cmp ebx, 0x14
setl al
test eax, eax
je 0x4096ab
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4096ba
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.004095d0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
add dword [esi + 0x2024], eax
mov eax, dword [ebp + 8]
push ebx
lea edi, [esi + 0x24]
push eax
call fcn.00409210
test al, al
jne 0x4096ed
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.004095d0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x2024]
lea edx, [eax + esi + 0x24]
mov dword [esi + 0x18], edx
mov edx, 0x2000
sub edx, eax
xor eax, eax
push eax
mov dword [esi + 0x1c], eax
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, ebx
lea ecx, [esi + 0x14]
imul eax, eax, 0x6c
mov dword [ecx], edx
lea edx, [ebp - 0xc]
push edx
push 1
push ecx
mov ecx, dword [eax + 0x4de22c]
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x409772
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x409772
call esi
push eax
push str._SocketTCP__WSARecv___failed_with_error:__d
push 1
call fcn.0040a100
mov ecx, dword [ebp + 8]
add esp, 0xc
mov eax, ebx
call fcn.004095d0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x409790
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push edi
lea edi, [ebx + 0x7c]
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0xc]
test eax, eax
js 0x4097c9
xor ecx, ecx
cmp eax, 0x14
setl cl
test ecx, ecx
je 0x4097c9
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x4097d8
mov ecx, ebx
call fcn.004095d0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
add dword [esi + 0x2024], ecx
mov ecx, dword [esi + 0x2024]
mov ebx, eax
mov eax, dword [esi + 0x20]
imul ebx, ebx, 0x6c
add ebx, 0x4de210
cmp ecx, eax
jl 0x4098bb
mov eax, dword [esi + 0x12028]
test eax, eax
jg 0x40981a
push edi
mov dword [esi + 0x20], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edi, [esi + 0x24]
cmp eax, 0x2000
jle 0x409889
lea eax, [esi + 0x2028]
push 0x2000
push eax
push edi
call sub.MSVCR100.dll_memcpy
mov eax, dword [esi + 0x12028]
sub eax, 0x2000
push eax
lea ecx, [esi + 0x4028]
mov dword [esi + 0x18], edi
push ecx
lea eax, [esi + 0x2028]
lea edi, [esi + 0x14]
push eax
mov dword [edi], 0x2000
mov dword [esi + 0x1c], 1
mov dword [esi + 0x20], 0x2000
mov dword [esi + 0x2024], 0
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0x18
add dword [esi + 0x12028], 0xffffe000
jmp 0x4098d0
push eax
lea edx, [esi + 0x2028]
push edx
push edi
call sub.MSVCR100.dll_memcpy
mov eax, dword [esi + 0x12028]
mov dword [esi + 0x18], edi
lea edi, [esi + 0x14]
add esp, 0xc
mov dword [edi], eax
mov dword [esi + 0x20], eax
xor eax, eax
mov dword [esi + 0x2024], eax
mov dword [esi + 0x12028], eax
jmp 0x4098c9
lea edx, [ecx + esi + 0x24]
lea edi, [esi + 0x14]
sub eax, ecx
mov dword [esi + 0x18], edx
mov dword [edi], eax
mov dword [esi + 0x1c], 1
mov ecx, dword [ebx + 0x1c]
push 0
push esi
push 0
lea eax, [ebp - 8]
push eax
push 1
push edi
push ecx
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x40991c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x40991c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.004095d0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x409dc0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
mov dword [esi], vtable.CSocketManagerUdp.0
test eax, eax
je 0x409ded
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x409e03
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
test byte [ebp + 8], 1
je 0x409e13
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x409e20
Capabilities:
Create udp socket
Resolve dns
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push 2
push 2
mov esi, eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x409e8e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketUDP__WSASocket___failed_with_error:__d
push 1
call fcn.0040a100
mov eax, dword [esi + 0x18]
add esp, 0xc
test eax, eax
je 0x409e71
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x409e87
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
xor al, al
pop esi
pop ebp
ret 4
push edi
mov ecx, 2
push ebx
mov word [esi + 8], cx
lea edi, [esi + 0xc]
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edx, dword [ebp + 8]
push edx
mov dword [edi], eax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [edi], 0xffffffff
mov word [esi + 0xa], ax
jne 0x409ef9
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x409ee5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketUDP__gethostbyname___failed_with_error:__d
push 1
call fcn.0040a100
add esp, 0xc
call fcn.00409f30
pop edi
xor al, al
pop esi
pop ebp
ret 4
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ecx
push eax
push edi
call sub.MSVCR100.dll_memcpy
add esp, 0xc
push 0x1000
lea ecx, [esi + 0x1020]
push 0
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
pop edi
mov dword [esi + 0x2020], 0
mov al, 1
pop esi
pop ebp
ret 4

Function at 0x409f30
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi + 0x18]
test eax, eax
je 0x409f51
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x409f67
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
ret
Function at 0x409f70
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
cmp dword [esi + 4], 0xffffffff
push edi
mov edi, eax
je 0x409fba
mov eax, dword [esi + 0x2020]
lea ecx, [eax + edi]
push edi
cmp ecx, 0x1000
jle 0x409fc1
push str._SocketUDP__Max_msg_size__Size:__d_
push 1
call fcn.0040a100
push 0x1000
lea edx, [esi + 0x1020]
push 0
push edx
call sub.MSVCR100.dll_memset
add esp, 0x18
mov dword [esi + 0x2020], 0
xor al, al
pop edi
pop ebp
ret 4
mov ecx, dword [ebp + 8]
push ecx
lea edx, [eax + esi + 0x1020]
push edx
call sub.MSVCR100.dll_memcpy
add dword [esi + 0x2020], edi
mov eax, dword [esi + 0x2020]
mov edx, dword [esi + 4]
add esp, 0xc
push 0x10
lea ecx, [esi + 8]
push ecx
push 0
push eax
lea edi, [esi + 0x1020]
push edi
push edx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x40a049
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
cmp eax, 0x2733
je 0x40a041
call ebx
push eax
push str._SocketUDP__sendto___failed_with_error:__d
push 1
call fcn.0040a100
push 0x1000
push 0
push edi
call sub.MSVCR100.dll_memset
add esp, 0x18
pop ebx
mov dword [esi + 0x2020], 0
xor al, al
pop edi
pop ebp
ret 4
pop ebx
mov al, 1
pop edi
pop ebp
ret 4
sub dword [esi + 0x2020], eax
mov ecx, dword [esi + 0x2020]
push ecx
lea eax, [eax + esi + 0x1020]
push eax
push edi
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
mov al, 1
pop edi
pop ebp
ret 4

Function at 0x40a070
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x411018]
xor eax, ebp
mov dword [ebp - 4], eax
jmp 0x40a095
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push 0
push eax
call sub.MSVCR100.dll_memset
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
push edx
lea eax, [ebp - 0x104]
push pe_nt_image_headers32
push eax
call dword [sym.imp.MSVCR100.dll_vsprintf_s]
add esp, 0x1c
push 0x10
push str.Error
lea ecx, [ebp - 0x104]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40a0ed
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40a4e0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411018]
jne 0x40a4ea
repz ret
jmp fcn.0040aa14
Function at 0x4f3690
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x96000]
mov dword [edi + 0xcf740], 0x98794a9a
push edi
jmp 0x4f36ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4f36c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f36b0
mov eax, 1
add ebx, ebx
jne 0x4f36d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4f36e4
jne 0x4f3703
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f3703
dec eax
add ebx, ebx
jne 0x4f36f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4f36c8
add ebx, ebx
jne 0x4f36ff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4f3755
xor ecx, ecx
sub eax, 3
jb 0x4f371b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4f378a
sar eax, 1
mov ebp, eax
jmp 0x4f3726
add ebx, ebx
jne 0x4f3726
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f36f4
inc ecx
add ebx, ebx
jne 0x4f3734
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f36f4
add ebx, ebx
jne 0x4f3741
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4f3736
jne 0x4f3752
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4f3736
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4f3774
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4f3766
jmp 0x4f36b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4f3774
add edi, ecx
jmp 0x4f36b6
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4f3792
cmp byte [edi], 0x11
jne 0x4f3792
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4f3797
lea edi, [esi + 0xec000]
mov eax, dword [edi]
or eax, eax
je 0x4f380f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x100d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x100ee0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4f37c4
mov ecx, edi
jns 0x4f37f3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x100ee4]
or eax, eax
je 0x4f3809
mov dword [ebx], eax
add ebx, 4
jmp 0x4f37e1
call dword [esi + 0x100ef4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4f3840
cmp al, 0xef
ja 0x4f3833
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4f3815
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4f3822
mov ebp, dword [esi + 0x100ee8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4f3874
sub esp, 0xffffff80
jmp 0x420577